/* Night-city direction: cinematic skyline, floating glass and travelling light. */
.home .site-header{background:#202934;color:#fff8f0;border-bottom:1px solid #d5e5ff1c}
.home .site-header .header-wrap>.button{background:var(--gradient);border-radius:35px;color:#fff8f0}
.home .site-header .active:after{background:#dfc2b6}
.home-hero.night-hero{height:650px;isolation:isolate;background:#091829;color:#fff;overflow:hidden}
.night-backdrop{position:absolute;inset:-12px;z-index:-3;animation:nightCityDrift 32s ease-in-out infinite alternate;transform-origin:70% 55%}
.night-backdrop img{height:100%;width:100%;object-fit:cover;object-position:center 55%}
.night-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#071726f5 0%,#09182be3 24%,#0c1b3094 44%,#11213b20 70%,#101c331c),linear-gradient(0deg,#0918279c,transparent 30%,#10203920)}
.night-content{position:relative;padding-top:112px;z-index:5;pointer-events:none}
.night-content a{pointer-events:auto}
.night-eyebrow{display:flex;gap:14px;align-items:center;color:#d8dedb;font-size:10px;letter-spacing:.17em;font-weight:600}
.night-eyebrow>span{width:25px;height:1px;background:#d8c7c2}
.night-content h1{font-size:clamp(47px,4.75vw,70px);line-height:1.13;margin-top:28px;max-width:650px;color:#fff8f0}
.night-content h1 em{color:#e9c5bb}
.night-description{color:#d1d9d7;font-size:15px;line-height:1.85;margin-top:28px;max-width:500px}
.night-actions{display:flex;gap:25px;align-items:center;margin-top:30px}
.night-primary{display:inline-flex;align-items:center;gap:27px;min-height:52px;padding:14px 22px;border-radius:35px;background:linear-gradient(112deg,#a47d8e,#8a9d88);color:#fff8f0;font-size:12px;font-weight:550;border:1px solid #ffffff38;box-shadow:0 10px 30px #02091835;transition:transform .25s,filter .25s}
.night-primary>span{font-size:20px;line-height:1}
.night-primary:hover{color:white;filter:brightness(1.14);transform:translateY(-2px)}
.night-secondary{display:inline-flex;gap:13px;align-items:center;font-size:12px;color:#f5eae0;font-weight:500}
.night-secondary>span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;border:0;font-size:18px}
.night-secondary:hover{color:#e9c5bb}
.night-signature{display:flex;align-items:center;gap:15px;font-size:10px;color:#b4c4c1;margin-top:52px}
.night-signature>span{width:30px;height:1px;background:#d8c7c28c}
.night-scene{position:absolute;inset:0 0 0 auto;width:66%;z-index:2;pointer-events:none;perspective:1200px}
.night-stage{position:absolute;width:900px;height:620px;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--night-scale,.9));perspective:1500px;transform-origin:center;}
.night-trails{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.night-trails-back{z-index:0}.night-trails-front{z-index:4}
.night-card{position:absolute;padding:7px;background:linear-gradient(125deg,#e4ecff36,#aebee917);border:1px solid #e4edff8a;box-shadow:0 18px 50px #020b1a36,inset 0 0 0 1px #ecf3ff1a;border-radius:50%;backdrop-filter:blur(5px);will-change:transform;transform-style:preserve-3d}
.night-card:after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:50%;background:linear-gradient(115deg,#ffffff24,transparent 35%,transparent 80%,#bddfff20)}
/* A spaced triangular composition: large people, medium applications, small infrastructure. */
.night-card-technology{width:170px;height:170px;left:600px;top:95px;padding:5px}
.night-card-people{width:220px;height:220px;left:310px;top:240px;padding:6px}
.night-card-infrastructure{width:120px;height:120px;left:650px;top:380px;padding:4px}
.night-photo{height:100%;width:100%;position:relative;overflow:hidden;border-radius:50%;background:#142333}
.night-photo svg{height:100%;width:100%;display:block}
.night-card-caption{position:absolute;left:50%;bottom:23px;transform:translateX(-50%);display:flex;justify-content:center;align-items:center;white-space:nowrap;padding:6px 9px;border:1px solid #e4edff40;border-radius:24px;background:#091829d9;color:#f5eae0;font-size:7px;letter-spacing:.08em;font-weight:500}
.night-card-technology .night-card-caption{bottom:19px}
.night-scene-note{position:absolute;right:8%;bottom:63px;font-size:7px;letter-spacing:.2em;color:#d8c7c2;line-height:1.9;text-align:right}
.night-scene-note strong{font-weight:500;color:#b4c4c1}
.night-bottom{position:absolute;bottom:30px;left:0;right:0;z-index:6;display:flex;align-items:center;justify-content:space-between}
.night-bottom>span{font-size:8px;letter-spacing:.17em;color:#d8c7c2}
.night-hero .motion-toggle{color:#efe8df;background:#122b3199;border:1px solid #d9ccc050;border-radius:35px;padding:6px 11px;font-size:9px;backdrop-filter:blur(8px)}
.night-principles{position:relative;z-index:7;display:grid;grid-template-columns:repeat(3,1fr);margin-top:-1px;padding:24px 0;background:#f3f3ef;border:1px solid #fff;border-radius:0 0 5px 5px;box-shadow:0 12px 36px #172b4210}
.night-principles>div{padding:0 36px}
.night-principles>div+div{border-left:1px solid #b2bdc657}
.night-principles strong{font-size:19px;line-height:1.3;font-weight:500;letter-spacing:-.04em;display:block;color:#28394c}
.night-principles span{display:block;margin-top:7px;font-size:11px;color:#7c8490}
.home .statement{background:#f4f0e9;padding-top:48px;padding-bottom:43px}
.home .statement h2{color:#292834}.home .statement p{color:#776d70}
.night-hero.motion-paused .night-backdrop{animation-play-state:paused}
@keyframes nightCityDrift{from{transform:scale(1) translateX(0)}to{transform:scale(1.055) translateX(-8px)}}
@media(min-width:1700px){.night-scene{width:1100px;right:calc((100vw - 1680px)/2)}.night-content h1{font-size:76px}}
@media(min-width:901px) and (max-width:1200px){.night-content h1{font-size:54px}.night-content{padding-top:117px}.night-description{max-width:395px;font-size:14px}.night-description .desktop-only{display:none}.night-actions{gap:18px}.night-primary{font-size:11px;padding-inline:17px;gap:18px}.night-secondary{font-size:10px;gap:9px}.night-scene{width:64%;right:-3%}.night-eyebrow{font-size:8px;letter-spacing:.13em}}
@media(max-width:900px){.home-hero.night-hero{height:1010px}.night-content{padding-top:51px}.night-content h1{font-size:clamp(48px,7.3vw,67px);max-width:730px}.night-eyebrow{font-size:9px}.night-description{margin-top:23px}.night-actions{margin-top:25px}.night-signature{margin-top:29px}.night-scene{top:385px;bottom:37px;width:100%}.night-backdrop img{object-position:65% center}.night-shade{background:linear-gradient(180deg,#081829eb 0%,#081829d1 30%,#101d374d 60%,#07182755),linear-gradient(90deg,#0b192d66,transparent)}.night-scene-note{bottom:43px;right:8%}.night-bottom{bottom:24px}.night-principles>div{padding:0 22px}.night-principles strong{font-size:17px}.night-principles span{font-size:10px}.home .site-header nav{background:#202934}}
@media(max-width:600px){.home-hero.night-hero{height:840px}.night-content{padding-top:38px}.night-eyebrow{font-size:7px;letter-spacing:.1em;gap:10px}.night-eyebrow>span{width:18px}.night-content h1{font-size:clamp(37px,9.6vw,55px);margin-top:24px;line-height:1.15}.night-description{font-size:13px;line-height:1.8;max-width:340px;margin-top:24px}.night-actions{gap:17px;flex-wrap:wrap;margin-top:26px}.night-primary{font-size:10px;padding:12px 15px;gap:17px;min-height:45px}.night-secondary{font-size:10px;gap:8px}.night-secondary>span{width:24px;height:24px;font-size:15px}.night-signature{font-size:8px;gap:10px;margin-top:27px}.night-signature>span{width:20px}.night-scene{top:357px;bottom:63px}.night-stage{left:47%}.night-scene-note{bottom:15px;font-size:6px;right:7%}.night-bottom{bottom:24px}.night-bottom>span{font-size:6px;letter-spacing:.11em}.night-principles{width:100%;padding:21px 10px;border-radius:0;box-shadow:none}.night-principles>div{padding:0 12px}.night-principles strong{font-size:14px;line-height:1.4}.night-principles span{font-size:8px;line-height:1.65;margin-top:5px}.home .statement{padding-top:32px;padding-bottom:30px}}
@media(max-width:380px){.night-content h1{font-size:35px}.night-actions{gap:12px}.night-secondary{font-size:9px}.night-primary{padding-inline:12px;font-size:9px}.night-eyebrow{font-size:6px}.night-principles>div{padding-inline:9px}}
@media(prefers-reduced-motion:reduce){.night-backdrop{animation:none}.night-card{will-change:auto}}

/* On smaller screens the scene follows the copy, so text wrapping or zoom
   cannot place the moving artwork on top of links and headings. */
@media(max-width:900px){
  .home-hero.night-hero{height:auto;min-height:0}
  .night-scene{position:relative;inset:auto;width:100%;height:clamp(320px,70vw,540px);margin-top:12px}
  .night-stage{left:50%}
  .night-scene-note{bottom:12px}
  .night-bottom{position:relative;inset:auto;padding:0 0 24px;gap:16px}
}

/* Keep tablet copy and the animated scene together without a tall empty gap. */
@media(min-width:761px) and (max-width:900px){
  .home-hero.night-hero{min-height:600px}
  .night-content{padding-top:84px;padding-bottom:115px}
  .night-content> *{max-width:48%}
  .night-content h1{font-size:clamp(42px,5.5vw,50px)}
  .night-description{font-size:14px}
  .night-actions{flex-wrap:wrap;gap:14px}
  .night-scene{position:absolute;inset:0 0 0 auto;width:54%;height:auto;margin:0}
  .night-scene-note{bottom:72px}
  .night-bottom{position:absolute;bottom:24px;left:0;right:0;padding:0}
  .night-shade{background:linear-gradient(90deg,#071726f5 0%,#09182be5 32%,#0c1b3070 66%,#101c331c),linear-gradient(0deg,#0918279c,transparent 30%)}
}

@media(max-width:760px){
  .home-hero.night-hero{min-height:590px}
  .night-content{padding-top:clamp(44px,10vw,72px);padding-bottom:110px}
  .night-content::before{content:"";position:absolute;inset:0 -20px 40px;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#071726db 0%,#071726a6 58%,#07172645 100%);mask-image:linear-gradient(#000 72%,transparent)}
  .night-content h1,.night-description,.night-signature{text-shadow:0 2px 12px #071726}
  .night-description{font-size:15px;line-height:1.75}
  .night-primary,.night-secondary{font-size:12px}
  .night-signature{font-size:10px;line-height:1.6}
  .night-scene{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:.7}
  .night-scene-note{bottom:70px}
  .night-bottom{position:absolute;inset:auto 0 24px;padding:0}
  .night-bottom>span{font-size:8px}
  .night-shade{background:linear-gradient(90deg,#071726ee,#09182bc9),linear-gradient(0deg,#071726b3,transparent)}
  .night-principles span{font-size:10px}
}

/* A short entrance keeps the mobile message readable while the scene moves. */
@keyframes nightTextEnter{
  from{opacity:.85;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes nightHeadlineGlow{
  0%,100%{color:#e9c5bb;text-shadow:0 0 0 transparent}
  50%{color:#fff0e8;text-shadow:0 0 18px #e9c5bb55}
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference){
  .night-content>.night-eyebrow,
  .night-content>h1,
  .night-content>.night-description,
  .night-content>.night-actions,
  .night-content>.night-signature{animation:nightTextEnter .7s ease-out both}
  .night-content>h1{animation-delay:.08s}
  .night-content>.night-description{animation-delay:.16s}
  .night-content>.night-actions{animation-delay:.24s}
  .night-content>.night-signature{animation-delay:.32s}
  .night-hero.motion-paused .night-content>*{animation:none}
  .night-content h1 em{animation:nightHeadlineGlow 5s ease-in-out infinite}
  .night-hero.motion-paused .night-content h1 em{animation-play-state:paused}
}
