/* Ostler — a style study for The Object (real-time 3D).
   Rebuilt 30 Sep 2026 (owner: "glitchy, laggy, slow, un-aesthetic, and text
   often overlaps with moving components… visually way too complicated").
   The rule now: the words and the watch never share space. The words read
   in their own column; the watch lives on its own stage beside them and
   moves only between steps — one eased move as a step's words arrive, then
   still while they are read. A lit display case: a blue-black ground so the
   steel and the dial carry the light, ivory type like the dial's printing,
   and one accent, the blue of a heat-blued screw. */
:root{
  --ground:#0a0c10; --ground-2:#0f1218; --ink:#ece8e0; --ink-2:#b4b6bb; --ink-3:#868a92;
  --line:rgb(236 232 224 / .14); --blue:#6b92ea;
  --display:"Marcellus","Iowan Old Style",Georgia,serif;
  --sans:"Archivo",-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --gut:clamp(20px,5vw,80px);
  --e:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--ground);color:var(--ink);-webkit-text-size-adjust:100%}
body{font-family:var(--sans);font-weight:300;font-size:clamp(16px,.95rem + .2vw,18px);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{display:block;max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

.demo{position:relative;z-index:3;background:#000;color:var(--ink-2);font-family:var(--mono);font-size:12px;
  letter-spacing:.08em;text-align:center;padding:9px var(--gut)}
.demo b{font-weight:400;color:var(--blue)}

/* the header sits in the page, above the story: it never floats over the watch */
.top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px var(--gut);border-bottom:1px solid var(--line)}
.brand{font-family:var(--display);font-size:22px;letter-spacing:.32em;text-transform:uppercase;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.top nav{display:flex;gap:clamp(14px,2.4vw,34px);align-items:center;font-size:12px;letter-spacing:.18em;text-transform:uppercase}
.top nav a{text-decoration:none;color:var(--ink-2);min-height:44px;display:inline-flex;align-items:center}
.top nav a:hover,.top nav a:focus-visible{color:var(--ink)}
.top__book{color:var(--ink)!important;border:1px solid var(--line);padding:0 16px}
@media (max-width:760px){.top nav a:not(.top__book){display:none}}

/* ── the story: words left, the watch's stage right ──────────────────── */
.story{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);position:relative}
.steps{grid-column:1;grid-row:1;position:relative;z-index:1}
.stage{grid-column:2;grid-row:1;position:sticky;top:0;height:100svh;overflow:hidden;
  /* the glow fades to the ground before any edge: sized to the box (70% 60%) it was still lit where the
     stage met the text column, a hard seam of blue (owner, 29 Oct) */
  background:radial-gradient(closest-side at 50% 46%,#151922 0%,#0e1117 50%,var(--ground) 100%)}
#gl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 900ms ease;cursor:grab;touch-action:pan-y}
#gl:active{cursor:grabbing}
.gl-ready #gl{opacity:1}
/* a quiet line at the stage's foot: the watch is live */
.stage__note{position:absolute;left:24px;bottom:22px;display:flex;align-items:center;gap:10px;font-family:var(--mono);font-size:12px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);opacity:0;transition:opacity .9s ease .6s}
.gl-ready .stage__note{opacity:1}
.stage__dot{width:6px;height:6px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 3px rgb(107 146 234 / .18);animation:live 2.4s ease-in-out infinite}
@keyframes live{50%{opacity:.35}}

/* the numbered parts, set on the watch when it comes apart */
.marks{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .6s ease}
.marks.is-on{opacity:1}
.mark{position:absolute;left:0;top:0;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;
  display:grid;place-items:center;font-family:var(--mono);font-size:12px;color:var(--ground);background:var(--ink);
  box-shadow:0 2px 10px rgb(0 0 0 / .45);will-change:transform;transition:background .3s,color .3s,scale .3s}
.mark.is-hot{background:var(--blue);color:#fff;scale:1.18}

.step{min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:clamp(72px,12vh,140px) var(--gut);max-width:40rem}
.step--hero{padding-top:clamp(56px,10vh,120px)}
.kicker{display:flex;align-items:baseline;gap:14px;font-family:var(--mono);font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--ink-3);margin-bottom:18px}
.step__n{color:var(--blue)}
h1{font-family:var(--display);font-weight:400;font-size:clamp(3.4rem,1.4rem + 6vw,7.5rem);line-height:.92;letter-spacing:.14em;
  text-transform:uppercase;margin:0 0 26px -.06em}
h2{font-family:var(--display);font-weight:400;font-size:clamp(1.9rem,1.1rem + 2.2vw,3.1rem);line-height:1.1;letter-spacing:.01em;margin-bottom:20px}
.step p{color:var(--ink-2);max-width:31rem}
.lede{font-size:1.12em;color:var(--ink)!important;margin-bottom:30px}
.num{font-variant-numeric:tabular-nums}
.btn{align-self:flex-start;display:inline-flex;align-items:center;min-height:48px;font-size:12px;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;
  color:var(--ground);background:var(--ink);padding:0 26px;transition:background .3s,color .3s}
.btn:hover,.btn:focus-visible{background:var(--blue);color:#fff}
.finishes{list-style:none;border-top:1px solid var(--line);max-width:31rem}
.finishes li{padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink-2)}
.finishes b,.specs dd{color:var(--ink);font-weight:400}
.parts{list-style:none;counter-reset:part;margin-top:22px;border-top:1px solid var(--line);max-width:31rem}
.parts li{counter-increment:part;display:grid;grid-template-columns:30px 1fr;column-gap:12px;padding:9px 0;border-bottom:1px solid var(--line);
  color:var(--ink-3);font-size:.94em;cursor:default}
.parts li::before{content:counter(part);grid-row:1 / span 2;width:22px;height:22px;margin-top:2px;border-radius:50%;border:1px solid var(--ink-3);
  display:grid;place-items:center;font-family:var(--mono);font-size:11px;color:var(--ink-2)}
.parts li b{font-weight:400;color:var(--ink)}
.parts li em{font-style:normal;color:var(--ink-3)}
.parts li:hover::before,.parts li.is-hot::before{background:var(--blue);border-color:var(--blue);color:#fff}
.specs{border-top:1px solid var(--line);margin:4px 0 26px;max-width:31rem}
.specs div{display:grid;grid-template-columns:7.5rem 1fr;gap:16px;padding:11px 0;border-bottom:1px solid var(--line)}
.specs dt{font-family:var(--mono);font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-3);padding-top:3px}
.price{font-family:var(--display);font-size:1.7rem;color:var(--ink)!important;letter-spacing:.04em}

/* the words arrive with their step, once: a fade and a short rise */
.js:not(.static) .step>*{opacity:0;transform:translateY(16px);transition:opacity .9s ease,transform 1s var(--e)}
.js:not(.static) .step.is-in>*{opacity:1;transform:none}
.js .step.is-in>*:nth-child(3){transition-delay:.08s}.js .step.is-in>*:nth-child(4){transition-delay:.16s}
.js .step.is-in>*:nth-child(5){transition-delay:.24s}.js .step.is-in>*:nth-child(6){transition-delay:.32s}

/* stills: the same watch, rendered, for when the live one can't run */
.still{display:none}
.static .stage{display:none}
.static .story{grid-template-columns:1fr}
.static .step{min-height:0;max-width:72rem;margin:0 auto;padding-block:clamp(48px,9vh,110px)}
.static .still{display:block;width:100%;height:auto;margin-bottom:28px;border:1px solid var(--line)}
.static .step--hero .still{margin-bottom:36px}

/* the appointment */
.book{background:var(--ground-2);border-top:1px solid var(--line);padding:clamp(80px,14vh,160px) var(--gut)}
.book__in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,6vw,96px);max-width:72rem;align-items:end}
.book p{color:var(--ink-2);margin-bottom:18px;max-width:34rem}
.book h2{margin-bottom:0}
.book__addr{color:var(--ink)!important;font-size:1.05em}
.book__addr a{display:inline-flex;min-height:44px;align-items:center}
.foot{background:#000;color:var(--ink-3);font-size:14px;padding:32px var(--gut);display:flex;flex-wrap:wrap;gap:12px 40px;justify-content:space-between}
.foot p{max-width:62ch}
.foot a{color:var(--ink-2);display:inline-flex;min-height:44px;align-items:center}

/* ── narrower than a laptop: the stage above, the words below it ─────────
   The stage sticks at the top with a solid ground, so the words scroll up
   under it rather than over the watch. */
@media (max-width:999px){
  .story{grid-template-columns:1fr}
  .stage{grid-column:1;grid-row:1;height:46svh;z-index:2;border-bottom:1px solid var(--line)}
  .steps{grid-column:1;grid-row:2}
  .step{min-height:78svh;max-width:none;justify-content:flex-start;padding-top:clamp(36px,7vh,64px);padding-bottom:clamp(48px,10vh,96px)}
  .step--hero{min-height:60svh}
  .stage__note{left:16px;bottom:14px}
  .book__in{grid-template-columns:1fr;align-items:start}
  h2{font-size:clamp(1.7rem,1.2rem + 3vw,2.3rem)}
}
@media (max-width:999px) and (orientation:landscape){
  .stage{height:70svh}
}

@media (prefers-reduced-motion:reduce){
  .js .step>*{opacity:1!important;transform:none!important;transition:none!important}
  .stage__dot{animation:none}
}
/* capturing a still: only the watch, on nothing */
.still-cap,.still-cap body{background:transparent!important}
.still-cap .demo,.still-cap .top,.still-cap .steps,.still-cap .book,.still-cap .foot,.still-cap .marks,.still-cap .stage__note{display:none!important}
.still-cap .story{display:block}
.still-cap .stage{position:fixed;inset:0;height:100vh;background:none}
.still-cap #gl{opacity:1;transition:none}
