/* Stratosphere JR Group
   Colours taken from slides 1–2 of "Stratosphere JR Group v1 Pitch.pptx":
   #102A43 navy (slide background / primary), #FFFFFF text,
   #C4D5E3 pale blue-grey (secondary text), #5BD3E8 cyan (accent).
   Added on request: orange and light blue sampled from the horizon
   photo on slide 1 (image1.jpeg): #E4742C / #F19240 orange band,
   #97D1FF light sky blue.
   Everything else below is a tint of these. */

:root {
  color-scheme: dark;              /* single dark look on purpose */
  --navy: #102A43;
  --navy-deep: #0C2135;            /* shade of navy */
  --white: #FFFFFF;
  --mist: #C4D5E3;
  --cyan: #5BD3E8;
  --orange: #E4742C;               /* lines and large type */
  --orange-text: #F19240;          /* small text on navy (6:1 contrast) */
  --sky: #97D1FF;                  /* light blue; navy text on it is 8.9:1 */

  --bg: var(--navy);
  --text: var(--white);
  --text-muted: var(--mist);
  --rule: rgba(196, 213, 227, 0.22);  /* mist at 22% */
  --rule-strong: rgba(196, 213, 227, 0.4);
  --field-line: rgba(196, 213, 227, 0.6); /* form underlines: ~4.7:1, above the 3:1 minimum */
  --accent: var(--cyan);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --gutter: clamp(16px, 5.5vw, 104px);
  --col-gap: clamp(16px, 2vw, 32px);
  --max: 1440px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--sky); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--white); color: var(--navy);
  padding: 8px 14px; z-index: 100; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Review banner — only used on the shared review copy */
.review-note {
  background: var(--mist);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.5;
}
.review-note .wrap { padding-block: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.review-note strong { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.review-note .missing { background: var(--navy); color: var(--mist); }

/* ---------- Grid ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(16, 42, 67, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.wordmark {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;               /* larger brand, as requested */
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--cyan);
}
.wordmark span { display: block; }

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(20px, 2.4vw, 40px); align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--text); }

/* Mobile menu — <details> so it works without JavaScript */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  font-size: 14px; letter-spacing: 0.04em;
  min-height: 44px; min-width: 44px;   /* comfortable tap target */
  display: flex; align-items: center; justify-content: flex-end;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary .open-label, .menu:not([open]) summary .close-label { display: none; }
.menu ul {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  margin: 0; padding: 8px var(--gutter) 32px;
  list-style: none;
  background: var(--navy);
  border-bottom: 1px solid var(--rule);
}
.menu li { border-top: 1px solid var(--rule); }
.menu li a {
  display: block; padding: 16px 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: -0.02em;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}
.num {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--orange-text);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(44px, 7.6vw, 124px); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(34px, 4.6vw, 72px); }
h3 { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.02em; line-height: 1.12; }

.lede {
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0;
}
.prose { max-width: 66ch; color: var(--text-muted); }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

/* Visible gap markers */
.missing {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82em;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--navy);
  background: var(--mist);
  padding: 2px 8px;
}

/* ---------- Sections ---------- */
section { padding: clamp(88px, 11vw, 176px) 0; }
.section-head { row-gap: 20px; margin-bottom: clamp(48px, 6vw, 96px); align-items: end; }
.section-head .label { grid-column: 1 / span 3; align-self: start; padding-top: 0.6em; margin: 0; }
/* Section labels carry the orange now that the numbers are gone */
.label .eyebrow { color: var(--orange-text); }
.sectors .label .eyebrow { color: var(--navy); }

/* Bullets for sub-text lists (replacing numbering) */
.bullets, .row .body ul { list-style: none; margin: 0; padding: 0; }
.bullets li, .row .body ul li {
  position: relative;
  padding: 6px 0 6px 22px;
}
.bullets li::before, .row .body ul li::before {
  content: "";
  position: absolute; left: 2px; top: calc(6px + 0.62em);
  width: 7px; height: 7px;
  background: var(--orange);
}
.sectors .bullets li::before { background: var(--navy); }
.prose .bullets { margin-top: 0.6em; }
.section-head h2 { grid-column: 4 / span 8; }
.section-head .intro { grid-column: 4 / span 6; margin-top: 8px; }

@media (max-width: 860px) {
  .section-head .label, .section-head h2, .section-head .intro { grid-column: 1 / -1; }
  .section-head .label { padding-top: 0; }
}

/* ---------- Hero ---------- */
/* Mirrors slide 1 of the v4 deck: the brand is the largest text, in the
   deck's cyan; the service title and tagline sit below it; the horizon
   photo fills the right-hand side. */
.hero { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(72px, 8vw, 128px); }
.hero-grid { row-gap: 40px; align-items: stretch; }
.hero-text {
  grid-column: 1 / span 7;
  display: flex; flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
  min-width: 0;
}
.brand {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: clamp(40px, 6.6vw, 104px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.brand span { display: block; }
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
  padding-top: clamp(18px, 2vw, 28px);
  border-top: 2px solid var(--orange);   /* the horizon line from slide 1 */
  text-wrap: balance;
}
.hero .lede { max-width: 36ch; }
.hero-meta {
  margin-top: auto;
  padding-top: clamp(8px, 2vw, 24px);
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 24px 48px;
}
.who { max-width: 30ch; }
.who p { margin: 8px 0 0; color: var(--text); }
.hero-image {
  grid-column: 9 / -1;
  margin: 0;
  position: relative;
  min-height: 460px;
  overflow: hidden;
}
.hero-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 52% 50%;   /* keeps the spacecraft in view, as on the slide */
}

@media (max-width: 1100px) {
  .hero-text { grid-column: 1 / span 8; }
  .hero-image { grid-column: 9 / -1; min-height: 380px; }
}
@media (max-width: 760px) {
  .hero-text, .hero-image { grid-column: 1 / -1; }
  .hero-image { min-height: 0; aspect-ratio: 4 / 3; max-width: 100%; }
}

/* CTA — the accent's main home */
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 16px 22px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.cta .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.cta:hover { background: #7FDDEE; } /* tint of accent */
@media (prefers-reduced-motion: no-preference) {
  .cta:hover .arrow { transform: translateX(4px); }
  .cta.down:hover .arrow { transform: translateY(3px); }
}
.cta:disabled { opacity: 0.45; cursor: not-allowed; }
.cta:disabled:hover { background: var(--accent); }
.cta:disabled .arrow { transform: none; }

/* ---------- Numbered rows (approach + services) ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.row {
  border-top: 1px solid var(--rule);
  padding: clamp(28px, 3.4vw, 48px) 0;
  row-gap: 16px;
  position: relative;
}
.row h3 { grid-column: 1 / span 5; }
.row .body { grid-column: 7 / span 6; color: var(--text-muted); }
.row .body p { margin: 0 0 0.9em; max-width: 60ch; }
.row .body p:last-child { margin-bottom: 0; }
.row .body ul { max-width: 60ch; }
.row .outcome { color: var(--text); margin-top: 18px; }
.row .kicker { color: var(--text); font-size: 1.05em; }

/* hover: a slight indent of the title */
.row h3 { transition: transform 0.45s var(--ease); }
@media (hover: hover) {
  .row:hover h3 { color: var(--sky); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .row:hover h3 { transform: translateX(6px); }
}

@media (max-width: 860px) {
  .row h3 { grid-column: 1 / -1; }
  .row .body { grid-column: 1 / -1; }
}

/* Principles (how we work) */
.principles { margin-top: clamp(72px, 8vw, 128px); }
.principles .eyebrow { grid-column: 1 / span 3; padding-top: 4px; }
.principles dl { grid-column: 4 / span 9; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
.principles div { border-top: 1px solid var(--rule); padding: 22px 0 30px; }
.principles dt { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.015em; margin-bottom: 8px; color: var(--sky); }
.principles dd { margin: 0; color: var(--text-muted); max-width: 40ch; }
.principles .footnote { grid-column: 4 / span 9; color: var(--text-muted); margin: 8px 0 0; }
@media (max-width: 860px) {
  .principles .eyebrow, .principles dl, .principles .footnote { grid-column: 1 / -1; }
  .principles .eyebrow { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .principles dl { grid-template-columns: 1fr; }
}

.aside-note {
  margin-top: 40px;
  color: var(--text-muted);
}
.aside-note .grid > * { grid-column: 7 / span 6; }
@media (max-width: 860px) { .aside-note .grid > * { grid-column: 1 / -1; } }

/* ---------- Experience ---------- */
.exp .grid { row-gap: 48px; }
.exp .prose { grid-column: 4 / span 6; }
.figures {
  grid-column: 4 / span 9;
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: var(--col-gap);
  margin: 0;
}
.figures div { border-top: 2px solid var(--orange); padding-top: 20px; }
.figures dt { font-family: var(--font-display); font-size: clamp(44px, 5vw, 80px); letter-spacing: -0.035em; line-height: 1; }
.figures dd { margin: 12px 0 0; color: var(--text-muted); font-size: 15px; }
.people {
  grid-column: 4 / span 9;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap);
}
.people article { border-top: 1px solid var(--rule); padding-top: 22px; }
.people h3 { font-size: clamp(26px, 2.4vw, 36px); margin-bottom: 14px; }
/* Founders shown by experience only (no names) */
.people .people-label { grid-column: 1 / -1; color: var(--orange-text); margin-bottom: -8px; }
.people .bio {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 34ch;
}
@media (max-width: 860px) {
  .exp .prose, .figures, .people { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .figures { grid-template-columns: 1fr; row-gap: 28px; }
  .people { grid-template-columns: 1fr; row-gap: 36px; }
}

/* ---------- Sectors ----------
   Light-blue section: the sky band from slide 1, with navy text. */
.sectors {
  background: var(--sky);
  color: var(--navy);
  --rule: rgba(16, 42, 67, 0.22);       /* navy at 22% */
  --text-muted: rgba(16, 42, 67, 0.78); /* navy at 78% */
}
.sectors .num { color: var(--navy); }
.sectors ::selection { background: var(--navy); color: var(--sky); }
.sectors :focus-visible { outline-color: var(--navy); }
.sector-list {
  grid-column: 1 / -1;
  list-style: none; margin: 0; padding: 0;
  border-bottom: 1px solid var(--rule);
}
.sector-list li {
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(36px, 6.4vw, 104px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  padding: clamp(10px, 1.4vw, 20px) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: baseline;
}
.sector-list .name { grid-column: 1 / -1; transition: transform 0.45s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sector-list li:hover .name { transform: translateX(10px); }
}

/* Programmes we support: given extra weight (AI, modernisation, cloud first) */
.change-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.change-list li {
  border-top: 1px solid var(--rule);
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.sectors .after { margin-top: clamp(56px, 6vw, 96px); row-gap: 40px; }
.sectors .after .lead-col { grid-column: 1 / span 5; }
.sectors .after .lead-col h3 { margin-bottom: 18px; }
.sectors .after .list-col { grid-column: 7 / span 6; }
.plain-list { list-style: none; margin: 0; padding: 0; color: var(--text-muted); }
.plain-list li { padding: 8px 0 8px 22px; }
@media (max-width: 860px) {
  .sectors .after .lead-col, .sectors .after .list-col { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact { background: var(--navy-deep); }
.contact .grid { row-gap: 56px; }
.contact-info { grid-column: 1 / span 5; }
.contact-info .lede { margin-top: 24px; }
.contact-info dl { margin: 48px 0 0; }
.contact-info dl div { border-top: 1px solid var(--rule); padding: 16px 0; display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-info dt { color: var(--text-muted); font-size: 14px; padding-top: 2px; }
.contact-info dd { margin: 0; }
.contact-form { grid-column: 7 / span 6; }

.field { margin-bottom: 28px; }
.field label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field-line);
  color: var(--text);
  font: inherit;
  padding: 10px 0 12px;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--mist); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.form-note { color: var(--text-muted); font-size: 14px; margin-top: 20px; }

@media (max-width: 860px) {
  .contact-info, .contact-form { grid-column: 1 / -1; }
}

/* Email block — replaces the contact forms (no forms on the site) */
.email-block { grid-column: 7 / span 6; align-self: start; padding-top: 8px; min-width: 0; }
.email-block .eyebrow { margin-bottom: 14px; }
.email-link {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--sky); }
@media (max-width: 860px) { .email-block { grid-column: 1 / -1; } }
.candidate-cv { color: var(--text-muted); margin: 24px 0 0; max-width: 46ch; }
.candidate-cv + .candidate-cv { margin-top: 8px; }

/* Privacy notice */
.privacy-text h2 { font-size: clamp(22px, 2vw, 30px); color: var(--text); margin: 2em 0 0.6em; }
.privacy-text .updated { font-size: 14px; }
.privacy-text ul { margin: 0 0 1em; }

/* ---------- Candidates page ---------- */
.candidates { padding-top: clamp(56px, 8vw, 128px); }
.candidates-title { font-size: clamp(34px, 4.2vw, 64px); text-wrap: balance; }
.candidate-roles { margin-top: 20px; font-size: 1.1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--rule); padding: 48px 0 56px; font-size: 14px; color: var(--text-muted); }
.site-footer .grid { row-gap: 24px; align-items: start; }
/* Large brand at the bottom of the page, as requested */
.site-footer .f-brand {
  grid-column: 1 / -1;
  margin: 0 0 clamp(24px, 3vw, 48px);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: clamp(36px, 8.4vw, 136px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.site-footer .f-brand span { display: block; }
.site-footer ul { grid-column: 1 / span 10; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.site-footer .f-copy { grid-column: 11 / span 2; justify-self: end; margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .site-footer ul, .site-footer .f-copy { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Privacy page ---------- */
.legal { padding-top: clamp(64px, 10vw, 160px); min-height: 60vh; }
.legal h1 { font-size: clamp(40px, 6vw, 88px); grid-column: 1 / span 8; margin-bottom: 48px; }
.legal .prose { grid-column: 4 / span 6; }
@media (max-width: 860px) { .legal h1, .legal .prose { grid-column: 1 / -1; } }

/* ---------- Motion ----------
   Content is visible by default. Only when JS has run (html.js) AND the
   visitor allows motion do elements start hidden and fade/translate in.
   Only opacity and transform are animated. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
