/* Page heroes: /app-development, /bespoke-crm-development and /about (16 Nov 2026).
   Type-led: no devices, no screens, no moving backdrop. One calm horizon of light, a headline in two voices,
   and a ruled row of four facts along the bottom of the first screen. Load last.
   The section keeps its old class (adh / bsh2) so section-rhythm.css still colours the opening block. */

main>section.hs{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:stretch;justify-content:center;min-height:max(700px,100vh);min-height:max(700px,100svh);padding:0;text-align:center;perspective:none}
.hs--dark{--hs-ink:#fff;--hs-soft:#d3c8e8;--hs-mute:rgba(236,226,255,.62);--hs-line:rgba(255,255,255,.14);--hs-em:linear-gradient(100deg,#efe3ff 0%,#c4a6ff 55%,#e3d2ff 100%);--hs-glow:rgba(139,92,246,.5);--hs-arc:rgba(255,255,255,.2);--hs-fill:rgba(124,58,237,.16);--hs-c1:rgba(255,255,255,.95);--hs-c2:rgba(255,255,255,.5);--hs-c3:rgba(205,184,255,.34);--hs-c4:rgba(139,92,246,.2);--hs-s1:rgba(255,255,255,.5);--hs-s2:#fff;--hs-bloom:rgba(214,196,255,.4);--hs-rim:rgba(255,255,255,.42);--hs-haze1:rgba(196,170,255,.32);--hs-haze2:rgba(139,92,246,.3)}
.hs--light{--hs-ink:#1b1235;--hs-soft:#5a4f6c;--hs-mute:#7b6f92;--hs-line:rgba(76,29,149,.14);--hs-em:linear-gradient(100deg,#5b21b6 0%,#8b5cf6 60%,#6d28d9 100%);--hs-glow:rgba(167,139,250,.42);--hs-arc:rgba(109,40,217,.22);--hs-fill:rgba(255,255,255,.55);--hs-c1:#7c3aed;--hs-c2:rgba(255,255,255,.95);--hs-c3:rgba(124,58,237,.4);--hs-c4:rgba(139,92,246,.24);--hs-s1:rgba(124,58,237,.75);--hs-s2:#5b21b6;--hs-bloom:rgba(124,58,237,.5);--hs-rim:rgba(109,40,217,.6);--hs-haze1:rgba(124,58,237,.24);--hs-haze2:rgba(167,139,250,.3)}

/* backdrop: a horizon of light (28 Nov 2026 rework). The curve is an ellipse sized to the screen, so it bends the same
   amount on every width; its hairline and glow fade out before the edges, with one bright streak at the crest. */
.hs-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;--hs-h:162px;--hs-w:260vw;--hs-hh:76vw;--hs-up:240px}
.hs-bg::before{content:"";position:absolute;left:50%;bottom:calc(var(--hs-h,148px) - var(--hs-hh));width:var(--hs-w);height:var(--hs-hh);transform:translateX(-50%);border-radius:50%;background:linear-gradient(180deg,var(--hs-fill) 0,transparent var(--hs-h,148px))}
.hs-bg::after{content:"";position:absolute;left:50%;bottom:calc(var(--hs-h,148px) - 120px);width:min(1200px,110%);height:240px;transform:translateX(-50%);background:radial-gradient(50% 50% at 50% 50%,var(--hs-glow),transparent 70%);opacity:.8}
.hs-bg i{position:absolute;left:0;right:0;bottom:0;height:calc(var(--hs-h,148px) + var(--hs-up));overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.35) 10%,rgba(0,0,0,.8) 28%,#000 42%,#000 58%,rgba(0,0,0,.8) 72%,rgba(0,0,0,.35) 90%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.35) 10%,rgba(0,0,0,.8) 28%,#000 42%,#000 58%,rgba(0,0,0,.8) 72%,rgba(0,0,0,.35) 90%,transparent 100%)}
.hs-bg i::before,.hs-bg i::after{content:"";position:absolute;left:50%;top:var(--hs-up);width:var(--hs-w);height:var(--hs-hh);transform:translateX(-50%);border-radius:50%}
/* the hairline along the whole curve, with an atmosphere rising off it */
.hs-bg i::before{box-shadow:inset 0 1px 0 var(--hs-rim),inset 0 6px 18px -8px var(--hs-c3),0 -1px 6px var(--hs-c3),0 -14px 46px -8px var(--hs-haze1),0 -60px 140px -30px var(--hs-haze2)}
/* the bright streak at the crest, drawn on the same curve so it never sits off the line */
.hs-bg i::after{box-shadow:inset 0 1.5px 0 var(--hs-c1),inset 0 3px 7px -2px var(--hs-c2),0 -2px 12px var(--hs-bloom),0 -10px 34px var(--hs-bloom);
  -webkit-mask-image:linear-gradient(90deg,transparent 41%,rgba(0,0,0,.6) 46%,#000 50%,rgba(0,0,0,.6) 54%,transparent 59%);
  mask-image:linear-gradient(90deg,transparent 41%,rgba(0,0,0,.6) 46%,#000 50%,rgba(0,0,0,.6) 54%,transparent 59%)}

/* light heroes (CRM page): the same horizon as the dark app hero (Max: "the curve in app development is perfect, do the
   same for software"), in violet on lilac: hairline fading before the edges, a glow following the curve, bright crest. */
.hs--light .hs-bg::after{opacity:.7}

/* the About hero has no section colour behind it, so it carries the apps page purple itself */
main>section.ab-hero.hs{background:linear-gradient(90deg,#170b2e 0%,#25104f 45%,#3a1878 100%)}
main .hs-sub a{color:inherit;text-decoration:underline;text-decoration-color:var(--hs-line);text-decoration-thickness:1px;text-underline-offset:4px;transition:color .2s ease,text-decoration-color .2s ease}
main .hs-sub a:hover{color:var(--hs-ink);text-decoration-color:currentColor}

.hs-inner{display:flex;flex-direction:column;width:calc(100% - 80px);max-width:1200px;margin:0 auto}
.hs-copy{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:132px 0 64px}

main .hs-crumbs{position:absolute;left:max(40px,calc((100% - 1200px)/2));top:104px;display:flex;gap:8px;list-style:none;margin:0;padding:0;font:500 12.5px/1.3 Inter,sans-serif;color:var(--hs-mute)}
main .hs-crumbs li{margin:0}
main .hs-crumbs li::marker{content:none}
main .hs-crumbs a{color:inherit;text-decoration:none}
main .hs-crumbs a:hover{color:var(--hs-ink)}
main .hs-crumbs li+li::before{content:"/";margin-right:8px;opacity:.5}

main .hs-kicker{display:inline-flex;align-items:center;gap:12px;margin:0 0 28px;font:600 11.5px/1.4 Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:var(--hs-mute)}
main .hs-kicker::before,main .hs-kicker::after{content:"";width:28px;height:1px;background:currentColor;opacity:.45}
.ap-inner-page main h1.hs-title{margin:0;max-width:none;font:500 clamp(40px,7vw,86px)/1 'Fustat','Inter',sans-serif;letter-spacing:-.055em;color:var(--hs-ink);-webkit-text-fill-color:var(--hs-ink);background:none;text-wrap:balance}
.ap-inner-page main h1.hs-title em{display:block;margin-top:.06em;padding:0 .08em .12em;font:italic 400 1.12em/1 'Instrument Serif',Georgia,serif;letter-spacing:-.02em;background:var(--hs-em);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
main .hs-sub{margin:26px auto 0;max-width:590px;font:400 18px/1.65 Inter,sans-serif;color:var(--hs-soft)}
.hs .adh-actions,.hs .bsh2-actions,.hs .ab-actions{margin-top:36px}

/* facts: four ruled columns sitting on the horizon */
main .hs-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0;border-top:1px solid transparent}
main .hs-facts li{position:relative;margin:0;padding:30px 12px 44px}
main .hs-facts li+li::before{content:"";position:absolute;left:0;top:30px;width:1px;height:54px;background:var(--hs-line)}
main .hs-facts li::marker{content:none}
.hs-fact{display:flex;flex-direction:column;align-items:center;gap:9px;color:inherit;text-decoration:none}
.hs-fact small{font:600 11px/1.3 Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--hs-mute)}
.hs-fact b{display:inline-flex;align-items:center;gap:10px;font:500 clamp(22px,2.2vw,30px)/1.1 'Fustat','Inter',sans-serif;letter-spacing:-.04em;color:var(--hs-ink);white-space:nowrap}
.hs-fact b svg{width:20px;height:20px;flex:none}
.hs-stars{font:400 15px/1 Inter,sans-serif;letter-spacing:2px;color:#f5b301;font-style:normal}
a.hs-fact:hover b{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}

/* arrive once, quietly */
@media (prefers-reduced-motion:no-preference){
  .hs-copy>*,.hs-facts{animation:hs-rise .9s cubic-bezier(.22,1,.36,1) both}
  .hs-copy>:nth-child(2){animation-delay:.08s}
  .hs-copy>:nth-child(3){animation-delay:.16s}
  .hs-copy>:nth-child(4){animation-delay:.24s}
  .hs-facts{animation-delay:.36s}
  .hs-bg i{animation:hs-shine 1.8s cubic-bezier(.22,1,.36,1) .45s both}
}
@keyframes hs-shine{from{opacity:0;clip-path:inset(0 46% 0 46%)}to{opacity:1;clip-path:inset(0 0 0 0)}}
@keyframes hs-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

@media (max-width:900px){
  .hs-inner{width:calc(100% - 48px)}
  main .hs-crumbs{left:24px;top:96px}
  .hs-copy{padding:124px 0 52px}
  main .hs-facts li{padding:26px 8px 38px}
  main .hs-facts li+li::before{top:26px}
  .hs-fact small{font-size:10px;letter-spacing:.1em}
}
@media (max-width:640px){
  main>section.hs{min-height:max(640px,100svh)}
  .hs-bg{--hs-h:206px}
  .hs-bg{--hs-w:220vw;--hs-hh:110vw;--hs-up:160px}
  .hs-inner{width:calc(100% - 40px)}
  main .hs-crumbs{left:20px;top:88px;font-size:12px}
  .hs-copy{padding:128px 0 64px}
  main .hs-kicker{margin-bottom:20px;font-size:10.5px;letter-spacing:.16em;gap:10px}
  main .hs-kicker::before,main .hs-kicker::after{width:16px}
  .ap-inner-page main h1.hs-title{font-size:clamp(38px,11.4vw,48px);line-height:1.02}
  main .hs-sub{margin-top:20px;font-size:16.5px;line-height:1.6}
  .hs .adh-actions,.hs .bsh2-actions,.hs .ab-actions{margin-top:28px;align-self:stretch;flex-direction:column;align-items:stretch}
  .hs .ab-btn{justify-content:center}
  main .hs-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  main .hs-facts li{padding:20px 6px}
  main .hs-facts li+li::before{top:20px;height:46px}
  main .hs-facts li:nth-child(odd)::before{content:none}
  main .hs-facts li:nth-child(n+3){border-top:1px solid var(--hs-line);padding-bottom:34px}
  .hs-fact{gap:7px}
  .hs-fact b{font-size:22px}
  .hs-stars{font-size:12px;letter-spacing:1px}
}
