
:root{color-scheme:dark;--cyan:#26e3f2;--muted:#b0c8d9}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#030a14;color:#edf8ff;font:16px/1.6 'Segoe UI',Arial,sans-serif}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid #26e3f2;outline-offset:4px}.shell{min-height:100svh;display:flex;flex-direction:column}header{z-index:5;background:#040c19;border-bottom:1px solid #174560}.wrap{width:min(1180px,calc(100% - 36px));margin:auto}.nav{display:flex;align-items:center;justify-content:space-between;min-height:74px;gap:20px}.brand{display:flex;align-items:center;gap:10px;font-weight:850;letter-spacing:.04em}.brand img{width:45px;height:45px;border-radius:9px}.brand em{font-style:normal;color:var(--cyan)}nav{display:flex;align-items:center;gap:23px;font-size:14px}nav a:hover,nav a[aria-current=page]{color:var(--cyan)}.outline{border:1px solid #19c6e4;padding:9px 15px;border-radius:8px;color:var(--cyan)}.home-main{flex:1;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 45%,#0a2037,#030a14 72%)}.hero{position:relative;width:100%;margin:auto}.hero img{display:block;width:100%;height:auto;max-height:calc(100svh - 148px);object-fit:contain}.hotspot{position:absolute;z-index:2;top:69.5%;height:9%;border-radius:10px}.hotspot.projects{left:33.5%;width:16%}.hotspot.lab{left:50.5%;width:17%}.hotspot{overflow:hidden;isolation:isolate;transition:background .2s ease,box-shadow .2s ease}.hotspot:hover{background:#2ce7ff18;box-shadow:inset 0 0 14px #22eaff55}.hotspot:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px;background:#2ce7ff18;box-shadow:inset 0 0 14px #22eaff55}.hero-caption{position:absolute;left:50%;bottom:3%;transform:translateX(-50%);background:#030d1ed9;padding:4px 14px;border:1px solid #1e5471;border-radius:18px;color:#d8faff;font-size:12px;white-space:nowrap}.foot{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:64px;font-size:12px;color:#a9c1d5}.foot .copyright{direction:ltr;unicode-bidi:isolate;white-space:nowrap;text-align:right;margin-left:auto}.foot .copyright strong{color:#fff}.foot .copyright .copy-symbol{color:var(--cyan)}footer{background:#040c19;border-top:1px solid #174560}.mobile-actions{display:none}.page{flex:1;padding:72px 0 100px;background:radial-gradient(circle at 75% 5%,#0b2840,#030a14 58%)}.eyebrow{font-size:12px;color:var(--cyan);font-weight:800;letter-spacing:.2em;text-transform:uppercase}h1{font-size:clamp(32px,5vw,55px);line-height:1.15;margin:14px 0 18px}p.lead{color:var(--muted);max-width:750px;font-size:18px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:36px}.card{padding:26px;background:linear-gradient(135deg,#0d2a40,#071422);border:1px solid #1a5270;border-radius:15px}.card h2{font-size:22px;margin:0 0 12px}.card p{color:var(--muted);margin:0 0 15px}.card small{color:var(--cyan)}.btn{display:inline-block;padding:11px 18px;background:linear-gradient(120deg,#23e7e8,#42a9ff);color:#031522;border-radius:9px;font-weight:800}.btn.secondary{background:transparent;color:var(--cyan);border:1px solid #1ac6e4}.buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.note{color:var(--muted);font-size:14px;margin-top:22px}.panel{max-width:750px;border:1px solid #1c506c;border-radius:14px;padding:24px;background:#091d2d;margin-top:30px}.panel p{margin:0;color:var(--muted)}
@media(max-width:850px){nav{gap:12px}.cards{grid-template-columns:1fr}.hero-caption{display:none}.hero img{max-height:none}.home-main{align-items:flex-start}.mobile-actions{display:flex;justify-content:center;gap:12px;padding:18px;flex-wrap:wrap}.mobile-actions a{border:1px solid #25c9e6;border-radius:8px;padding:9px 13px;font-weight:650;background:#061e30}.home-main{display:block;flex:initial;min-height:0}.hotspot{display:none}}@media(max-width:580px){.brand{font-size:13px}.brand img{width:37px;height:37px}nav a:not(.outline){display:none}.nav{min-height:64px}.foot{align-items:flex-end;flex-direction:column;padding:15px 0}.foot .copyright{white-space:normal}.page{padding:46px 0 70px}}

/* v7: Keep the entire desktop hero visible at full available width. */
.home-main{flex:0 0 auto;display:block;background:#030a14}
.hero img{width:100%;height:auto;max-height:none;object-fit:contain}
/* Image contains the button artwork. The link overlay should glow INSIDE that artwork only. */
.hotspot{top:67.3%;height:8.3%;overflow:hidden;isolation:isolate;
  border-radius:10px;background:transparent;box-shadow:none;
  transition:background-color .18s ease,box-shadow .18s ease}
.hotspot.projects{left:33.7%;width:15.3%}
.hotspot.lab{left:50.9%;width:15.3%}
.hotspot:hover,.hotspot:focus-visible{
  background:rgba(32,225,245,.12);
  box-shadow:inset 0 0 13px rgba(32,225,245,.5);
  outline:none;
}
.hotspot:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
/* Mobile: compact content flow; never stretch an empty hero region to viewport height. */
@media(max-width:850px){
 .shell:has(.home-main){min-height:0;display:block}
 .shell:has(.home-main) .home-main{display:block;flex:none;min-height:0;background:#030a14}
 .shell:has(.home-main) .hero img{max-height:none;width:100%;height:auto}
 .shell:has(.home-main) .hotspot{display:none}
 .shell:has(.home-main) .mobile-actions{display:flex;gap:12px;padding:18px;justify-content:center}
 .shell:has(.home-main) .mobile-actions a{max-width:100%;text-align:center;
   border-radius:9px;overflow:hidden;transition:background-color .18s ease,box-shadow .18s ease}
 .shell:has(.home-main) .mobile-actions a:hover,
 .shell:has(.home-main) .mobile-actions a:focus-visible{
   background:#0a3447;box-shadow:inset 0 0 12px rgba(34,234,255,.36)}
 .shell:has(.home-main) footer{margin-top:0}
}
@media(max-width:580px){
 .shell:has(.home-main) .mobile-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:18px}
 .shell:has(.home-main) .mobile-actions a{width:100%;padding:12px 14px}
 .shell:has(.home-main) .foot{align-items:center;text-align:center;gap:10px}
 .shell:has(.home-main) .foot .copyright{white-space:normal;text-align:center;margin-left:0}
}
@media(prefers-reduced-motion:reduce){.hotspot,.mobile-actions a{transition:none!important}}

/* v8: viewport-aware home layout. Keep the image full-width without distortion. */
@media (min-width:851px) {
  .shell:has(.home-main){min-height:100dvh;height:100dvh;overflow:hidden}
  .shell:has(.home-main) .home-main{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
  .shell:has(.home-main) .hero{height:min(calc(100vw * 782 / 1672), calc(100dvh - 138px));width:100%;overflow:hidden}
  .shell:has(.home-main) .hero img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center}
  .shell:has(.home-main) footer{flex:0 0 auto}
}
/* Put the mobile footer at the bottom of tall screens, without empty space below it. */
@media (max-width:850px) {
  .shell:has(.home-main){min-height:100dvh;display:flex;flex-direction:column}
  .shell:has(.home-main) .home-main{flex:1 0 auto;display:flex;align-items:flex-start;background:radial-gradient(ellipse at 50% 5%,#0b263b 0%,#030a14 80%)}
  .shell:has(.home-main) footer{margin-top:auto;flex-shrink:0}
}
@media (min-width:851px) {
  .hotspot:hover,.hotspot:focus-visible{background:rgba(32,225,245,.19);box-shadow:inset 0 0 18px rgba(32,225,245,.66)}
}

/* v9: Keep the desktop hero as-is; align interactive overlays with artwork. */
@media (min-width:851px) {
  .shell:has(.home-main) .hotspot {
    top:70%;
    height:9.2%;
    border-radius:10px;
    background:transparent;
    box-shadow:none;
    overflow:hidden;
  }
  .shell:has(.home-main) .hotspot:hover,
  .shell:has(.home-main) .hotspot:focus-visible {
    background:rgba(32,225,245,.12);
    box-shadow:inset 0 0 12px rgba(32,225,245,.58);
  }
}
/* Mobile: let the main region consume available viewport height so the footer
   sits at the bottom, including when browser toolbars expand/collapse. */
@media (max-width:850px) {
  html,body { min-height:100%; }
  .shell:has(.home-main) {
    min-height:100vh;
    min-height:100lvh;
    height:auto;
    display:flex;
    flex-direction:column;
  }
  .shell:has(.home-main) .home-main {
    flex:1 1 auto;
    width:100%;
    min-height:0;
    display:block;
  }
  .shell:has(.home-main) footer {
    margin-top:auto;
    flex:0 0 auto;
  }
}

/* v10: Mobile-only compact page: do not stretch the empty region above footer. */
@media (max-width:850px) {
  .shell:has(.home-main) {
    min-height:0;
    height:auto;
    display:flex;
    flex-direction:column;
  }
  .shell:has(.home-main) .home-main {
    flex:0 0 auto;
    min-height:0;
    display:block;
  }
  .shell:has(.home-main) footer {
    margin-top:0;
    flex:0 0 auto;
  }
}

/* v11: Mobile-only viewport footer layout. Desktop remains unchanged.
   Override v10 compact rules: the main area absorbs the spare height,
   and the footer is anchored to the bottom of the visible viewport. */
@media (max-width:850px) {
  .shell:has(.home-main) {
    min-height:100vh;
    min-height:100dvh;
    height:auto;
    display:flex;
    flex-direction:column;
  }
  .shell:has(.home-main) .home-main {
    flex:1 0 auto;
    display:block;
    min-height:0;
    width:100%;
  }
  .shell:has(.home-main) footer {
    margin-top:auto;
    flex:0 0 auto;
  }
}

/* v12 MOBILE ONLY: The artwork already contains both buttons.
   Re-enable accessible clickable overlays on the artwork and hide duplicate
   standalone buttons. Desktop CSS is untouched. */
@media (max-width:850px) {
  .shell:has(.home-main) .mobile-actions { display:none !important; }
  .shell:has(.home-main) .hero { position:relative; width:100%; }
  .shell:has(.home-main) .hero img { display:block; width:100%; height:auto; }
  .shell:has(.home-main) .hero .hotspot {
    display:block !important;
    position:absolute;
    z-index:3;
    top:70%;
    height:9.2%;
    border-radius:6px;
    background:transparent;
    box-shadow:none;
    overflow:hidden;
    touch-action:manipulation;
  }
  .shell:has(.home-main) .hero .hotspot.projects {left:33.7%;width:15.3%;}
  .shell:has(.home-main) .hero .hotspot.lab {left:50.9%;width:15.3%;}
  .shell:has(.home-main) .hero .hotspot:focus-visible {
    outline:2px solid #26e3f2;
    outline-offset:-2px;
  }
  .shell:has(.home-main) .home-main { flex:1 1 auto; }
  .shell:has(.home-main) footer { margin-top:auto; }
}

/* v13: MOBILE ONLY. Fill the previously empty main region with a soft
   continuation of the SOC artwork. The actual hero and its clickable
   hotspots keep their existing dimensions and positions. */
@media (max-width:850px) {
  .shell:has(.home-main) {
    min-height:100vh;
    min-height:100dvh;
  }
  .shell:has(.home-main) .home-main {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:#030a14;
    flex:1 1 auto;
  }
  .shell:has(.home-main) .home-main::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:0;
    background-image:linear-gradient(180deg,rgba(3,10,20,.42),rgba(3,10,20,.40) 40%,rgba(3,10,20,.82)),url('/red-blue-soc-hero.webp');
    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;
    filter:blur(17px);
    transform:scale(1.12);
    pointer-events:none;
  }
  .shell:has(.home-main) .hero {z-index:1;}
  .shell:has(.home-main) footer {flex:0 0 auto;margin-top:0;}
}

/* v14: MOBILE ONLY — content-sized layout, no stretched blank region.
   Desktop rules remain untouched. */
@media (max-width:850px) {
  .shell:has(.home-main) {
    min-height:0; height:auto; display:block;
  }
  .shell:has(.home-main) .home-main {
    display:block; flex:none; min-height:0; height:auto;
    overflow:visible; isolation:auto; background:#030a14;
  }
  .shell:has(.home-main) .home-main::before { content:none !important; display:none !important; }
  .shell:has(.home-main) footer { margin-top:0; flex:none; }
  .shell:has(.home-main) .hero { margin:0; }
}

/* v15: MOBILE ONLY: sticky footer at bottom of visible viewport, no blank area after footer.
   The content itself remains compact and the desktop layout is untouched. */
@media (max-width:850px) {
  html, body { min-height:100%; }
  body { min-height:100vh; min-height:100dvh; }
  .shell:has(.home-main) {
    display:flex; flex-direction:column;
    min-height:100vh; min-height:100dvh;
    height:auto;
  }
  .shell:has(.home-main) .home-main {
    flex:0 0 auto; height:auto; min-height:0;
  }
  .shell:has(.home-main) footer {
    margin-top:auto; flex:0 0 auto;
  }
}

/* v16: MOBILE HOME ONLY. Full-height hero instead of empty flex spacer.
   The hero art and its clickable hotspots are scaled together, keeping
   coordinates aligned. Desktop and other pages are unaffected. */
@media (max-width:850px) {
  .shell:has(.home-main) {
    height:100dvh;
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .shell:has(.home-main) header,
  .shell:has(.home-main) footer {flex:0 0 auto;}
  .shell:has(.home-main) .home-main {
    position:relative;
    display:block;
    flex:1 1 0;
    min-height:0;
    height:auto;
    overflow:hidden;
    background:#030a14;
  }
  .shell:has(.home-main) .home-main > div {
    position:absolute;
    inset:0;
    width:100% !important;
    height:100%;
    overflow:hidden;
  }
  .shell:has(.home-main) .hero {
    position:absolute;
    left:50%; top:50%;
    transform:translate(-50%,-50%);
    width:max(100%, 213.81cqh);
    aspect-ratio:1672 / 782;
    height:auto;
    margin:0;
    container-type:normal;
  }
  .shell:has(.home-main) .home-main {container-type:size;}
  .shell:has(.home-main) .hero img {
    width:100%; height:auto; display:block;
  }
  .shell:has(.home-main) .hero .hotspot {top:70%;height:9.2%;}
  .shell:has(.home-main) footer {margin-top:0;}
}
/* Short landscape phones: allow natural scrolling rather than crop the footer. */
@media (max-width:850px) and (orientation:landscape) and (max-height:500px) {
  .shell:has(.home-main) {height:auto;min-height:100dvh;overflow:visible;}
  .shell:has(.home-main) .home-main {height:auto;min-height:230px;flex:1 0 230px;}
}

/* v17: MOBILE HOME ONLY — fit the COMPLETE artwork into the available
   viewport rectangle. No side cropping, no spacer, and hotspots track the
   artwork's percentages. This deliberately changes the artwork aspect ratio
   on tall phones; desktop is completely unchanged. */
@media (max-width:850px) and (orientation:portrait) {
  .shell:has(.home-main) .hero {
    position:absolute;
    inset:0;
    left:0;
    top:0;
    transform:none;
    width:100%;
    height:100%;
    aspect-ratio:auto;
    margin:0;
    overflow:hidden;
  }
  .shell:has(.home-main) .hero img {
    display:block;
    width:100%;
    height:100%;
    max-height:none;
    object-fit:fill;
  }
  .shell:has(.home-main) .hero .hotspot {
    top:70%;
    height:9.2%;
  }
}

/* v18 — Mobile portrait only. The original desktop layout is untouched.
   The wide artwork retains its natural aspect ratio; readable HTML feature
   labels use the remaining viewport space instead of distorting the image. */
.mobile-feature-panel{display:none}
@media (max-width:850px) and (orientation:portrait){
  .shell:has(.home-main){
    display:flex;flex-direction:column;
    min-height:100svh;min-height:100dvh;
    height:auto;overflow:visible;
  }
  .shell:has(.home-main) .home-main{
    display:flex;flex-direction:column;
    flex:1 0 auto;min-height:0;height:auto;
    overflow:visible;container-type:normal;
    background:linear-gradient(180deg,#061c2b,#030a14);
  }
  .shell:has(.home-main) .home-main > div{
    position:static;inset:auto;width:100%!important;
    height:auto;overflow:visible;
    display:flex;flex-direction:column;flex:1 0 auto;
  }
  .shell:has(.home-main) .hero{
    position:relative;inset:auto;left:auto;top:auto;
    transform:none;width:100%;height:auto;
    aspect-ratio:1672 / 782;overflow:hidden;
    flex:0 0 auto;margin:0;
  }
  .shell:has(.home-main) .hero img{
    display:block;width:100%;height:auto;max-height:none;
    object-fit:contain;
  }
  .shell:has(.home-main) .hero .hotspot{top:70%;height:9.2%;}
  .shell:has(.home-main) .mobile-feature-panel{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;padding:16px 14px;
    flex:1 0 auto;align-content:center;
  }
  .shell:has(.home-main) .mobile-feature{
    display:flex;flex-direction:column;justify-content:center;
    gap:3px;min-width:0;padding:12px 10px;
    border:1px solid #16526b;border-radius:10px;
    background:linear-gradient(135deg,#0a2638,#071321);
    text-align:center;
  }
  .shell:has(.home-main) .mobile-feature strong{
    font-size:clamp(12px,3.3vw,16px);line-height:1.3;color:#e9faff;
  }
  .shell:has(.home-main) .mobile-feature span{
    font-size:clamp(10px,2.7vw,13px);line-height:1.4;color:#9acddd;
  }
  .shell:has(.home-main) footer{margin-top:0;flex:0 0 auto;}
}
@media (max-width:850px) and (orientation:portrait) and (max-height:680px){
  .shell:has(.home-main) .mobile-feature-panel{padding:8px 12px;gap:6px}
  .shell:has(.home-main) .mobile-feature{padding:7px 6px}
}

/* v19 — mobile portrait only: original artwork already includes four
   feature labels; no duplicate HTML panel or artificially stretched region. */
@media (max-width:850px) and (orientation:portrait) {
  .shell:has(.home-main) {min-height:100dvh;height:auto;display:flex;flex-direction:column;}
  .shell:has(.home-main) .home-main {flex:0 0 auto;display:block;min-height:0;height:auto;}
  .shell:has(.home-main) .home-main > div {display:block;flex:none;height:auto;min-height:0;}
  .shell:has(.home-main) .hero {position:relative;width:100%;height:auto;aspect-ratio:1672/782;overflow:hidden;}
  .shell:has(.home-main) .hero img {width:100%;height:auto;object-fit:contain;}
  .shell:has(.home-main) .mobile-feature-panel {display:none!important;}
  .shell:has(.home-main) footer {margin-top:auto;flex:0 0 auto;}
}

/* v20 — MOBILE PORTRAIT ONLY: remove the viewport-sized spacer.
   The footer follows the artwork immediately. Desktop is unchanged. */
@media (max-width:850px) and (orientation:portrait) {
  .shell:has(.home-main) {
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
  }
  .shell:has(.home-main) .home-main {
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    flex:none !important;
    overflow:visible !important;
    background:#030a14;
  }
  .shell:has(.home-main) .home-main > div {
    display:block !important;
    position:static !important;
    height:auto !important;
    min-height:0 !important;
    flex:none !important;
  }
  .shell:has(.home-main) .hero {
    position:relative !important;
    inset:auto !important;
    transform:none !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:auto !important;
    margin:0 !important;
  }
  .shell:has(.home-main) .hero img {
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
  }
  .shell:has(.home-main) .mobile-actions,
  .shell:has(.home-main) .mobile-feature-panel {display:none !important;}
  .shell:has(.home-main) footer {
    margin:0 !important;
    position:static !important;
    flex:none !important;
  }
}

/* v21: portrait artwork only on mobile. Do not alter desktop layout.
   Replace the wide hero with a portrait-composed asset and let the main
   region take available viewport height without a blank spacer. */
@media (max-width:850px) and (orientation:portrait) {
  html,body {margin:0; min-height:100%;}
  .shell:has(.home-main) {
    display:flex !important;flex-direction:column !important;
    height:100dvh !important;min-height:100dvh !important;
    overflow:hidden !important;
  }
  .shell:has(.home-main) header,.shell:has(.home-main) footer {flex:0 0 auto !important;}
  .shell:has(.home-main) .home-main {
    flex:1 1 0 !important;min-height:0 !important;
    display:flex !important;overflow:hidden !important;
    height:auto !important;background:#030a14 !important;
  }
  .shell:has(.home-main) .home-main > div {
    display:flex !important;flex:1 1 0 !important;
    min-height:0 !important;height:100% !important;
    width:100% !important;position:relative !important;overflow:hidden !important;
  }
  .shell:has(.home-main) .hero {
    position:relative !important;inset:auto !important;transform:none !important;
    flex:1 1 auto !important;width:100% !important;height:100% !important;
    min-height:0 !important;aspect-ratio:auto !important;overflow:hidden !important;
  }
  .shell:has(.home-main) .hero picture {display:block;width:100%;height:100%;}
  .shell:has(.home-main) .hero img {
    display:block !important;width:100% !important;height:100% !important;
    max-height:none !important;object-fit:fill !important;
  }
  .shell:has(.home-main) .hero .hotspot {
    top:69.7% !important;height:7.9% !important;
    display:block !important;z-index:5 !important;
  }
  .shell:has(.home-main) .hero .hotspot.projects {left:13.7% !important;width:36.3% !important;}
  .shell:has(.home-main) .hero .hotspot.lab {left:52% !important;width:33.8% !important;}
  .shell:has(.home-main) .mobile-actions,.shell:has(.home-main) .mobile-feature-panel {display:none !important;}
  .shell:has(.home-main) footer {margin:0 !important;position:relative !important;}
}
@media (max-width:850px) and (orientation:portrait) and (max-height:540px){
  .shell:has(.home-main){height:auto !important;min-height:100dvh !important;overflow:visible !important;}
  .shell:has(.home-main) .home-main{min-height:350px !important;flex:1 0 350px !important;}
}
