/* The SAR case page (src/products/sar-ground-segment/Page.astro): Oky's styles, recoloured from purple to a dark satellite palette. The variable names are his. */

  :root {
    --bg: hsl(205 30% 5%);
    --bg2: hsl(205 28% 7%);
    --card: hsl(205 26% 9%);
    --line: hsl(205 18% 16%);
    --line2: hsl(205 16% 24%);
    --text: hsl(200 20% 95%);
    --muted: hsl(205 10% 68%);
    --muted2: hsl(205 9% 52%);
    --violet: #6FD39A;
    --violet-l: #A9EBC6;
    --violet-d: #2F8F5E;
    --amber: #f2b45e;
    --teal: #4fd1bb;
    --r-sm: 4px; --r-md: 8px; --r-lg: 14px;
    --display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
    --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; display: block; }
  a { color: var(--violet-l); }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  section { padding: 96px 0; border-bottom: 1px solid var(--line); position: relative; }
  h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
  h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; font-weight: 700; }
  h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; }
  h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
  .grad { background: linear-gradient(92deg, var(--violet-l), var(--violet) 60%, #9be3bb); -webkit-background-clip: text; background-clip: text; color: transparent; }
  p { margin: 0; }
  .lead { font-size: 18px; color: var(--muted); max-width: 640px; margin-top: 22px; }
  .eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; font-weight: 500;
             letter-spacing: .28em; text-transform: uppercase; color: var(--violet-l); margin-bottom: 18px; }
  .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--violet); }
  .sec-head { margin-bottom: 48px; max-width: 760px; }
  .sec-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }
  .mono { font-family: var(--mono); }

  /* chips, buttons */
  .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
  .chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600;
          letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: var(--r-sm);
          background: #04090b99; color: var(--violet-l); border: 1px solid rgba(111, 211, 154, .4); }
  .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); }
  .btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--r-md); font-weight: 600;
         font-size: 15px; text-decoration: none; transition: transform .15s, background .15s; }
  .btn.primary { background: var(--violet); color: #06210F; box-shadow: 0 10px 40px -10px rgba(111, 211, 154, .7); }
  .btn.ghost { border: 1px solid var(--line2); color: var(--text); }
  .btn:hover { transform: translateY(-1px); }

  /* framed imagery */
  .sat-frame { position: relative; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--bg2); overflow: hidden;
               box-shadow: 0 40px 90px -42px #000000e6; }
  .sat-frame img { width: 100%; height: 100%; object-fit: cover; }
  .sat-corner { position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none; }
  .sat-corner.tl { top: 13px; left: 13px; border-top: 2px dotted rgba(111, 211, 154, .6); border-left: 2px dotted rgba(111, 211, 154, .6); }
  .sat-corner.br { bottom: 13px; right: 13px; border-bottom: 2px dotted rgba(111, 211, 154, .6); border-right: 2px dotted rgba(111, 211, 154, .6); }
  .chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0a1418; border-bottom: 1px solid var(--line); }
  .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #22343a; }
  .chrome .url { margin-left: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--muted2); letter-spacing: .05em;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chrome .live { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--violet-l); letter-spacing: .1em; display: flex; align-items: center; gap: 6px; }
  .chrome .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); animation: blink 1.6s infinite; }
  @keyframes blink { 50% { opacity: .25; } }
  .tag { position: absolute; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
         padding: 5px 9px; border-radius: var(--r-sm); background: #04090bcc; color: var(--violet-l); border: 1px solid rgba(111, 211, 154, .4); }
  .tag.bl { left: 14px; bottom: 14px; } .tag.tr { right: 14px; top: 14px; }
  .bbox { position: absolute; border: 1.5px solid var(--violet); border-radius: var(--r-sm); box-shadow: 0 0 14px #6FD39A66; z-index: 2; }
  .bbox::after { content: attr(data-l); position: absolute; top: -19px; left: -1.5px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .04em;
                 background: var(--violet); color: #06210F; padding: 2px 5px; border-radius: var(--r-sm); white-space: nowrap; font-weight: 600; }
  .scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--violet); opacity: .6; box-shadow: 0 0 12px var(--violet);
          animation: scan 4.2s linear infinite; z-index: 2; }
  @keyframes scan { from { top: 0; } to { top: 100%; } }
  @media (prefers-reduced-motion: reduce) { .scan, .chrome .live::before { animation: none; } .scan { display: none; } }
  figcaption { font-size: 13.5px; color: var(--muted2); margin-top: 12px; }
  figcaption b { color: var(--muted); font-weight: 600; }
  figure { margin: 0; }

  /* hero */
  .hero { padding: 120px 0 96px; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; pointer-events: none; }
  .glow { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(111, 211, 154, .26), transparent 62%); filter: blur(8px); }
  .glow.g1 { top: -18%; right: -8%; width: 680px; height: 680px; }
  .glow.g2 { bottom: -30%; left: -12%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(111, 211, 154, .1), transparent 65%); }
  .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(111, 211, 154, .07) 1px, transparent 1px),
             linear-gradient(90deg, rgba(111, 211, 154, .07) 1px, transparent 1px); background-size: 44px 44px;
             -webkit-mask-image: radial-gradient(120% 100% at 75% 30%, #000, transparent 75%); mask-image: radial-gradient(120% 100% at 75% 30%, #000, transparent 75%); }
  .hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .hero .sat-frame { box-shadow: 0 50px 100px -30px #1f7a5080, 0 40px 90px -30px #000000e6; }
  .hero .img-box { position: relative; aspect-ratio: 1 / 1; }
  .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted2); text-transform: uppercase; margin-bottom: 26px; }
  .crumb a { color: var(--muted2); text-decoration: none; } .crumb a:hover { color: var(--violet-l); }

  /* stats */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg2); }
  .stat { padding: 28px 26px; border-right: 1px solid var(--line); }
  .stat:last-child { border-right: none; }
  .stat .n { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
  .stat .n small { font-size: 18px; color: var(--violet-l); margin-left: 4px; font-weight: 600; }
  .stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-l); margin-top: 4px; }
  .stat .d { color: var(--muted2); font-size: 13.5px; margin-top: 8px; }
  .stats-sec { padding: 0 0 96px; border-bottom: 1px solid var(--line); }

  /* two columns, cards */
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: border-color .2s; }
  .card:hover { border-color: var(--line2); }
  .card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(111, 211, 154, .1);
              border: 1px solid rgba(111, 211, 154, .28); color: var(--violet-l); font-size: 17px; margin-bottom: 18px; }
  .card p { color: var(--muted); font-size: 15px; margin-top: 10px; }
  .card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
  .card li { margin: 4px 0; }
  .challenge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .challenge .card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted2); text-transform: uppercase; }

  /* architecture diagram */
  .arch { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; overflow-x: auto; }
  .arch svg { width: 100%; min-width: 860px; height: auto; display: block; }
  .arch .bx { fill: hsl(205 26% 10%); stroke: var(--line2); stroke-width: 1.2; }
  .arch .bx.k { stroke: var(--violet); fill: rgba(111, 211, 154, .08); }
  .arch .bx.c { stroke: var(--amber); fill: rgba(242, 180, 94, .06); }
  .arch .bx.s { stroke: var(--teal); fill: rgba(79, 209, 187, .06); }
  .arch .t { fill: var(--text); font: 600 14px var(--display); }
  .arch .st { fill: var(--muted2); font: 400 11px var(--mono); letter-spacing: .02em; }
  .arch .grp { fill: var(--violet-l); font: 500 10.5px var(--mono); letter-spacing: .22em; }
  .arch .w { stroke: var(--line2); stroke-width: 1.4; fill: none; }
  .arch .wk { stroke: var(--violet); stroke-width: 1.6; fill: none; }
  .arch .wc { stroke: var(--amber); stroke-width: 1.4; fill: none; stroke-dasharray: 5 4; }
  .arch .ws { stroke: var(--teal); stroke-width: 1.4; fill: none; stroke-dasharray: 2 4; }
  .arch .lb { fill: var(--muted); font: 400 11px var(--mono); }

  /* focusing steps */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step .sat-frame { aspect-ratio: 1 / 1; }
  .step .num { font-family: var(--mono); font-size: 11px; color: var(--violet-l); letter-spacing: .16em; margin-top: 16px; text-transform: uppercase; }
  .step h3 { margin-top: 6px; }
  .step p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
  .arrow-row { display: none; }
  .wide-fig { margin-top: 40px; }

  /* compare */
  .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .compare .sat-frame { aspect-ratio: 1 / 1; }

  /* gallery */
  .gal { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
  .gal .side { display: grid; gap: 20px; }
  .gal .main .img-box { aspect-ratio: 16 / 10; }
  .gal .side .img-box { aspect-ratio: 16 / 10; }

  .calgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
  .calfigs { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
  .calfigs .sat-frame { padding: 10px; }

  /* engineering photo cards */
  .pcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
  .pcard .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg2); }
  .pcard .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) saturate(.9) contrast(1.06) brightness(.82);
                   transform: scale(1.01); transition: transform .5s ease, filter .5s ease; }
  .pcard .ph::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                      background: linear-gradient(180deg, rgba(111, 211, 154, .10) 0%, rgba(6, 30, 22, .25) 55%, hsl(205 26% 9% / .92) 100%);
                      mix-blend-mode: normal; }
  .pcard .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #1f7a50; mix-blend-mode: color; opacity: .18; }
  .pcard:hover .ph img { transform: scale(1.05); filter: grayscale(.1) contrast(1.06) brightness(.92); }
  .pcard .ph .k { position: absolute; left: 16px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
                  text-transform: uppercase; color: var(--violet-l); }
  .pcard .bd { padding: 20px 24px 26px; }
  .pcard .bd p { margin-top: 8px; }
  .photo-credit { margin-top: 18px; font-size: 12px; color: var(--muted2); }

  .cta { text-align: center; padding: 120px 0; overflow: hidden; }
  .cta h2 { max-width: 760px; margin: 0 auto; }
  .cta p { color: var(--muted); max-width: 620px; margin: 18px auto 0; }
  .cta .btns { justify-content: center; }

  

  .hero-grid > *, .two > *, .gal > *, .side > *, .calfigs > *, .compare > *, .three > *, .calgrid > *, .challenge > *,
  .steps > *, .stats > * { min-width: 0; }
  body { overflow-x: hidden; }
  @media (max-width: 960px) {
    .hero-grid, .two, .gal, .calfigs, .compare { grid-template-columns: 1fr; }
    .three, .calgrid, .challenge, .steps { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  }
  @media (max-width: 620px) {
    .wrap { padding: 0 16px; }
    section { padding: 72px 0; }
    .hero { padding: 84px 0 72px; }
    .three, .calgrid, .challenge, .steps, .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: none; }
    .arch { padding: 16px; }
  }

/* website pieces on this page */
.skip { position:fixed; left:20px; top:-100px; z-index:50; background:#fff; color:#000; padding:12px; } .skip:focus { top:12px; }
body.sar header.nav { --ink:#eef4f2; }
body.sar header.nav .brand img { filter:invert(1); }
body.sar header.nav > nav > a { color:#eef4f2; }
body.sar header.nav > nav > a.pill { background:#eef4f2; color:#0a1418; }
body.sar header.nav.stuck { background:rgba(8,13,16,.9); box-shadow:0 1px 0 rgba(255,255,255,.08); }
body.sar .nm-btn { color:#eef4f2; }
body.sar .nm, body.sar .nc { --ink:#0B0B0C; }
.hero { padding-top:150px; }
/* the film in the hero frame */
.film video { width:100%; height:100%; object-fit:cover; display:block; }
.fsteps { position:absolute; left:0; right:0; bottom:0; z-index:3; display:flex; gap:8px; padding:26px 14px 12px; white-space:nowrap; font:12px var(--mono); color:#ffffff66; background:linear-gradient(transparent,#000b); }
.fsteps i { font-style:normal; color:#ffffff40; }
.film[data-step="0"] .fsteps span:nth-of-type(1), .film[data-step="1"] .fsteps span:nth-of-type(2), .film[data-step="2"] .fsteps span:nth-of-type(3), .film[data-step="3"] .fsteps span:nth-of-type(4) { color:#fff; font-weight:600; }
/* the scenario and its product, with a divider to drag */
.cmpf .frame { position:relative; aspect-ratio:1; border:1px solid var(--line2); border-radius:var(--r-md); overflow:hidden; --x:50%; }
.cmpf .frame > img, .cmpf .before img { position:absolute; inset:0; width:100%; height:100%; }
.cmpf .before { position:absolute; inset:0; clip-path:inset(0 calc(100% - var(--x)) 0 0); }
.cmpf .divider { position:absolute; top:0; bottom:0; left:var(--x); width:2px; margin-left:-1px; background:#fff; pointer-events:none; }
.cmpf .divider span { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:36px; height:36px; border-radius:50%; background:#fff; color:#111; display:grid; place-items:center; font:600 13px system-ui, sans-serif; }
.cmpf input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:ew-resize; touch-action:pan-y; }
.cmpf input:focus-visible ~ .divider span { outline:3px solid var(--violet); outline-offset:2px; }
.tag.tl2 { left:14px; top:14px; }
.sim-note { position:relative; margin:56px auto 0; padding:0 24px; max-width:1200px; font-size:13px; color:var(--muted2); text-align:center; }

/* No lines between sections: the green labels and the space between them do it; the figures sit right under the hero (sketch 2026-11-25-website-sar-lines-and-grid, B). */
main section, .stats-sec { border-bottom:0; }
.stats-sec { padding-bottom:0; }
/* The radar sweep layer behind the page */
canvas.sweep { position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }
body.sar main, body.sar footer { position:relative; z-index:1; }
body.swept .hero .grid-bg { opacity:0; }
