/* ══ tokens ═══════════════════════════════════════════════
   A strict duotone: slate and ice, with fuchsia as the only hue.
   ═══════════════════════════════════════════════════════════ */
:root{
  --slate:#131a26;
  --slate-2:#1c2634;
  --ice:#edf1f7;
  --ice-2:#dfe5ee;
  --fuchsia:#ff2e93;
  --lilac:#c9b6ff;
  --graphite:#4a5464;

  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:ui-serif,Georgia,"Times New Roman",serif;

  --pad:clamp(22px,4vw,64px);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ice);
  color:var(--slate);
  font:400 clamp(15.5px,1.05vw,17.5px)/1.62 var(--sans);
}
h1,h2,h3,p,dl,dt,dd,ul{margin:0}
ul{padding:0;list-style:none}
::selection{background:var(--fuchsia);color:#fff}
:focus-visible{outline:2px solid var(--fuchsia);outline-offset:4px}

/* ══ the two sides ════════════════════════════════════════ */
.frame{display:block}
@media (min-width:1000px){
  .frame{
    display:grid;
    grid-template-columns:minmax(0,41%) minmax(0,59%);
    align-items:start;
  }
}

/* ── the fixed side ── */
.side{
  position:relative;
  background:var(--slate);
  color:var(--ice);
  padding:clamp(30px,5vh,56px) var(--pad) clamp(26px,4vh,44px);
  display:flex;flex-direction:column;
  overflow:hidden;
}
@media (min-width:1000px){
  .side{position:sticky;top:0;height:100svh}
}
.side__top{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;min-height:0}

.switch{display:flex;gap:16px;margin-bottom:clamp(24px,5vh,54px)}
.switch__opt{
  appearance:none;border:0;background:none;cursor:pointer;padding:0;
  font:400 12px/1 var(--sans);letter-spacing:.16em;
  color:rgba(237,241,247,.45);
  transition:color .3s ease;
}
.switch__opt:hover{color:var(--ice)}
.switch__opt.is-on{color:var(--fuchsia)}

.label{
  font:italic 400 clamp(.92rem,1.2vw,1.06rem)/1.3 var(--serif);
  color:var(--fuchsia);
  margin-bottom:clamp(14px,2vh,22px);
}
.label--light{color:var(--lilac)}

.name{
  position:relative;
  font-size:clamp(1.85rem,4.2vw,3.4rem);
  font-weight:300;
  line-height:1.04;
  letter-spacing:.02em;
  margin-bottom:clamp(18px,3vh,30px);
  text-wrap:balance;
}
/* ── the opening: letters ride a standing wave that damps to nothing ── */
.name .wd{display:inline-block;white-space:nowrap}
.name .lt{display:inline-block;will-change:transform,opacity}
.name__sweep{
  position:absolute;
  top:-.12em;bottom:-.12em;
  width:2px;
  background:linear-gradient(180deg,rgba(255,46,147,0),var(--fuchsia) 22%,var(--fuchsia) 78%,rgba(255,46,147,0));
  box-shadow:0 0 18px rgba(255,46,147,.8);
  pointer-events:none;
  opacity:0;
}
/* everything but the name waits for the wave to settle */
.side__top .label,
.brief,
.terms,
.switch{animation:settle .9s both ease-out}
.side__top .label{animation-delay:1.05s}
.brief{animation-delay:1.2s}
.terms{animation-delay:1.35s}
.switch{animation-delay:1.5s}
@keyframes settle{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.brief{
  max-width:38ch;
  color:#b9c3d4;
  font-size:clamp(.96rem,1.12vw,1.06rem);
  line-height:1.6;
}
.terms{
  margin-top:clamp(20px,3.4vh,34px);
  display:grid;gap:7px;
  font-size:.86rem;color:#cdd6e4;
}
.terms li{display:flex;align-items:baseline;gap:10px}
.terms li::before{
  content:"";
  width:16px;height:1px;
  background:var(--fuchsia);
  flex:0 0 auto;
  transform:translateY(-4px);
}

/* ── the integration plot ── */
.plot{
  position:relative;
  flex:0 0 auto;
  margin:clamp(22px,4vh,40px) calc(var(--pad) * -1) 0;
  height:clamp(140px,23vh,220px);
}
.plot__sign{
  position:absolute;
  right:var(--pad);top:-.42em;
  z-index:2;
  font:400 clamp(40px,5.6vw,72px)/1 var(--serif);
  color:rgba(201,182,255,.32);
  pointer-events:none;
}
#integral{display:block;width:100%;height:100%}

/* ══ the moving side ══════════════════════════════════════ */
.column{padding:0 var(--pad)}
@media (min-width:1000px){.column{padding:0 clamp(40px,5vw,96px)}}

.part{
  padding-block:clamp(64px,11vh,130px);
  border-bottom:1px solid rgba(19,26,38,.14);
  max-width:66ch;
}
.part:last-child{border-bottom:0}

.head{
  font-size:clamp(1.7rem,3.4vw,2.7rem);
  font-weight:400;
  line-height:1.14;
  letter-spacing:-.022em;
  margin-bottom:clamp(22px,3.4vh,38px);
  max-width:22ch;
  text-wrap:balance;
}
.text{display:grid;gap:1.1em;color:var(--graphite);max-width:56ch}
.text p:first-child{
  font-size:clamp(1.04rem,1.4vw,1.2rem);
  color:#2c3646;
}

/* ── method rows ── */
.rows{display:grid;gap:clamp(22px,3vh,34px)}
.row{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:clamp(16px,2.4vw,32px);
  align-items:start;
  padding-top:clamp(16px,2.2vh,24px);
  border-top:1px solid rgba(19,26,38,.14);
}
.row__curve{display:block;width:60px}
.row__curve svg{width:100%;height:auto;display:block;overflow:visible}
.row__arc{fill:none;stroke:var(--slate);stroke-width:1.6;stroke-linecap:round;opacity:.5}
.row__tan{
  fill:none;stroke:var(--fuchsia);stroke-width:1.6;stroke-linecap:round;
  stroke-dasharray:44;stroke-dashoffset:44;
  transition:stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1);
}
.row:hover .row__arc{opacity:1}
.row:hover .row__tan{stroke-dashoffset:0}
.row h3{
  font-size:clamp(1.02rem,1.4vw,1.18rem);
  font-weight:500;
  letter-spacing:-.01em;
  margin-bottom:6px;
}
.row p{color:var(--graphite);font-size:.95rem;max-width:52ch}

/* ── series ── */
.series{display:grid;gap:clamp(20px,3vh,32px)}
.series li{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:clamp(16px,2.4vw,32px);
  align-items:baseline;
  padding-top:clamp(16px,2.2vh,24px);
  border-top:1px solid rgba(19,26,38,.14);
}
.series__glyph{
  font:400 clamp(30px,3.4vw,44px)/1 var(--serif);
  color:var(--fuchsia);
  display:block;
}
.series h3{
  font-size:clamp(1.02rem,1.4vw,1.18rem);
  font-weight:500;margin-bottom:6px;
}
.series p{color:var(--graphite);font-size:.95rem;max-width:52ch}

/* ── the closing block ── */
.part--end{
  max-width:none;
  margin:0 calc(var(--pad) * -1);
  padding-inline:var(--pad);
  background:var(--slate);
  color:var(--ice);
}
@media (min-width:1000px){
  .part--end{
    margin:0 calc(clamp(40px,5vw,96px) * -1);
    padding-inline:clamp(40px,5vw,96px);
  }
}
.entity{
  font-size:clamp(1.3rem,2.6vw,2rem);
  font-weight:300;
  letter-spacing:.01em;
  line-height:1.15;
  color:var(--fuchsia);
  margin-bottom:clamp(24px,4vh,40px);
  max-width:24ch;
}
.facts{display:grid;border-top:1px solid rgba(237,241,247,.2);max-width:860px}
.facts > div{
  display:grid;gap:3px clamp(20px,3vw,44px);
  padding-block:clamp(13px,2vh,19px);
  border-bottom:1px solid rgba(237,241,247,.2);
}
@media (min-width:720px){.facts > div{grid-template-columns:130px 1fr;align-items:baseline}}
.facts dt{
  font:italic 400 .92rem/1.4 var(--serif);
  color:var(--lilac);
}
.facts dd{
  margin:0;
  font-size:clamp(.98rem,1.25vw,1.1rem);
  color:var(--ice);
  overflow-wrap:anywhere;
}
.rights{
  margin-top:clamp(22px,3.4vh,36px);
  font-size:.78rem;
  color:rgba(237,241,247,.45);
}

/* ══ reveal + motion prefs ════════════════════════════════ */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.75,.2,1)}
.reveal.is-in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .side__top .label,.brief,.terms,.switch{animation:none}
  .name .lt{opacity:1!important;transform:none!important}
  .name__sweep{display:none}
  .reveal{opacity:1;transform:none;transition:none}
  .row__tan{stroke-dashoffset:0;transition:none}
}
