/* ═══════════════════════════════════════════════════════════
   NULL SPACE — Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;scroll-behavior:smooth}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;background:#F4F2F0;color:#111;overflow-x:hidden;line-height:1.5}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{border:none;background:none;cursor:pointer;font-family:inherit}
ul{list-style:none}
select{border:none;background:none;font-family:inherit;cursor:pointer;outline:none;appearance:none;-webkit-appearance:none}

:root{
  --bg:  #F4F2F0;
  --bg2: #EFEDED;
  --w:   #FFFFFF;
  --c:   #FAFAF9;
  --t1:  #111111;
  --t2:  #555555;
  --t3:  #999999;
  --acc: #3A8DFF;
  --nav: 68px;
  --xs: 0 1px 3px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.04);
  --sm: 0 4px 16px rgba(0,0,0,.07),0 1px 4px rgba(0,0,0,.04);
  --md: 0 8px 32px rgba(0,0,0,.09),0 2px 8px rgba(0,0,0,.05);
  --lg: 0 20px 56px rgba(0,0,0,.10),0 4px 16px rgba(0,0,0,.06);
  --xl: 0 32px 80px rgba(0,0,0,.12),0 8px 24px rgba(0,0,0,.07);
  --bv: inset 0 1px 0 rgba(255,255,255,.96),inset 0 -1px 0 rgba(0,0,0,.04);
  --bv2: inset 0 1px 0 rgba(255,255,255,1),inset 1px 0 rgba(255,255,255,.5),inset -1px 0 rgba(255,255,255,.4);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --pill: 999px;
}

.eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--t3);margin-bottom:14px}
.screw{position:absolute;width:8px;height:8px;border-radius:50%;background:linear-gradient(145deg,#D2D0CD,#E6E4E1);box-shadow:inset 1px 1px 3px rgba(0,0,0,.3),inset -1px -1px 2px rgba(255,255,255,.8),0 0 0 1.5px #E6E4E1,0 0 0 2.5px rgba(0,0,0,.15),inset 0 0 0 4px rgba(0,0,0,.02);z-index:20}
.s-tl{top:13px;left:13px} .s-tr{top:13px;right:13px} .s-bl{bottom:13px;left:13px} .s-br{bottom:13px;right:13px}
.chip__dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#22c55e;flex-shrink:0} /* Green for 'Operational' */
.chip__dot--sm{width:5px;height:5px}
.btn-dark{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;background:var(--t1);color:#fff;border-radius:var(--pill);font-size:11px;font-weight:700;letter-spacing:.07em;box-shadow:0 4px 16px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.12);cursor:pointer;border:none;font-family:inherit}
.btn-outline{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;background:var(--w);color:var(--t1);border-radius:var(--pill);font-size:10px;font-weight:700;letter-spacing:.07em;border:1.5px solid rgba(0,0,0,.12);box-shadow:var(--xs),var(--bv)}

/* NAV */
.nav{position:fixed;top:0;left:0;right:0;z-index:999;height:var(--nav);background:rgba(244,242,240,.93);backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);border-bottom:1px solid rgba(0,0,0,.06);display:flex;align-items:center;padding:0 44px;gap:0}
.nav__logo{font-size:13px;font-weight:800;line-height:1.2;letter-spacing:.05em;margin-right:auto}
.nav__links{display:flex;align-items:center;gap:2px;position:absolute;left:50%;transform:translateX(-50%)}
.nl{display:flex;align-items:center;gap:7px;padding:9px 16px;font-size:10.5px;font-weight:600;letter-spacing:.09em;color:var(--t3);border-radius:var(--pill)}
.nl:hover,.nl.active{color:var(--t1)}
.nd{width:9px;height:9px;border-radius:50%;border:1.5px solid var(--t3);flex-shrink:0}
.nd--on,.nl.active .nd{background:var(--t1);border-color:var(--t1)}
.nav__cta{display:flex;align-items:center;gap:8px;padding:11px 20px;background:var(--t1);color:#fff;border-radius:var(--pill);font-size:10.5px;font-weight:700;letter-spacing:.07em;box-shadow:0 4px 14px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.12);margin-left:auto;position:relative;overflow:hidden}
.nav__cta::after{content:'';position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);transform:skewX(-20deg);animation:shimmer 4s ease-in-out infinite 2s}
@keyframes shimmer{0%{left:-100%}40%{left:120%}100%{left:120%}}
.nav__burger{display:none;flex-direction:column;gap:5px;width:36px;height:36px;align-items:center;justify-content:center;border-radius:9px;background:var(--w);box-shadow:var(--sm)}
.nav__burger span{display:block;width:17px;height:1.5px;background:var(--t1);border-radius:2px}
.mob{display:flex;opacity:0;pointer-events:none;position:fixed;top:var(--nav);left:0;right:0;bottom:auto;z-index:998;background:rgba(244,242,240,.95);backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);flex-direction:column;align-items:center;justify-content:flex-start;padding:32px 24px;gap:20px;border-bottom:1px solid rgba(0,0,0,.06);transform:translateY(-10px);transition:opacity 0.3s ease,transform 0.3s cubic-bezier(0.22,1,0.36,1)}
.mob.open{opacity:1;pointer-events:auto;transform:translateY(0)}
.mob__x{display:none}
.mob__a{font-size:18px;font-weight:700;color:var(--t2);letter-spacing:-0.01em;transition:color 0.3s ease,transform 0.3s cubic-bezier(0.22,1,0.36,1)}
.mob__a:active,.mob__a.active{color:var(--t1);transform:scale(1.05)}

/* HERO */
.hero{padding-top:var(--nav);min-height:100vh;background:var(--bg);display:flex;align-items:center;overflow:hidden}
.hero__inner{width:100%;max-width:1160px;margin:0 auto;padding:40px 40px 60px;display:grid;grid-template-columns:1fr 1.15fr;gap:40px;align-items:center}
.hero__left{display:flex;flex-direction:column;align-items:flex-start}
.hero__h1{font-size:clamp(36px,5.2vw,66px);font-weight:800;letter-spacing:-.03em;line-height:1.04;color:var(--t1);margin-bottom:18px}
.hero__p{font-size:14px;line-height:1.72;color:var(--t2);margin-bottom:26px;max-width:330px}
.hero__chip{display:none}
.chip__head{font-size:9px;font-weight:700;letter-spacing:.13em;color:var(--t3);margin-bottom:7px}
.chip__row{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--t1)}
.chip__dots{display:flex;gap:4px;margin-top:8px}
.chip__dots span{width:4px;height:4px;border-radius:50%;background:rgba(0,0,0,.13)}
.hero__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align card to the right */
  min-height: 600px;
  padding-right: 0; 
  transform: translateX(32px); /* Shift forward along the X-axis */
}

.hero-card {
  width: 750px;
  height: 440px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 40px 100px rgba(0,0,0,.1), inset 0 1px 1px rgba(255,255,255,0.7);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  position: relative;
  z-index: 10;
}

.hero-card__divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.07), transparent);
}

.hero-card__left, .hero-card__right-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-card__left {
  align-items: flex-start;
  justify-content: center;
}

.hero-card__status .eyebrow {
  margin-bottom: 24px;
}

.status-display {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
  flex-shrink: 0;
}

.status-text {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-card__right-panel {
  position: relative;
}

.dial-container {
  position: relative;
  width: 85%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

.dial-label {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--t3);
  text-transform: uppercase;
  pointer-events: none;
}

.dial-label--top {
  top: 10%;
}

.dial-label--left {
  left: calc(-28% + 1.25cm);
  transform: rotate(-90deg);
}

.dial-label--right {
  right: calc(-28% + 1.25cm);
  transform: rotate(90deg);
}

.dial-label--bottom {
  bottom: calc(4% - 0.5cm);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.5);
  padding: 4px 8px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  color: #22c55e;
}

.dial-label--bottom .status-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* Astronaut */
.h-astro {
  position: absolute;
  top: calc(-190px + 2.6cm);
  right: 50px;
  z-index: 30;
  width: 270px;
  perspective: 1000px;
}
.h-astro img {
  width: 100%;
  filter: drop-shadow(-10px 20px 24px rgba(0,30,60,0.25)) saturate(1.05) brightness(1.02) contrast(1.02);
  position: relative;
  z-index: 2;
  transform-origin: bottom center;
  transition: transform 0.5s var(--ease-spring);
}
.h-astro::before {
  content: '';
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 30px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}
.h-astro::after {
  content: '';
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 50px;
  background: rgba(59, 130, 246, 0.25);
  border-radius: 50%;
  filter: blur(24px);
  z-index: 1;
  pointer-events: none;
}

/* PROJECTS */
.projects{padding:80px 0;background:var(--bg2);border-top:1px solid rgba(0,0,0,.05)}
.projects__inner{max-width:1160px;margin:0 auto;padding:0 40px;display:grid;grid-template-columns:230px 1fr;gap:44px;align-items:start}
.projects__h2{font-size:clamp(28px,3.5vw,44px);font-weight:800;letter-spacing:-.025em;line-height:1.1;margin-bottom:14px}
.projects__p{font-size:13px;line-height:1.7;color:var(--t2);margin-bottom:20px;max-width:200px}
.projects__nav{display:flex;align-items:center;gap:12px;margin-top:24px}
.projects__count{font-size:12px;color:var(--t3);font-weight:500}
.projects__count strong{font-weight:800;color:var(--t1);font-size:14px}
.p-arrows{display:flex;gap:6px}
.p-arrow{width:30px;height:30px;border-radius:50%;background:var(--w);border:1.5px solid rgba(0,0,0,.1);box-shadow:var(--xs),var(--bv);display:flex;align-items:center;justify-content:center;color:var(--t3)}
.p-arrow--on{background:var(--t1);color:#fff;border-color:transparent;box-shadow:var(--sm)}
.p-card{background:var(--w);border-radius:var(--r-xl);border:1px solid rgba(0,0,0,.07);box-shadow:var(--xl),var(--bv2);padding:28px;position:relative;overflow:hidden}
.p-card__inner{display:grid;grid-template-columns:1fr 1.35fr;gap:24px;align-items:start}
.p-card__title{font-size:21px;font-weight:800;letter-spacing:-.025em;line-height:1.2;margin-bottom:10px}
.p-tag{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.1em;padding:4px 10px;border-radius:var(--pill);background:rgba(0,0,0,.05);color:var(--t2);border:1px solid rgba(0,0,0,.08);margin-bottom:12px}
.p-card__desc{font-size:12.5px;line-height:1.7;color:var(--t2);margin-bottom:18px}
.p-card__link{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--t1)}
.p-tablet{display:flex;flex-direction:column;align-items:center}
.p-tablet__frame{background:linear-gradient(145deg,#EEECEA,#E0DEDD);border-radius:16px 16px 10px 10px;padding:7px 7px 0;box-shadow:var(--lg),var(--bv2),0 0 0 1px rgba(0,0,0,.06);width:100%;max-width:340px}
.p-tablet__screen{background:#070C1B;border-radius:11px 11px 0 0;aspect-ratio:16/9.5;overflow:hidden;position:relative}
.p-tablet__img{width:100%;height:100%;object-fit:cover}
.p-tablet__hud{position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,6,28,.52) 0%,rgba(0,6,28,.18) 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:14px}
.p-hud-dot{display:block;width:5px;height:5px;border-radius:50%;background:var(--acc);margin-bottom:7px}
.p-hud-title{font-size:15px;font-weight:800;color:#fff;line-height:1.2;letter-spacing:-.015em;margin-bottom:9px}
.p-hud-link{font-size:10px;font-weight:700;letter-spacing:.07em;color:var(--acc)}
.p-tablet__wdots{position:absolute;top:8px;right:10px;display:flex;gap:4px}
.p-tablet__wdots span{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.18)}
.p-deck{width:100%;max-width:340px;background:linear-gradient(to bottom,#E4E2DF,#D8D6D3);border-radius:0 0 12px 12px;padding:9px 14px;display:flex;align-items:center;gap:10px;box-shadow:0 4px 14px rgba(0,0,0,.09),0 0 0 1px rgba(0,0,0,.06)}
.p-deck__knob{width:30px;height:30px;border-radius:50%;background:linear-gradient(145deg,#DEDDDB,#CACAC7);box-shadow:3px 3px 6px rgba(0,0,0,.13),-2px -2px 5px rgba(255,255,255,.7),inset 1px 1px 2px rgba(255,255,255,.5);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.p-deck__knob-inner{width:13px;height:13px;border-radius:50%;background:linear-gradient(145deg,#D2D0CE,#BFBDBB);box-shadow:1px 1px 3px rgba(0,0,0,.1),-1px -1px 2px rgba(255,255,255,.6)}
.p-deck__label{font-size:8.5px;font-weight:700;letter-spacing:.1em;color:rgba(0,0,0,.32)}
.p-deck__btns{display:flex;gap:5px;margin-left:auto}
.p-deck__btns span{width:8px;height:8px;border-radius:50%;background:linear-gradient(145deg,#D2D0CE,#C2C0BE);box-shadow:1px 1px 2px rgba(0,0,0,.1),-.5px -.5px 1px rgba(255,255,255,.7)}

/* ABOUT */
.about{padding:80px 0;background:var(--bg);border-top:1px solid rgba(0,0,0,.05)}
.about__inner{max-width:1160px;margin:0 auto;padding:0 40px;display:grid;grid-template-columns:200px 1fr 170px;gap:20px;align-items:start}
.about__h2{font-size:clamp(26px,3.2vw,40px);font-weight:800;letter-spacing:-.025em;line-height:1.1;margin-bottom:14px}
.about__p{font-size:13px;line-height:1.7;color:var(--t2);margin-bottom:22px}
.about__cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.svc-card{background:var(--w);border-radius:var(--r-lg);border:1px solid rgba(0,0,0,.07);box-shadow:var(--md),var(--bv2);padding:20px 16px;position:relative;overflow:hidden}
.svc-card::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.95),transparent)}
.svc-card__ico{margin-bottom:12px}
.svc-card__num{display:block;font-size:10px;font-weight:700;letter-spacing:.08em;color:var(--t3);margin-bottom:5px}
.svc-card__title{font-size:14px;font-weight:700;letter-spacing:-.01em;margin-bottom:7px}
.svc-card__desc{font-size:12px;line-height:1.65;color:var(--t2)}
.about__astro{display:flex;flex-direction:column;align-items:center;padding-top:10px}
.about__astro img{width:100%;max-width:155px;}

/* TEAM */
.team{padding:80px 0;background:var(--bg2);border-top:1px solid rgba(0,0,0,.05)}
.team__inner{max-width:1160px;margin:0 auto;padding:0 40px}
.team__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:32px}
.t-card{background:var(--w);border-radius:var(--r-lg);padding:24px;text-align:center;border:1px solid rgba(0,0,0,.07);box-shadow:var(--md),var(--bv2);position:relative;overflow:hidden;transition:transform 0.4s var(--ease),box-shadow 0.4s ease}
.t-card:hover{transform:translateY(-5px);box-shadow:var(--lg),var(--bv2)}
.t-card__img{width:90px;height:90px;border-radius:50%;margin:0 auto 16px;object-fit:cover;background:var(--bg2);border:3px solid var(--w);box-shadow:var(--sm)}
.t-card__name{font-size:16px;font-weight:700;color:var(--t1);margin-bottom:4px}
.t-card__role{font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--acc);margin-bottom:12px}
.t-card__bio{font-size:12px;color:var(--t2);line-height:1.6}

/* FEEDBACK DISPLAY */
.feedback__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:32px}
.fb-card{background:var(--w);border-radius:var(--r-lg);padding:24px;border:1px solid rgba(0,0,0,.07);box-shadow:var(--md),var(--bv2);display:flex;flex-direction:column;gap:12px;transition:transform 0.4s var(--ease),box-shadow 0.4s ease}
.fb-card:hover{transform:translateY(-4px);box-shadow:var(--lg),var(--bv2)}
.fb-card__stars{display:flex;gap:4px;color:#FFB800;font-size:14px}
.fb-card__msg{font-size:13px;color:var(--t2);line-height:1.6;flex-grow:1;font-style:italic}
.fb-card__name{font-size:12px;font-weight:700;color:var(--t1)}

/* CONTACT */
.contact{padding:80px 0;background:var(--bg2);border-top:1px solid rgba(0,0,0,.05)}
.contact__inner{max-width:1160px;margin:0 auto;padding:0 40px;display:grid;grid-template-columns:230px 1fr;gap:56px;align-items:start}
.contact__h2{font-size:clamp(24px,3vw,36px);font-weight:800;letter-spacing:-.025em;line-height:1.15;margin-bottom:28px}
.c-info{display:flex;flex-direction:column;gap:12px;margin-bottom:32px}
.c-info-item{font-size:12.5px;color:var(--t2);display:flex;align-items:center}
.c-info-item strong{color:var(--t1);font-weight:700;width:80px;flex-shrink:0}
.c-info-item a{color:var(--acc);font-weight:600;transition:opacity 0.2s}
.c-info-item a:hover{opacity:0.7;text-decoration:underline}
.c-orbit{width:76px;height:76px;position:relative;display:flex;align-items:center;justify-content:center}
.c-orbit__r1,.c-orbit__r2{position:absolute;border-radius:50%;border:1px solid rgba(0,0,0,.1)}
.c-orbit__r1{width:76px;height:76px}
.c-orbit__r2{width:48px;height:48px;border-color:rgba(0,0,0,.07)}
.c-orbit__ball{width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 34% 34%,#F8F6F4,#DDDBD8);box-shadow:2px 2px 5px rgba(0,0,0,.11),-1px -1px 3px rgba(255,255,255,.8);z-index:1}
.c-panel{background:var(--w);border-radius:var(--r-xl);border:1px solid rgba(0,0,0,.07);box-shadow:var(--xl),var(--bv2);padding:24px 26px 22px;position:relative;overflow:hidden}
.c-panel__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.c-panel__label{font-size:10px;font-weight:700;letter-spacing:.13em;color:var(--t3)}
.c-form{display:flex;flex-direction:column;gap:10px}
.c-form__row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.f-inp{width:100%;padding:11px 14px;background:var(--bg);border:1.5px solid rgba(0,0,0,.08);border-radius:var(--r-md);font-family:inherit;font-size:13px;color:var(--t1);box-shadow:inset 0 2px 4px rgba(0,0,0,.03),0 1px 0 rgba(255,255,255,.9);outline:none;resize:none}
.f-inp::placeholder{color:var(--t3)}
.f-ta{min-height:82px}
.c-form__foot{display:flex;align-items:center;gap:14px;margin-top:4px}
.send-orb{width:72px;height:72px;border-radius:50%;flex-shrink:0;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}
.orb__rings{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.orb__r{position:absolute;border-radius:50%}
.orb__r--1{width:100%;height:100%;border:1.2px solid rgba(0,0,0,.09)}
.orb__r--2{width:80%;height:80%;border:1.2px solid rgba(0,0,0,.07)}
.orb__r--3{width:60%;height:60%;border:1.2px solid rgba(58,141,255,.2)}
.orb__r--4{width:42%;height:42%;border:1.2px solid rgba(58,141,255,.35)}
.orb__core{position:relative;z-index:1;width:50px;height:50px;border-radius:50%;background:radial-gradient(circle at 38% 38%,#5AAEFF,#1A70D8,#0A4EA0);box-shadow:0 5px 20px rgba(58,141,255,.5),0 0 0 2px rgba(58,141,255,.15),inset 0 1px 0 rgba(255,255,255,.28);display:flex;align-items:center;justify-content:center}
.orb__dots{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.orb__dots span{width:4px;height:4px;border-radius:50%;background:rgba(0,0,0,.12)}
.c-success{display:none;position:absolute;inset:0;z-index:10;background:var(--w);border-radius:inherit;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:40px}
.c-success.show{display:flex}
.c-success h3{font-size:19px;font-weight:700}
.c-success p{font-size:13px;color:var(--t2);line-height:1.6}

/* FOOTER */
.footer{background:#ECEAE8;border-top:1px solid rgba(0,0,0,.06);padding:20px 0}
.footer__inner{max-width:1160px;margin:0 auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer__socials{display:flex;gap:10px}
.footer__ico{min-width:34px;width:auto;height:34px;padding:0 9px;border-radius:var(--pill);background:var(--w);border:1px solid rgba(0,0,0,.08);box-shadow:var(--xs),var(--bv);display:flex;align-items:center;justify-content:center;color:var(--t2);gap:6px}
.footer__copy{font-size:10px;font-weight:600;letter-spacing:.09em;color:var(--t3)}

/* RESPONSIVE */
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════ */

/* Tablet Landscape & Down */
@media (max-width: 1024px) {
  /* General Layout & Spacing */
  .projects, .about, .team, .contact {
    padding: 48px 0; /* 40% reduction from 80px */
  }
  .projects__inner,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 40px 32px 60px;
  }
  .hero__right {
    order: -1; /* Card on top */
    min-height: auto;
    transform: translateX(0);
    padding-right: 0;
    display: flex;
    justify-content: center;
  }
  .hero-card {
    width: 640px;
    height: 390px;
  }
  .status-text { font-size: 32px; }
  .dial-img { width: 80%; height: 80%; }
  .h-astro {
    width: 220px; /* ~20% smaller */
    top: calc(-150px + 2.6cm);
    right: 30px;
  }

  /* Projects */
  .p-card__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p-tablet__frame { max-width: none; }

  /* About */
  .about__astro { display: none; }
  .about__cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tablet Portrait & Down */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 0 24px; }
  .nav__links,.nav__cta{display:none}
  .nav__burger{display:flex}

  /* General Padding */
  .projects__inner,
  .about__inner,
  .team__inner,
  .contact__inner,
  .footer__inner {
    padding: 0 24px;
  }

  /* Hero */
  .hero__inner {
    padding: calc(32px + 3cm) 24px 52px;
    gap: 40px;
  }
  .hero__h1 { font-size: clamp(38px, 10vw, 48px); }
  .hero-card {
    width: 100%;
    max-width: 480px;
    height: 290px;
    border-radius: 32px;
  }
  .hero-card__left, .hero-card__right-panel { padding: 32px; }
  .status-text { font-size: 26px; }
  .dial-img { width: 85%; height: 85%; transform: scale(1.4); }
  .h-astro {
    width: 180px; /* ~33% smaller */
    top: calc(-120px + 0.1cm);
    right: 20px;
  }

  /* Card Paddings */
  .p-card { 
    padding: 20px; 
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    z-index: 10;
    margin: 0 auto;
    max-width: 520px;
  }
  .svc-card { padding: 16px; }
  .t-card { padding: 20px; }
  .fb-card { padding: 20px; }
  .c-panel { padding: 20px; }

  /* Projects */
  .p-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- PORTFOLIO PAGE: MOBILE OVERRIDE --- */
  /* Disable 3D carousel stage on mobile and allow for vertical scrolling */
  #projects-3d-stage {
    height: auto !important;
    perspective: none !important;
    overflow: visible !important;
  }
  /* Re-style the spinner to be a simple flex container */
  #projects-3d-spinner {
    position: relative !important;
    transform-style: flat !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  /* Reset individual cards from absolute positioning to static flow */
  .ns-3d-card {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    opacity: 1 !important; /* Override JS opacity for scroll reveal */
    filter: none !important; /* Override JS blur for scroll reveal */
  }

  /* Projects Background Text Effect */
  .projects { position: relative; z-index: 1; }
  .projects__left {
    position: sticky;
    top: 30vh;
    z-index: 0;
    text-align: center;
    margin-bottom: 60px;
    will-change: filter, opacity, transform;
  }
  .projects__left .projects__p { max-width: 100%; margin: 0 auto; }

  /* Contact Form */
  .c-form__row { grid-template-columns: 1fr; }
}

/* Mobile Landscape & Down */
@media (max-width: 640px) {
  .eyebrow { font-size: 9px; }

  /* Hero */
  .hero-card {
    height: 240px;
    border-radius: 26px;
  }
  .hero-card__left, .hero-card__right-panel { padding: 24px; }
  .status-display { gap: 14px; }
  .status-dot { width: 10px; height: 10px; }
  .status-text { font-size: 21px; }
  .dial-label { font-size: 6px; }
  .dial-label--top { top: calc(10% - 0.5cm); }
  .dial-label--left { left: calc(-28% - 0.25cm); }
  .dial-label--right { right: calc(-28% - 0.25cm); }
  .dial-label--bottom { padding: 3px 6px; gap: 6px; bottom: calc(4% - 1cm); }
  .dial-label--bottom .status-dot { width: 5px; height: 5px; }
  .h-astro {
    width: 150px; /* ~45% smaller */
    top: calc(-100px + 0.1cm);
    right: 15px;
  }

  /* Projects */
  .p-card__desc {
    -webkit-line-clamp: 2;
  }

  /* About */
  .about__cards{grid-template-columns:1fr;gap:16px}

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 20px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .hero__h1{font-size:34px}
  .hero__p { font-size: 13px; }
  .hero-card {
    height: 200px;
    border-radius: 22px;
  }
  .hero-card__left, .hero-card__right-panel { padding: 20px; }
  .status-text { font-size: 17px; }
  .dial-label { font-size: 5.5px; }
  .h-astro {
    width: 135px; /* 50% smaller */
    top: calc(-90px + 0.1cm);
    right: 10px;
  }
  .c-form__foot{flex-wrap:wrap}
  .p-card { padding: 16px; }
  .p-card__title { font-size: 17px; margin-bottom: 8px; }
  .p-card__desc { font-size: 11.5px; margin-bottom: 12px; }
  .p-tablet__frame { width: 95%; margin: 0 auto; }
  .svc-card__title { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   CINEMATIC 3D PAGE TRANSITIONS
   ═══════════════════════════════════════════════════════════ */
html, body {
  /* transition: background-color 1.5s ease; -- Handled by overlay */
  min-height: 100vh;
}
html.cinematic-leaving, body.cinematic-leaving {
  /* background-color: #05070A !important; -- Handled by overlay */
  overflow: hidden;
}
body.cinematic-leaving .nav,
body.cinematic-leaving .footer {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
body.cinematic-leaving .footer {
  transform: translateY(100%);
}

/* Surrounding Environment (Drifts Backward & Falls) */
body.cinematic-leaving section > div > *:not(.cine-selected-card),
body.cinematic-leaving .ns-3d-card:not(.cine-selected-card) {
  transform: perspective(2500px) translate3d(0, 300px, -700px) rotateX(15deg) rotateY(-8deg) !important;
  opacity: 0 !important;
  filter: blur(12px) !important;
  transition: transform 0.8s cubic-bezier(0.34, 0, 0.2, 1), opacity 0.6s ease, filter 0.8s ease !important;
  pointer-events: none;
}

/* Selected Use Card (Moves Forward & Tracks Camera) */
.cine-selected-card {
  transform: perspective(2500px) translate3d(5vw, -5vh, 250px) rotateX(-5deg) rotateY(4deg) scale(1.08) !important;
  opacity: 0 !important; /* Fades out at the absolute end */
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease 0.5s !important;
  z-index: 9999 !important;
  box-shadow: 0 100px 200px rgba(0,0,0,0.25), 0 0 120px rgba(58,141,255,0.15) !important;
}

/* Fullscreen Transition Overlay (Safety Net) */
.transition-overlay {
  position: fixed;
  inset: 0;
  background-color: #FFFFFF;
  z-index: 8000; /* Below selected card, above all content */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.transition-overlay.is-active {
  opacity: 1;
}

/* Volumetric Environment Container (lives inside overlay) */
.cine-env {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(circle at 50% 30%, rgba(58,141,255,0.12) 0%, transparent 70%);
  mix-blend-mode: normal;
}
.transition-overlay.is-active .cine-env {
  opacity: 1;
}

/* Light Rays */
.cine-rays {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg at 50% -20%, rgba(0,0,0,0.03) 0deg, transparent 40deg, rgba(58,141,255,0.08) 80deg, transparent 120deg, rgba(0,0,0,0.03) 160deg, transparent 200deg);
  filter: blur(35px);
  transform: translateY(-100px) scale(1.2);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.5;
}
body.cinematic-leaving .cine-rays { transform: translateY(0) scale(1); }

/* 3D Depth Particles */
.cine-particle {
  position: absolute;
  background: #3A8DFF;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(58,141,255,0.6), 0 0 24px rgba(58,141,255,0.3);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
  transform: translate3d(0,0,0);
}
body.cinematic-leaving .cine-particle {
  transform: translate3d(var(--dx), var(--dy), var(--dz));
  opacity: 0;
}
