/* STILLE — Model Ø1
   Warm graphite, bone, and one accent: copper, used only where energy is. */
:root {
  --ink: #0c0b0a;
  --ink-2: #14120f;
  --bone: #e9e4da;
  --bone-dim: #9d968a;
  --bone-faint: rgba(233, 228, 218, .14);
  --copper: #c8743a;
  --copper-hi: #e79a5c;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { background: var(--ink); overflow-x: hidden; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; cursor: none;
}
a, button { color: inherit; font: inherit; cursor: none; }
button { background: none; border: 0; padding: 0; }
::selection { background: var(--copper); color: var(--ink); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.dim { color: var(--bone-dim); }
.cu { color: var(--copper); }

/* ---------- stage ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0) } 25% { transform: translate(-3%, 2%) } 50% { transform: translate(2%, -3%) } 75% { transform: translate(-1%, -1%) } }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 62% 48%, transparent 40%, rgba(6, 5, 4, .75) 100%);
}

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; mix-blend-mode: difference; }
.cursor i {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid var(--bone); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
}
.cursor b { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--bone); }
.cursor.hot i { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(233, 228, 218, .08); }
@media (hover: none) { .cursor { display: none; } body, a, button { cursor: auto; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--ink);
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader .count { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--bone-dim); }
.loader .bar { width: 160px; height: 1px; background: var(--bone-faint); margin-top: 18px; overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: var(--copper); transition: width .3s; }

/* ---------- chrome ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center;
  justify-content: space-between; padding: 26px var(--gutter);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; opacity: 0; transition: opacity .6s;
  background: linear-gradient(var(--ink) 55%, transparent); pointer-events: none;
}
.nav.solid::before { opacity: 1; }
.wordmark { font-family: var(--serif); font-size: 26px; letter-spacing: .32em; text-decoration: none; }
.nav nav { display: flex; gap: clamp(16px, 2.6vw, 40px); align-items: center; }
.nav nav a { text-decoration: none; opacity: .75; transition: opacity .3s; }
.nav nav a:hover { opacity: 1; }
.listen { display: inline-flex; align-items: center; gap: 10px; }
.listen .eq { display: inline-flex; gap: 2px; height: 12px; align-items: flex-end; }
.listen .eq i { width: 2px; height: 3px; background: var(--bone); transition: height .2s; }
.listen.on .eq i { background: var(--copper); animation: eq .9s ease-in-out infinite; }
.listen.on .eq i:nth-child(2) { animation-delay: -.3s } .listen.on .eq i:nth-child(3) { animation-delay: -.6s } .listen.on .eq i:nth-child(4) { animation-delay: -.15s }
@keyframes eq { 0%, 100% { height: 3px } 50% { height: 12px } }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; border: 1px solid var(--bone-faint);
  border-radius: 999px; text-decoration: none; transition: border-color .4s, background .4s, color .4s;
}
.btn:hover { border-color: var(--copper); background: var(--copper); color: var(--ink); }
.btn.solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn.solid:hover { background: var(--copper); border-color: var(--copper); }

.rail {
  transition: opacity .4s;
  position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 30;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.rail button { display: flex; align-items: center; gap: 12px; opacity: .35; transition: opacity .4s; }
.rail button span { opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s var(--ease); }
.rail button i { width: 18px; height: 1px; background: var(--bone); transition: width .5s var(--ease), background .4s; }
.rail button.on { opacity: 1; }
.rail button.on i { width: 42px; background: var(--copper); }
.rail button:hover span, .rail button.on span { opacity: 1; transform: none; }

.hud {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 28px; z-index: 30;
  display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none;
}
.hud .scrollcue { display: flex; align-items: center; gap: 12px; }
.hud .scrollcue i { width: 1px; height: 34px; background: linear-gradient(var(--bone), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0) } 50% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }

/* ---------- story ---------- */
#story { position: relative; z-index: 2; }
.chapter { position: fixed; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(520px, 40vw); z-index: 20; pointer-events: none; }
.chapter > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.chapter.on > * { opacity: 1; transform: none; pointer-events: auto; }
.chapter.on > *:nth-child(2) { transition-delay: .08s } .chapter.on > *:nth-child(3) { transition-delay: .16s } .chapter.on > *:nth-child(4) { transition-delay: .24s } .chapter.on > *:nth-child(5) { transition-delay: .32s }
.chapter .idx { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.chapter .idx i { width: 36px; height: 1px; background: var(--copper); }
.chapter h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 104px); line-height: .94; letter-spacing: -.02em; margin: 0 0 26px; }
.chapter h2 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.chapter h2 .ln > span { display: block; transform: translateY(108%); transition: transform 1.2s var(--ease); }
.chapter.on h2 .ln > span { transform: none; }
.chapter.on h2 .ln:nth-child(2) > span { transition-delay: .1s } .chapter.on h2 .ln:nth-child(3) > span { transition-delay: .2s }
.chapter h2 { opacity: 1 !important; transform: none !important; }
.chapter h2 em { font-style: italic; color: var(--copper-hi); }
.chapter p { color: var(--bone-dim); max-width: 400px; margin: 0 0 28px; font-size: 16px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; max-width: 420px; }
.specs div { border-top: 1px solid var(--bone-faint); padding-top: 10px; }
.specs b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.specs b small { font-size: 15px; color: var(--bone-dim); margin-left: 2px; }

.ch-hero h2 { font-size: clamp(56px, 9vw, 150px); }
.ch-arrival { left: 0; right: 0; width: auto; text-align: center; top: auto; bottom: 16vh; transform: none; }
.ch-arrival p { margin: 0 auto; }

/* finish swatches */
.swatches { display: flex; gap: 14px; margin-bottom: 18px; }
.swatch { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.swatch i { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--bone-faint); position: relative; transition: transform .4s var(--ease); }
.swatch i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid transparent; transition: border-color .4s; }
.swatch.on i::after { border-color: var(--copper); }
.swatch:hover i { transform: scale(1.06); }

/* anatomy callouts */
#callouts { position: fixed; inset: 0; z-index: 15; pointer-events: none; width: 100vw; height: 100vh; }
#callouts line { stroke: var(--bone); stroke-opacity: .5; stroke-width: 1; }
#callouts circle { fill: var(--copper); }
#callouts circle.ring { fill: none; stroke: var(--copper); stroke-opacity: .6; }
#callouts text { fill: var(--bone); font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
#callouts text.v { fill: var(--bone-dim); letter-spacing: .08em; text-transform: none; font-size: 11px; }

/* ---------- after the story: real page ---------- */
.page { position: relative; z-index: 5; background: var(--ink); }
.page::before { content: ""; position: absolute; left: 0; right: 0; top: -40vh; height: 40vh; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.wrap { padding: 0 var(--gutter); }

.manifesto { padding: 22vh var(--gutter) 18vh; max-width: 1400px; }
.manifesto h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.8vw, 76px); line-height: 1.06; letter-spacing: -.015em; margin: 0; }
.manifesto h3 span { color: var(--bone-dim); }
.manifesto h3 em { color: var(--copper-hi); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.atelier { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gutter); align-items: center; padding: 0 var(--gutter) 20vh; }
.plate { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: var(--ink-2); }
.plate img, .plate video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.plate.in img, .plate.in video { transform: scale(1); }
.plate figcaption { position: absolute; left: 18px; bottom: 16px; }
.atelier h4, .table h4, .commission h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; margin: 18px 0 22px; }
.atelier p { color: var(--bone-dim); max-width: 460px; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 16px 0; border-top: 1px solid var(--bone-faint); }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 11px; color: var(--copper); padding-top: 3px; }
.steps li span:last-child { font-family: var(--mono); font-size: 11px; color: var(--bone-dim); letter-spacing: .12em; }

.table { padding: 0 var(--gutter) 20vh; }
.table .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.table dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--bone-faint); }
.table dl div { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--bone-faint); }
.table dt { margin-bottom: 10px; }
.table dd { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; }

.commission { position: relative; padding: 18vh var(--gutter) 16vh; border-top: 1px solid var(--bone-faint); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gutter); }
.commission h4 { font-size: clamp(48px, 7vw, 120px); line-height: .95; margin-top: 12px; }
.commission h4 em { color: var(--copper-hi); }
.edition { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 36px; }
.edition b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; }
.meter { height: 1px; background: var(--bone-faint); margin: 8px 0 30px; max-width: 420px; }
.meter i { display: block; height: 100%; width: 0; background: var(--copper); transition: width 2.4s var(--ease); }
.meter.in i { width: 62.4%; }
.order { align-self: end; border: 1px solid var(--bone-faint); padding: 34px; border-radius: 2px; background: rgba(20, 18, 15, .6); }
.order .price { font-family: var(--serif); font-size: 58px; line-height: 1; margin: 12px 0 6px; }
.order ul { list-style: none; padding: 0; margin: 26px 0 30px; }
.order li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--bone-faint); color: var(--bone-dim); }
.order li span:last-child { color: var(--bone); }
.order .btn { width: 100%; justify-content: center; }

footer { padding: 42px var(--gutter) 36px; border-top: 1px solid var(--bone-faint); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .big { font-family: var(--serif); font-size: clamp(80px, 18vw, 300px); line-height: .8; letter-spacing: .12em; width: 100%; color: var(--ink-2); -webkit-text-stroke: 1px rgba(233, 228, 218, .12); margin-bottom: 40px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nav nav a:not(.listen):not(.btn) { display: none; }
  .rail { display: none; }
  .chapter { width: auto; right: var(--gutter); top: auto; bottom: 90px; transform: none; }
  .chapter h2 { font-size: clamp(40px, 12vw, 64px); margin-bottom: 14px; }
  .ch-hero h2 { font-size: clamp(52px, 15vw, 84px); }
  .chapter p { font-size: 14px; margin-bottom: 16px; }
  .specs { gap: 12px 18px; }
  .specs b { font-size: 22px; }
  .atelier, .commission { grid-template-columns: 1fr; }
  .table dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vignette { background: radial-gradient(140% 90% at 50% 38%, transparent 35%, rgba(6, 5, 4, .85) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
