/* The look of the home page. A class on <body> picks it:
     .look-bold   the page as the owner chose it (10 Nov 2026): every screen has a sky of its own, the key words and
                  the large numbers are lit with the spectrum of the first screen, the lit points and card edges too
     .look-soft   an earlier, quieter treatment, kept for comparison (?look=soft)
     (none)       the black-and-white page before colour (?look=mono)
   and for the headlines:
     .type-mono   the page as chosen: one grotesk, key words set apart by light, small labels in a monospace
     .type-plain  the same without the monospace (?type=plain)
     (none)       an italic serif on the key words (?type=serif)
   Both colour looks add an aura of light behind the page that turns from blue to rose as you scroll, the founder's
   photo in its own colours with a signature, and a reel of launched websites. There is no new accent colour: every
   hue comes from the spectrum of the first screen. */

/* Mono keeps these out of the way */
.aura,.reel,.sig{display:none}
h1 em,h2 em{font-style:normal}

/* ---------- shared by Soft and Bold ---------- */

/* (The hue range is called --span, not --turn: pulsar.css registers --turn as an angle for the field's border.) */
/* The aura: two wide pools of light fixed behind the page. The script sets --p from 0 to 1 as the page scrolls, which
   turns the hue and lets the pools drift across; --aura fades them out wherever the star itself is on screen. */
:is(.look-soft,.look-bold) .aura{display:block;position:fixed;inset:0;z-index:0;pointer-events:none;opacity:var(--aura,0);transition:opacity .6s;
  background:
    radial-gradient(64vw 58vh at calc(84% - var(--p,0)*62%) 16%,hsl(calc(228 + var(--p,0)*var(--span)) 92% 66% / var(--a1)),transparent 70%),
    radial-gradient(58vw 62vh at calc(10% + var(--p,0)*66%) 90%,hsl(calc(252 + var(--p,0)*var(--span)) 88% 68% / var(--a2)),transparent 70%)}

/* the words that carry the headline */
:is(.look-soft,.look-bold) :is(h1,h2) em{font-family:"Instrument Serif",Georgia,serif;font-style:italic;font-weight:400;font-size:1.12em;line-height:.9;letter-spacing:-.014em}

/* the large numbers take a breath of the spectrum; their small grey units keep their own colour */
:is(.look-soft,.look-bold) :is(.big,.amount,.facts dd:not(.tel),.zeros b,.cmp .ours b,.sa dd b,.pr-line b,.pr-pack .pr-price,.pr-total b,.wk-nums b,.pg-facts b,.hw-at b,.hw-pay b,.hw-bar.hw-us b,.ad-items em b,.ad-total b,.my-due b,.my-clock-n b,.my-stats b,.my-way:has(input:checked) em,.lane.now b,.dial.now b){background:var(--num);-webkit-background-clip:text;background-clip:text;color:transparent}

/* the founder as he is, and his hand under his words */
:is(.look-soft,.look-bold) .portrait img{filter:none}
:is(.look-soft,.look-bold) .sig{display:block;margin-top:clamp(14px,1.6vw,24px);font-family:"Homemade Apple","Segoe Script",cursive;font-size:var(--fs-mid);line-height:1.4;transform:rotate(-4deg);transform-origin:left center;color:var(--fg)}

/* launched work in its own colours, drifting past; it stops under the pointer */
:is(.look-soft,.look-bold) .reel{display:flex;gap:18px;margin:clamp(24px,2.6vw,38px) calc(-1*var(--gutter)) 0;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.reel ul{display:flex;flex:none;gap:18px;animation:reel 80s linear infinite}
.reel:hover ul{animation-play-state:paused}
@keyframes reel{to{transform:translateX(calc(-100% - 18px))}}
.reel li{flex:none;width:clamp(230px,23vw,360px)}
.reel img{display:block;width:100%;height:auto;border:1px solid var(--hair2);border-radius:var(--r-s)}
.reel p{margin-top:12px;font-size:var(--fs-small);line-height:1.45;color:var(--muted)}
.reel b{display:block;font-weight:500;font-size:var(--fs-text);color:var(--fg)}

/* ---------- Soft ---------- */
.look-soft{--span:72;--a1:.13;--a2:.10;--num:linear-gradient(105deg,#fff 25%,#dde5ff 62%,#ffe1f0);--glow:rgba(176,172,255,.8)}
.look-soft .reel img{filter:saturate(.88) brightness(.94)}

/* ---------- Bold ---------- */
/* The shared aura stays as a faint base tint; the colour of each screen now comes from its own sky (below). The page
   colour itself is lifted a little off black. */
.look-bold{--bg:#08070e;--span:104;--a1:.11;--a2:.09;--num:linear-gradient(105deg,#9fb6ff,#fff 44%,#ffa6d5);--glow:rgba(190,160,255,.95);--edge:linear-gradient(140deg,#8fa9ffa6,#ededea26 40%,#ff9ed2a6)}
/* the headline word in light, not just in another face */
.look-bold :is(h1,h2) em{padding-right:.1em;background:linear-gradient(100deg,#a9bcff,#fff 46%,#ffb4dc);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
/* a short stroke of the spectrum before every section label */
.look-bold .eyebrow::before{content:"";display:inline-block;width:26px;height:1px;margin-right:12px;vertical-align:middle;background:linear-gradient(90deg,#8fa9ff,#ff9ed2)}
/* cards and frames get an edge of light instead of a grey hairline */
.look-bold :is(.mock,.phone,.frame){border-color:transparent;background:linear-gradient(#0b0b0d,#0b0b0d) padding-box,var(--edge) border-box}
.look-bold .now .frame{box-shadow:0 50px 150px -46px rgba(150,130,255,.5)}
.look-bold .hdr .pill{border-color:transparent;background:linear-gradient(var(--bg),var(--bg)) padding-box,linear-gradient(100deg,#8fa9ff,#ff9ed2) border-box}
.look-bold .hdr .pill:hover{background:var(--fg);color:var(--bg)}
/* every lit point is a point of the spectrum */
.look-bold :is(.track .own,.strip i.us,.year i.on::before,.line.new i,.result i){background:linear-gradient(135deg,#9fb6ff,#fff 52%,#ffa6d5);border-color:transparent}
.look-bold .moments li:last-child .pay::before{background:linear-gradient(135deg,#9fb6ff,#fff 52%,#ffa6d5);border-color:transparent}
.look-bold .track.once::before{background:linear-gradient(90deg,#9fb6ff,#fff 30%,#ffa6d580)}
.look-bold .strip i:not(.us){background:#b9c3ff5c}
.look-bold .voices .lead p{background:linear-gradient(100deg,#fff 40%,#ffd0e8);-webkit-background-clip:text;background-clip:text;color:transparent}
/* the project window glows a little in the colours of the page */
.look-bold .win{box-shadow:0 50px 150px -46px rgba(150,130,255,.5)}
/* the chat button and its window wear the same edge as the cards */
.look-bold :is(.talk-btn,.talk-box){border-color:transparent;background:linear-gradient(#0b0b0d,#0b0b0d) padding-box,linear-gradient(120deg,#8fa9ff,#ededea40 45%,#ff9ed2) border-box}
.look-bold :is(.talk-btn i,.talk-box header i,.steps li:is(.on,.done)::before){background:linear-gradient(135deg,#9fb6ff,#fff 52%,#ffa6d5);border-color:transparent}

/* ---------- Bold: every screen has a sky of its own ----------
   The page is the path of the star's signal, and each screen is something that signal lights up. A sky has three
   layers: a pool of colour in the screen's own hue (the hue walks from blue to rose down the page), a line drawing,
   and film grain. The drawing is brighter near the pointer, as if you held a light to it. The questions keep no sky:
   after seven lit screens a quiet one is a rest. Drawings: sky/*.svg, made by sky/make.py. */
.sky{display:none}
/* A sky reaches --over beyond its screen on both sides and fades in and out over --fade, so two neighbours are both
   half there around the line between them: no dark band, no edge. */
.look-bold .sky{--over:210px;--fade:400px;display:block;position:absolute;inset:calc(-1*var(--over)) 0;z-index:-1;overflow:hidden;pointer-events:none;
  -webkit-mask-image:linear-gradient(transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent);mask-image:linear-gradient(transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent)}
.sky::before{content:"";position:absolute;inset:0;background:var(--pool)}
.sky i{position:absolute;inset:0;background:var(--ink) no-repeat;
  -webkit-mask-image:radial-gradient(380px circle at var(--mx,-999px) calc(var(--my,-999px) + var(--over)),#000,rgb(0 0 0/.5));mask-image:radial-gradient(380px circle at var(--mx,-999px) calc(var(--my,-999px) + var(--over)),#000,rgb(0 0 0/.5))}
.sky::after,.look-bold .aura::after{content:"";position:absolute;inset:0;opacity:.085;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E")}

/* how it works: the signal as astronomers stack it, sweep under sweep (blue) */
.how .sky{--pool:radial-gradient(70% 60% at 80% 26%,hsl(226 92% 62%/.25),transparent 70%);--ink:url(sky/how.svg) right -3% top calc(var(--over) - 46px)/min(52%,760px) auto}
/* the work: a beam from beyond the left edge, like stage light, falling on the new website (indigo). It starts inside
   the screen and has no hard side, so it never cuts across the line to the screen above. */
.work .sky{--pool:radial-gradient(60% 46% at 68% 50%,hsl(244 90% 64%/.24),transparent 70%);
  --ink:conic-gradient(from 104deg at -6% calc(var(--over) + 7%),transparent 0deg,hsl(236 96% 72%/.13) 11deg,rgb(255 255 255/.085) 18deg,hsl(264 92% 72%/.12) 26deg,transparent 42deg)}
/* price: orbits around the two numbers (violet) */
.price .sky{--pool:radial-gradient(60% 50% at 50% 36%,hsl(262 88% 64%/.26),transparent 70%);--ink:none;--w:min(112vw,1440px);--drop:60px}
.price .sky i::after{content:"";position:absolute;left:50%;top:calc(var(--over) + var(--drop) + var(--w)*.2714);width:var(--w);aspect-ratio:1400/760;translate:-50% -50%;background:url(sky/orbits.svg) center/contain no-repeat;animation:precess 46s ease-in-out infinite alternate}
@keyframes precess{from{rotate:-7deg}to{rotate:7deg}}
/* guarantees: four bright stars, one for each promise, joined into a constellation beside the headline (lilac) */
.promises .sky{--pool:radial-gradient(70% 60% at 28% 30%,hsl(280 80% 64%/.21),transparent 70%);--ink:url(sky/stars.svg) 50% calc(var(--over) + 30px)/calc(100% - 2*var(--gutter)) auto}
/* after launch: radio waves leaving the left edge, towards the three small screens (magenta) */
.after .sky{--pool:radial-gradient(60% 60% at 12% 56%,hsl(312 84% 62%/.23),transparent 70%);--ink:url(sky/waves.svg) left 50%/auto 120%}
.after .sky i{transform-origin:0 50%;animation:breathe 9s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.035)}}
/* who builds it: first light over the edge of a world, behind the person (rose, the warmest screen) */
.who .sky{--pool:radial-gradient(120% 60% at 50% 112%,hsl(345 92% 74%/.3),hsl(318 80% 64%/.13) 46%,transparent 66%);--ink:none}
/* the edge of the world sits in the gap under the quotes, not behind them */
.who .sky i::after{content:"";position:absolute;left:-18%;right:-18%;top:calc(100% - var(--over) - 86px);height:150%;border-top:1px solid rgb(255 222 228/.8);border-radius:50%;box-shadow:0 -2px 38px 0 hsl(345 96% 80%/.5),inset 0 90px 150px -70px hsl(338 90% 72%/.3)}
/* compared: a corner of a star chart behind the headline (plum). It stops short of the two plots: lines running
   through the data would read as part of it. */
.compare .sky{--pool:radial-gradient(70% 55% at 82% 14%,hsl(300 70% 60%/.22),transparent 70%);--ink:url(sky/chart.svg) right top/min(48%,700px) auto}

/* ---------- the first and the last screen in the colours of the page ----------
   The star itself wears them (palette "bold" in hero-lab/pulsar-scene.js: a field that runs from blue to rose, a beam
   that disperses more). Around it lies a halo: blue above and to the left, rose below and to the right, the same two
   ends of the spectrum the page travels between. It is added as light (screen), stays where the star is, and fades
   with it. */
.halo{display:none}
.look-bold .halo{display:block;position:fixed;inset:0;z-index:0;pointer-events:none;mix-blend-mode:screen;
  background:
    radial-gradient(44vmax 40vmax at calc(var(--x,82%) - 12vmax) calc(var(--y,43%) - 13vmax),hsl(224 96% 60%/.2),transparent 70%),
    radial-gradient(46vmax 40vmax at calc(var(--x,82%) + 7vmax) calc(var(--y,43%) + 15vmax),hsl(328 90% 60%/.17),transparent 70%),
    radial-gradient(26vmax 26vmax at var(--x,82%) var(--y,43%),hsl(262 90% 70%/.14),transparent 70%)}

/* ---------- the logo in the colours of the page ----------
   The file stays the white logo; here it is used as a stencil over a painted surface, so no new artwork is needed.
   Chosen treatment: the word stays white and only the X, with its arrow, takes the spectrum, running along the
   arrow the way the star's beam does. To compare: ?logo=full (the whole logo in the spectrum), ?logo=white. */
.look-bold .logo{position:relative;display:block}
.look-bold .logo img{opacity:0}
/* The spectrum is painted over the right 37.6% of the logo, where the X is. The X's arms reach back over the letter
   R (in the 688 x 170 file the R ends at x = 512, the X starts at 525 in the band of the letters but at 486 below
   it), so that surface alone tinted the R blue. --r is a patch of the word's own white laid over the R: 92 x 71 px
   at (425, 50), written as percentages, clear of the X on every row. */
.look-bold .logo::before{content:"";position:absolute;inset:0;
  --r:linear-gradient(#ededea,#ededea) 71.309% 50.505%/13.372% 41.765% no-repeat;
  background:var(--r),linear-gradient(52deg,#8fa9ff 12%,#fff 50%,#ffa6d5 88%) right/37.6% 100% no-repeat,#ededea;
  -webkit-mask:url(../hero-lab/assets/logo-white.png) 0 0/100% 100% no-repeat;mask:url(../hero-lab/assets/logo-white.png) 0 0/100% 100% no-repeat}
/* every few seconds a glint runs up the arrow, the way it runs along the line from "before" to "after" */
@property --glint{syntax:"<percentage>";inherits:false;initial-value:-40%}
.look-bold:not(.logo-full,.logo-white) .hdr .logo::before{animation:glint-x 7.5s ease-in-out infinite;
  background:var(--r),linear-gradient(52deg,transparent calc(var(--glint) - 15%),#fff var(--glint),transparent calc(var(--glint) + 15%)) right/37.6% 100% no-repeat,
    linear-gradient(52deg,#8fa9ff 12%,#fff 50%,#ffa6d5 88%) right/37.6% 100% no-repeat,#ededea}
@keyframes glint-x{0%,74%{--glint:-40%}92%,100%{--glint:140%}}
.look-bold.logo-full .logo::before{background:linear-gradient(96deg,#9fb6ff,#fff 52%,#ffa6d5)}
.look-bold.logo-white .logo::before{background:#ededea}
.foot .logo{width:fit-content}

/* ---------- the page answers the visitor: headlines develop in light, skies move with their screens ----------
   All of it is slow and small, none of it loops fast, and none of it runs for people who asked for less motion. */
/* A headline is not just faded in: light passes over it from left to right and leaves the words behind, the way the
   beam writes the business name on the first screen. --lit is how far the light has got. */
@property --lit{syntax:"<percentage>";inherits:false;initial-value:125%}
.js .look-bold .sec-h h2,.js .look-bold .final h2{--lit:-8%;transition:--lit 1.3s cubic-bezier(.3,.6,.2,1) .12s;
  -webkit-mask-image:linear-gradient(100deg,#000 calc(var(--lit) - 20%),rgb(0 0 0/.06) var(--lit));mask-image:linear-gradient(100deg,#000 calc(var(--lit) - 20%),rgb(0 0 0/.06) var(--lit))}
.js .look-bold .sec-h.in h2,.js .look-bold .final h2.in{--lit:125%}
/* an inner page: the drawing behind the screen under the first one only comes out as the star goes (page.js) */
.pg .below>.sec:first-child .sky i{opacity:var(--ridge,1)}
/* how it works: the stacked signal drifts sideways, like a trace still being recorded */
.how .sky i{opacity:var(--ridge,1);animation:drift 20s ease-in-out infinite alternate}
@keyframes drift{from{background-position:right -3% top calc(var(--over) - 46px)}to{background-position:right -.4% top calc(var(--over) - 46px)}}
/* the work: the beam sways a little about the point it comes from */
.work .sky i{transform-origin:0 calc(var(--over) + 7%);animation:sway 16s ease-in-out infinite alternate}
@keyframes sway{from{rotate:-1.1deg}to{rotate:1.5deg}}
/* guarantees: the constellation comes out when the headline does */
.js .promises .sky i{opacity:.2;transition:opacity 2s .5s}
.js .promises:has(.sec-h.in) .sky i{opacity:1}
/* who builds it: the light comes up over the edge as the portrait appears */
.js .who .sky::before{opacity:.3;transition:opacity 2.6s .3s}
.js .who .sky i::after{translate:0 52px;transition:translate 2.8s cubic-bezier(.2,.7,.2,1) .2s}
.js .who:has(.portrait.in) .sky::before{opacity:1}
.js .who:has(.portrait.in) .sky i::after{translate:0 0}

/* ---------- headline type, to compare (prototype switch "Type") ---------- */
/* Light: the same grotesk everywhere; the key words are set apart by light alone */
:is(.type-plain,.type-mono) :is(h1,h2) em{padding-right:0;font-family:inherit;font-style:normal;font-size:1em;line-height:inherit;letter-spacing:inherit}
.look-soft:is(.type-plain,.type-mono) :is(h1,h2) em{background:linear-gradient(100deg,#c9d5ff,#fff 50%,#ffd3e9);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
/* Light + mono: small labels and scale marks in a monospace, like the readouts of an instrument */
.type-mono :is(.eyebrow,.when,.foot nav b,.hw-do dt,.ab-ways span,.my-ways span,.my-from,.my-dots-cap,.my-clock-line p,.my-proj span,.my-lab span,.bar,.axis,.scale,.facts dt,.meter figcaption,.strip .mid,.cap,.cue,.four>li>span,.mock figcaption span,.lane>span,.dial>span){font-family:"DM Mono",ui-monospace,Menlo,monospace;letter-spacing:.03em}
.type-mono :is(.proof,.vows .n,.vows dt,.proto,.case b,.addr,.opt span,.cs-trio b,.cs-scale,.cs-db b,.cs-shot span,.cs-toc){font-family:"DM Mono",ui-monospace,Menlo,monospace;letter-spacing:.02em}
.type-mono :is(.art,.vow) text{font-family:"DM Mono",ui-monospace,Menlo,monospace;letter-spacing:0}
.type-mono .vow text.big{font-size:13.5px}                 /* the wider letters still have to fit the address pill */

@media (hover:none){
  /* no pointer to hold a light with: the drawings are simply a little brighter */
  .sky i{-webkit-mask-image:none;mask-image:none;opacity:.72}
  .how .sky i,.pg .below>.sec:first-child .sky i{opacity:calc(.72*var(--ridge,1))}
}
@media (max-width:820px){
  .reel li{width:66vw}
  .look-bold .sky{--over:130px;--fade:240px}
  /* the drawing is wider than a phone screen here, and a percentage position then works the other way round
     ("right -20%" left its hard right edge 16px inside the screen): its right edge is put past the screen in pixels */
  .how .sky{--ink:url(sky/how.svg) right -24px top calc(var(--over) - 30px)/120% auto}
  .how .sky i{animation:none}
  .price .sky{--w:190vw;--drop:150px}
  .promises .sky{--ink:url(sky/stars.svg) right -30% top calc(var(--over) + 40px)/190% auto}
  .compare .sky{--ink:url(sky/chart.svg) right top/120% auto}
}
@media (prefers-reduced-motion:reduce){
  /* no drifting: the row can be scrolled by hand, and its copy is not needed */
  :is(.look-soft,.look-bold) .reel{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
  .reel ul{animation:none}
  .reel ul[aria-hidden]{display:none}
  /* the logo rule repeats the full selector of the animated one: a shorter selector loses to it and the glint keeps running */
  .after .sky i,.how .sky i,.work .sky i,.price .sky i::after,.look-bold:not(.logo-full,.logo-white) .hdr .logo::before{animation:none}
  .js .look-bold .sec-h h2,.js .look-bold .final h2{-webkit-mask-image:none;mask-image:none;transition:none}
  .js .promises .sky i,.js .who .sky::before{opacity:1;transition:none}
  .js .who .sky i::after{translate:0 0;transition:none}
}

/* the comparison table: its column names in the mono face, like the other small labels */
.type-mono .cmp-h>*,.type-mono .cmp-r>[data-h]::before{font-family:"DM Mono",ui-monospace,Menlo,monospace}
