/* =========================================================================
   RIGHTS — the four scenes
   -------------------------------------------------------------------------
   01  the wordmark hero
   03  detection — the lens
   06  the archive — the curve
   07  the company — the ribbon

   One idea per scene. Between them the page returns to plain typography.
   ========================================================================= */

:root {
  --silver: #E9EAE7;   /* the detection room */
}

/* ============================================================== hero ==== */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--paper);
  overflow: hidden;
}

.hero__inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(92px, 14vh, 176px);
  padding-bottom: clamp(56px, 8vh, 92px);
}

.hero__corners {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.hero__corner {
  font-size: var(--t-meta);
  letter-spacing: -0.002em;
  color: var(--muted);
}

/* the wordmark is the hero. Nothing else in the viewport competes with it. */
.wordmark {
  margin: auto 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-size: var(--t-word);
  font-weight: 200;
  line-height: 0.84;
  color: var(--text);
  user-select: none;
  padding-block: clamp(20px, 4vh, 64px);
}
.wordmark__l {
  display: inline-block;
  margin-inline: -0.014em;
  will-change: transform, filter, opacity;
}

.hero__rule {
  height: 1px;
  background: var(--hairline-2);
  margin-bottom: clamp(18px, 2.4vh, 32px);
}

.hero__base { align-items: start; }
.hero__claimline .index { display: block; margin-bottom: 8px; }
.hero__claimline .label { line-height: 1.45; }

.hero__states .eyebrow { margin-bottom: 12px; }
.hero__states-list { display: flex; flex-wrap: wrap; gap: 8px; }

.hero__act { justify-self: start; padding-top: 2px; }

.scroll-cue {
  width: 25px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
}
.scroll-cue svg { width: 10px; height: 12px; }
.scroll-cue__dot { animation: cue 2.6s var(--ease) infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(-1px); opacity: 0.35; }
  50%      { transform: translateY(2px);  opacity: 1; }
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 2.6vh, 30px);
  transform: translateX(-50%);
  z-index: 3;
}

/* ========================================================== detection ==== */

.discover {
  position: relative;
  background: var(--silver);
  padding-block: clamp(100px, 13.5vh, 186px);
  overflow: hidden;
}

.discover__head { align-items: start; }
.discover__title {
  font-size: clamp(32px, 3.3vw, 58px);
  font-weight: 250;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.lens {
  position: relative;
  margin-block: clamp(44px, 7vh, 104px);
  height: min(74svh, 760px);
  background: linear-gradient(180deg, #E9EAE7 0%, #E2E3E0 100%);
}
.lens__canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.lens__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 2.6vh, 30px);
  transform: translateX(-50%);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 18, 20, 0.34);
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
.lens__hint.is-gone { opacity: 0; }

/* if WebGL is unavailable the section still reads as a section */
.lens.is-fallback { display: grid; place-items: center; }
.lens.is-fallback .lens__canvas { display: none; }
.lens.is-fallback::after {
  content: 'Interactive detection preview unavailable on this device.';
  font-size: var(--t-meta);
  color: var(--muted);
  max-width: 28ch;
  text-align: center;
  line-height: 1.6;
}

.discover__foot { align-items: start; row-gap: 28px; }

/* ============================================================ archive ==== */

.creators {
  position: relative;
  background: var(--paper-2);
  padding-top: clamp(100px, 13.5vh, 186px);
  padding-bottom: clamp(80px, 11vh, 150px);
  /* clip, not hidden: `overflow:hidden` would make this a scroll container
     and the sticky stage inside would never stick to the viewport */
  overflow: clip;
}

.creators__head { margin-bottom: clamp(30px, 5vh, 70px); }

.creators__type {
  text-align: center;
  font-size: var(--t-mega);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.048em;
  color: var(--blue);
  padding-inline: var(--gutter);
  margin-bottom: clamp(20px, 4vh, 60px);
}
.creators__type > span { display: block; }

/* the scroll region; the stage inside it is what stays */
.curve {
  position: relative;
  height: 420vh;
}
.curve__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  perspective: 1800px;
  perspective-origin: 50% 48%;
}
.curve__track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* a single archive entry */
.work {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  height: 566px;
  margin: -283px 0 0 -200px;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}
.work__field {
  position: relative;
  height: 500px;
  overflow: hidden;
  background:
    /* the light source */
    radial-gradient(56% 38% at var(--lx) var(--ly),
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.3) 26%,
      rgba(255, 255, 255, 0) 58%),
    /* the ground it falls on */
    linear-gradient(0deg,
      rgba(8, 9, 11, 0.55) 0%,
      rgba(8, 9, 11, 0.1) 26%,
      rgba(8, 9, 11, 0) 52%),
    /* the body */
    linear-gradient(var(--angle),
      hsl(208 5% calc(92% - var(--tone) * 0.52%)) 0%,
      hsl(212 7% calc(54% - var(--tone) * 0.34%)) 42%,
      hsl(217 11% calc(16% - var(--tone) * 0.09%)) 100%);
}
/* two further recipes, assigned by index — the archive should look like an
   archive, not one gradient repeated a hundred times */
.work__field[data-variant="1"] {
  background:
    linear-gradient(180deg, transparent 0 47.4%,
      rgba(255, 255, 255, 0.42) 47.8%, transparent 51%),
    radial-gradient(64% 26% at var(--lx) 42%,
      rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg,
      hsl(206 6% calc(93% - var(--tone) * 0.5%)) 0%,
      hsl(212 8% calc(50% - var(--tone) * 0.3%)) 47%,
      hsl(218 12% calc(9% + var(--tone) * 0.07%)) 100%);
}
.work__field[data-variant="2"] {
  background:
    linear-gradient(var(--angle), transparent 0 44%, rgba(6, 7, 9, 0.5) 44.6% 100%),
    radial-gradient(44% 34% at var(--lx) var(--ly),
      rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(calc(var(--angle) + 96deg),
      hsl(208 6% calc(88% - var(--tone) * 0.46%)) 0%,
      hsl(216 10% calc(22% - var(--tone) * 0.1%)) 100%);
}

/* a fine tooth of grain so the field reads as a photographic surface */
.work__field::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
.work__field img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* an archive plate, not a photograph: a margin, a hairline and a mark */
.work__plate {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.work__plate::before,
.work__plate::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
}
.work__plate::before { top: 8px; right: 8px; width: 9px; height: 1px; }
.work__plate::after  { top: 4px; right: 12px; width: 1px; height: 9px; }
.work__id {
  position: absolute;
  left: 12px; top: 11px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
}

.work__state {
  position: absolute;
  left: 12px; bottom: 11px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.work__state.is-blue { color: #8FC0FF; }

.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline-2);
  margin-top: 11px;
}
.work__who { font-size: var(--t-micro); color: var(--text); letter-spacing: -0.002em; }
.work__disc { font-size: var(--t-micro); color: var(--muted); }

/* the readout: what the archive is currently showing */
.curve__readout {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4vh, 44px);
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.curve__readout b { font-weight: 400; color: var(--text); }
.curve__readout .is-blue { color: var(--blue); }

.creators__foot { align-items: start; row-gap: 26px; margin-top: clamp(30px, 5vh, 62px); }

/* ============================================================ company ==== */

.company {
  position: relative;
  background: var(--paper);
  padding-block: clamp(100px, 13.5vh, 186px);
  overflow: hidden;
}
.company__head { align-items: start; margin-bottom: clamp(40px, 6vh, 86px); }
.company__stmt > span { display: block; }
.company__stmt > span:nth-child(2) { color: var(--text-soft); }
.company__stmt > span:nth-child(3) { color: var(--muted); }

.ribbon {
  position: relative;
  overflow: hidden;
  padding-block: clamp(14px, 2.4vh, 34px);
}
.ribbon__track {
  display: flex;
  gap: clamp(22px, 3.2vw, 62px);
  padding-inline: 12vw;
  width: max-content;
  will-change: transform;
}

.person {
  flex: 0 0 auto;
  width: clamp(190px, 21vw, 340px);
  will-change: transform;
}
.person__frame {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(58% 42% at 36% 30%,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.26) 30%,
      rgba(255, 255, 255, 0) 62%),
    linear-gradient(0deg,
      rgba(10, 11, 13, 0.26) 0%,
      rgba(10, 11, 13, 0.04) 30%,
      rgba(10, 11, 13, 0) 56%),
    linear-gradient(var(--angle),
      hsl(38 5% calc(91% - var(--tone) * 0.3%)) 0%,
      hsl(36 6% calc(66% - var(--tone) * 0.2%)) 48%,
      hsl(34 8% calc(38% - var(--tone) * 0.1%)) 100%);
}
/* the same plate language as the archive, so the company belongs to it */
.person__frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.person__frame::after {
  content: attr(data-slot);
  position: absolute;
  left: 22px; bottom: 21px;
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.person__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

.person__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
}
.person__role { font-size: var(--t-meta); color: var(--text); }
.person__name { font-size: var(--t-meta); color: var(--muted); }

.company__foot { margin-top: clamp(34px, 5vh, 68px); }

/* ========================================================= responsive ==== */

@media (max-width: 1080px) {
  .curve { height: 380vh; }
  .work { width: 330px; height: 470px; margin: -235px 0 0 -165px; }
  .work__field { height: 412px; }
}

@media (max-width: 860px) {
  .hero__base { row-gap: 30px; }
  .hero__claimline, .hero__states, .hero__act { grid-column: 1 / -1 !important; }

  .discover__head { row-gap: 22px; }
  .lens { height: min(62svh, 560px); }

  .creators__head { margin-bottom: 26px; }
  .curve { height: 320vh; }
  .work { width: 270px; height: 390px; margin: -195px 0 0 -135px; }
  .work__field { height: 338px; }
  .curve__readout { gap: 16px; flex-wrap: wrap; }

  .ribbon__track { padding-inline: 8vw; }
}

@media (max-width: 620px) {
  .hero__inner { padding-top: 82px; padding-bottom: 60px; }
  .hero__corners { font-size: 11px; }
  .wordmark { line-height: 0.9; padding-block: 24px; }
  .hero__cue { bottom: 14px; }

  .lens { height: 56svh; margin-block: 34px; }
  .lens__hint { font-size: 10px; }

  .creators__type { letter-spacing: -0.04em; }
  .curve { height: 280vh; }
  .work { width: 212px; height: 312px; margin: -156px 0 0 -106px; }
  .work__field { height: 265px; }
  .curve__readout { left: 20px; font-size: 10px; }

  .person { width: 62vw; }
  .ribbon__track { padding-inline: 20px; gap: 16px; }
}

/* things that never move */
@media (prefers-reduced-motion: reduce) {
  .curve { height: auto; }
  .curve__stage {
    position: static;
    height: auto;
    perspective: none;
    padding-block: 40px;
  }
  .curve__track {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(20px, 3vw, 44px);
    padding-inline: var(--gutter);
  }
  .work {
    position: static;
    width: auto; height: auto; margin: 0;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .curve__readout { display: none; }
  .ribbon__track { transform: none !important; flex-wrap: wrap; justify-content: center; }
  .person { transform: none !important; }
}
