/* The Satgana mission, in the design system of the operator missions page:
   same tokens, same type, same card language. Only the content is new. */

:root {
  --ink: #121826;
  --muted: rgba(18, 24, 38, 0.66);
  --faint: rgba(18, 24, 38, 0.12);
  --bg: #f5f0e8;
  --bg-soft: #fbf8f2;
  --sand: #e6dcc8;
  --card: rgba(255, 255, 255, 0.82);
  --cobalt: #2b50e2;
  --cobalt-deep: #1733b2;
  --green-deep: #0c9d72;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;

  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow-sm: 0 12px 30px rgba(10, 16, 34, 0.08);
  --shadow: 0 24px 60px rgba(10, 16, 34, 0.12);

  --measure: 74rem;
  --edge: clamp(1.25rem, 5vw, 5rem);
  --gap: clamp(3rem, 5vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

/* Ground, type scale and weights are lifted from the operator page so the two
   read as one site. */
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 10% 18%, rgba(43, 80, 226, 0.13), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(226, 207, 167, 0.36), transparent 22%),
    linear-gradient(180deg, #faf7f1, #f3efe7);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--cobalt);
}

a:hover {
  color: var(--cobalt-deep);
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0;
  font-optical-sizing: auto;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.band {
  padding: var(--gap) 0;
}

.band-soft {
  background: var(--bg-soft);
}

h2 {
  font-size: clamp(1.85rem, 1.4rem + 1.7vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h4 {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.45rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

/* ---------------- masthead ---------------- */

.hero {
  /* the body already carries the wash, so the masthead adds nothing */
  padding: 2rem 0 var(--gap);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.95rem 0.5rem 0.75rem;
  border: 1px solid var(--faint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.back:hover {
  color: var(--ink);
  border-color: var(--cobalt);
}

.back-arrow {
  width: 14px;
  height: 8px;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 50%, 38% 0, 38% 36%, 100% 36%, 100% 64%, 38% 64%, 38% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-mark {
  width: clamp(150px, 20vw, 260px);
  height: auto;
  border-radius: 50%;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 1.1rem;
}

/* The display size of the operator page, to the decimal. */
h1 {
  font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0;
}

/* ---------------- generic pieces ---------------- */

.card {
  background: var(--card);
  border: 1px solid rgba(20, 28, 48, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
}

.card-accent {
  border-left: 3px solid var(--cobalt);
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.bullets {
  list-style: none;
  margin: 0 0 1.1em;
  padding: 0;
}

.bullets li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.45rem;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}

/* ---------------- the flow ---------------- */

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  width: 100%;
}

.step-wide {
  max-width: 62rem;
}

.step-narrow {
  max-width: 40rem;
}

.step-pivot {
  max-width: var(--measure);
  background: #fff;
  border: 1px solid rgba(20, 28, 48, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 3.4vw, 3rem);
}

.step-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 0.35rem;
  text-align: center;
}

.step h3 {
  text-align: center;
  margin-bottom: 1.4rem;
}

.step-pivot p {
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
}

/* connectors, same right angle language, in cobalt */
.conn {
  display: block;
  width: 100%;
  height: 74px;
  margin: 34px 0 30px;
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1;
  opacity: 0.45;
}

.conn path {
  vector-effect: non-scaling-stroke;
}

.conn-short {
  height: 44px;
  margin: 30px 0 26px;
}

.conn-tick {
  display: none;
}

/* phase 1 */
.figures {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem 1.2rem;
  margin: 0;
}

.figures > div {
  border-top: 2px solid var(--cobalt);
  padding-top: 0.7rem;
}

.figures dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.05;
  color: var(--cobalt);
}

.figures dd {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.figures dd b {
  color: var(--cobalt);
}

.field {
  margin: 2rem 0 0;
}

.field figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.key {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.key::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.key-eco::before {
  background: rgba(18, 24, 38, 0.28);
}

.key-pf::before {
  background: var(--cobalt);
}

.key-note {
  font-style: italic;
}

/* phase 2 */
.rows {
  list-style: none;
  margin: 0 0 1.1em;
  padding: 0;
}

.rows li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.4rem;
  border-top: 1px solid var(--faint);
}

.rows li:last-child {
  border-bottom: 1px solid var(--faint);
}

.rows li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}

.rows b {
  color: var(--cobalt);
  font-weight: 700;
}

/* phase 3 */
.platform {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 1.4rem;
}

.platform dt {
  text-align: right;
  padding: 0.5rem 1.1rem 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.platform dd {
  margin: 0;
  padding: 0.5rem 0 0.5rem 1.1rem;
  border-left: 1px solid var(--cobalt);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  border: 1px solid var(--cobalt);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.9rem;
  color: var(--cobalt);
  background: rgba(43, 80, 226, 0.05);
}

/* phase 4 */
.deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.deliverables ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.deliverables li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--muted);
}

.deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cobalt);
}

.handover {
  margin: 2.6rem 0 0;
}

.exploded {
  position: relative;
  height: 352px;
  max-width: 840px;
  margin: 0 auto;
}

.exploded img {
  position: absolute;
  width: auto;
  background: #fff;
  border: 1px solid rgba(20, 28, 48, 0.1);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.exploded .e1 { height: 196px; left: 0;      top: 0;    z-index: 1; }
.exploded .e2 { height: 196px; left: 54px;   top: 40px; z-index: 2; }
.exploded .e3 { height: 196px; left: 108px;  top: 80px; z-index: 3; }
.exploded .e4 { height: 238px; right: 152px; top: 0;    z-index: 4; }
.exploded .e5 { height: 238px; right: 76px;  top: 44px; z-index: 5; }
.exploded .e6 { height: 238px; right: 0;     top: 88px; z-index: 6; }

/* ---------------- outcomes ---------------- */

.outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.outcomes p,
.outcomes ul {
  color: var(--muted);
}

.adoption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
  margin-top: 1.1rem;
}

.adoption p {
  color: var(--muted);
}

.adoption img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: var(--radius-md);
}

.stat {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  color: var(--ink);
}

.stat b {
  color: var(--cobalt);
}

/* ---------------- the quote ---------------- */

.quote {
  /* figure carries a default 40px side margin; it would inset the card */
  margin: 1.1rem 0 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
  max-width: none;
}

.quote > img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
}

.quote blockquote {
  margin: 0 0 1rem;
}

.quote blockquote p {
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 60ch;
}

.quote blockquote b {
  font-weight: 700;
}

.quote figcaption {
  display: flex;
  flex-direction: column;
}

.q-name {
  font-weight: 700;
}

.q-role {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------- closing ---------------- */

.closing {
  padding-bottom: calc(var(--gap) / 1.4);
}

.btn {
  display: inline-block;
  white-space: nowrap;
  background: var(--cobalt);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--cobalt-deep);
  color: #fff;
}

.colophon {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--faint);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .figures {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .two-col,
  .deliverables,
  .outcomes,
  .adoption {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 700px) {
  .conn {
    height: 40px;
    margin: 24px 0 20px;
  }

  .conn-bracket {
    display: none;
  }

  .conn-tick {
    display: block;
  }

  .figures {
    grid-template-columns: repeat(2, 1fr);
  }

  .exploded {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 0.8rem;
  }

  .exploded img {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: none;
  }

  .platform {
    display: block;
    width: auto;
  }

  .platform dt {
    text-align: left;
    padding: 0 0 0.4rem;
  }

  .platform dd {
    border-left: 0;
    padding: 0 0 1.1rem;
  }

  .quote {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .figures {
    grid-template-columns: 1fr;
  }
}

/* ---------------- one moment on load ---------------- */

.js .reveal {
  opacity: 0;
  animation: rise 600ms cubic-bezier(0.22, 0.61, 0.36, 1) 60ms forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
