/* =====================================================================
   builtinpublic.me · our own layer, loaded last so it wins.
   The other stylesheets in ds/ come from the reference design; everything
   this site changes or adds lives here.
   0. The logo   1. Legibility   2. Forms   3. Phones   4. Richa's photo   5. Fail-safes
   6. Home, version 2   7. Sentences in sentence case   8. Small repairs
   9. Type: sentence case   10. Cream is the page   11. Inner pages on cream
   12. The visitor's settings (contrast themes, paused motion)
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. THE LOGO
   The name itself, "Built In Public", with "In" in gold: the lit part of
   the name. On the home page the "In" stays unlit until the lights go on.
   Where only a square fits (favicon, app icon, the page curtain) the mark
   is a capital B with its upper window lit gold.
   --------------------------------------------------------------------- */
@property --wm-in{syntax:'<color>';inherits:true;initial-value:#C9A46A}
.brand{gap:0}
.brand .wm{display:block;height:27px;width:202px;color:var(--on-d);opacity:1;transition:color .5s,--wm-in 1.1s var(--ease)}
.nav.on-light .brand .wm{color:var(--txt);--wm-in:#8A6A2F}
.nav.dim .brand .wm{opacity:1;--wm-in:rgba(241,234,226,.3)}
/* home.css gives the home nav's name an opacity fade that outranks the line above: the gold "In" snapped instead of
   fading, and the name blinked after the intro. Without opacity in the list, the hand-over from the intro is instant. */
.nav .brand .wm,.nav.dim .brand .wm{transition:color .5s,--wm-in 1.1s var(--ease)}
@media (max-width:760px){.brand .wm{height:23px;width:172px}}
/* 320 to 359px: the name, the lamp and the menu button needed 300px of a 280px row */
@media (max-width:359px){.brand .wm{height:20px;width:150px}.nav{gap:12px}}
/* the lit home hero puts the nav on the photo's beige wall, where the bronze "In" was about 1.2:1: a cream band behind
   it (home.js sets data-force only while the hero is lit, so the band does not jump at the 30px scroll switch) */
.nav.on-light[data-force=light]::before{opacity:1;background:linear-gradient(180deg,rgba(245,238,228,.9),rgba(245,238,228,.6) 70%,rgba(245,238,228,0))}
.curtain svg{width:44px;height:55px;color:var(--on-d)} /* the lit B: upright, so narrower than the old wide mark */
.foot .lock{width:min(440px,84%);height:auto;aspect-ratio:568/76;color:var(--on-d);margin-bottom:clamp(34px,4.4vw,56px)}
.foot .lock-a{display:block}
/* the intro */
.i-stage{width:min(80vw,620px)}
.i-wm{display:block;width:100%;height:auto;overflow:visible;will-change:transform}
.i-wm .i-l{fill:var(--on-d);opacity:0;transform-box:fill-box}
.i-wm .i-in{fill:rgba(241,234,226,.3)}
html.intro-on .nav .brand .wm{opacity:0;transition:none}

/* ---------------------------------------------------------------------
   1. LEGIBILITY
   Measured on every page: 13% of text sat below 4.5:1 against what was
   behind it. The fixes: lighter small print on dark, a darker gold for
   small text on cream, real weight for small type, and shade behind any
   text that sits on a photograph.
   --------------------------------------------------------------------- */
:root{
  --on-d2:#CDC1C4;      /* secondary text on dark: 11:1 on the darkest plum (was #B9A9AE) */
  --on-d3:#A99CA5;      /* small print on dark: 5.5:1 or better on every plum (was #857380, 3.3-4.4:1) */
  --gold-ink:#735318;   /* gold for small text on cream and white: 6.1:1 (the bright gold #A9844C was 3:1) */
}
[data-theme=light]{--gold2:var(--gold-ink)}

/* body text is regular weight; the light weight stays for large lines only */
body{font-weight:400}

/* small print and labels: at least 12px and never thin */
.mono{font-size:12px}
.kicker{font-size:12px;font-weight:500}
.label{font-size:12px}
.faq .qn,.menu .mn{font:500 12px var(--sans)}
.foot .motion,.foot .gst,.i-skip,.bubble .mono,.timer .t-lab{font-size:12px}
.af b,.menu .md{font-weight:400}
.fld em{opacity:1}

/* the home story: text over photographs gets a real shade behind it */
.scrim{background:linear-gradient(90deg,rgba(17,10,16,.9) 0%,rgba(17,10,16,.82) 26%,rgba(17,10,16,.55) 44%,rgba(17,10,16,0) 66%)}
.chap .h2,.chap p,.chap .ck{text-shadow:0 1px 18px rgba(17,10,16,.75)}
.chap p{color:var(--on-d);font-weight:400}
/* the clock, the chapter rail and the caption sit on bright parts of the scenes */
.hud::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .6s;
  background:radial-gradient(420px 220px at 100% 96px,rgba(17,10,16,.6),rgba(17,10,16,0) 70%),linear-gradient(270deg,rgba(17,10,16,.5),rgba(17,10,16,0) 230px)}
.hud.show::before{opacity:1}
.timer .t-lab{color:var(--on-d2)}
.timer .t-lab,.timer .t-num,.rail button,.af{text-shadow:0 0 10px rgba(17,10,16,.95),0 0 2px rgba(17,10,16,.9)}
.rail button{color:var(--on-d2)}
/* the chapter name beside the rail gets its own dark chip: it crosses bright screens and skies */
.rail button span{background:rgba(17,10,16,.72);padding:5px 9px;border-radius:3px}

/* the lit hero: the top line and the hint were pale gold and grey on a beige wall */
.story.flip .hero .kicker{color:var(--p6)}
.story.flip .hint{color:var(--txt)}
.story.flip .hero .lede{color:var(--txt)}
.nav.dim .tabs,.nav.dim .nav-cta{opacity:.6}

/* inner pages: the nav and "Book a call" sat on bright photographs */
.phead::before{content:"";position:absolute;inset:0 0 auto;height:190px;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(17,10,16,.82) 0%,rgba(17,10,16,.5) 46%,rgba(17,10,16,0) 100%)}
.phead .crumb,.phead .meta{color:var(--on-d2);text-shadow:0 1px 10px rgba(17,10,16,.8)}

/* white and cream cards that sit inside dark sections need the dark gold too */
.diag,.g-page,.surf,.hl-card,.bubble{--gold2:var(--gold-ink)}

/* forms: floating labels in the light theme used the bright gold */
[data-theme=light] .fld input:focus+span,[data-theme=light] .fld input:not(:placeholder-shown)+span,
[data-theme=light] .fld textarea:focus+span,[data-theme=light] .fld textarea:not(:placeholder-shown)+span{color:var(--gold-ink)}

/* ---------------------------------------------------------------------
   2. FORMS
   --------------------------------------------------------------------- */
/* a form that could not send offers a prefilled email */
.form-fail{margin:0;color:#E3A39B;font-size:14px;line-height:1.55}
[data-theme=light] .form-fail{color:#9C3F37}
.form-fail a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.form.sending .btn{opacity:.7;cursor:progress}
/* the privacy link inside a consent label must be clickable (.fld span turns pointer events off) */
.consent span,.consent a{pointer-events:auto}
/* field labels are words, not small spaced capitals (testers squinted at them), and stay 13px when raised (site.css
   shrank a raised one to 9.4px). A raised label keeps to one line, so in a narrow field it never runs into the typed
   text: a label too long for the field ends in "…". The consent label is left out: a checkbox never shows a
   placeholder, so it would always match. */
.fld:not(.consent)>span{font-size:13px;letter-spacing:.01em;text-transform:none}
.fld:not(.consent) input:focus+span,.fld:not(.consent) input:not(:placeholder-shown)+span,
.fld textarea:focus+span,.fld textarea:not(:placeholder-shown)+span{transform:translateY(-12px);max-width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------------------------------------------------------------------
   3. PHONES
   --------------------------------------------------------------------- */
/* the intro caption stacks, and long buttons wrap instead of widening the page
   (they made phones up to 390px scroll sideways and pushed the menu button off screen) */
@media (max-width:560px){.intro .i-cap{flex-direction:column;align-items:center;gap:6px;padding:0 16px;text-align:center}}
@media (max-width:760px){.btn{white-space:normal;height:auto;min-height:var(--bh);padding:14px 20px;text-align:center;max-width:100%}}
@media (max-width:420px){main .svc{grid-template-columns:minmax(0,1fr)}main .cal{grid-template-columns:repeat(2,1fr)}}
/* the company-page example: side by side its two cards were about 120px wide, so they stack, with the "=" on a short
   line between them */
@media (max-width:560px){.al-row{grid-template-columns:minmax(0,1fr);gap:0}.al-row div{min-height:0}.al-row i{width:1px;height:36px;justify-self:center}}

/* ---------------------------------------------------------------------
   4. RICHA'S PHOTO AND ?for=Name
   --------------------------------------------------------------------- */
/* keep her whole head in the frame, and centre the timeline spotlight on her face */
.tl-vis img.alt{object-position:50% 15%}
.tl-vis.real .spot{background:radial-gradient(48% 58% at 50% 38%,transparent 0%,rgba(10,6,9,var(--dark,.75)) 78%)}
/* once WebGL draws the home hero, her photo stays in the page, unseen behind the canvas, so screen readers still get
   its alt text (home.css took it out with display:none) */
html.gl .stage-fallback{display:block;opacity:0}
/* ?for=Name: one line above the home hero kicker */
.hero .kicker.for-line{margin-bottom:10px;height:auto;overflow:visible}

/* ---------------------------------------------------------------------
   5. KEYBOARD AND FAIL-SAFES
   --------------------------------------------------------------------- */
/* keyboard users can reach the nav even after it hid on scroll */
.nav:focus-within{transform:none}
[tabindex="-1"]:focus:not(:focus-visible){outline:none}
/* the focus ring is 2px. In the nav, the phone bar and the home hero, which sit on the lit photo, on cream or on dark,
   it is a plum ring with a cream edge, which shows on all three (the gold ring was 1.1 to 2:1 there) */
:focus-visible{outline-width:2px}
.nav :focus-visible,.mbar :focus-visible,#hero :focus-visible{outline:2px solid #2A1424;outline-offset:2px;box-shadow:0 0 0 4px #F1EAE2}
/* links and buttons hidden only by opacity or a transform leave the tab order as well, and a block that holds focus shows */
.rv:focus-within{opacity:1;transform:none}
.hint>.hint-on{visibility:hidden;transition:opacity .8s,visibility 0s .8s}
.lit .hint>.hint-on{visibility:visible;transition:opacity .8s}
body.subtabs-hidden .subtabs{visibility:hidden;transition:opacity .5s,visibility 0s .5s}
.mbar{visibility:hidden;transition:transform .6s var(--ease),visibility 0s .6s}
.mbar.show{visibility:visible;transition:transform .6s var(--ease)}
/* the story's chapter rail is hidden, not just faded, while the story is not showing it: its invisible buttons took clicks */
.rail{visibility:hidden;transition:opacity .6s,visibility 0s .6s}
.hud.show .rail{visibility:visible;transition:opacity .6s,visibility 0s}
/* phones: a link that takes focus scrolls clear of the sticky bar */
@media (max-width:760px){html{scroll-padding-bottom:84px}}
/* without JavaScript, or if site.js never runs (the head script adds .reveal-all after 4s), show everything */
html:not(.js) .rv,html:not(.js) .sw .w>span,
html.reveal-all .rv,html.reveal-all .sw .w>span{transition:none!important;opacity:1!important;transform:none!important;filter:none!important}
html.reveal-all .curtain{opacity:0!important;visibility:hidden!important}

/* ---------------------------------------------------------------------
   6. HOME, VERSION 2
   The first screen says what this is and shows its button before the
   lights go on. After the story: the offer in four steps, the services,
   Richa's track record with the people she has worked with, two UAE
   figures, questions, promises, and the free review.
   --------------------------------------------------------------------- */
/* hero: one fixed label, and the buttons do not wait for the switch */
.hero .kicker{height:auto;overflow:visible}
.lit .hk-off{transform:none;opacity:1}
.hero-cta{opacity:1;transform:none;pointer-events:auto}
.hint a{text-decoration:underline;text-underline-offset:3px;pointer-events:none}
.lit .hint a{pointer-events:auto}
.hint a:hover{color:var(--gold3)}
.story.flip .hint a:hover{color:var(--p5)}

/* the page opens lit (home.js START_LIT), so the picture shown before the canvas takes over is lit too */
.story.lit .stage-fallback{filter:none}
/* the lit headline and lede are the ones that take up room now; the dark ones sit on top of them when the lights go off */
.ht-on,.hl-on{position:relative;inset:auto}
.ht-off,.hl-off{position:absolute;inset:0 auto auto 0}
.hl{min-height:0}

/* phones: Richa's face stays above the words (the photo is framed higher in home.js), and the words take less room */
@media (max-width:760px),(max-width:1099px) and (max-aspect-ratio:20/23){
  .hero .kicker{margin-bottom:14px}
  .hero .kicker::before{display:none}
  .hl{margin-top:16px}
  .sw-row{margin-top:18px;gap:14px 26px}
  .hero .hint{display:none}
  /* solid under the words, so the bright mock screens never show through the text */
  .scrim{background:linear-gradient(0deg,rgb(17,10,16) 0%,rgb(17,10,16) 45%,rgba(17,10,16,.86) 54%,rgba(17,10,16,0) 66%)}
}
@media (max-width:760px) and (max-height:720px){
  .hero-cta .tlink{display:none}
  .hl .lede{font-size:15px;line-height:1.5}
}
/* Richa's name on the first screen (6 of 6 testers asked who she is): a small tag by her shoulder on laptops,
   a line above the label on phones. It sits last in .hero, so the other lines keep their fade-in order. */
.hero>.hero-who{position:absolute;left:calc(100vw - var(--pad)*2);translate:-100% 0;bottom:clamp(22px,4vh,40px);margin:0;padding:9px 17px 10px;border-radius:999px;background:rgba(246,240,232,.86);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 6px 24px rgba(17,10,16,.18);color:var(--txt);font-size:14px;line-height:1.3;white-space:nowrap}
.hero-who b{font-weight:500}
.hero-who span{color:var(--txt2)}
html.js .hero>.hero-who{transition-delay:.3s}
html.js:not(.intro-on):not(.intro-done) .hero>.hero-who{animation-delay:.3s}
@media (max-width:760px),(max-width:1099px) and (max-aspect-ratio:20/23){
  .hero>.hero-who{position:static;translate:none;order:-1;align-self:flex-start;margin:0 0 10px;padding:0;border-radius:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;color:var(--on-d);font-size:13px;text-shadow:0 1px 10px rgba(17,10,16,.9)}
  .hero-who span{color:var(--on-d2)}
}
/* the story's clock is gone: testers read "00:10" as a time of day, and the count jumped back */
.hud .timer{display:none}
.skip-story svg{width:14px;height:14px}

/* how it works */
.how-sec{--to:var(--c3)}
.how{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--txt)}
.how li{padding:26px 26px 6px 0;border-right:1px solid var(--line-l)}
.how li+li{padding-left:26px}
.how li:last-child{border-right:0;padding-right:0}
.how .mono{color:var(--gold-ink)}
.how h3{margin:30px 0 12px;font:400 clamp(20px,1.7vw,27px)/1.12 var(--serif);color:var(--txt)}
.how p{margin:0;color:var(--txt2)}
.how-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:22px 40px;margin-top:clamp(30px,3.6vw,48px)}
.how-foot .fine{margin:0;max-width:36em;font-size:14.5px;line-height:1.55;color:var(--txt2)}
@media (max-width:1000px){
  .how{grid-template-columns:1fr 1fr}
  .how li{border-bottom:1px solid var(--line-l);padding-bottom:24px}
  .how li:nth-child(2n){border-right:0;padding-right:0}
  .how li:nth-child(2n+1){padding-left:0}
}
@media (max-width:560px){
  .how{grid-template-columns:1fr}
  .how li,.how li+li{padding:22px 0;border-right:0}
  .how h3{margin-top:12px}
}

/* a plain comparison table (the Sprint beside the monthly work). On phones each row stacks, and every cell names its column. */
.otable{width:100%;border-collapse:collapse;font-size:16px;line-height:1.55;color:var(--txt2)}
.otable th,.otable td{text-align:left;vertical-align:top;padding:16px 22px 16px 0;border-bottom:1px solid var(--line-l);font-weight:400}
.otable thead th{padding-top:0;border-bottom:1px solid var(--txt);font:400 clamp(20px,1.7vw,27px)/1.15 var(--serif);color:var(--txt)}
.otable tbody th{width:10.5em;font:500 12px/1.5 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--gold-ink);padding-top:19px}
@media (max-width:700px){
  .otable,.otable tbody,.otable tr,.otable th,.otable td{display:block}
  .otable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .otable tr{padding:14px 0;border-bottom:1px solid var(--line-l)}
  .otable tbody th,.otable td{width:auto;padding:4px 0;border:0}
  .otable td[data-h]::before{content:attr(data-h) ": ";font-weight:500;color:var(--txt)}
}

/* the UAE figures (their section backgrounds are in section 10) */
.uae-sec .stats{margin-top:0;gap:clamp(26px,5vw,90px)}
/* phones: the two figures stack, so each dot chart keeps its full width (side by side its dots shrank to 2 to 4px) */
@media (max-width:560px){.uae-sec .stats{grid-template-columns:minmax(0,1fr);row-gap:40px}}
.cta-sec .lede{margin-top:22px}
/* the closing block shows who reads the review */
.cta-who{margin:0;position:relative;width:min(300px,100%);aspect-ratio:4/5;overflow:hidden;background:var(--p8)}
.cta-who img{width:100%;height:100%;object-fit:cover;object-position:50% 12%;display:block}
.cta-who figcaption{position:absolute;left:0;right:0;bottom:0;padding:44px 18px 16px;background:linear-gradient(180deg,rgba(17,10,16,0),rgba(17,10,16,.88));display:grid;gap:3px}
.cta-who b{font:400 22px/1.15 var(--serif);color:var(--on-d)}
.cta-who span{font-size:13.5px;color:var(--on-d2)}
@media (max-width:900px){.cta-who{width:min(220px,60%)}}
/* numerals in headings and figures line up with the capitals (the serif's default ones dip like lowercase) */
.display,.h1,.h2,.h3,h1,h2,h3,.stat b,.pf b{font-variant-numeric:lining-nums}
@media (max-width:1000px){
  .prom li{min-height:0;padding-bottom:22px}
  .prom p{margin-top:14px}
}
.stat .src{color:var(--on-d2)}

/* the people Richa has worked with: each row opens that person's LinkedIn profile */
.people{margin-top:clamp(46px,5.4vw,78px)}
/* its heading is words, not small spaced capitals (testers squinted at it) */
.people-h{margin:0 0 16px;font:500 13px/1.3 var(--sans);letter-spacing:.01em;text-transform:none;color:var(--gold)}
.people ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line-d)}
.people li{border-right:1px solid var(--line-d)}
.people li:last-child{border-right:0}
.people a{display:flex;flex-direction:column;height:100%;padding:26px 24px 24px 0;color:var(--on-d)}
.people li+li a{padding-left:24px}
.people b{font:400 clamp(21px,1.7vw,26px)/1.15 var(--serif);transition:color .3s}
.people a:hover b,.people a:focus-visible b{color:var(--gold3)}
.people .role{margin-top:6px;line-height:1.4;color:var(--gold3)}
.people .what{margin-top:14px;font-size:15px;line-height:1.5;color:var(--on-d2)}
.people .fol{margin-top:auto;padding-top:16px;font:400 12px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--on-d2)}
.people .fine{margin:18px 0 0;color:var(--on-d2)}
@media (max-width:1000px){
  .people ul{grid-template-columns:1fr 1fr}
  .people li{border-bottom:1px solid var(--line-d)}
  .people li:nth-child(2n){border-right:0}
  .people li:nth-child(2n+1) a{padding-left:0}
}
@media (max-width:560px){
  .people ul{grid-template-columns:1fr}
  .people li{border-right:0}
  .people a,.people li+li a{padding:20px 0}
  .people .what{margin-top:8px}
  .people .fol{padding-top:10px}
}

/* ---------------------------------------------------------------------
   7. SENTENCES IN SENTENCE CASE
   Short titles and labels stay in capitals, except the small ones testers
   squinted at (form labels, the people list heading, example labels).
   Anything read as a sentence (a question, a promise, a description, the
   tagline) is set normally, because capitals take away the word shapes
   people read by.
   --------------------------------------------------------------------- */
.faq .q,.prom p,.know li,.svc-list .sd,.menu .md,.foot .say,.price .big,.g-q h3,.g-a h3,.wont b,.diag .hd b{text-transform:none;letter-spacing:0}
.faq .q{font-size:clamp(20px,1.75vw,27px);line-height:1.22}
.prom p{font-size:clamp(20px,1.6vw,24px);line-height:1.28}
.know li{font-size:clamp(20px,1.7vw,25px);line-height:1.32}
.svc-list .sd{font:400 16px/1.5 var(--sans);opacity:.86}
.menu .md{font-size:14px;line-height:1.4}
.foot .say{font-size:clamp(23px,2vw,30px);line-height:1.25}
.price .big{font-size:clamp(32px,3.6vw,58px);line-height:1.08}
.g-q h3{font-size:clamp(22px,2.1vw,30px);line-height:1.2}
.g-a h3{font-size:clamp(24px,2.3vw,34px);line-height:1.15}
.wont b{font-size:21px;line-height:1.2}
.diag .hd b{font-size:19px}

/* questions sit in one column, narrow enough that each stays near its + button (in two columns, opening one question
   left a gap beside it) */
.faq{max-width:880px}
.faq .a p{max-width:38em}

/* ---------------------------------------------------------------------
   8. SMALL REPAIRS
   --------------------------------------------------------------------- */
/* footer column titles are labels now, not headings */
.foot .foot-h{font:500 12px/1.3 var(--sans);letter-spacing:.26em;text-transform:uppercase;color:var(--gold);margin:0 0 18px}
/* the footer button kept the footer's link colour on hover, so its label vanished into the gold */
.foot a.btn-gold,.foot a.btn-gold:hover{color:var(--ink)}
/* on phones the sticky bar never offers the page you are already on */
html[data-page="stranger-test"] .mbar .a1,html[data-page="book"] .mbar .a2{display:none}
/* the sticky bar's dark button was see-through: page text showed behind "Book a 30-minute call" */
.mbar .a2{background:#1E101B}
/* the Split's table heads were 11px (9px on phones). On phones they ran into the next column, so there they are set
   in sentence case without tracking, which fits "marketing" (50px) in a 58px column */
.who-h span{font-size:12px;letter-spacing:.12em}
@media (max-width:760px){
  .who-row{grid-template-columns:minmax(0,1fr) repeat(3,58px)}
  .who-h span{font-size:12px;line-height:1.3;letter-spacing:0;text-transform:none;padding-right:0}
}
/* the table's "No" dash was 2.3:1 on the cream */
.who-row i.n{color:var(--mute)}
/* figures sat 40px in from the text edge (browser default margins) */
figure{margin:0}
/* the wider sticky photos still fit short laptop screens */
@media (min-width:901px){.svc-vis{max-height:calc(100svh - var(--nav-h) - 100px)}.tl-vis{max-height:calc(100svh - var(--nav-h) - 70px)}}
/* page changes: the curtain lifts and falls faster than the reference (the click delay in site.js is shorter too) */
html.js .curtain{transition:opacity .4s var(--ease) .05s,visibility 0s .45s}
html.js.leaving .curtain{transition:opacity .2s var(--ease),visibility 0s}
/* the first screen's words arrive sooner */
html.js .hero>*{transition:opacity .6s var(--ease),transform .7s var(--ease)}
html.js .hero>.kicker,html.js .hero>.hint{transition:opacity .6s var(--ease),transform .7s var(--ease),color .9s var(--ease)}
html.js .hero>*:nth-child(2){transition-delay:.05s}
html.js .hero>*:nth-child(3){transition-delay:.1s}
html.js .hero>*:nth-child(4){transition-delay:.15s}
html.js .hero>*:nth-child(5){transition-delay:.2s}

/* without JavaScript the home story is a plain page: the first screen, then its nine lines as a list */
html:not(.js) .story{height:auto}
html:not(.js) .stage{position:relative;height:auto;overflow:visible}
html:not(.js) .stage-fallback,html:not(.js) .scrim{inset:0 0 auto;height:100svh}
html:not(.js) .story .stage-fallback{filter:brightness(.45)}
html:not(.js) .hero{position:relative;inset:auto;width:auto;max-width:760px;min-height:100svh;padding:calc(var(--nav-h) + 30px) var(--pad) 50px;justify-content:center}
html:not(.js) .hero .ht-off,html:not(.js) .hero .hl-off,html:not(.js) .switch,html:not(.js) .hint,html:not(.js) .hud,html:not(.js) .bubble,html:not(.js) .leak,html:not(.js) #gl{display:none}
html:not(.js) .hl{min-height:0}
html:not(.js) .hero>.hero-who{position:static;translate:none;align-self:flex-start;margin:0 0 16px}
html:not(.js) .hero .ht-on,html:not(.js) .hero .hl-on{position:static;opacity:1;filter:none;transform:none}
html:not(.js) .chaps{position:relative;inset:auto;display:grid;gap:42px;max-width:760px;padding:10px var(--pad) 90px;pointer-events:auto}
html:not(.js) .chap{position:static;width:auto;transform:none;opacity:1;visibility:visible}
/* with JavaScript, a chapter that is not on screen is still see-through but no longer hidden, so screen readers read all
   nine; its links stay hidden, so they take no focus or clicks until it shows */
html.js .chap{visibility:visible}
html.js .chap:not(.on) a{visibility:hidden}

/* ---------------------------------------------------------------------
   9. TYPE: SENTENCE CASE
   The capitals layer (ds/caps.css) is gone. Headings are set the way the
   design first drew them, in normal sentence case, and a little heavier
   so the thin serif holds on a phone. Buttons and the menu read as words,
   not as tracked capitals. Small labels and times use the text face with
   even-width figures, so the typewriter face is no longer loaded.
   --------------------------------------------------------------------- */
.display,.h1,.h2,.ht,.chap .h2,.svc-list .st,.menu .mt,.price .big{font-weight:500}
.h3,h3,.faq .q,.prom p,.know li,.tl-list h3,.parts h3,.how h3,.g-q h3,.g-a h3,.wont b,.people b,.otable thead th{font-weight:600}
.display,.h1,.ht{line-height:1.06}
.h2,.chap .h2{line-height:1.08}
.h3{line-height:1.15}
.lede{font-weight:400;max-width:32em}
.kicker,.label{letter-spacing:.14em}
.btn{font:500 16px/1.2 var(--sans);letter-spacing:.01em;text-transform:none}
.tlink{font:500 15px/1.2 var(--sans);letter-spacing:.01em;text-transform:none}
.tab,.nav-cta{font:500 15px/1 var(--sans);letter-spacing:.01em;text-transform:none}
.nav-cta{white-space:nowrap}
/* menu links: the focus ring sits inside the link (the list item clipped it), and focus gets the same cue as hover */
.menu li a:focus-visible{outline-offset:-3px}
.menu li a:focus-visible .mt{color:var(--gold3);transform:translateX(10px)} /* "Book a 30-minute call" stays on one line */
.tab .n{display:none}
.subtabs a{font:500 14px/1 var(--sans);letter-spacing:.01em;text-transform:none}
.mbar a{font:500 15px/1 var(--sans);letter-spacing:.01em;text-transform:none}
:root{--mono:var(--sans)}
.mono{font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.sw-lab{font:500 14px/1.2 var(--sans);letter-spacing:.02em;text-transform:none;min-width:10.5em}
.rail button{font:500 12px var(--sans);letter-spacing:.02em}
.foot .gst{text-transform:none}
/* sizes that were tuned for capitals */
.ht{font-size:clamp(40px,5.2vw,84px);max-width:13ch}
.phead .h1{font-size:clamp(36px,4.6vw,74px);max-width:17ch}
.cta-sec .display,.band .display{font-size:clamp(38px,5vw,80px);max-width:14ch}
.how h3{font-size:clamp(23px,2vw,31px)}
.people b{font-size:clamp(23px,1.9vw,29px)}
.otable thead th{font-size:clamp(23px,2vw,31px)}
.hero .kicker{font:500 15px/1.4 var(--sans);letter-spacing:.02em;text-transform:none}
@media (max-width:760px),(max-width:1099px) and (max-aspect-ratio:20/23){
  .ht{font-size:clamp(30px,8.6vw,42px)}
  .hero .kicker{font-size:14px;letter-spacing:.01em;line-height:1.4}
}

/* ---------------------------------------------------------------------
   10. CREAM IS THE PAGE
   People read on cream. Dark is kept for photographs, the home story, one
   closing band on each page and the footer. Parts that were drawn for dark
   sections take light values from the variables below when they sit on
   cream; a dark card inside a cream section gets data-theme="dark" to
   switch them back. Gold is a light: on cream its place is taken by a
   darker bronze for small labels and by plum for the main button.
   --------------------------------------------------------------------- */
/* color-scheme: what the browser draws itself follows the section too (Chrome's dark autofill was white text on cream) */
[data-theme=light]{--on-d:#2A1424;--on-d2:#5A4650;--on-d3:#6F5B57;--line-d:rgba(42,20,36,.14);--gold:#735318;--gold3:#55264A;color-scheme:light}
[data-theme=dark]{--on-d:#F1EAE2;--on-d2:#CDC1C4;--on-d3:#A99CA5;--line-d:rgba(241,234,226,.14);--gold:#C9A46A;--gold3:#E2C58F;color:var(--on-d);color-scheme:dark}
/* selected text on cream: the darker --gold above made it dark ink on dark bronze */
[data-theme=light] ::selection{background:#E2C58F;color:#2A1424}
[data-theme=light] .btn-gold{background:var(--p5);color:#F1EAE2}
[data-theme=light] .btn-gold::before{background:var(--p4)}
/* parts with their own dark ground keep light text even inside a cream section (the variables above would darken it) */
.btn-plum,.tl-vis figcaption{color:#F1EAE2}
.svc-list a:hover .sn,.svc-list a:focus-visible .sn{color:#C9A46A}
/* a service row with keyboard focus gets the same dark fill as a hovered one, so its light gold number has a dark ground */
.svc-list a:focus-visible{color:var(--cream);padding-left:22px}
.svc-list a:focus-visible::before{transform:scaleY(1)}
.bubble .mono{color:#5A4650}
:root{--blend:clamp(60px,6.4vw,104px);--silver:#F1EAE2}
/* home: after the services, the proof, the UAE figures, the questions and the promises are on cream; the free review is the one dark band */
.proof-sec{background:linear-gradient(180deg,var(--c3),var(--cream) 34%);padding-top:clamp(70px,8.2vw,120px)}
.uae-sec{background:linear-gradient(180deg,var(--cream),var(--c2))}
.faq-sec{background:linear-gradient(180deg,var(--c2),var(--cream) 45%)}
.prom-sec{background:linear-gradient(180deg,var(--cream),var(--c3))}
.cta-sec{background:radial-gradient(55% 45% at 22% 70%,rgba(85,38,74,.9) 0%,rgba(85,38,74,0) 72%),linear-gradient(180deg,var(--c3) 0,#a4806d calc(var(--blend)*.32),#4c2a3e calc(var(--blend)*.68),var(--p7) var(--blend),var(--p8) 100%);padding-top:calc(var(--blend) + var(--bgap))}
/* the dot charts were drawn for a dark ground */
[data-theme=light] .dots i{background:rgba(42,20,36,.12)}
[data-theme=light] .dots i.on{background:var(--p5);box-shadow:none}
[data-theme=light] .dots i.q{background:transparent;box-shadow:inset 0 0 0 1px rgba(42,20,36,.5)}
/* reading sizes: body text is 17px on a laptop and 16px on a phone; small print is never under 13.5px */
body{font-size:17px}
.how p,.pf p,.stat p,.faq .a>div,.people .what{font-size:17px;line-height:1.6}
.svc-list .sd{font-size:17px}
.people .role{font-size:15px}
.stat .src,.fine{font-size:14px}
.chap p{font-size:clamp(17px,1.25vw,19px)}
@media (max-width:760px){
  body{font-size:16px}
  .how p,.pf p,.stat p,.faq .a>div,.people .what,.svc-list .sd{font-size:16px}
  .chap p{font-size:16px}
}

/* ---------------------------------------------------------------------
   11. INNER PAGES ON CREAM
   Parts first drawn for dark sections, now that they sit on cream.
   --------------------------------------------------------------------- */
/* booking: time zones, days and times. Selected = plum with cream text (gold on cream was unreadable) */
[data-theme=light] .tzs button,[data-theme=light] .days button,[data-theme=light] .slots button{background:rgba(255,255,255,.5);color:var(--txt)}
[data-theme=light] .tzs button.on,[data-theme=light] .days button.on,[data-theme=light] .slots button.on{background:var(--p5);border-color:var(--p5);color:#F1EAE2}
[data-theme=light] .tzs button:hover,[data-theme=light] .days button:hover,[data-theme=light] .slots button:hover{border-color:var(--p5)}
[data-theme=light] .tzs button:disabled,[data-theme=light] .days button:disabled,[data-theme=light] .slots button:disabled{opacity:.45}
.days button span{font-size:12px}
.slots button{font-family:var(--sans);font-variant-numeric:tabular-nums}
/* consent tick on cream */
[data-theme=light] .consent input:checked{background:var(--p5);border-color:var(--p5)}
[data-theme=light] .consent input:checked::after{border-color:#F1EAE2}
/* field edges and the empty consent box on cream were 1.3:1 against the page; now taupe (3.4:1 or better) and a
   dark box edge (7:1). This order matters: the consent box is a .fld input too. */
[data-theme=light] .fld input,[data-theme=light] .fld textarea{border-color:var(--taupe)}
[data-theme=light] .consent input{background:#fff;border-color:var(--txt2)}
/* keyboard focus shows a ring again (.fld input turns outlines off). On cream it is plum for every field and the box:
   with the resting edge now taupe, the bronze focus edge alone hardly changed. */
.consent input:focus-visible{outline:1.5px solid var(--gold);outline-offset:3px}
[data-theme=light] .fld input:focus-visible,[data-theme=light] .fld textarea:focus-visible{outline:2px solid var(--p5);outline-offset:2px}
/* the sample review card on cream: a clear edge so it reads as a sheet of paper */
[data-theme=light] .diag{box-shadow:0 30px 60px -36px rgba(42,20,36,.45);outline:1px solid rgba(42,20,36,.08)}
/* the timeline on cream: unlit dots are cream, lit ones plum; steps not yet reached stay readable */
[data-theme=light] .tl-list li::before{background:var(--cream);border-color:var(--p5)}
[data-theme=light] .tl-list li.on::before{background:var(--p5);box-shadow:0 0 0 5px rgba(85,38,74,.14)}
[data-theme=light] .tl-list li{opacity:1} /* on cream the dot and the photo show the current step; dimmed text fell under 4.5:1 */
[data-theme=light] .tl-list li.on{opacity:1}
/* the "won't" cards on cream */
[data-theme=light] .wont div{background:rgba(255,255,255,.45)}
[data-theme=light] .wont .x{border-color:var(--p5)}
[data-theme=light] .wont .x::before,[data-theme=light] .wont .x::after{background:var(--p5)}
/* the services sub-tabs float over the text on phones; the page reads fine without them there */
@media (max-width:760px){.subtabs{display:none}}
/* forms on cream: error lines and the field they belong to in a red that reads on cream (the pink was drawn for dark) */
[data-theme=light] .fld .err{color:#9C3F37}
[data-theme=light] .fld.bad input,[data-theme=light] .fld.bad textarea{border-color:#9C3F37}
/* a dark card inside a cream section keeps the dark look's gold button */
[data-theme=light] [data-theme=dark] .btn-gold{background:var(--gold);color:var(--ink)}
[data-theme=light] [data-theme=dark] .btn-gold::before{background:var(--gold3)}
/* booking: the dial's third arc keeps its light gold unless it is the selected one; its "minutes" caption was 11px light */
[data-theme=light] .dial path[data-i="2"]:not(.on){stroke:#C9A46A}
.dial .ctr span{font:500 13px var(--sans);letter-spacing:.04em}
/* services: the founder-brand example's initials, the space under each heading, and each example's label, in words
   rather than small spaced capitals (testers squinted at them) */
[data-theme=light] .hl-card.good .av{color:#E2C58F}
.svc-txt .h2{margin-bottom:20px}
.art>.label{margin:0 0 14px;color:var(--gold-ink);font-size:13px;letter-spacing:.01em;text-transform:none}
/* the example cards' small labels come up to the 12px floor; the two toggles are buttons, so they read as words */
.deck div b,.al-row div b,.surf .k,.g-page .k,.ph .lab{font-size:12px;letter-spacing:.14em}
.deck div b,.surf .k{letter-spacing:.06em} /* the two longest labels fit their cards from 905px */
/* The Split example: the old words fade out before the new ones fade in (they used to cross, and readers saw both at once) */
.ph .hd .pb,.mid p .a,.verdict .a{transition-delay:.45s}
.ph .hd .fx,.mid p .b,.verdict .b{transition-delay:0s}
.fixed .ph .hd .pb,.fixed .mid p .a,.fixed .verdict .a{transition-delay:0s}
.fixed .ph .hd .fx,.fixed .mid p .b,.fixed .verdict .b{transition-delay:.45s}
/* /about "Before we talk" has two lines now: two columns, not three */
@media (min-width:901px){.know{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* the story lines no longer blur, so they need no filter layer */
.chap{will-change:opacity,transform}
.art .seg button,.seg-tabs button{font:500 14px/1 var(--sans);letter-spacing:.01em;text-transform:none}
/* the sample review's four parts are h3 now (they were h4) */
.diag li h3{margin:0 0 6px;font:600 14px/1.4 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--gold2)}
/* the Split's round sign in the fixed state */
[data-theme=light] .fixed .mid .ic{color:#E2C58F}
/* the sentence builder flashes each card as you type: on the dark pitch-deck card the plum flash hid the sentence */
.surf.deckc.flash .v{color:#E2C58F}
/* the Stranger Test form's left column borrows the comparison table's class; a faint rule there, not a hard one */
.formwrap .who{border-top-color:var(--line-l);padding-top:22px}
/* the timeline caption sits on the photograph */
.tl-vis figcaption{font-size:13px;font-weight:400;letter-spacing:.02em;text-shadow:0 1px 8px rgba(17,10,16,.8)}
/* figures: the serif's default figures sit like lower-case letters ("2o", "IO"); lining figures everywhere read as numbers */
html{font-variant-numeric:lining-nums}
/* a font: shorthand resets this on its own element, so each serif part set with one is named again (same weight, later) */
.dial .ctr b,.days button b,.cal div b,.svc-vis .idx,.how h3,.tl-list h3,.parts h3,.faq .q,.prom p,.know li,.people b,.otable thead th,.price .big,.doc h2,.g-q h3,.g-a h3,.wont b,.verdict,.diag li .s,.surf.deckc .v,.deck div span{font-variant-numeric:lining-nums}
/* closing headlines get two lines, not three */
.cta-sec .display,.band .display{max-width:20ch}
/* the Split demo's small label under the two phones */
[data-theme=light] .verdict .mono{color:var(--txt2)}
/* services examples: the "before" avatar's initials, the video's REC badge, the big numbers on the photos */
.hl-card .av{color:#4a3a40}
.hl-card.good .av{color:#E2C58F}
.vid .rec{font:500 12px var(--sans);letter-spacing:.04em;padding:4px 8px;border-radius:3px;background:rgba(17,10,16,.62)}
.svc-vis .idx{text-shadow:0 2px 26px rgba(17,10,16,.8),0 0 2px rgba(17,10,16,.5)}
/* the big numbers on the service photos: a soft dark corner under them, so they read on the bright photos too */
.svc-vis::before{content:"";position:absolute;z-index:1;left:0;top:0;width:min(75%,340px);height:min(60%,260px);background:radial-gradient(ellipse at 0 0,rgba(17,10,16,.55),rgba(17,10,16,0) 72%);pointer-events:none}
.svc-vis .idx{z-index:2}
/* page-header label on the photo, on phones */
.phead .kicker{color:var(--gold3);text-shadow:0 1px 10px rgba(17,10,16,.85)} /* the lighter gold: 4.4:1 was too close on the photos */
/* the home hero's words do not wait for the scripts: without the intro they fade up by CSS from the first paint
   (the reference hid them until its last script ran). With the intro, the script reveal in home-extra.js stays. */
@keyframes heroUp{from{opacity:0;transform:translate3d(0,18px,0)}to{opacity:1;transform:none}}
html.js:not(.intro-on):not(.intro-done) .hero>*{opacity:1;transform:none;animation:heroUp .7s var(--ease) both}
html.js:not(.intro-on):not(.intro-done) .hero>*:nth-child(2){animation-delay:.06s}
html.js:not(.intro-on):not(.intro-done) .hero>*:nth-child(3){animation-delay:.12s}
html.js:not(.intro-on):not(.intro-done) .hero>*:nth-child(4){animation-delay:.18s}
html.js:not(.intro-on):not(.intro-done) .hero>*:nth-child(5){animation-delay:.24s}
html.no-motion .hero>*{animation:none!important}

/* ---------------------------------------------------------------------
   12. THE VISITOR'S SETTINGS
   Pause motion and Windows contrast themes. These rules come last, so
   they win over everything above.
   --------------------------------------------------------------------- */
/* Pause motion (or a device set to reduce motion) also stops the CSS transitions and animations: the menu's wipe,
   an answer opening, the page curtain */
html.no-motion *,html.no-motion *::before,html.no-motion *::after{transition-duration:.01ms!important;transition-delay:0s!important;animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important}
/* contrast themes replace drawn colours with the theme's own, so shapes drawn with a background vanished: the menu
   button's lines, the knob of the Pause motion switch, the table's ticks and dashes, the +/− of each question, the
   menu's ground. A selected button or tab was shown by its fill alone; it gets a border (not an outline, so the focus
   ring still shows). */
@media (forced-colors:active){
  .burger i::before,.burger i::after,.foot .motion i::after,html.no-motion .foot .motion i::after{forced-color-adjust:none;background:ButtonText}
  .who-row i::before,.who-row i::after,.faq .pm::before,.faq .pm::after{forced-color-adjust:none;background:CanvasText}
  .menu{background:Canvas}
  :is(.tzs,.days,.slots,.seg-tabs,.art .seg) button.on,.subtabs a.on{border:2px solid Highlight}
}

