/* ==========================================================================
   Leap Tools — shared styles (homepage + careers)
   Plain CSS, no build step. Sections are in page order.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, SIL OFL) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-600-latin.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --charcoal: #2a2f3d;
  --ink: #212934;
  --text: #4a4e57;
  --orange: #ff6732;
  --orange-dark: #e5501c;
  --cyan: #00f2ff;
  --white: #fff;
  --careers-navy: #1e365e;
  --careers-orange: #f69139;

  --font: "Poppins", Arial, Helvetica, sans-serif;
  --font-button: "Open Sans", Arial, Helvetica, sans-serif;

  --gutter: clamp(16px, 10vw, 110px);
  --max: 1100px;
  --slant-h: clamp(60px, 14.6vw, 150px);
  --display: clamp(1.75rem, 3.9vw, 2.5rem);   /* 28px → 40px */
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 100001;
  padding: 10px 18px; border-radius: 48px;
  background: var(--white); color: var(--ink);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Preloader (CSS only: fades out on its own, no JS needed) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  background: var(--charcoal);
  animation: preloader-out 1s ease 0.5s forwards;
  pointer-events: none;
}
.preloader img { width: 200px; height: 200px; }

@keyframes preloader-out {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 29px;
  border: 3px solid var(--white);
  border-radius: 48px;
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--orange-outlined { background: var(--orange); color: var(--white); }
.btn--orange-outlined:hover { background: var(--orange-dark); }

/* ---------- Diagonal section separators ----------
   Recreates Avada's 150px "slant" separators with clip-path.
   Set --slant-top / --slant-bottom to the neighbouring section's colour. */
.slant-top, .slant-bottom { position: relative; }
.slant-top { padding-top: var(--slant-h); }
.slant-bottom { padding-bottom: var(--slant-h); }
.slant-top::before,
.slant-bottom::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: var(--slant-h);
  pointer-events: none;
}
/* Keep section content painted above the slant triangles */
.slant-top > *, .slant-bottom > * { position: relative; z-index: 1; }
.slant-top::before {
  /* 1px overlap hides the hairline seam between sections */
  top: -1px;
  height: calc(var(--slant-h) + 1px);
  background: var(--slant-top);
  clip-path: polygon(0 100%, 0 0, 100% 0);
}
.slant-bottom::after {
  bottom: -1px;
  height: calc(var(--slant-h) + 1px);
  background: var(--slant-bottom);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* ---------- Fixed rocket (back to top) ---------- */
.rocket {
  position: fixed; top: 5%; left: 1%; z-index: 9000;
  width: 50px;
  border-radius: 8px;
}
.rocket img { width: 50px; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .rocket img { transition: transform 0.3s ease; }
  .rocket:hover img, .rocket:focus-visible img { transform: translateY(-6px); }
}

/* ---------- Floating sphere navigation ---------- */
.sphere-nav {
  position: fixed; right: 8px; top: 50%; z-index: 9000;
  transform: translateY(-50%);
}
.sphere-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.sphere-nav a {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s;
}
.sphere-nav a.is-active,
.sphere-nav a:hover,
.sphere-nav a:focus-visible { background: var(--cyan); }
.sphere-nav svg { width: 18px; height: 18px; }
.sphere-nav__label {
  position: absolute; right: calc(100% + 8px); top: 50%;
  transform: translate(6px, -50%);
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px; line-height: 1.6; white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.sphere-nav a:hover .sphere-nav__label,
.sphere-nav a:focus-visible .sphere-nav__label {
  opacity: 1; visibility: visible; transform: translate(0, -50%);
}

/* ---------- Space bar (hero) ---------- */
.space { background: var(--charcoal); }
.space img { width: 100%; }

/* ---------- Starfield sections ---------- */
.starfield {
  background: var(--charcoal) url("../img/stars-bg.gif") center / cover no-repeat;
  color: var(--white);
}

.launchpad { min-height: clamp(1100px, 300vh, 2330px); padding-top: 30px; }
.a11y-link { text-align: right; font-size: 12px; line-height: 1.8; }
.a11y-link a { color: #c3c7d0; text-decoration: none; }
.a11y-link a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Valuesphere ---------- */
.values { padding-block: 190px 140px; }
.values__list { list-style: none; padding: 0; }
.value {
  display: flex; align-items: center; gap: 20px;
  min-height: 30rem;
  font-size: 25px; line-height: 1.8; font-weight: 300;
}
.value p { max-width: 280px; }
.value strong { font-weight: 600; }
.value--right { justify-content: flex-end; text-align: right; }
.value--left { justify-content: flex-start; }
.value--left img { margin-left: 18px; }
.value img { flex: none; }
.value .is-up { transform: translateY(-50px); }
.value .is-down { transform: translateY(190px); }
.value--inset { padding-right: 80px; }

/* ---------- Shared section typography ---------- */
.eyebrow {
  display: block;
  font-size: 19px; line-height: 1.75; font-weight: 500;
}
.display {
  font-size: var(--display);
  line-height: 1.16;
  font-weight: 400;
}

/* Rotating words ("We're in need of …", "Pawel, …") */
.rotator { display: inline-grid; vertical-align: top; }
.rotator--block { display: grid; }
.rotator__item { grid-area: 1 / 1; opacity: 0; }
.rotator__item.is-active { opacity: 1; }
/* While the JS animation runs, it draws the text into .rotator__live */
.rotator.is-live { display: inline-block; }
.rotator--block.is-live { display: block; }
.rotator.is-live .rotator__item { display: none; }
.rotator__live { display: inline-block; vertical-align: bottom; white-space: nowrap; }
.rotator__live--clip {
  overflow: hidden;
  border-right: 2px solid currentColor;   /* the sweeping bar */
  transition: width 0.6s ease;
}
.rotator__live--type::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* Show every phrase as static text instead of cycling. */
  .rotator, .rotator--block { display: inline; }
  .rotator__item { opacity: 1; }
  .rotator__item:not(:last-child)::after { content: ", "; }
}

/* ---------- Careersphere ---------- */
.career {
  --slant-top: var(--charcoal);
  background: var(--orange);
  color: var(--white);
  padding-bottom: 100px;
}
.career .wrap { padding-top: 130px; }
.career .eyebrow { color: var(--cyan); font-weight: 400; }
.career .btn { margin-top: 36px; }

/* ---------- Team quotes ---------- */
.quote { padding-block: 50px 60px; }
.quote__grid {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
}
.quote figure { flex: 0 1 395px; }
.quote__img { flex: 0 1 321px; }
.quote--img-left .quote__grid { flex-direction: row-reverse; }
.quote--img-left figure { text-align: right; }
.quote blockquote { font-size: 30px; line-height: 1.17; font-weight: 400; }
.quote figcaption { margin-top: 20px; font-size: 16px; line-height: 1.8; }
/* Slanted quotes: keep the text clear of the 150px slant (padding-block above would cancel it) */
.quote.slant-top { padding-top: calc(var(--slant-h) + 50px); }
.quote.slant-bottom { padding-bottom: calc(var(--slant-h) + 60px); }
.quote .hl { font-weight: 500; }

.quote--pawel { --slant-top: var(--orange); --slant-bottom: var(--white); background: var(--cyan); color: var(--charcoal); }
.quote--pawel .hl { color: var(--white); font-weight: 400; }
.quote--pawel figcaption { color: var(--ink); }

.quote--fiona { padding-block: 100px 80px; }
.quote--fiona .hl { color: var(--orange); }

.quote--altair { --slant-top: var(--white); --slant-bottom: var(--white); background: var(--charcoal); color: var(--white); }
.quote--altair .hl { color: var(--cyan); font-weight: 400; }
.quote--altair blockquote { font-weight: 500; }
.quote--altair blockquote span:not(.hl) { font-weight: 400; }

.quote--razvan { padding-block: 49px 50px; }
.quote--razvan .hl { color: var(--orange); }

.quote--merve { --slant-top: var(--white); background: var(--cyan); color: var(--charcoal); }
.quote--merve .hl { color: var(--white); }
.quote--merve figcaption { color: var(--charcoal); }

/* ---------- Culturesphere ---------- */
.culture {
  --slant-top: var(--cyan); --slant-bottom: var(--white);
  background: var(--orange);
  color: var(--white);
}
.culture__grid {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding-block: 50px 40px;
}
.culture__text { flex: 0 1 406px; }
.culture .eyebrow { color: var(--cyan); }
.culture .btn { margin-top: 34px; }

/* ---------- Numbers ---------- */
.numbers { padding-block: 170px 150px; color: var(--ink); }
.numbers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 12vw, 130px);
  row-gap: clamp(64px, 9vw, 150px);   /* air between the alternating left/right animations */
  align-items: start;
}
.numbers__grid > * { max-width: 342px; }
/* One row per item so the left/right animations alternate instead of sharing a row */
.numbers__grid > :nth-child(1) { grid-row: 1; }
.numbers__grid > :nth-child(2) { grid-row: 2; }
.numbers__grid > :nth-child(3) { grid-row: 3; }
.numbers__grid > :nth-child(4) { grid-row: 4; }
.numbers__grid > :nth-child(5) { grid-row: 5; }
/* Tighter gap between "2X" and "5X" (coins) — two-column layouts only */
@media (min-width: 801px) {
  .numbers__grid > :nth-child(4) { margin-top: calc(clamp(64px, 9vw, 150px) / -2); }
}
.stat--right { grid-column: 2; justify-self: end; text-align: right; }
.stat--left { grid-column: 1; }
.stat__caption { font-weight: 700; color: var(--charcoal); line-height: 1.8; }
.stat--coins { max-width: 266px; margin-top: 40px; }
.numbers__title { grid-column: 1; margin-top: 160px; color: var(--ink); }
.numbers__title strong { font-weight: 600; }
.numbers__title .accent { color: var(--orange); font-weight: 600; }

/* ---------- Toolsphere ---------- */
.tool {
  --slant-top: var(--white); --slant-bottom: var(--white);
  background: var(--cyan);
  color: var(--charcoal);
}
.tool__grid {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  padding-bottom: 40px;
}
.tool__text { flex: 0 1 357px; margin-top: 30px; text-align: right; }
.tool__title { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.41; font-weight: 400; }
.tool__title .eyebrow { color: var(--white); }
.tool__title strong { font-weight: 600; }
.tool .btn { margin-top: 40px; }
.tool__img {
  flex: 0 1 406px;
  position: relative; z-index: 1;
  margin-top: calc(-1 * var(--slant-h) - 77px); /* pokes above the top slant, as on the original */
}

/* ---------- Storysphere ---------- */
.story { padding-block: 100px 40px; color: var(--charcoal); }
.story__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.story__block h2 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); line-height: 1.3; font-weight: 700; color: var(--orange); margin-bottom: 20px; }
.story__block--right { grid-column: 2; text-align: right; max-width: 331px; justify-self: end; }
.story__block--left { grid-column: 1; grid-row: 2; max-width: 357px; justify-self: center; margin-top: 60px; }

.timeline {
  position: relative;
  list-style: none;
  max-width: 900px;
  margin: 130px 0 0 auto;   /* right-aligned: rings line up with the right edge of the content */
  padding: 0 102px 0 0;
  text-align: right;
}
.timeline::before {
  content: "";
  position: absolute; top: 40px; bottom: 40px; right: 40px;
  width: 2px; background: var(--orange);
}
.timeline li { position: relative; padding-block: 29px 50px; }
.timeline li::after {
  /* Orange ring, as in the original content-box icons */
  content: "";
  position: absolute; right: -102px; top: 0;
  width: 60px; height: 60px;
  border: 11px solid var(--orange);
  border-radius: 50%;
  background: var(--white) center / 30px no-repeat;
  box-sizing: content-box;
  transition: background-color 0.3s ease;
}
/* Hover (as on the original): ring fills orange, a white rocket appears, the ring pulses once */
.timeline li:hover::after {
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(45 12 12)' fill='white'%3E%3Cpath d='M12 2c3.2 2.3 5 6 5 10v3H7v-3c0-4 1.8-7.7 5-10z'/%3E%3Cpath d='M7 12.5 4 15.2V19l3-1.7zM17 12.5l3 2.7V19l-3-1.7zM10 16h4l-2 5z'/%3E%3Ccircle cx='12' cy='9.5' r='1.9' fill='%23ff6732'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 2px var(--white);
  animation: ring-pulse 0.7s ease-out;
}
.timeline h3 { transition: color 0.3s ease; }
.timeline li:hover h3 { color: var(--orange); }

@keyframes ring-pulse {
  from { box-shadow: inset 0 0 0 2px var(--white), 0 0 0 0 rgba(255, 103, 50, 0.5); }
  to   { box-shadow: inset 0 0 0 2px var(--white), 0 0 0 16px rgba(255, 103, 50, 0); }
}
.timeline h3 { font-size: 24px; line-height: 1.21; font-weight: 700; margin-bottom: 14px; }
.timeline a { color: var(--orange); font-weight: 700; text-decoration: none; }
.timeline a:hover { text-decoration: underline; }
.timeline sup { font-size: 0.6em; }

.story__title { margin-top: 150px; color: var(--charcoal); }
.story__title .eyebrow { color: var(--orange); }

/* ---------- Clouds (decorative) ---------- */
.clouds {
  --slant-top: var(--white);
  height: clamp(900px, 210vw, 2155px);
  background: #4df2fd url("../img/clouds-bg.png") center top / cover no-repeat;
}

/* ---------- Liftoff ---------- */
.liftoff {
  --slant-top: var(--cyan);
  background: var(--charcoal);
  color: var(--white);
  padding-bottom: 200px;
}
.liftoff__text { max-width: 609px; margin: 105px auto 0; }
.liftoff__text h2 { font-size: 28px; line-height: 1.6; font-weight: 500; }
.liftoff__text p { margin-top: 16px; font-size: 22px; line-height: 1.8; font-weight: 300; }
.liftoff .btn { margin-top: 30px; }
.launch {
  display: block;
  width: 128px;
  margin: 100px auto 0;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.8;
}
.launch img { width: 128px; }
.launch span { display: block; margin-top: 10px; }
.launch:hover span { text-decoration: underline; }

/* Wide screens: text left, chevrons right (Avada stacked them at ≤1024px) */
@media (min-width: 1025px) {
  .liftoff .wrap {
    width: auto; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  }
  .liftoff__text { max-width: none; margin: 0; padding: 0 4% 0 32%; }
  .launch { margin: 60px 0 0 calc(60% - 64px); }
}

/* ---------- Scroll-in animations (only when JS runs and motion is allowed) ---------- */
.js-anim [data-animate] { opacity: 0; }
.js-anim [data-animate].is-visible { opacity: 1; }
.js-anim [data-animate="fade-in"].is-visible { animation: fade-in 0.25s ease both; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   CAREERS
   ========================================================================== */
.careers-page { background: var(--white); }

.careers-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px clamp(16px, 7.6%, 80px);
}
.careers-header img { width: 200px; max-height: 72px; }

.careers-hero {
  background: var(--charcoal) url("../img/stars-bg.gif") center / auto repeat;
  color: var(--white);
  text-align: center;
  padding: 6em 3em;
}
.careers-hero h1 {
  font-family: "Montserrat", sans-serif;   /* matches the live site, which never loads Montserrat */
  font-size: 48px; line-height: 1.16; font-weight: 400;
  margin: 0 0 20px;
}
.hero-sep { width: 80px; height: 3px; margin: 0 auto 20px; background: var(--careers-orange); }
.careers-hero p { max-width: 600px; margin: 0 auto 40px; font-size: 20px; line-height: 1.6; }

.careers-hero--compact { padding-block: 4em; }

/* ---------- 404 page ---------- */
.not-found { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.careers-hero .not-found__code {
  margin: 0 auto 8px;
  color: var(--careers-orange);
  font-size: clamp(64px, 12vw, 120px); line-height: 1; font-weight: 700;
}
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Policy page (accessibility) ---------- */
.policy { padding: 72px 4% 96px; }
.policy__body {
  max-width: 760px; margin: 0 auto;
  color: var(--charcoal);
  font-size: 17px; line-height: 1.75;
}
.policy__body > * + * { margin-top: 1.1em; }
.policy__body h2 {
  margin-top: 2.6em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--careers-orange);
  color: var(--careers-navy);
  font-size: 28px; line-height: 1.25; font-weight: 600;
  scroll-margin-top: 24px;
}
.policy__body h3 { margin-top: 1.8em; color: var(--careers-navy); font-size: 20px; line-height: 1.35; font-weight: 600; }
.policy__body a { color: var(--orange-dark); text-underline-offset: 3px; }
.policy__body a:hover { color: var(--careers-navy); }
.policy__body ul { padding-left: 1.25em; }
.policy__body li + li { margin-top: 0.6em; }
.policy__quote {
  margin-inline: 0;
  padding: 18px 24px;
  border-left: 4px solid var(--careers-orange);
  background: #f5f6f8;
  font-size: 16px;
}
.policy__toc {
  margin-top: 2em;
  padding: 20px 24px;
  border-radius: 12px;
  background: #f5f6f8;
}
.policy__toc-title { font-weight: 600; color: var(--careers-navy); }
.policy__toc ul { margin-top: 6px; }
.policy__list li { padding-left: 4px; }

.job-section { padding: 80px 4%; }
.gem-embed-wrapper { min-height: 500px; }
#gem_job_board_embed iframe { display: block; border: 0; }
.gem-fallback { margin-top: 24px; text-align: center; font-size: 14px; }
.gem-fallback a { color: var(--orange); font-weight: 600; }

.careers-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 40px 4%;
  background: var(--careers-navy);
  border-top: 4px solid var(--careers-orange);
  color: var(--white);
}
.careers-footer a { color: var(--white); text-decoration: none; margin-left: 20px; }
.careers-footer a:hover { color: var(--careers-orange); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet / small laptop (Avada content break point was 800px) */
@media (max-width: 800px) {
  .value { min-height: 0; padding-block: 56px; font-size: 21px; line-height: 1.7; }
  .value .is-up, .value .is-down { transform: none; }
  .value--inset { padding-right: 0; }

  .quote__grid,
  .quote--img-left .quote__grid,
  .culture__grid,
  .tool__grid { flex-direction: column; align-items: stretch; }
  /* flex: none — in a column, flex-basis would become the image height and stretch it */
  .quote__img, .tool__img { flex: none; align-self: center; width: min(321px, 80%); }
  .tool__img { width: min(406px, 85%); margin-top: 0; order: -1; }
  .quote figure, .culture__text, .tool__text { flex-basis: auto; }
  .quote blockquote { font-size: 24px; }
  .tool__text { text-align: left; }

  .numbers { padding-block: 100px; }
  .numbers__grid { grid-template-columns: 1fr; row-gap: 64px; }
  .numbers__grid > * { grid-column: 1; justify-self: center; text-align: center; }
  .stat--right { justify-self: center; text-align: center; }
  .numbers__title { margin-top: 40px; text-align: left; justify-self: start; }

  .story__intro { grid-template-columns: 1fr; }
  .story__block--right, .story__block--left { grid-column: 1; grid-row: auto; justify-self: stretch; max-width: none; margin-top: 0; }
  .story__block--right { text-align: right; }
  .timeline { margin-top: 90px; padding-right: 64px; }
  .timeline::before { right: 22px; }
  .timeline li::after { right: -64px; width: 30px; height: 30px; border-width: 7px; }
  .timeline h3 { font-size: 20px; }
  .story__title { margin-top: 90px; }

  .liftoff__text { margin-top: 60px; }
  .liftoff__text p { font-size: 19px; }
}

/* Phones */
@media (max-width: 640px) {
  .sphere-nav { right: 4px; }
  .sphere-nav a { width: 34px; height: 34px; }
  .sphere-nav svg { width: 15px; height: 15px; }
  .rocket, .rocket img { width: 40px; }

  /* keep text clear of the fixed nav on the right */
  .wrap { width: auto; margin-inline: 16px 52px; }

  .value { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 44px; }
  .value--right { align-items: flex-end; }
  .value--right img { order: 2; }
  .value--left img { margin-left: 0; }
  .value img { width: 110px; }

  .launchpad { min-height: 160vh; }
  .values { padding-block: 100px 80px; }
  .career .wrap { padding-top: 40px; }
  .quote blockquote { font-size: 21px; line-height: 1.3; }

  .careers-header { flex-direction: column; }
  .careers-hero { padding: 4em 1.25em; }
  .careers-hero h1 { font-size: 32px; }
  .careers-hero p { font-size: 18px; }
}

@media (max-width: 768px) {
  .careers-footer { flex-direction: column; text-align: center; }
  .careers-footer a { margin-left: 0; }
}

/* Wide screens (>1024px): like Avada's percentage columns, content and images
   grow with the window up to each image's natural size. At 1024px these clamps
   resolve to the base sizes above, so tablet/phone layouts are unchanged. */
@media (min-width: 1025px) {
  :root { --max: 1240px; }

  .value p { max-width: clamp(280px, 27.8vw, 460px); }
  .value img { width: clamp(132px, 11.3vw, 300px); }
  .value img[src*="planet-tiger"] { width: clamp(164px, 12.7vw, 300px); }
  .value img[src*="planet-solid"] { width: clamp(99px, 8.5vw, 300px); }

  .quote__img { flex-basis: clamp(321px, 22vw, 350px); }

  .culture__text { flex-basis: clamp(406px, 29.4vw, 520px); }

  .numbers__grid > * { max-width: clamp(342px, 29.8vw, 500px); }
  .numbers__grid > .stat--coins { max-width: clamp(266px, 23.2vw, 530px); }

  .tool__text { flex-basis: clamp(357px, 28.4vw, 480px); }
  .tool__img { flex-basis: clamp(406px, 31.3vw, 500px); }

  .launch, .launch img { width: clamp(66px, 6.4vw, 160px); }
  .launch { margin-left: calc(60% - clamp(33px, 3.2vw, 80px)); }
}
