/* COV — site styles. Concept: a toothbrush kept like a jewel; its clear case opens into shards under the visitor's
   scroll and closes again around the brush. Black, white and chrome only.

   Layout modes (classes on <html>, set by bespoke/signature.js):
     (none)        plain flow: every block of copy stacked and readable, product shown as a still. This is the CSS
                   default, so it is also what no-JS, no-WebGL and reduced motion get.
     .cov-live     the WebGL stage is running behind the copy.
     .cov-staged   live AND wide (>= 900px): the story holds on one sticky screen and its three copy layers swap. */

/* ---------- tokens ---------- */
@font-face{font-family:"Jost";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bodoni Moda";font-style:italic;font-weight:400 900;font-display:swap;
  src:url("assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Jost fallback";src:local("Century Gothic"),local("Avenir Next"),local("Segoe UI"),local("Arial");size-adjust:96%;ascent-override:107%;descent-override:37%;line-gap-override:0%}

:root{
  --ground:#060607; --ink:#f4f4f1; --ink-soft:#b5b8bc; --ink-quiet:#8b9096; --steel:#aeb3ba; --graphite:#17181b;
  --hair:rgb(255 255 255 / .16); --hair-strong:rgb(255 255 255 / .32); --glass-fill:rgb(255 255 255 / .055);
  --font-sans:"Jost","Jost fallback",system-ui,sans-serif; --font-serif:"Bodoni Moda","Didot","Bodoni MT",Georgia,serif;
  --font-display:var(--font-sans); --font-body:var(--font-sans);
  --ease-out:cubic-bezier(.16,1,.3,1); --t-fast:180ms; --t-mid:420ms; --t-slow:900ms;
  --gutter:clamp(20px,4.6vw,72px); --nav-h:76px;
  --text-hero:clamp(3.25rem,10.2vw,11rem); --text-statement:clamp(2.25rem,4.7vw,5.25rem); --text-close:clamp(2.5rem,5.6vw,6rem);
  --text-h2:clamp(2.5rem,5.2vw,5.5rem); --text-body:clamp(1rem,.95rem + .22vw,1.125rem); --text-small:.9375rem;
  --radius-card:20px;
}

/* ---------- base ---------- */
html{background:var(--ground);scroll-padding-top:var(--nav-h)}
body{background:var(--ground);color:var(--ink);font-family:var(--font-body);font-size:var(--text-body);line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:clip}
h1,h2,h3{font-family:var(--font-display);font-weight:400;letter-spacing:-.035em;line-height:.94;text-wrap:balance;margin:0}
h3{font-size:1.125rem;font-weight:500;letter-spacing:-.01em;line-height:1.2}
p{margin:0;text-wrap:pretty}
em{font-family:var(--font-serif);font-style:italic;font-weight:400;letter-spacing:-.02em;font-optical-sizing:auto}
::selection{background:var(--ink);color:var(--ground)}
a{color:inherit;text-underline-offset:.22em}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:6px}
.mark{display:block;height:1em;width:auto}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 28px;border-radius:999px;
  background:var(--ink);color:var(--ground);font-weight:500;font-size:1rem;letter-spacing:.005em;text-decoration:none;white-space:nowrap;
  transition:background-color var(--t-fast) ease-out,transform var(--t-fast) var(--ease-out)}
.btn:hover{background:#fff;transform:translateY(-1px)}
.btn:active{transform:translateY(0) scale(.985)}
.btn:focus-visible{outline-offset:4px;border-radius:999px}

/* ---------- nav: ring mark left, links pill and buy pill right ---------- */
.pnav{top:14px;left:var(--gutter);right:var(--gutter);padding:0;gap:10px;border:0}
.pnav .pnav__glass{display:none}
.pnav.is-glass{border:0;box-shadow:none}
.pnav__brand{display:flex;align-items:center;gap:10px;margin-right:auto;font:500 1.0625rem/1 var(--font-sans);letter-spacing:.2em;color:var(--ink);min-height:44px}
.pnav__brand .mark{height:26px}
.pnav__links{padding:4px;border:1px solid var(--hair);background:rgb(8 8 10 / .72)}
.pnav__links a{padding:9px 16px;font-size:.9375rem;opacity:.8;color:var(--ink)}
.pnav__links a[aria-current]{background:var(--ink);color:var(--ground);opacity:1}
.pnav__cta{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;font-size:.9375rem;font-weight:500;background:var(--ink)!important;color:var(--ground)!important}
.pnav__cta:hover{background:#fff!important}
.pnav__burger{color:var(--ink);background:rgb(8 8 10 / .72);border:1px solid var(--hair);-webkit-backdrop-filter:none;backdrop-filter:none}
.pnav__sheet{background:rgb(14 14 16 / .96);border-color:var(--hair);color:var(--ink);-webkit-backdrop-filter:none;backdrop-filter:none}
.pnav__sheet a{border-bottom-color:var(--hair);font:400 1.375rem/1.1 var(--font-sans)}
html[data-quality="high"] .pnav__links{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:rgb(8 8 10 / .5)}

/* ---------- the world: one sticky stage behind the story and the purchase panel ---------- */
.world{position:relative}
.world__stage{display:none;position:sticky;top:0;height:100vh;height:100lvh;overflow:hidden;z-index:0;pointer-events:none;background:var(--ground)}
.world__content{position:relative;z-index:1}
.world__canvas{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity 700ms ease-out}
/* while the 3D stage starts (a few seconds on an old machine) light gathers where the product will arrive, so the
   wait reads as the first beat of the reveal instead of an empty screen; the canvas covers it as it fades in */
.world__stage::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.25;
  background:radial-gradient(34% 52% at 74% 46%,rgb(132 136 148 / .2),transparent 72%);animation:cov-warm 2.4s ease-in-out .3s infinite alternate}
@keyframes cov-warm{from{opacity:.25}to{opacity:1}}
html.cov-live .world__stage::before{animation-play-state:paused}
@media (max-width:899px){.world__stage::before{background:radial-gradient(64% 30% at 62% 26%,rgb(132 136 148 / .2),transparent 72%)}}
html.js:not(.reduced-motion) .world__stage{display:block}
html.js:not(.reduced-motion) .world__content{margin-top:-100vh;margin-top:-100lvh}
html.cov-still .world__stage{display:none!important}
html.cov-still .world__content{margin-top:0!important}
html.cov-live .world__canvas{opacity:1}

/* the product still is a frame on its own ground: feather its edges so no rectangle shows against the page */
.still-figure img,.buy__figure img{
  -webkit-mask-image:linear-gradient(90deg,transparent 3%,#000 20%,#000 80%,transparent 97%),linear-gradient(180deg,transparent,#000 2.5%,#000 97.5%,transparent);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 3%,#000 20%,#000 80%,transparent 97%),linear-gradient(180deg,transparent,#000 2.5%,#000 97.5%,transparent);mask-composite:intersect}

/* ---------- story: plain flow (default) ---------- */
.story{position:relative}
.beat{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:18px;min-height:100vh;min-height:100svh;padding:calc(var(--nav-h) + 24px) var(--gutter) clamp(40px,9svh,96px)}
.still-figure{margin:0 auto 8px;height:52svh;min-height:300px}
.still-figure img{height:100%;width:auto;max-width:none;margin-inline:auto}
html.js:not(.reduced-motion):not(.cov-still) .still-figure{display:none}

.hero__title{font-size:var(--text-hero);max-width:11ch}
.hero__title .line,.close__title .line{display:block}
.hero__title .line--b{padding-left:.9em}
.hero__title em{font-size:1.06em;padding-right:.04em}
.hero__lede{max-width:34ch;color:var(--ink-soft)}
.hero__cta{align-self:flex-start}
.hero__cue{display:none;align-items:center;gap:10px;font-size:var(--text-small);color:var(--ink-quiet)}
.hero__cue-dot{width:28px;height:28px;border-radius:50%;border:1px solid var(--hair-strong);position:relative}
.hero__cue-dot::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-5px 0 0 -3px;border-right:1.5px solid var(--ink-soft);border-bottom:1.5px solid var(--ink-soft);transform:rotate(45deg)}
html.cov-live .hero__cue{display:flex}

.statement{font-size:var(--text-statement);line-height:1.02;letter-spacing:-.03em;max-width:13ch;text-wrap:balance}
.statement em{font-size:1.05em}
.statement__note,.close__note{max-width:32ch;color:var(--ink-soft)}

.close__title{font-size:var(--text-close)}
.close__title .line--b{padding-left:.7em}
.cards{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
.card{position:relative;padding:18px 20px 20px;border-radius:var(--radius-card);border:1px solid var(--hair);
  background:linear-gradient(158deg,rgb(255 255 255 / .12),rgb(255 255 255 / .035) 46%,rgb(255 255 255 / .07));overflow:hidden}
.card::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(112deg,transparent 0 58%,rgb(255 255 255 / .09) 58% 59.5%,transparent 59.5%),linear-gradient(180deg,rgb(255 255 255 / .16),transparent 22%)}
.card__n{display:block;font:400 .875rem/1 var(--font-sans);letter-spacing:.08em;color:var(--ink-quiet);margin-bottom:22px}
.card p{margin-top:6px;color:var(--ink-soft);font-size:var(--text-small);line-height:1.4}
html[data-quality="high"] .card{-webkit-backdrop-filter:blur(16px) saturate(1.1);backdrop-filter:blur(16px) saturate(1.1)}

/* live on a narrow screen: the copy scrolls over the stage; a soft dark foot keeps it readable, the product keeps the top */
html.cov-live:not(.cov-staged) .beat{min-height:118svh}
html.cov-live:not(.cov-staged) .beat::before{content:"";position:absolute;left:0;right:0;bottom:-8%;height:78%;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgb(6 6 7 / .8) 34%,rgb(6 6 7 / .86) 72%,transparent)}   /* fades out at both ends: no seam between blocks */
html.cov-live:not(.cov-staged) .beat--close{min-height:130svh}
@media (max-width:899px){
  .cards{grid-template-columns:1fr;gap:10px}
  .card{display:grid;grid-template-columns:auto 1fr;column-gap:14px;align-items:baseline;padding:14px 16px 15px}
  .card__n{margin:0;grid-row:1 / span 2}
  .hero__title .line--b{padding-left:.5em}
  .hero__cta{align-self:stretch}
}

/* ---------- story: staged (wide + live). One sticky screen, three copy layers; bespoke/signature.js writes their
   opacity and position straight onto each element, so only what the first frame needs is set here. ---------- */
html.cov-staged .story{height:560vh}
html.cov-staged .story__sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:clip}
html.cov-staged .beat{position:absolute;inset:0;display:block;min-height:0;padding:0;pointer-events:none}
html.cov-staged .beat > *{position:absolute;pointer-events:auto}
html.cov-staged .beat.is-off a,html.cov-staged .beat.is-off button{visibility:hidden}   /* the words stay readable to screen readers; only the controls of a hidden layer leave the tab order */
/* legibility: bright shards pass behind the words, so each block of copy sits on its own feathered dark corner */
html.cov-staged .beat--hero::before,html.cov-staged .beat--statement::before,html.cov-staged .beat--close::before{content:"";position:absolute;pointer-events:none}
html.cov-staged .beat--hero::before{left:0;bottom:0;width:66%;height:62%;background:radial-gradient(115% 105% at 0% 100%,rgb(6 6 7 / .86),rgb(6 6 7 / .62) 42%,transparent 72%)}
html.cov-staged .beat--statement::before,html.cov-staged .beat--close::before{left:0;top:0;width:58%;height:52%;background:radial-gradient(115% 105% at 0% 0%,rgb(6 6 7 / .84),rgb(6 6 7 / .58) 42%,transparent 72%)}
html.cov-staged .hero__title,html.cov-staged .statement,html.cov-staged .close__title{text-shadow:0 0 28px rgb(6 6 7 / .85),0 2px 10px rgb(6 6 7 / .6)}
html.cov-staged .hero__lede{left:var(--gutter);top:calc(var(--nav-h) + 4.5vh)}
html.cov-staged .hero__title{left:var(--gutter);bottom:11.5vh}
html.cov-staged .hero__cta{right:var(--gutter);bottom:11.5vh}
html.cov-staged .hero__cue{left:var(--gutter);bottom:4.2vh}
html.cov-staged .beat--statement{opacity:0}
html.cov-staged .statement{left:var(--gutter);top:calc(var(--nav-h) + 5vh)}
html.cov-staged .statement__note{left:var(--gutter);bottom:6vh}
html.cov-staged .close__title{left:var(--gutter);top:calc(var(--nav-h) + 4.5vh);opacity:0}
html.cov-staged .close__note{right:var(--gutter);top:calc(var(--nav-h) + 6vh);text-align:right;opacity:0}
html.cov-staged .cards{left:var(--gutter);right:var(--gutter);bottom:4.5vh;margin:0;gap:16px}
html.cov-staged .card{min-height:17vh;opacity:0}

/* ---------- purchase ---------- */
.buy{position:relative;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,88px);
  min-height:100vh;min-height:100svh;padding:calc(var(--nav-h) + 40px) var(--gutter) clamp(56px,10vh,120px)}
.buy__figure{margin:0;height:min(78vh,820px);display:flex;justify-content:center}
.buy__figure img{height:100%;width:auto;max-width:none;flex:none}
html.cov-live .buy__figure img{visibility:hidden}
.buy__panel{max-width:36rem}
.buy__title{font-size:var(--text-h2)}
.buy__lede{margin-top:18px;max-width:34ch;color:var(--ink-soft)}
.buy__form{margin-top:clamp(28px,4.5vh,48px);display:grid;gap:26px}
.choice{border:0;margin:0;padding:0;min-width:0;display:grid;gap:10px}
.choice legend{padding:0;margin-bottom:10px;font-size:var(--text-small);letter-spacing:.06em;color:var(--ink-quiet)}
.choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice--filaments{grid-template-columns:repeat(2,minmax(0,max-content));gap:10px}
.choice--filaments legend{grid-column:1 / -1}
.swatch{display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:0 22px 0 14px;border-radius:999px;border:1px solid var(--hair);cursor:pointer;
  transition:border-color var(--t-fast) ease-out,background-color var(--t-fast) ease-out}
.swatch__dot{width:26px;height:26px;border-radius:50%;border:1px solid var(--hair-strong)}
.swatch__dot--blancos{background:#efefea}.swatch__dot--negros{background:#19191b}
.choice--plan{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice--plan legend{grid-column:1 / -1}
.plan{display:grid;align-content:start;gap:8px;padding:18px 18px 20px;border-radius:var(--radius-card);border:1px solid var(--hair);cursor:pointer;
  transition:border-color var(--t-fast) ease-out,background-color var(--t-fast) ease-out}
.plan__name{font-size:1.1875rem;font-weight:500;letter-spacing:-.01em}
.plan__terms{font-size:var(--text-small);line-height:1.42;color:var(--ink-soft)}
.swatch:hover,.plan:hover{border-color:var(--hair-strong)}
.swatch:has(input:checked),.plan:has(input:checked){border-color:var(--ink);background:var(--glass-fill)}
.swatch:has(input:focus-visible),.plan:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:3px}
.buy__summary{color:var(--ink-soft)}
.buy__summary strong{font-weight:500;color:var(--ink)}
.btn--buy{min-height:60px;font-size:1.0625rem;justify-self:start;padding:0 36px}
.buy__note{max-width:38ch;font-size:var(--text-small);line-height:1.45;color:var(--ink-quiet)}
.buy__note a{color:var(--ink-soft);text-underline-offset:3px}
.buy__note a:hover{color:var(--ink)}
.buy [hidden]{display:none!important}
/* Stripe's own form, opened in the page: it brings its own light surface, so it sits on a pale sheet with room round it */
.buy__checkout{margin-top:clamp(28px,4.5vh,48px);display:grid;gap:16px;justify-items:start}
.buy__back{appearance:none;background:none;border:0;padding:6px 0;font:inherit;font-size:var(--text-small);color:var(--ink-soft);cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.buy__back:hover{color:var(--ink)}
.buy__back:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.buy__frame{width:100%;min-height:420px;border-radius:var(--radius-card);overflow:hidden;background:#f4f4f1}
.buy__done{margin-top:clamp(28px,4.5vh,48px);display:grid;gap:12px;max-width:34ch;color:var(--ink-soft)}
.buy__done:focus{outline:none}
.buy__done-title{font-size:var(--text-h3,1.75rem);font-weight:400;letter-spacing:-.02em;color:var(--ink)}
.buy__note:focus{outline:none}
@media (max-width:899px){
  .buy{grid-template-columns:1fr;gap:20px;padding-top:calc(var(--nav-h) + 12px)}
  .buy__figure{height:46svh;min-height:280px}
  .btn--buy{justify-self:stretch}
}
@media (max-width:420px){.choice--plan{grid-template-columns:1fr}}

/* ---------- footer ---------- */
.foot{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:10px 28px;padding:28px var(--gutter) 32px;border-top:1px solid var(--hair);
  background:var(--ground);font-size:var(--text-small);color:var(--ink-quiet)}
.foot__brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:500;letter-spacing:.2em;min-height:44px}
.foot__brand .mark{height:22px}
.foot__what{margin-right:auto}
.foot__link{color:var(--ink-soft);display:inline-flex;align-items:center;min-height:44px}
.foot__link:hover{color:var(--ink)}

/* ---------- reduced motion: the finished state, nothing scrubbed ---------- */
@media (prefers-reduced-motion:reduce){
  .world__stage{display:none!important}
  .world__content{margin-top:0!important}
  .still-figure{display:block!important}
  .buy__figure img{visibility:visible!important}
  .beat{min-height:0;padding-top:clamp(48px,9vh,96px);padding-bottom:clamp(48px,9vh,96px)}
  .beat--hero{padding-top:calc(var(--nav-h) + 24px)}
  .hero__cue{display:none!important}
  .btn,.swatch,.plan{transition:none}
}
html.cov-still .beat{min-height:0;padding-top:clamp(48px,9vh,96px);padding-bottom:clamp(48px,9vh,96px)}
html.cov-still .beat--hero{padding-top:calc(var(--nav-h) + 24px)}
