/* ToolSutra webpage. Black, chrome and one amber accent, matching the renders. */

:root {
  --bg: #000;
  --card: #0d0d0f;
  --card-2: #141417;
  --line: rgb(255 255 255 / .09);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --muted: #6e6e73;
  --amber: #f6a623;
  --amber-2: #ffb84a;
  --on-amber: #2a1a00;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
em { font-style: normal; color: var(--text); font-weight: 600; }
code { font-family: var(--mono); font-size: .9em; color: var(--text); }
.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* Chrome text: a cool metallic gradient, like the renders' reflections */
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #e9ebef 38%, #9a9fa8 62%, #d8dbe0 82%, #f4f5f7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dim { color: var(--muted); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--amber); letter-spacing: 0; margin-bottom: 14px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 980px; background: var(--amber); color: var(--on-amber);
  font: 500 17px/1 var(--font); text-decoration: none; padding: 13px 24px;
  transition: background-color .2s, transform .2s var(--ease);
}
.pill:hover { background: var(--amber-2); }
.pill:active { transform: scale(.97); }
.pill svg { width: 18px; height: 18px; fill: currentColor; }
.pill-lg { font-size: 17px; padding: 16px 28px; }
.pill-glass { background: rgb(255 255 255 / .1); color: var(--text); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(12px); }
.pill-glass:hover { background: rgb(255 255 255 / .18); }

/* ---------------------------------------------------------- scroll sequences */
.seq { position: relative; }
.seq-hero { height: 100vh; height: 100svh; }

/* Intro: the hero plays once, then the type reveals over the last frame */
.intro {
  position: absolute; z-index: 2; left: 50%; bottom: 9vh; translate: -50% 0;
  width: min(1000px, 92vw); text-align: center;
}
.intro-line { font: 600 clamp(24px, min(2.9vw, 5vh), 40px)/1.14 var(--display); letter-spacing: -.035em; color: var(--text); }
.intro-amber {
  background: linear-gradient(180deg, #ffd58c 0%, #f6a623 55%, #c97c0a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em;
}
.intro .title { margin-bottom: 12px; font-size: clamp(52px, min(7vw, 12vh), 104px); }
.intro-cta { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 26px; }
.r { opacity: 0; translate: 0 28px; filter: blur(14px); }
.played .r {
  opacity: 1; translate: none; filter: none;
  transition: opacity 1.2s var(--ease), translate 1.2s var(--ease), filter 1.2s var(--ease);
}
.played .r2 { transition-delay: .45s; }
.played .r3 { transition-delay: .8s; }
.played .r4 { transition-delay: 1.2s; }
.played .r5 { transition-delay: 1.8s; }
.seq-hero .scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; margin: 0 0 0 -13px; }
@media (max-height: 760px) { .seq-hero .scroll-cue { display: none; } }
.replay {
  position: absolute; z-index: 3; right: 24px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .6s 2s, background-color .2s;
}
.played .replay { opacity: 1; }
.replay:hover { background: rgb(255 255 255 / .2); }
.replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .r { filter: none; translate: none; } .played .r { transition: opacity .4s; } }
.seq-lineup { height: 640vh; }
.seq-detail { height: 320vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* top and bottom vignette so type always sits on black */
.seq .sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #000 0%, transparent 18%, transparent 78%, #000 100%);
}

.beat {
  position: absolute; z-index: 2; max-width: 640px;
  opacity: var(--o, 0); transform: translate3d(0, var(--y, 24px), 0);
  will-change: opacity, transform; pointer-events: none;
}
.beat.on { pointer-events: auto; }
.beat-bottom { left: 50%; bottom: 9vh; text-align: center; translate: -50% 0; width: min(900px, 92vw); max-width: none; }
.beat-top { left: 50%; top: 13vh; text-align: center; translate: -50% 0; width: min(900px, 92vw); max-width: none; }
.beat-left { left: max(24px, 7vw); top: 50%; translate: 0 -50%; }
.beat-topleft { left: max(24px, 7vw); top: 16vh; }
.beat-topright { right: max(24px, 7vw); top: 16vh; text-align: right; }
.title { font-size: clamp(56px, 11vw, 160px); letter-spacing: -.045em; font-weight: 700; line-height: 1; padding-bottom: .06em; }
.display { font-size: clamp(44px, 7.4vw, 104px); letter-spacing: -.04em; font-weight: 700; padding-bottom: .06em; }
.beat-sub { margin-top: 16px; font-size: clamp(19px, 2vw, 24px); color: var(--text-2); font-weight: 500; letter-spacing: -.015em; }
.scroll-cue {
  display: block; width: 26px; height: 42px; margin: 34px auto 0; border-radius: 14px;
  border: 1.5px solid rgb(255 255 255 / .35); position: relative;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--amber); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 720px) {
  .beat-left, .beat-topleft, .beat-topright { left: 24px; right: 24px; text-align: left; }
  .beat-left { top: auto; bottom: 10vh; translate: none; }
}

/* ---------------------------------------------------------- statement */
.statement { height: 220vh; position: relative; }
.reveal {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center;
  width: min(1080px, 100% - 48px); margin-inline: auto;
  font: 600 clamp(34px, 5.4vw, 72px)/1.1 var(--display); letter-spacing: -.035em;
}
.reveal .w { color: rgb(255 255 255 / .16); transition: color .25s linear; }
.reveal .w.lit { color: var(--text); }
.reveal .hl .w.lit { color: var(--amber); }

/* ---------------------------------------------------------- blocks */
.block { padding: 160px 0; }
.headline { font-size: clamp(40px, 6vw, 80px); letter-spacing: -.04em; font-weight: 700; margin-bottom: 56px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1400px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.span-2 { grid-column: span 2; }
@media (max-width: 600px) { .span-2 { grid-column: auto; } }
.card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 40px;
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 90% at 0% 0%, #1c1c20 0%, var(--card) 55%);
  border: 1px solid var(--line);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), border-color .3s;
  transform-style: preserve-3d;
}
.card::before { /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .07), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgb(255 255 255 / .16); }
.card h3 { font-size: 28px; letter-spacing: -.025em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 17px; max-width: 440px; }
.card-ic {
  position: absolute; top: 36px; left: 40px; width: 56px; height: 56px;
  fill: none; stroke: #d4d7dd; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card-amber { background: radial-gradient(90% 120% at 100% 0%, rgb(246 166 35 / .22) 0%, var(--card) 60%); }
.orbit { position: absolute; top: 30px; right: 36px; width: 120px; height: 120px; }
.orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(255 255 255 / .14); animation: spin 14s linear infinite; }
.orbit span:nth-child(2) { inset: 18px; animation-duration: 9s; animation-direction: reverse; }
.orbit span:nth-child(3) { inset: 36px; animation-duration: 6s; }
.orbit span::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #e8eaee; }
.orbit b { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 24px 4px rgb(246 166 35 / .6); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- hash */
.hash {
  font: 500 clamp(13px, 1.9vw, 26px)/1.5 var(--mono); letter-spacing: .08em; color: var(--text-2);
  display: grid; justify-items: center;
}
.hash .c { transition: color .2s; }
.hash .c.ok { color: var(--text); }
.verified {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  color: var(--amber); font-weight: 600; font-size: 17px;
}
.verified svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- fan */
.fansec { height: 260vh; position: relative; }
.center-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.center-stack .headline { margin-bottom: 64px; }
.fan { position: relative; width: min(1000px, 100%); height: 300px; perspective: 1600px; }
.fan-card {
  --e: var(--p, 0);
  position: absolute; left: 50%; top: 0; width: min(320px, 80vw); height: 280px; margin-left: calc(min(320px, 80vw) / -2);
  border-radius: 28px; padding: 34px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, #1d1d21, #0b0b0d 70%);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgb(0 0 0 / .6);
  transform:
    translateX(calc(var(--i) * var(--e) * 108%))
    translateY(calc((1 - var(--e)) * var(--i) * var(--i) * 18px))
    translateZ(calc((1 - var(--e)) * -60px * (var(--i) * var(--i))))
    rotateY(calc(var(--i) * (1 - var(--e)) * -28deg))
    rotateZ(calc(var(--i) * (1 - var(--e)) * 6deg));
}
.fan-card[style*="--i:0"] { z-index: 2; }
.fan-card h3 { font-size: 26px; margin-bottom: 8px; }
.fan-card p { color: var(--text-2); font-size: 16px; }
@media (max-width: 760px) {
  .fan { height: auto; display: grid; gap: 14px; perspective: none; }
  .fan-card { position: relative; left: auto; margin: 0 auto; transform: none; height: auto; min-height: 180px; }
  .fansec { height: auto; }
  .fansec .sticky { position: relative; height: auto; padding: 120px 24px; }
}

/* ---------------------------------------------------------- horizontal publish */
.hsec { height: 340vh; position: relative; }
.hsec .sticky { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.hsec-head .headline { margin-bottom: 48px; }
.htrack {
  display: flex; gap: 24px; padding-left: max(24px, calc((100vw - 1080px) / 2));
  transform: translate3d(calc(var(--shift, 0px) * -1), 0, 0); will-change: transform;
}
.hcard {
  flex: 0 0 min(440px, 82vw); height: 360px; border-radius: 28px; padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(170deg, #18181b, #0a0a0b 75%); border: 1px solid var(--line);
}
.hnum {
  font: 700 120px/1 var(--display); letter-spacing: -.06em; margin-bottom: auto;
  background: linear-gradient(180deg, #fff, #5c5f66); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hcard h3 { font-size: 30px; margin-bottom: 10px; }
.hcard p { color: var(--text-2); }
.hcard-amber { background: radial-gradient(100% 90% at 100% 0%, rgb(246 166 35 / .25), #0a0a0b 65%); }
.hcard-amber .hnum { background: linear-gradient(180deg, #ffd28a, #b8730f); -webkit-background-clip: text; background-clip: text; }

/* ---------------------------------------------------------- download */
.download { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 120px 24px; }
.download-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.08); }
.download::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 55%, rgb(0 0 0 / .25), #000 85%); }
.download-inner { position: relative; z-index: 1; text-align: center; }
.dl-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.fine { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; font: 600 21px/1.3 var(--display); letter-spacing: -.02em;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; color: var(--text-2); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--text-2); max-width: 620px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 12.5px; }

/* Reveal on enter for blocks */
.fade-up { opacity: 0; translate: 0 40px; transition: opacity 1s var(--ease), translate 1s var(--ease), transform .5s var(--ease), border-color .3s; }
.fade-up.in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  .orbit span, .scroll-cue::after { animation: none; }
  .fade-up { opacity: 1; translate: none; transition: none; }
  .card { transition: none; }
}

.reveal-text { text-wrap: balance; }

/* Trust: a shadow behind the opening line, so it reads over bright chrome */
.seq-detail .sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .45) 38%, transparent 62%);
  opacity: var(--shade, 1); transition: opacity .4s;
}
.seq-detail .hash { text-shadow: 0 2px 24px #000; }

/* Hero film: framed for the page (its last frame leaves the lower half for the title).
   Landscape: full height, centred; portrait: wide enough for the mark, pinned to the top. */
.hero-film { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; translate: -50% 0; background: #000; }
@media (orientation: portrait) { .hero-film { height: auto; width: 290vw; top: 2vh; } }

/* Store: the words live in a black band at the top; the picture is drawn lower (data-shift) */
.seq-lineup .beat-topleft, .seq-lineup .beat-topright, .seq-lineup .beat-top { top: 9vh; }
.seq-lineup .sticky::after {
  background: linear-gradient(180deg, #000 0%, #000 22%, transparent 42%, transparent 80%, #000 100%);
}

main:focus { outline: none; }
