/* Art direction. Composition, scale and light only: copy, palette, order and behaviour are unchanged,
   and every animation still comes from motion.css. Each section gets its own composition:
   hero = one lit scene · Selah = wide stage · Harmony = split portrait · LaBelle = edge-to-edge screen ·
   Results = data poster · Services = open product stage · About = bleeding portrait · Contact = closing statement. */

/* ---------- Header: dark glass over the hero scene ---------- */
.site-header[data-on-dark]{background:rgba(7,11,21,.9);border-bottom-color:#ffffff14;-webkit-backdrop-filter:saturate(1.6) blur(20px);backdrop-filter:saturate(1.6) blur(20px)}
.site-header[data-on-dark]:not(.menu-open) nav a,.site-header[data-on-dark] .nav-cta{color:#f5f5f7}
.site-header[data-on-dark] .nav-cta{border-color:#ffffff47}
@media(hover:hover) and (pointer:fine){.site-header[data-on-dark] .nav-cta:hover{background:#f5f5f7;color:var(--ink)}}
.site-header[data-on-dark] .brand img{content:url(/assets/brand/claratech-logo-nav-dark.svg)}
.site-header[data-on-dark] .menu-icon,.site-header[data-on-dark] .menu-icon:before,.site-header[data-on-dark] .menu-icon:after{background:#f5f5f7}
.site-header[data-on-dark] :focus-visible{outline-color:#fff}
.site-header[data-on-dark] .site-menu :focus-visible{outline-color:var(--ink)}
@media(max-width:760px){.js .site-menu{background:var(--paper);box-shadow:0 30px 60px -30px #0008}}

/* ---------- Hero: one lit scene, the headline inside it ---------- */
@keyframes mScene{from{clip-path:inset(5% 4% 6% 4% round 28px)}to{clip-path:inset(0 round 0)}}
.hero{position:relative;background:#070b15;color:var(--on-dark);overflow:hidden;isolation:isolate}
.hero .hero-kicker{color:#9aa3b5}
.hero h1{color:#fff}
.hero h1 .h-line,.motion .hero h1 .h-line{display:block;width:max-content;max-width:100%}
.hero h1 br{display:none}
.hero .lead{color:#b4bccb}
.hero .text-link{color:#fff}
.hero :focus-visible{outline-color:#fff}
.launch-stage.hero-stage{background:transparent;border-radius:0}
.motion .hero-stage{animation-name:mScene}
.hs-light{background:radial-gradient(55% 75% at 72% 16%,#30466f 0%,#17233f 42%,#080d19 78%)}
.hs-art:before{content:'';position:absolute;left:36%;right:-4%;bottom:6%;height:80px;border-radius:50%;background:#000;opacity:.55;filter:blur(40px);pointer-events:none}
.hs-window{box-shadow:0 0 0 1px #ffffff30,0 80px 120px -40px #000,0 40px 160px -60px #8aa6ec70}
.hs-phone{box-shadow:inset 0 0 0 1.5px #a4a9b3,inset 0 0 0 3.5px #121318,0 90px 120px -40px #000,0 0 0 1px #00000080}

@media(min-width:1001px){
  .hero{display:flex;min-height:max(700px,min(960px,calc(100svh - 64px)));padding:0}
  .hero .hero-grid{position:static;display:block;width:min(1240px,calc(100% - 100px));margin:0 auto}
  .hero .hero-copy{position:relative;z-index:6;display:block;width:min(600px,46%);padding:clamp(56px,10vh,120px) 0 120px;text-align:left}
  .hero .hero-kicker{margin-bottom:24px}
  .hero h1{font-size:clamp(60px,6.5vw,98px);line-height:.95;margin:0}
  .hero h1 .h-line{white-space:nowrap}
  .hero .lead{max-width:420px;margin:30px 0 0;font-size:19px}
  .hero .actions{justify-content:flex-start;margin-top:32px}
  .launch-stage.hero-stage{position:absolute;inset:0;width:auto;height:auto;margin:0;overflow:visible;z-index:1}
  .hs-window{left:auto;right:-8%;top:13%;width:min(60vw,1000px)}
  .hs-phone{left:44%;right:auto;top:30%;width:clamp(184px,15.5vw,250px)}
  .hs-booking{left:auto;right:9%;top:auto;bottom:9%;width:304px}
  .hs-rail{left:max(50px,calc((100% - 1240px) / 2));bottom:40px}
}
@media(min-width:1001px) and (max-width:1240px){
  .hero .hero-copy{width:41%}
  .hero .lead{font-size:17px}
  .hs-phone{left:47%;width:172px}
  .hs-booking{right:3%;width:276px}
}
@media(max-width:1000px){
  .hero{padding:52px 0 8px}
  .hero .hero-copy{display:block;text-align:left}
  .hero .lead{max-width:44ch;margin:24px 0 0}
  .hero .actions{justify-content:flex-start;margin-top:26px}
  .launch-stage.hero-stage{width:100vw;margin:24px 0 0 calc(50% - 50vw)}
}
@media(max-width:760px){
  .launch-stage.hero-stage{width:100vw;margin:20px 0 0 calc(50% - 50vw);border-radius:0}
  .hs-art:before{left:20%;right:0;bottom:12%}
}

/* ---------- Work ---------- */
.work-intro h2{font-size:clamp(60px,9.2vw,144px);line-height:.92;letter-spacing:-.06em}
.story{padding:96px 0 64px}
.story-copy h3{font-size:clamp(56px,7vw,112px);line-height:.92}

/* Selah Ridge Care Home: a wide stage; the desktop pushes in as you scroll. */
.story-selah .story-collage{aspect-ratio:1.9}
.story-selah .c-desktop{width:84%;right:11%}
.story-selah .c-phone{width:17%;right:0}
.story-selah .c-detail-a{width:25%;left:0;bottom:0}
@media(min-width:1000px) and (min-height:750px) and (prefers-reduced-motion:no-preference){
  /* Shorter pin: just enough travel for the push-in, no empty band under the devices. */
  .work-live .scene-track{height:calc(min(1240px, 100vw - 100px) / 1.9 + 140px)}
  .story-selah .c-desktop{transform:scale(calc(.9 + var(--scene-progress) * .1))}
  .story-selah .c-phone{transform:translateX(calc((1 - var(--scene-progress)) * 70px))}
}

/* Harmony Family Health: a split portrait; the phone leads, the desktop recedes behind it. */
@media(min-width:1001px){
  .story-harmony .story-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:56px;align-items:center}
  .story-harmony .story-copy{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:flex-start}
  .story-harmony .story-copy>*{grid-column:auto}
  .story-harmony .story-copy h3{order:-1;margin:0 0 22px;font-size:clamp(56px,6.2vw,100px)}
  .story-harmony .story-copy .story-index{order:-2;margin-bottom:14px}
  .story-harmony .story-collage{grid-column:2;grid-row:1/span 2;width:100%;aspect-ratio:.98;margin:0}
  .story-harmony .project-details{grid-column:1;grid-row:2;align-self:start;margin-top:28px}
  .story-harmony .tour-bar{grid-column:2;grid-row:3}
  .story-harmony .c-desktop{width:94%;right:-8%;left:auto;top:6%;filter:brightness(.82)}
  .story-harmony .c-phone{width:42%;left:4%;right:auto;top:15%;z-index:3}
  .story-harmony .c-detail-a{width:62%;left:auto;right:-2%;bottom:5%;z-index:4}
}

/* LaBelle Skin: the website edge to edge; phone and shop overlap its lower edge. */
.story-labelle .story-copy{display:flex;flex-direction:column;align-items:center;text-align:center}
.story-labelle .story-copy>*{grid-column:auto;justify-self:center}
.story-labelle .story-copy h3{order:-1;font-size:clamp(72px,11vw,176px);line-height:.86;margin:0 0 20px}
.story-labelle .story-copy .story-index{order:-2}
.story-labelle .project-links{justify-content:center}
.story-labelle .story-copy h3{align-self:center;width:100%;text-align:center}
.story-labelle .story-collage{align-self:flex-start;width:100vw;max-width:none;margin:48px 0 0 calc(50% - 50vw);aspect-ratio:1.72}
.story-labelle .c-desktop{inset:0 0 auto 0;width:100%;height:86%;border:0;border-radius:0;background:none;box-shadow:none}
.story-labelle .c-desktop .browser-bar{display:none}
.story-labelle .c-desktop .browser-view{width:100%;height:100%;aspect-ratio:auto;border-radius:0}
.story-labelle .c-desktop .browser-view img{width:100%;height:100%;object-fit:cover;object-position:center top}
.story-labelle .c-phone{left:auto;right:9%;top:auto;bottom:0;width:15%;z-index:3}
.story-labelle .c-detail-a{left:7%;right:auto;bottom:2%;width:30%;z-index:4}
.story-labelle .story-collage:after{display:none}
@media(max-width:760px){
  .story-labelle .story-collage{aspect-ratio:1.05;margin-top:28px}
  .story-labelle .c-desktop{width:100%!important;left:0!important;top:0!important;height:62%}
  .story-labelle .c-phone{width:44%;right:6%;left:auto;bottom:0;top:auto}
  .story-labelle .c-detail-a{width:50%;left:4%;right:auto;bottom:6%}
}

/* ---------- Results: a data poster with the real chart ---------- */
.results .tile-quote figcaption{margin-inline:auto;justify-content:center;text-align:center}
.results .bento{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);grid-template-areas:"growth growth proof" "visits months proof" "quote quote quote";gap:0}
.results .tile-growth{grid-area:growth}.results .tile-visits{grid-area:visits;border-left:0;padding-left:0}.results .tile-months{grid-area:months}.results .tile-quote{grid-area:quote}
.results-proof{grid-area:proof;align-self:center;margin:0 0 0 64px;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px #ffffff1f,0 70px 120px -40px #000,0 0 180px -50px #e6d3ac55}
.results-proof img{display:block;width:100%;height:auto}
.results .tile-quote blockquote p{font-size:clamp(28px,3.2vw,48px);line-height:1.22;letter-spacing:-.035em;text-wrap:balance}
@media(max-width:1000px){
  .results .bento{grid-template-columns:1fr 1fr;grid-template-areas:"growth growth" "proof proof" "visits months" "quote quote"}
  .results-proof{margin:8px 0 28px}
}

/* ---------- Services: an open product stage, lit per demonstration ---------- */
.service-lab{--svc-light:#273b68}
.service-lab[data-active=systems]{--svc-light:#21407f}
.service-lab[data-active=security]{--svc-light:#2c3a5f}
.service-lab[data-active=workflow]{--svc-light:#4a3e30}
/* Desktop: the copy runs as one row (title left, explanation and controls right) above a full-width stage,
   so the demonstration itself is the largest thing in the section. */
@media(min-width:1001px){
  .services .lab-panel{display:block}
  .services .lab-copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:64px;align-items:end;margin-bottom:8px}
  .services .lab-copy>*{grid-column:2;margin-top:0}
  .services .lab-copy>.lab-number{grid-column:1;grid-row:1;margin-bottom:14px}
  .services .lab-copy>h3{grid-column:1;grid-row:2/span 4;align-self:end;margin:0}
  .services .lab-copy>p:not(.lab-number){margin-top:0}
  .services .lab-copy>.lab-instruction{margin-top:14px!important}
  .services .lab-copy h3 br{display:inline}
}
.services .lab-copy h3{font-size:clamp(44px,5.6vw,88px);line-height:.96;letter-spacing:-.05em}
.services .demo-stage{min-height:560px;border-radius:0;background:radial-gradient(52% 58% at 54% 46%,var(--svc-light) 0%,transparent 72%);box-shadow:none;overflow:visible}
.services .demo-stage:after{content:'';position:absolute;left:20%;right:14%;bottom:90px;height:44px;border-radius:50%;background:#000;opacity:.5;filter:blur(32px);z-index:-1;pointer-events:none}
.services .demo-topline,.services .demo-bottomline{padding-inline:8px}
@media(min-width:1001px){
  .services .demo-stage{min-height:0;background:radial-gradient(48% 62% at 50% 50%,var(--svc-light) 0%,transparent 74%)}
  .services .demo-stage>:is(.layout-workbench,.network-board,.security-console,.workflow-console){width:min(780px,100%);margin-inline:auto}
  .services .layout-workbench{padding:8px 0;height:380px}
  .services .demo-stage:after{left:28%;right:28%;bottom:80px}
}
@media(min-width:1101px){
  .services .demo-stage>:is(.layout-workbench,.network-board,.security-console,.workflow-console){zoom:1.42}
}
@media(max-width:760px){
  .services .demo-stage{min-height:0;margin-inline:-20px}
  .services .demo-stage:after{bottom:60px}
}

/* ---------- Process: the illustration carries the step ---------- */
.process .stage-visual{width:min(100%,520px)}
.process .step-panel p{font-size:clamp(22px,2vw,30px)}

/* ---------- About: the portrait bleeds off the edge ---------- */
@media(min-width:761px){
  .about{padding:0;overflow:hidden}
  .about .about-grid{width:100%;max-width:none;margin:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,6vw,96px);align-items:center}
  .about-portrait{margin:0;height:min(780px,92vh);border-radius:0 36px 36px 0}
  .about-portrait img{width:100%;height:100%;object-fit:cover}
  .about-copy{max-width:580px;padding:96px 0;margin-right:max(50px,calc((100vw - 1240px) / 2))}
}

/* ---------- Contact: the closing statement ---------- */
.contact{padding:120px 0}
.contact h2{font-size:clamp(64px,10vw,168px);line-height:.9}
.contact-mark{width:clamp(160px,20vw,300px)}
