/* The brand's Latin face on every page. These five rules are the site's own, copied from /css/home.css, which
   only the two home pages load; the font files are the ones already at /fonts/. Without them the other pages set
   their Latin text in IBM Plex Sans. If the same rules are moved into /css/rethink.css, delete this block. */
@font-face { font-family: "AtHauss"; font-weight: 200; font-style: normal; font-display: swap; src: url(/fonts/AtHaussArabic-Thin.sub.woff) format("woff"); }
@font-face { font-family: "AtHauss"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/AtHaussArabic-Light.sub.woff) format("woff"); }
@font-face { font-family: "AtHauss"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/AtHaussArabic-Regular.sub.woff) format("woff"); }
@font-face { font-family: "AtHauss"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/AtHaussArabic-Medium.sub.woff) format("woff"); }
@font-face { font-family: "AtHauss"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/AtHaussArabic-Semibold.sub.woff) format("woff"); }

/* Rethink art direction · every page · 2026-11-18
   The parts all 44 pages share: the wordmark's halo, the navigation, the primary button, the footer and the
   text rules. Loads after each page's own stylesheet. No markup changes. The home pages load home.css after
   this. System sources: tokens.json > mark.halo, colour. */

/* ── 1. Mark halo: rim 0.28x at full strength, field 0.42x at 0.73 (the two were swapped) ── */
.mark--dark{filter:drop-shadow(0 0 9px rgba(97,75,249,1)) drop-shadow(0 0 13px rgba(97,75,249,.73));}
.mark--dark.mark--footer{filter:drop-shadow(0 0 11px rgba(97,75,249,1)) drop-shadow(0 0 17px rgba(97,75,249,.73));}

/* ── 1b. Latin sets in At Hauss on every page, as everywhere in the system (Arabic stays Janna). A page that
        does not load the face yet falls back to the Latin face it has now. ── */
:root{--font:"Janna","AtHauss","IBM Plex Sans","IBM Plex Sans Arabic",system-ui,sans-serif;--font-latin:"AtHauss","IBM Plex Sans","IBM Plex Sans Arabic",system-ui,sans-serif;}

/* ── 2. Even lines. Owner, 2026-11-18: no word alone on a last line, and no line suddenly much shorter than
        the one above it. Headings and short copy set in lines of even length; paragraphs and list lines keep
        their last line from holding one word. ── */
p,li,blockquote,figcaption{text-wrap:pretty;}
h1,h2,h3,h4,.title,.sub,.eyebrow,.footer .footer-grid p.body{text-wrap:balance;}
.rk-line{display:block;text-wrap:balance;}

/* ── 3. Navigation, primary button, footer and store badges. Owner, 2026-11-18: more hierarchy, restraint, generous air; no generic icon boxes;
         the real App Store and Google Play badges. No markup changes.
         Three levels. First: the wordmark alone in its own column, and the footer's one statement set large and
         light. Second: the links, in columns that all start on the statement's edge, each under its own hairline.
         Third: the small print, on the same edge. The social links become quiet tracked words, as on the deck's
         back cover. Latin sets in At Hauss here as everywhere else in the system; the home page loads it, the
         other pages fall back to their own Latin face until they load it too. ── */
.nav,.footer{font-family:"Janna","AtHauss","IBM Plex Sans","IBM Plex Sans Arabic",system-ui,sans-serif;}
/* Owner, 2026-11-18: the line that appears under a navigation link is the brand purple, Lumen, not white;
   2px so it carries on the dark bar. */
.nav-links a::after{height:2px;background:#7019BD;}
/* Owner, 2026-11-18: the primary call to action turns Ember under the pointer. An owner exception for the web, as
   the email's drawn button is: the system otherwise keeps Ember from fills (tokens.json > rules["accent.ember"]).
   Label in Paper, as on the email button. No movement. */
/* Owner, 2026-11-20: the Ember now arrives as a fill that crosses the button from its reading edge (section 6),
   so the button's own colour stays underneath and the Ember is a second layer laid over it. */
.btn.btn-primary{background-image:linear-gradient(#e35336,#e35336);background-repeat:no-repeat;background-position:0 0;background-size:0% 100%;background-origin:border-box;}
html[dir="rtl"] .btn.btn-primary,html[dir="rtl"] .btn.btn-primary:hover{background-position:100% 0;}
.btn.btn-primary:hover:not(:disabled),.btn.btn-primary:focus-visible,.home .btn.btn-primary:hover{background-color:var(--lumen);background-image:linear-gradient(#e35336,#e35336);background-repeat:no-repeat;background-size:100% 100%;background-origin:border-box;color:#fff;}
.footer .footer-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--s4);row-gap:0;align-items:start;padding-block:var(--s8) var(--s6);}
.footer .footer-grid > div:first-child{display:contents;}
.footer .footer-grid .mark--footer{grid-column:1 / span 4;grid-row:1;height:48px;}
.footer .footer-grid p.body{grid-column:5 / span 6;grid-row:1;margin:calc(4px - .3333em) 0 0 !important;max-width:none;font-size:clamp(20px,2.08vw,30px);font-weight:200;line-height:1.3;letter-spacing:-.01em;color:var(--mist);text-wrap:balance;}
html[dir="rtl"] .footer .footer-grid p.body{line-height:1.5;letter-spacing:0;margin-top:calc(4px - .5em) !important;}
html[dir="rtl"] .footer .footer-grid > div:nth-child(4){margin-top:-5px;}
.footer .social{grid-column:5 / span 6;grid-row:2;margin-top:var(--s5);gap:var(--s2) var(--s5);flex-wrap:wrap;}
.footer .social a{width:auto;height:var(--tap);border:0;border-radius:0;display:inline-flex;align-items:center;font-size:12px;font-weight:600;line-height:1;color:#7019BD;transition:color 180ms;}
html[dir="ltr"] .footer .social a{letter-spacing:.14em;text-transform:uppercase;}
.footer .social a::after{content:attr(aria-label);font-family:"AtHauss","IBM Plex Sans",system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;}
.footer .social a:hover{color:var(--mist);border:0;}
.footer .social a img{display:none;}
.footer .footer-grid > div:nth-child(n+2){grid-row:3;margin-top:var(--s7);padding-top:var(--s3);border-top:1px solid rgba(128,111,155,.34);}
.footer .footer-grid > div:nth-child(2){grid-column:5 / span 4;}
.footer .footer-grid > div:nth-child(3){grid-column:9 / span 4;}
.footer .footer-grid > div:nth-child(4){grid-column:11 / span 2;grid-row:1 / span 2;margin-top:-4px;padding-top:0;border-top:0;}
.footer h4{margin-bottom:var(--s3);font-size:12px;font-weight:500;color:var(--sec);}
html[dir="ltr"] .footer h4{letter-spacing:.14em;text-transform:uppercase;}
.footer .footer-grid ul{display:block;font-weight:300;}
.footer .footer-grid ul li{margin-bottom:var(--s1);break-inside:avoid;}
.footer .footer-grid > div:nth-child(2) ul{column-count:2;column-gap:var(--s4);}
.footer .footer-grid ul a{color:rgba(241,237,245,.88);transition:color 180ms;}
.footer .footer-grid ul a:hover{color:var(--mist);}
.footer .legal{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--s4);row-gap:var(--s2);border-top:0;padding-block:var(--s5) var(--s6);}
.footer .legal > *{grid-column:5 / -1;}
.footer .legal .disclosure{max-width:78ch;color:var(--sec);}
/* the official badges, unaltered: Apple's and Google's own files, black, the pair both publish */
.footer .stores{flex-direction:column;align-items:flex-start;gap:var(--s1);}
.footer .stores a[href*="apps.apple.com"],.home .closing .actions a[href*="apps.apple.com"],
.footer .stores a[href*="play.google.com"],.home .closing .actions a[href*="play.google.com"]{
  display:block;flex:0 0 auto;height:var(--tap);min-height:0;padding:0;border:0;border-radius:0;font-size:0;line-height:0;color:transparent;background-color:transparent;background-repeat:no-repeat;background-position:center;background-size:contain;}
.footer .stores a[href*="apps.apple.com"],.home .closing .actions a[href*="apps.apple.com"]{aspect-ratio:119.66407/40;background-image:url("img/app-store-black-en-us.svg");}
.footer .stores a[href*="play.google.com"],.home .closing .actions a[href*="play.google.com"]{aspect-ratio:564/168;background-image:url("img/google-play-en.png");}
.footer .stores a > *{display:none;}
.footer .stores a:hover,.home .closing .actions a[href*="apps.apple.com"]:hover,.home .closing .actions a[href*="play.google.com"]:hover{border:0;}
@media (max-width:833px){
  .footer .footer-grid{grid-template-columns:minmax(0,1fr);padding-block:var(--s7) var(--s5);}
  .footer .footer-grid .mark--footer,.footer .footer-grid p.body,.footer .social{grid-column:1;grid-row:auto;}
  .footer .footer-grid p.body,html[dir="rtl"] .footer .footer-grid p.body{margin-top:var(--s4) !important;font-size:20px;}
  html[dir="rtl"] .footer .footer-grid > div:nth-child(4){margin-top:var(--s4);}
  .footer .social{margin-top:var(--s3);gap:0 clamp(12px,4.6vw,24px);}
  .footer .footer-grid > div:nth-child(n+2){grid-column:1;grid-row:auto;margin-top:var(--s5);}
  /* the store badges come straight after the statement and the social links, before the link lists */
  .footer .footer-grid > div:nth-child(2),.footer .footer-grid > div:nth-child(3){order:2;}
  .footer .footer-grid > div:nth-child(4){order:1;margin-top:var(--s4);padding-top:0;border-top:0;}
  .footer .stores{flex-direction:row;flex-wrap:wrap;}
  .footer .legal{grid-template-columns:minmax(0,1fr);padding-block:var(--s4) var(--s5);}
  .footer .legal > *{grid-column:1;}
}
/* Tablet widths: two of twelve columns are narrower than a store badge, which pushed the badges past the page's
   edge. The badges take three columns, and the wordmark, statement and links move in by one. */
@media (min-width:834px) and (max-width:1099px){
  .footer .footer-grid .mark--footer{grid-column:1 / span 3;}
  .footer .footer-grid p.body,.footer .social{grid-column:4 / span 6;}
  .footer .footer-grid > div:nth-child(2){grid-column:4 / span 5;}
  .footer .footer-grid > div:nth-child(3){grid-column:9 / span 4;}
  .footer .footer-grid > div:nth-child(4){grid-column:10 / span 3;}
  .footer .legal > *{grid-column:4 / -1;}
}

/* ── 4. The menu on small screens. Owner, 2026-11-19: tapping the menu button shifted the bar sideways, and the menu
        stayed stuck at the top without opening to show its links.
        Both come from the page's own stylesheet. The bar carries a background blur, and a blurred element becomes
        the frame for any fixed-position child, so the menu, written as "fixed, filling the screen", was being fitted
        to the bar's own 72px instead. It is now placed from the bar's top edge at the full height of the screen.
        And opening the menu stops the page scrolling, which removes the scrollbar where one is drawn and lets the
        page widen by its width; the page now keeps that space, so nothing moves. ── */
html{scrollbar-gutter:stable;}
.nav .nav-panel{position:absolute;top:0;bottom:auto;inset-inline:0;height:100vh;height:100dvh;}
/* Owner, later: with the menu open nothing in the bar may move; the close mark must stand exactly where the menu
   button was, and the wordmark exactly where it was. The menu's first row is therefore the bar's own row: the same
   72px, and the same content column (the page's margin, or the centred column where the screen is wider than it),
   so its wordmark and its close button land on the bar's wordmark and button to the pixel. The links start from
   the same edge. */
.nav .nav-panel{padding-top:0;padding-inline:max(var(--margin),calc((100% - var(--max)) / 2));}
.nav .nav-panel .nav-panel-top{height:72px;flex:none;}
.nav .nav-panel ul{margin-top:var(--s5);}

/* ── 5. The menu's motion. Owner, 2026-11-19: a little modern, elevated animation when the menu is tapped and
        revealed, so it feels intentional.
        Opening: the panel unrolls downward from under the bar like a blind (its first row is the bar's own row, so
        the wordmark never blinks); the close mark turns into place; then the links rise into place one after
        another, 45ms apart, the language link and the button last. All on one long ease-out, about two thirds of a
        second in all, so it settles without a bounce. Closing is the same in reverse and quicker: the links go
        first, then the blind rolls up. Only clip, opacity and transform move, so the page is never re-laid.
        Nothing moves under prefers-reduced-motion: the menu appears and goes at once, as before. ── */
@media (prefers-reduced-motion:no-preference){
  .nav .nav-panel{display:flex;visibility:hidden;pointer-events:none;clip-path:inset(0 0 calc(100% - 73px) 0);
    transition:clip-path 380ms cubic-bezier(.7,0,.84,0) 60ms,visibility 0s linear 440ms;}
  .nav .nav-panel.open{visibility:visible;pointer-events:auto;clip-path:inset(0 0 0 0);
    transition:clip-path 640ms cubic-bezier(.16,1,.3,1),visibility 0s;}
  .nav .nav-panel ul li,.nav .nav-panel .actions{opacity:0;transform:translateY(18px);
    transition:opacity 140ms ease-in,transform 140ms ease-in;}
  .nav .nav-panel.open ul li,.nav .nav-panel.open .actions{opacity:1;transform:none;
    transition:opacity 520ms ease-out calc(140ms + var(--rk-i,0) * 45ms),transform 680ms cubic-bezier(.16,1,.3,1) calc(140ms + var(--rk-i,0) * 45ms);}
  .nav .nav-panel ul li:nth-child(2){--rk-i:1;}
  .nav .nav-panel ul li:nth-child(3){--rk-i:2;}
  .nav .nav-panel ul li:nth-child(4){--rk-i:3;}
  .nav .nav-panel ul li:nth-child(5){--rk-i:4;}
  .nav .nav-panel ul li:nth-child(6){--rk-i:5;}
  .nav .nav-panel ul li:nth-child(7){--rk-i:6;}
  .nav .nav-panel ul li:nth-child(8){--rk-i:7;}
  .nav .nav-panel ul li:nth-child(n+9){--rk-i:8;}
  .nav .nav-panel .actions{--rk-i:9;}
  .nav .nav-panel #navClose svg{opacity:0;transform:rotate(-90deg) scale(.7);transition:opacity 140ms ease-in,transform 200ms ease-in;}
  .nav .nav-panel.open #navClose svg{opacity:1;transform:none;transition:opacity 260ms ease-out 80ms,transform 520ms cubic-bezier(.16,1,.3,1) 80ms;}
}

/* ── 6. The motion of the controls. Owner, 2026-11-20: more modern, sophisticated, elevated motion when the reader
        works the interface, the rail's arrows for one.
        One vocabulary on every page, the menu's own (section 5): things arrive from the reading edge on one long
        ease-out and withdraw to it a little faster; nothing bounces, nothing overshoots.
          primary button   the Ember crosses it from the reading edge instead of switching on; it gives 2.5% under
                           the finger or the pointer
          navigation link  its Lumen line draws from the reading edge instead of growing from the middle
          footer link      a hairline draws under it the same way
          store badge      as on the Wealth Series page: a band of Lumen light crosses it once, a Lumen glow rises
          article card     its picture eases 4.5% closer inside its frame
        The colours of every state are unchanged and stand outside the motion query, so under
        prefers-reduced-motion each state still shows, at once. The rail's arrows are in home.css. ── */
.nav-links a::after{transform-origin:0 50%;}
html[dir="rtl"] .nav-links a::after{transform-origin:100% 50%;}
.footer .footer-grid ul a{padding-bottom:3px;background:linear-gradient(currentColor,currentColor) no-repeat 0 100% / 0% 1px;}
html[dir="rtl"] .footer .footer-grid ul a{background-position:100% 100%;}
.footer .footer-grid ul a:hover,.footer .footer-grid ul a:focus-visible{background-size:100% 1px;}
.footer .social a{background:linear-gradient(currentColor,currentColor) no-repeat 0 calc(50% + 12px) / 0% 1px;}
html[dir="rtl"] .footer .social a{background-position:100% calc(50% + 12px);}
.footer .social a:hover,.footer .social a:focus-visible{background-size:100% 1px;}
.btn:active:not(:disabled){transform:scale(.975);}
.footer .stores a[href*="apps.apple.com"],.home .closing .actions a[href*="apps.apple.com"],
.footer .stores a[href*="play.google.com"],.home .closing .actions a[href*="play.google.com"]{position:relative;border-radius:6px;}
/* the badge itself is never clipped (a clip on its edge can take the artwork's own outline with it where the edge
   falls between two pixels); the band of light moves inside its own rounded layer instead */
.footer .stores a[href*="apps.apple.com"]::after,.home .closing .actions a[href*="apps.apple.com"]::after,
.footer .stores a[href*="play.google.com"]::after,.home .closing .actions a[href*="play.google.com"]::after{content:"";display:block;position:absolute;inset:0;border-radius:6px;pointer-events:none;mix-blend-mode:screen;
  background:linear-gradient(105deg,rgba(112,25,189,0) 38%,rgba(150,70,240,.85) 50%,rgba(112,25,189,0) 62%) no-repeat 100% 0 / 300% 100%;opacity:0;}
.footer .stores a:hover,.footer .stores a:focus-visible,
.home .closing .actions a[href*="apps.apple.com"]:hover,.home .closing .actions a[href*="play.google.com"]:hover,
.home .closing .actions a[href*="apps.apple.com"]:focus-visible,.home .closing .actions a[href*="play.google.com"]:focus-visible{box-shadow:0 0 0 1px rgba(150,70,240,.9),0 10px 34px rgba(112,25,189,.70);}
.post-card-thumb img{transform-origin:50% 50%;}
.post-card > a:hover .post-card-thumb img,.post-card > a:focus-visible .post-card-thumb img{transform:scale(1.045);}
@media (prefers-reduced-motion:no-preference){
  .btn{transition:background-color 180ms,border-color 240ms,color 240ms,transform 180ms cubic-bezier(.16,1,.3,1);}
  .btn.btn-primary{transition:background-size 360ms cubic-bezier(.16,1,.3,1),border-color 240ms,color 240ms,transform 180ms cubic-bezier(.16,1,.3,1);}
  .btn.btn-primary:hover,.btn.btn-primary:focus-visible{transition:background-size 560ms cubic-bezier(.16,1,.3,1),border-color 240ms,color 240ms,transform 180ms cubic-bezier(.16,1,.3,1);}
  .nav-links a::after{transition:transform 320ms cubic-bezier(.16,1,.3,1);}
  .nav-links a:hover::after{transition:transform 520ms cubic-bezier(.16,1,.3,1);}
  .footer .footer-grid ul a,.footer .social a{transition:color 180ms,background-size 320ms cubic-bezier(.16,1,.3,1);}
  .footer .footer-grid ul a:hover,.footer .social a:hover{transition:color 180ms,background-size 520ms cubic-bezier(.16,1,.3,1);}
  .footer .stores a,.home .closing .actions a[href*="apps.apple.com"],.home .closing .actions a[href*="play.google.com"]{transition:box-shadow 260ms ease,transform 260ms ease;}
  .footer .stores a:hover,.home .closing .actions a[href*="apps.apple.com"]:hover,.home .closing .actions a[href*="play.google.com"]:hover{transform:translateY(-1px);}
  .footer .stores a:hover::after,.home .closing .actions a[href*="apps.apple.com"]:hover::after,.home .closing .actions a[href*="play.google.com"]:hover::after{opacity:1;background-position:0 0;transition:background-position 900ms cubic-bezier(.2,.7,.2,1),opacity 200ms;}
  .post-card-thumb img{transition:transform 900ms cubic-bezier(.16,1,.3,1);}
}

/* ── 7. The entrance. Owner, 2026-11-20: a luxurious animation on all the pages, subtle, light on the site's
        performance, intentional, the kind the best brands use: a blur and a fade that come into focus with a very
        subtle movement.
        One entrance, used on every page, once per element, as it comes into view:
          type      (labels, headlines, lead lines, button rows) comes into focus: from an 8px blur and nothing to
                    sharp and full, rising 14px; sharp in about half a second;
          blocks    (cards, question rows, forms, charts, the glass panels) fade and rise 18px, with no blur;
          pictures  fade in while the image inside eases from 5% large to its size, the frame holding still.
        Things that arrive together follow one another 80ms apart, top to bottom, so a heading reads label, then
        headline, then lead, then button. Long reading text (an article's paragraphs, the legal pages) does not
        move at all.
        Light on the page: only blur, opacity and position change, which the graphics chip does without re-laying
        the page; blur, the one costly effect, is kept to type, which is small, and never used on a picture or a
        whole section. Each element moves once and is then left exactly as it was written, with no effect on it.
        Safe: the starting state is written here, in the stylesheet, so nothing flashes before the script runs; if
        the script never runs, everything simply appears after three seconds (--rk-safe). Under
        prefers-reduced-motion none of this applies and the page is still. The home page's hero keeps its own
        entrance, and its sections that already rise (the client's data-enter) keep theirs.
        site.js finds the elements by this starting state, so the lists below are the only lists. ── */
@keyframes rk-safe{to{opacity:1;translate:none;filter:none;}}
html{--rk-safe:rk-safe 1ms linear 3s forwards;}
html.rk-on{--rk-safe:none;}
@media (prefers-reduced-motion:no-preference){
  html:not(.rk-off) :is(main :is(.eyebrow,h1,.title,.title--sm,.efcalc-h2,.sub,.head > p,.post-meta,.efcalc-intro,.actions):not(.home .hero *,.home .chapter *,[data-enter],[data-enter] *,.nav *,.footer *,.acc *),.home .closing .body-txt,.home .exp :is(.eyebrow,.title--name)):not(.rk-in){opacity:0;translate:0 14px;filter:blur(8px);animation:var(--rk-safe);}
  html:not(.rk-off) :is(main :is(.card,.post-card,details.acc,.stats,form.form,.efcalc-form,.efcalc-result,.post-chart,.post-diagram,.statement > p):not(.home .hero *,.home .chapter *,[data-enter],[data-enter] *,.nav *,.footer *,.acc *,.stats *),.home .exp .quote-banner):not(.rk-in){opacity:0;translate:0 18px;animation:var(--rk-safe);}
  html:not(.rk-off) :is(main :is(.figure,.post-hero):not(.home .hero *,.home .chapter *,[data-enter],[data-enter] *,.nav *,.footer *,.acc *)):not(.rk-in){opacity:0;translate:0 .01px;animation:var(--rk-safe);}
  html:not(.rk-off) :is(main :is(.figure,.post-hero):not(.home .hero *,.home .chapter *,[data-enter],[data-enter] *,.nav *,.footer *,.acc *)):not(.rk-in) img,html:not(.rk-off) .post-card:not(.rk-in) .post-card-thumb img{scale:1.05;}
  :is(main :is(.figure,.post-hero):not(.home .hero *,.home .chapter *,[data-enter],[data-enter] *,.nav *,.footer *,.acc *)) img{transition:scale 1800ms cubic-bezier(.16,1,.3,1);}
  .post-card-thumb img{transition:transform 900ms cubic-bezier(.16,1,.3,1),scale 1800ms cubic-bezier(.16,1,.3,1);}
  /* a closing band's photograph fades in as the band arrives */
  html.rk-on main > section.image-band:not(.rk-in)::after{opacity:0;}
  main > section.image-band::after{transition:opacity 1400ms cubic-bezier(.22,.61,.36,1);}
  /* while an element is arriving, and only then, this is its transition; site.js takes the class away after */
  /* Owner, later the same day: the blur was a bit slow. The focus now clears in 560ms and the fade in 640ms, on a
     curve that does most of its work at once, so the words can be read within a third of a second; only the small
     rise takes its time (900ms) to settle. Things follow one another 80ms apart (site.js). */
  .rk-going{transition:opacity 640ms cubic-bezier(.2,.7,.2,1) var(--rk-d,0ms),translate 900ms cubic-bezier(.16,1,.3,1) var(--rk-d,0ms),filter 560ms cubic-bezier(.2,.7,.2,1) var(--rk-d,0ms) !important;}
}
