/* =========================================================
   Pedro Urrets — personal site
   Ocean-blue glass, Apple-style minimal. Vanilla CSS, no build step.
   ========================================================= */

:root {
  color-scheme: dark;

  /* Ocean backdrop */
  --deep:   #0b161b;
  --ocean-1: #13242c;
  --ocean-2: #1e3a46;
  --ocean-3: #36586a;
  --mist:    #8fa8b4;
  --ice:     #cfe0e7;
  --cal-bg:  #21353f; /* behind the Calendly widget; keep in sync with background_color in its data-url */

  /* Text */
  --text:   #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.56);

  /* Accent: the only colour on the site; change it here. Use sparingly (60-30-10). */
  --accent:      #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.16);
  /* Warm tone, only in Robbie's version (his button for now); kept apart from --accent */
  --warm:   #ff9e7a;
  --warm-2: #ffc56b;

  /* Glass */
  --glass-top:    rgba(255, 255, 255, 0.13);
  --glass-bottom: rgba(255, 255, 255, 0.05);
  --glass-line:   rgba(255, 255, 255, 0.16);
  --glass-hi:     rgba(255, 255, 255, 0.24);
  --hairline:     rgba(255, 255, 255, 0.10);
  --blur: blur(28px) saturate(150%);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;

  /* Shape & layout */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --maxw: 1080px;
  --measure: 640px;
  --pad: clamp(16px, 5vw, 48px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- OCEAN BACKDROP (fixed, behind everything) ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(79, 116, 134, 0.55), transparent 70%),
    radial-gradient(50% 45% at 90% 30%, rgba(54, 88, 106, 0.55), transparent 70%),
    radial-gradient(70% 60% at 30% 100%, rgba(143, 168, 180, 0.28), transparent 70%),
    linear-gradient(180deg, var(--ocean-1) 0%, var(--deep) 55%, #102026 100%);
}
/* Water-surface texture */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.022' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.5 0 0 0 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

strong { font-weight: 600; color: var(--text); }
a { color: var(--text); }

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

/* ---------- GLASS ---------- */
.glass {
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 30px 60px -30px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(30, 52, 62, 0.92); }
}

/* ---------- NAV (floating segmented pill) ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad);
  margin-top: 16px;
}
.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  max-width: 100%;
}
/* Reading progress: a 2px accent line along the pill's bottom edge, clipped by its rounded ends */
.nav__progress {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.nav__progress::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform .12s linear;
}
.nav__brand {
  padding: 0 14px 0 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__seg { display: flex; gap: 2px; }
.nav__seg a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav__seg a:hover { color: var(--text); }
.nav__seg a.is-active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.nav__cta {
  margin-left: 4px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease);
}
.nav__cta:hover { background: var(--ice); }
/* Robbie's version: a warm coral-to-amber link to his page, always visible (also on phones).
   Same size as before, so the white "Get in touch" stays the main call to action */
.nav__robbie {
  position: relative;
  overflow: hidden;
  margin-left: 4px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--warm), var(--warm-2));
  color: var(--deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(255, 158, 122, 0.35);
  transition: box-shadow .25s var(--ease);
}
.nav__robbie:hover,
.nav__robbie[aria-current="page"] { box-shadow: 0 0 24px rgba(255, 158, 122, 0.6); }
/* A soft shine crosses the button every ~6s */
.nav__robbie::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: robbie-shine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes robbie-shine {
  0%, 82% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__robbie::after { animation: none; display: none; }
}
.nav__robbie + .nav__cta { margin-left: 0; }
/* Narrow phones: three items in the bar, so everything gets a little tighter */
@media (max-width: 420px) {
  .nav__bar { gap: 4px; }
  .nav__brand { padding: 0 6px 0 10px; font-size: 14px; }
  .nav__robbie { margin-left: 0; padding: 6px 11px; font-size: 13px; }
  .nav__cta { padding: 7px 12px; font-size: 13px; }
}
@media (max-width: 680px) {
  .nav__seg { display: none; }
  .nav__bar { width: 100%; justify-content: space-between; }
}

/* ---------- LAYOUT ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 11vw, 120px) 0 0; }

/* ---------- CHIP ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(72px, 12vw, 136px) 0 clamp(56px, 8vw, 96px);
}
.hero__photo {
  margin: 0;
  padding: 8px;
  border-radius: var(--r-lg);
}
.hero__side { display: grid; gap: 12px; min-width: 0; }
/* Languages and education, right under the photo and just as wide */
.hero__facts {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
}
.hero__fact { display: flex; align-items: flex-start; gap: 12px; }
.hero__fact svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.hero__fact p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.hero__langs { display: flex; flex-wrap: wrap; column-gap: 7px; }
.hero__lang { display: inline-flex; flex-direction: column; }
.hero__lang small { font-size: 12px; color: var(--text-3); }
.hero__sep { color: var(--text-3); }
.hero .hero__name { font-size: clamp(52px, 8vw, 104px); }
.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: calc(var(--r-lg) - 8px);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero .hero__name { font-size: clamp(52px, 11vw, 112px); }
  .hero__side { order: -1; width: min(260px, 100%); margin-bottom: 28px; }
  /* Narrow card: tighter so the three languages stay on one line */
  .hero__facts { padding: 12px; gap: 10px; }
  .hero__fact { gap: 10px; }
  .hero__fact p { font-size: 13px; }
  .hero__langs { column-gap: 5px; }
  .hero__lang small { font-size: 11px; }
}
.hero__name {
  margin: 24px 0 16px;
  font-size: clamp(52px, 11vw, 112px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 35%, #a9c0ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  margin: 0 0 24px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 24ch;
}
.hero__lead {
  margin: 0 0 40px;
  max-width: var(--measure);
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--text-2);
}
.hero__lead strong { color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--text); color: var(--deep); }
.btn--primary:hover { background: var(--ice); }
.btn--glass { color: var(--text); }
.btn--glass:hover { border-color: rgba(255, 255, 255, 0.32); }

/* ---------- SECTION HEADER ---------- */
.sh { max-width: 760px; margin-bottom: 36px; }
.sh__title {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5.6vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.sh__role { margin: 0 0 14px; font-size: 17px; font-weight: 500; color: var(--text); }
.sh__role span { color: var(--text-3); font-weight: 400; }
.sh__text { margin: 0; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; color: var(--text-2); max-width: var(--measure); }

/* ---------- HUMAND INTRO (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  gap: 16px;
}
.bento__intro {
  margin: 0;
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}
.bento__intro p { margin: 0; }
.bento__sub {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.bento__intro p + .bento__sub { margin-top: 26px; }
.bento__side { min-width: 0; display: flex; flex-direction: column; }
.bento__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}
.bento__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bento__bridge {
  margin: clamp(40px, 6vw, 64px) 0 clamp(24px, 3vw, 32px);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.kpi {
  position: relative;
  container-type: inline-size;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 24px);
}
.kpi p { margin: 0; }
.kpi__num {
  font-size: clamp(34px, 17cqi, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi__num--long { font-size: clamp(30px, 13cqi, 48px); }
.kpi__arrow { color: var(--accent); font-weight: 400; }
.kpi__icon {
  position: absolute;
  top: clamp(18px, 2.4vw, 24px);
  right: clamp(18px, 2.4vw, 24px);
  width: 24px;
  height: 24px;
  color: var(--accent);
}
/* Room for the icon next to text that starts at the top of a card */
.kpi__top, .kpi__text { padding-right: 34px; }
.kpi--wide .kpi__num--xl { align-self: flex-end; margin-top: 40px; }
.kpi--bottom::before { content: ""; flex: none; height: 36px; } /* icon row: its number is long */
/* Counting numbers keep their final width, so nothing shifts while they count */
[data-count-from] { display: inline-block; text-align: left; }
.kpi__label { margin-top: 10px !important; font-size: 16px; font-weight: 600; color: var(--text); }
.kpi__sub { margin-top: 2px !important; font-size: 14px; color: var(--text-2); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.kpi__top .kpi__label { margin-top: 0 !important; }
.kpi__top + .kpi__num + .kpi__sub { margin-top: auto !important; padding-top: 10px; }
.kpi--bottom .kpi__num { margin-top: auto; }
.kpi__pills { list-style: none; margin: auto 0 0; padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kpi__pills li {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.kpi--wide {
  grid-column: 1 / -1;
  /* The only card with a glow: faint accent in the top-left corner, over the glass */
  background:
    radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.kpi__text { min-width: 0; }
.kpi__headline { font-size: clamp(18px, 2vw, 21px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.kpi--wide .kpi__sub { margin-top: 6px !important; }
.kpi__num--xl { font-size: clamp(40px, 5.4vw, 64px); flex: none; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento__title { margin-top: 20px; }
}
@media (max-width: 520px) {
  .bento__grid { grid-template-columns: 1fr; gap: 12px; }
  .kpi--wide { flex-direction: column; align-items: flex-start; }
  .kpi--wide .kpi__num--xl { align-self: flex-start; margin-top: 0; }
}

/* ---------- CARDS ---------- */
.cards { display: grid; gap: 16px; }
.card {
  min-width: 0;
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 34px);
  transition: border-color .25s var(--ease);
}
.card:hover { border-color: rgba(255, 255, 255, 0.26); }
.card__num {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.card__title {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.card__summary { margin: 0 0 18px; max-width: var(--measure); color: var(--text-2); }
.card__summary strong { color: var(--text); }
.card__story { padding-top: 18px; max-width: var(--measure); }
.card__story p { margin: 0 0 14px; color: var(--text-2); }
.card__story p:last-child { margin-bottom: 0; }

/* Proof list with check marks */
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: var(--measure); }
.proof li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.proof li strong { color: var(--text); font-weight: 600; }
.proof li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* ---------- SLIDER (card 01) ---------- */
.slider {
  margin: 4px 0 22px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-md);
  /* Faint accent glow in the top-right corner, behind the icon */
  background:
    radial-gradient(circle at 92% 0%, var(--accent-soft), transparent 48%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  outline: none;
}
.slider:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.slider:last-child { margin-bottom: 0; } /* closes card 01 */
/* All slides share one grid cell, so the viewport is always as tall as the tallest slide */
.slider__viewport { display: grid; touch-action: pan-y; overflow: hidden; }
.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 65fr 35fr;
  grid-template-areas: "body icon";
  align-items: center;
  column-gap: clamp(20px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--from, 24px));
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s linear .32s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s;
}
.slide__body { grid-area: body; max-width: 68ch; }
.slide__icon {
  grid-area: icon;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(168px, 18vw, 208px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  color: var(--accent);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.slide__icon svg { width: 52%; height: 52%; }
.slide.is-active .slide__icon {
  opacity: 1;
  transform: none;
  transition-delay: .08s;
}
.slide .accent { color: var(--accent); font-weight: 500; }
.slide__title {
  margin: 0 0 12px;
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.slide p { margin: 0 0 14px; color: var(--text-2); }
.slide p:last-child { margin-bottom: 0; }
.slide__highlight {
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.slide__highlight strong { color: var(--accent); font-weight: 600; }

.slider__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.slider__count { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider__count b { color: var(--accent); font-weight: 600; }
.slider__dots { display: flex; gap: 2px; margin-right: auto; }
.slider__dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slider__dot::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), background-color .25s var(--ease);
}
.slider__dot:hover::before { background: rgba(255, 255, 255, 0.5); }
.slider__dot[aria-current="true"]::before { width: 18px; background: var(--accent); }
.slider__arrows { display: flex; gap: 8px; }
.slider__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
}
.slider__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.slider__btn:disabled { opacity: 0.35; cursor: default; }
.slider__btn svg { width: 16px; height: 16px; }
/* Narrow: small icon above the title */
@media (max-width: 720px) {
  .slide {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "body";
    align-items: start;
  }
  .slide__icon { justify-self: start; width: 84px; margin-bottom: 16px; }
  .slide__icon svg { width: 56px; height: 56px; stroke-width: 1.6; }
}
@media (max-width: 520px) {
  .slider { padding: 18px 16px; margin-inline: -6px; }
  .slider__nav { gap: 10px; }
  .slider__dots { gap: 0; }
  .slider__dot { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; transform: none; }
  .slide__icon, .slide.is-active .slide__icon { transition: opacity .2s linear; transform: none; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- INBOUND (card 02): results, vertical tabs, orbit ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0 0;
}
.figure { min-width: 0; padding: 4px clamp(14px, 2vw, 22px); }
.figure:first-child { padding-left: 0; }
.figure + .figure { border-left: 1px solid var(--hairline); }
.card__summary strong.accent { color: var(--accent); }
.figure__num {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Short accent line above each figure */
.figure__num::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--accent);
}
.figure__label { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-2); }
@media (max-width: 760px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding: 16px 14px; }
  .figure:nth-child(odd) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .figure:nth-child(-n+2) { padding-top: 4px; }
}
.playbook {
  margin: clamp(40px, 6vw, 56px) 0 0;
  padding-top: clamp(28px, 4vw, 36px);
  border-top: 1px solid var(--hairline);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.inbound {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 16px;
}
.itabs { display: flex; flex-direction: column; }
.itab { position: relative; padding-left: 18px; }
.itab + .itab { margin-top: 2px; }
.itab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--hairline);
  transition: background-color .3s var(--ease);
}
.itab.is-open::before { background: var(--accent); }
.itab__head { margin: 0; }
.itab__head button {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font: 600 clamp(17px, 1.9vw, 19px) / 1.3 var(--font);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.itab__head button:hover { color: var(--text-2); }
.itab.is-open .itab__head button { color: var(--text); }
.itab__num { flex: none; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; transition: color .2s var(--ease); }
.itab.is-open .itab__num { color: var(--accent); }
.itab__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.itab.is-open .itab__panel { grid-template-rows: 1fr; }
.itab__inner { min-height: 0; overflow: hidden; }
.itab__inner p { margin: 0; padding: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* Orbit: rings spin, each icon counter-spins so it stays upright */
.orbit {
  --badge: 42px;
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit__core { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit__core::before {
  content: "";
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.26), var(--accent-soft) 30%, rgba(94, 234, 212, 0.04) 58%, transparent 72%);
}
.orbit__core span {
  position: relative;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 0 22px rgba(94, 234, 212, 0.45);
}
.orbit__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--k) * (100% - var(--badge) - 2px));
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.16); /* barely-there accent tint */
  pointer-events: none;
  animation: orbit-spin var(--dur) linear infinite;
  animation-direction: var(--dir);
  will-change: rotate;
}
.orbit__slot {
  position: absolute;
  left: 50%;
  top: 50%;
  transition: left .8s var(--ease) var(--delay), top .8s var(--ease) var(--delay);
}
.orbit.is-in .orbit__slot { left: var(--x); top: var(--y); }
.orbit__spin {
  position: absolute;
  animation: orbit-spin var(--dur) linear infinite;
  animation-direction: var(--counter);
  will-change: rotate;
}
.orbit.is-idle .orbit__ring,
.orbit.is-idle .orbit__spin { animation-play-state: paused; }
.orbit__badge {
  position: absolute;
  width: var(--badge);
  height: var(--badge);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 41, 49, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  pointer-events: none;
  opacity: 0;
  scale: 0.4;
  transition: color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
/* Decorative flash: one random icon at a time lights up in the accent colour */
.orbit__badge.is-flash {
  color: var(--accent);
  border-color: rgba(94, 234, 212, 0.55);
  box-shadow: 0 0 18px var(--accent-soft), 0 0 6px rgba(94, 234, 212, 0.25);
}
.orbit.is-in .orbit__badge { animation: orbit-in .6s var(--ease) var(--delay) both; }
.orbit__badge svg { width: 44%; height: 44%; }
@keyframes orbit-spin { to { rotate: 360deg; } }
@keyframes orbit-in { from { opacity: 0; scale: 0.4; } to { opacity: 1; scale: 1; } }

.orbit--static .orbit__ring,
.orbit--static .orbit__spin { animation: none; }
.orbit--static .orbit__slot { transition: none; }
.orbit--static .orbit__badge { animation: none !important; opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .itab__panel { transition: none; }
}
@media (max-width: 860px) {
  .inbound { grid-template-columns: 1fr; }
  .orbit { order: -1; max-width: 300px; --badge: 30px; }
  .orbit__core span { font-size: 17px; }
}

/* ---------- TEAM GROWTH (card 01) ---------- */
.team {
  margin: 4px 0 22px;
  padding: 18px 18px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
}
.team[hidden] { display: none; }
.team__hud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.team__quarter { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.team__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-2); }
.team__stat b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.team__stat--open[hidden] { display: none; }
.team__scroll { margin: 10px 0 8px; }
.team__chart { display: block; width: 100%; height: auto; }

/* Org chart */
.team__link { fill: none; stroke: #5d7884; stroke-width: 1.2; stroke-linejoin: round; transition: opacity .3s var(--ease); }
.team__root { fill: #ffffff; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35)); }
.team__avatar-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.team__root-name { fill: var(--deep); font: 600 12px var(--font); letter-spacing: -0.01em; }
.team__root-title { fill: #3e5560; font: 500 10px var(--font); }
.team__head rect { fill: rgba(255, 255, 255, 0.13); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.team__head text { fill: var(--text); font: 600 10px var(--font); letter-spacing: -0.005em; }
.team__box rect { fill: rgba(255, 255, 255, 0.10); stroke: rgba(255, 255, 255, 0.20); stroke-width: 0.8; }
.team__box text { fill: rgba(255, 255, 255, 0.92); font: 500 7.4px var(--font); letter-spacing: -0.005em; }
.team__box .team__box-detail { fill: rgba(255, 255, 255, 0.55); font-weight: 400; }
.team__box--lead rect { fill: var(--ice); stroke: var(--ice); }
.team__box--lead text { fill: var(--deep); font-weight: 600; }
.team__box--lead .team__box-detail { fill: #3e5560; }
.team__box--market rect { fill: rgba(127, 209, 232, 0.16); stroke: rgba(160, 222, 240, 0.65); stroke-width: 0.9; }
.team__box--market text { fill: #bfeaf6; font: 700 6.2px var(--font); letter-spacing: 0.04em; }
/* Phones: the whole chart scales down to the screen width (team.js enlarges my box to keep it readable) */
.team__controls { display: flex; align-items: center; gap: 12px; }
.team__play {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.team__play:hover { background: rgba(255, 255, 255, 0.12); }
.team__play svg { width: 14px; height: 14px; fill: currentColor; }
.team__icon-play { display: none; }
.team__play.is-paused .team__icon-play { display: block; }
.team__play.is-paused .team__icon-pause { display: none; }
.team__ticks { flex: 1; min-width: 0; display: flex; gap: 3px; }
.team__tick {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font: 500 11px/1 var(--font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
.team__tick::before {
  content: "";
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color .3s var(--ease);
}
.team__tick.is-past::before,
.team__tick.is-active::before { background: var(--ice); }
.team__tick.is-active { color: var(--text); }
.team__tick:hover { color: var(--text); }
.team__caption { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
/* Narrow: only the first and last quarter keep their label under the timeline */
@media (max-width: 760px) {
  .team__tick span { display: none; }
  .team__tick:first-child span, .team__tick:last-child span { display: inline; }
}
@media (max-width: 560px) {
  .team { padding: 14px 12px 12px; }
  .team__quarter { font-size: 19px; }
}

/* ---------- GLOBE (card 03) ---------- */
.card__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.globe { margin: 0; display: grid; justify-items: center; }
.globe__stage { position: relative; width: 100%; aspect-ratio: 1; }
.globe__stage::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 188, 206, 0.30), transparent 68%);
  filter: blur(24px);
}
.globe__stage canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.globe__stage canvas.is-ready { opacity: 1; }
.globe__stage canvas.is-dragging { cursor: grabbing; }
.globe--static .globe__stage { display: none; }

/* Pulse ring anchored to each country (browsers with CSS anchor positioning).
   Each ring loops with its own delay so they don't all pulse at once. */
.globe__ping {
  position: absolute;
  left: anchor(center);
  top: anchor(center);
  translate: -50% -50%;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: var(--v, 0);
  transition: opacity .3s;
}
.globe__ping::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(207, 224, 231, 0.85);
  opacity: 0;
  transform: scale(0.3);
  animation: ping 2.6s ease-out var(--d, 0s) infinite;
}
.globe.is-idle .globe__ping::before { animation-play-state: paused; }
@keyframes ping {
  0% { opacity: 0.9; transform: scale(0.3); }
  70%, 100% { opacity: 0; transform: scale(1.7); }
}

@media (max-width: 860px) {
  .card__split { grid-template-columns: 1fr; }
  .globe { order: -1; width: min(100%, 340px); margin: 0 auto 8px; }
}

/* Card 03: questions asked before opening a market */
.card__story--open { padding-top: 0; }
.qtabs {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.qtabs__index { display: grid; gap: 2px; }
.qtab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 11px 14px 11px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--text-3);
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.qtab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--hairline);
  transition: background-color .2s var(--ease);
}
.qtab:hover { color: var(--text-2); }
.qtab[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.qtab[aria-selected="true"]::before { background: var(--accent); }
.qtab:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.qtab__num { flex: none; font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: .8; }
.qtab[aria-selected="true"] .qtab__num { color: var(--accent); opacity: 1; }
.qtab__short { display: none; }

.qtabs__card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
}
/* All panels share one grid cell, so the card is as tall as the longest one and never jumps (card 05).
   With data-fit (cards 03 and 04) the card follows the active panel instead */
.qtabs__stack { display: grid; }
.qpanel {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility 0s linear .25s;
}
.qpanel.is-active { opacity: 1; visibility: visible; transition: opacity .3s var(--ease) .05s, visibility 0s; }
/* Card 04: the card fits the active step; the leaving step fades out on top, outside the flow */
.qtabs__stack[data-fit] { position: relative; transition: height .3s var(--ease); overflow: clip; overflow-clip-margin: 8px; }
.qtabs__stack[data-fit] .qpanel:not(.is-active) { position: absolute; inset: 0 0 auto 0; }
.qpanel:focus-visible { outline: 2px solid var(--ice); outline-offset: 6px; border-radius: 6px; }
.qpanel__num {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.qpanel__q {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
/* Card 03: number + question on the left, icon on the right; long questions wrap before the icon */
.qpanel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.qpanel__titles { min-width: 0; }
.qpanel__head .qpanel__q { margin-bottom: 0; }
.qpanel__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  color: var(--accent);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.qpanel__icon svg { width: 50%; height: 50%; }
.qpanel.is-active .qpanel__icon { opacity: 1; transform: none; transition-delay: .08s; }
.qpanel p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.qpanel p:last-child { margin-bottom: 0; }
/* Card 03 panels: building blocks for each question's format */
.qtabs__card { container: qcard / inline-size; }
.qpanel ul, .qpanel dl { margin: 0 0 12px; padding: 0; }
.qpanel dd { margin: 0; }
.qp-label {
  margin: 0 0 6px !important;
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3) !important;
}
/* B. Comparison: two short columns split by a hairline */
.qp-compare { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 4px; }
.qp-col { min-width: 0; padding: 2px 20px 0 0; }
.qp-col + .qp-col { padding: 2px 0 0 20px; border-left: 1px solid var(--hairline); }
.qp-col p { font-size: 14.5px; line-height: 1.55; }
/* C. Conditional rows: label left, text right, hairlines between */
.qp-rows { margin-top: 14px !important; border-top: 1px solid var(--hairline); }
.qp-row {
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.qp-row:last-child { border-bottom: 0; } /* the takeaway's own line closes the list */
.qp-row dt { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--text); }
.qp-row dd { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
/* Stacked variant (05): label above its text */
.qp-rows--stacked .qp-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
/* D/E. Icon lists */
.qp-checklist, .qp-proof { list-style: none; display: grid; gap: 9px; margin-top: 4px !important; }
.qp-checklist li, .qp-proof li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.qp-checklist li::before, .qp-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.qp-checklist li { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/><path d='M12 17h.01'/></svg>"); }
.qp-proof li.is-yes { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>"); }
.qp-proof li.is-no { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6 6 18'/><path d='m6 6 12 12'/></svg>"); }
.qp-proof li.is-no::before { background: var(--text-3); }
/* Intro-style line that opens a block mid-panel (04) */
.qpanel .qp-lead { margin-top: 20px; }
/* Small role pills under a comparison column (04) */
.qpanel ul.qp-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.qp-roles li {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
/* H. Example box: a very soft panel with a small label on top */
.qp-example {
  margin: 16px 0 14px;
  padding: 14px 18px 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}
.qp-example p { font-size: 14.5px; line-height: 1.55; }
/* F. Big quote */
.qp-quote {
  margin: 4px 0 14px !important;
  font-size: clamp(19px, 2vw, 22px) !important;
  font-weight: 600;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}
/* G. Takeaway, in every question */
.qpanel .qp-takeaway {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-weight: 500;
  color: var(--accent);
}
/* Narrow panel (phones, small tablets): comparisons and rows stack */
@container qcard (max-width: 440px) {
  .qp-compare { grid-template-columns: 1fr; gap: 14px; }
  .qp-col, .qp-col + .qp-col { padding: 0; border-left: 0; }
  .qp-col + .qp-col { padding-top: 14px; border-top: 1px solid var(--hairline); }
  .qp-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.qtabs__next {
  align-self: flex-end;
  margin-top: 20px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.qtabs__next:hover { background: rgba(255, 255, 255, 0.12); }
.qtabs__next:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

@media (max-width: 860px) {
  .qtabs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* "Next question" scrolls back to the card: keep the pill row above it in view too */
  .qtabs .qtabs__card { scroll-margin-top: 60px; }
  /* Index becomes a horizontal, scrollable row of pills */
  .qtabs__index {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -4px;
    padding: 2px 4px;
    scroll-padding-inline: 4px;
  }
  .qtabs__index::-webkit-scrollbar { display: none; }
  .qtab {
    flex: none;
    width: auto;
    gap: 7px;
    padding: 7px 13px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13.5px;
    white-space: nowrap;
  }
  .qtab::before { display: none; }
  .qtab[aria-selected="true"] { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); }
  .qtab__short { display: inline; }
  /* Full question stays in the accessible name, just not on screen */
  .qtab__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Small icon above the number */
  .qpanel__head { flex-direction: column; gap: 12px; }
  .qpanel__icon { order: -1; width: 44px; }
  .qpanel__icon svg { width: 52%; height: 52%; stroke-width: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .qpanel, .qpanel.is-active, .qtab, .qtabs__stack[data-fit], .qpanel__icon { transition: none; }
  .qpanel__icon { transform: none; }
}

.bullets { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ice);
}

/* Card 04: the marketing × sales loop (diagram left, step panel right) */
.loop {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start; /* the panel changes height; the diagram stays put */
}
.loop__diagram { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-inline: auto; }
.loop__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__ring { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.loop__arrows path {
  fill: none;
  stroke: rgba(207, 224, 231, 0.45);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.loop__arrows path.is-close { stroke: var(--ice); stroke-width: 1.8; }
.loop__runner {
  fill: var(--ice);
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: loop-run 12s linear infinite;
}
.loop__glow { opacity: .22; }
.loop.is-idle .loop__runner { animation-play-state: paused; }
@keyframes loop-run { to { transform: rotate(360deg); } }
.loop__center {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}
.loop__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text-3);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.loop__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #22323b;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.loop__label {
  position: absolute;
  width: max-content;
  max-width: 82px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.loop__node--top .loop__label { bottom: calc(100% + 10px); left: 50%; translate: -50% 0; text-align: center; max-width: 140px; }
.loop__node--bottom .loop__label { top: calc(100% + 10px); left: 50%; translate: -50% 0; text-align: center; max-width: 140px; }
.loop__node--right .loop__label { left: calc(100% + 10px); top: 50%; translate: 0 -50%; text-align: left; }
.loop__node--left .loop__label { right: calc(100% + 10px); top: 50%; translate: 0 -50%; text-align: right; }
.loop__short { display: none; }
.loop__node:hover { color: var(--text-2); }
.loop__node:hover .loop__dot { border-color: rgba(255, 255, 255, 0.4); }
.loop__node[aria-selected="true"] { color: var(--text); }
.loop__node[aria-selected="true"] .loop__dot {
  transform: scale(1.22);
  background: var(--ice);
  border-color: var(--ice);
  color: var(--deep);
  box-shadow: 0 0 18px rgba(207, 224, 231, 0.45);
}
.loop__node:focus-visible { outline: none; }
.loop__node:focus-visible .loop__dot { outline: 2px solid var(--ice); outline-offset: 4px; }

/* Side labels need room: stack the diagram above the panel before the columns get tight */
@media (max-width: 1080px) {
  .loop { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .loop__diagram { max-width: 400px; }
}
@media (max-width: 860px) {
  .loop__diagram { max-width: 300px; }
  .loop__dot { width: 30px; height: 30px; font-size: 11.5px; }
  .loop__label { font-size: 12px; max-width: none; white-space: nowrap; }
  .loop__center { font-size: 11px; }
  .loop__short { display: inline; }
  .loop__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .loop__runner { display: none; }
  .loop__dot, .loop__node { transition: none; }
}

/* Card 05: marketing at the center (text + decorative network, then what it meant in practice) */
.hub {
  margin-top: clamp(24px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.hub__text p { margin: 0; color: var(--text-2); }
.hub__net { min-width: 0; }

/* Decorative only (aria-hidden): Marketing in the middle, 9 teams around it, dots travelling both ways */
.net { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-inline: auto; }
.net__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net__lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.net__dots circle { fill: var(--ice); }
.net__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #22323b;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}
.net__node[data-sub]::after {
  content: attr(data-sub);
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  translate: -50% 0;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
}
.net__node--center {
  padding: 11px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 28px rgba(207, 224, 231, 0.35), 0 0 60px rgba(143, 188, 206, 0.18);
}

/* What that meant in practice: 4 light items, no heavy cards */
.practice__title {
  margin: clamp(36px, 5vw, 52px) 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}
.practice {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.practice li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}
.practice svg { flex: none; width: 24px; height: 24px; color: var(--accent); }
.card > .qp-takeaway { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--hairline); font-weight: 500; color: var(--accent); }

@media (max-width: 960px) {
  .practice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hub { grid-template-columns: minmax(0, 1fr); }
  .hub__net { order: -1; }
  .net { max-width: 400px; }
  .net__node { padding: 6px 11px; font-size: 12.5px; }
  .net__node--center { padding: 8px 14px; font-size: 14px; }
  .net__node[data-sub]::after { font-size: 10px; top: calc(100% + 2px); }
}
/* Phones: same diagram, smaller pills so all 9 teams still fit around Marketing */
@media (max-width: 600px) {
  .net__node { padding: 4px 8px; font-size: 11px; }
  .net__node--center { padding: 7px 12px; font-size: 13px; }
  .net__node[data-sub]::after { font-size: 9px; top: calc(100% + 1px); }
  .practice { grid-template-columns: minmax(0, 1fr); }
  .practice li { flex-direction: row; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .net__dots { display: none; }
}
}

/* ---------- HUMAND CLOSING CARD ---------- */
.card--outro {
  /* Faint accent glow in the bottom-right corner marks the end of the Humand story */
  background:
    radial-gradient(circle at 100% 100%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
}
/* Phones: one column in reading order. Desktop: text and button on the left (40%), the list on the right (60%) */
.card--outro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "intro" "list" "close" "btn";
  align-items: start;
}
.outro__title { grid-area: title; margin-bottom: 14px; }
.outro__intro { grid-area: intro; margin: 0; max-width: 52ch; color: var(--text-2); }
.outro__close { grid-area: close; margin: 0; max-width: 52ch; font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--text); }
.outro__btn { grid-area: btn; justify-self: start; margin-top: 24px; }
.outro__list { grid-area: list; list-style: none; margin: 22px 0 26px; padding: 0; }
.outro__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.outro__list li:last-child { border-bottom: 1px solid var(--hairline); }
.outro__list svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
@media (min-width: 861px) {
  .card--outro {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    /* The last row takes any extra height, so the left column stays packed at the top */
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "title list" "intro list" "close list" "btn list";
    column-gap: clamp(40px, 6vw, 72px);
  }
  .outro__intro { margin-bottom: 22px; }
  .outro__list { align-self: center; margin: 0; }
}

/* ---------- TIMELINE ---------- */
.timeline { border-radius: var(--r-lg); overflow: hidden; }
.job {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.4vw, 34px);
}
.job + .job { border-top: 1px solid var(--hairline); }
.job__when { padding-top: 3px; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.job__role { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.job__org { margin: 2px 0 0; font-size: 15px; color: var(--text-3); }
.job__desc { margin: 12px 0 0; max-width: var(--measure); color: var(--text-2); }
/* Same learning line as the Humand cards: hairline on top, accent text */
.job .qp-takeaway {
  margin: 16px 0 0;
  padding-top: 12px;
  max-width: var(--measure);
  border-top: 1px solid var(--hairline);
  font-weight: 500;
  color: var(--accent);
}
@media (max-width: 680px) { .job { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- CONTACT ---------- */
/* Phones: title, calendar, then the email and LinkedIn buttons. Desktop: text and buttons left (35%), calendar right (65%) */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "cal" "actions";
  align-items: start;
  border-radius: var(--r-lg);
  padding: clamp(20px, 6vw, 56px);
}
.contact__head { grid-area: head; margin: 0 0 24px; }
.contact__head .sh__title { margin-bottom: 14px; }
.contact__cal { grid-area: cal; min-width: 0; border-radius: var(--r-md); overflow: hidden; background: var(--cal-bg); }
/* data-resize lets Calendly grow the widget to its content, so phones never get a scroll inside the page */
.contact__cal .calendly-inline-widget { width: 100%; min-width: 0 !important; }
.contact__actions { grid-area: actions; margin-top: 24px; }
@media (min-width: 861px) {
  .contact {
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head cal" "actions cal";
    column-gap: clamp(32px, 4vw, 48px);
  }
  .contact__head { margin: 0; }
  /* Desktop keeps the fixed 700px frame from the embed code */
  .contact__cal .calendly-inline-widget { height: 700px !important; }
  .contact__head .sh__title { font-size: clamp(36px, 4.2vw, 48px); }
  .contact__actions { margin-top: 28px; }
}

/* ---------- FOOTER ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad) 104px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- BACK TO TOP (square glass button) ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .to-top, .nav__progress::after { transition: none; }
  .globe__ping { display: none; }
}

/* =========================================================
   ROBBIE'S PAGE (/for-robbie, only in Robbie's version)
   A personal letter with the visual range of the Humand section.
   ========================================================= */
/* The page's accent is the warm tone of his menu button; the rest of the site keeps the aqua --accent */
.rb-page {
  --accent: var(--warm);
  --accent-soft: rgba(255, 158, 122, 0.16);
}
.rb { padding-top: clamp(56px, 9vw, 104px); }
.rb-section { margin-top: clamp(80px, 11vw, 136px); }
.rb-sub { margin: 0 0 18px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; color: var(--accent); }
/* Reading width for running text (~70 characters), while grids and photos use the full width */
.rb-text { max-width: 48ch; }
.rb-text p { margin: 0 0 16px; line-height: 1.65; color: var(--text-2); }
.rb-text p:last-child { margin-bottom: 0; }
.rb-label { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.rb-actions { margin-top: 28px; }
.rb-actions[hidden] { display: none; }

/* Photo frames: show /images/robbie/[name].jpg once it exists; until then, a dashed placeholder with its name */
.rb-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.035);
}
.rb-photo--tall { aspect-ratio: 4 / 5; }
.rb-photo--land { aspect-ratio: 4 / 3; }
.rb-photo--wide { aspect-ratio: 16 / 10; }
.rb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.rb-photo.is-loaded { border-style: solid; border-color: var(--glass-line); }
.rb-photo.is-loaded img { opacity: 1; }
.rb-photo.is-loaded .rb-photo__ph { display: none; }
.rb-photo__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-3);
}

/* 1. Header: text left, the hero photo right with a warm glow behind it */
.rb-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(32px, 6vw, 72px); }
.rb-hero__title {
  margin: 0 0 20px;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 0%, var(--ice) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rb-hero__intro { margin: 0; max-width: 30ch; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; letter-spacing: -0.015em; color: var(--text); }
.rb-hero__photo { position: relative; margin: 0; }
.rb-hero__photo::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  border-radius: var(--r-lg);
  background: radial-gradient(closest-side, rgba(255, 158, 122, 0.45), rgba(255, 197, 107, 0.15) 60%, transparent);
  filter: blur(28px);
  z-index: -1;
}
.rb-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); border: 1px solid var(--glass-line); }

/* 2. Why you: a large white quote with warm quote marks */
.rb-quote { margin: 0 0 32px; }
.rb-quote p {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}
.rb-quote p::before { content: "“"; color: var(--accent); }
.rb-quote p::after { content: "”"; color: var(--accent); }

/* 3. Where I'm coming from: Humand-style bento with warm details */
.rb-bento { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rb-bento .kpi__num { margin-top: 40px; }
.rb-bento__wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  background:
    radial-gradient(circle at 100% 100%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
}
.rb-bento__wide .rb-photo { border-radius: var(--r-sm); }
.rb-bento__wide .kpi__num { margin-top: 0; }
.rb-bento__series .kpi__label { max-width: 22ch; font-size: 18px; line-height: 1.3; }
.rb-label + .rb-pills { margin-top: 0; }
.rb-bento + .rb-label { margin-top: 32px; }
.rb-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rb-pills li {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

/* 4. The turning point: a tall photo beside the story, then what changed */
.rb-turn { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 5vw, 64px); }
.rb-contrast { margin: 28px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rb-contrast__col { padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.03); }
.rb-contrast__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rb-contrast__col--then li { font-size: 15.5px; color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.rb-contrast__col--now { border-color: rgba(255, 158, 122, 0.35); background: rgba(255, 158, 122, 0.06); }
.rb-contrast__col--now .qp-proof li { font-size: 15.5px; color: var(--text); }
.rb-close {
  margin: 0;
  max-width: 48ch;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

/* 5. Where I could help: three groups, each with a warm icon */
.rb-help { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rb-help__col { padding: 22px; border-radius: var(--r-md); border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.03); }
.rb-help__col svg, .rb-work svg { display: block; width: 24px; height: 24px; margin-bottom: 14px; color: var(--accent); }
.rb-help__col h3, .rb-work h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--text); }
.rb-help__col p, .rb-work p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.rb-note { margin: 20px 0 0; font-size: 14px; color: var(--text-3); }

/* 6. How I work: six cards (rows share a height), then two team photos */
.rb-work { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rb-work li { padding: 22px; border-radius: var(--r-md); border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.03); }
.rb-pair { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rb-caption { margin: 14px 0 0; max-width: 60ch; font-size: 14.5px; line-height: 1.5; color: var(--text-3); }

/* 7. The ask: the warm, highlighted card with the calendar inside */
.rb-ask {
  background:
    radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(255, 197, 107, 0.08), transparent 50%),
    linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  border-color: rgba(255, 158, 122, 0.3);
}
/* Same width as in the contact section (wider, Calendly fills the sides with white). Its height follows
   the calendar at every step (data-resize), so there's no white strip below it and no scroll inside it */
.rb-ask__cal { margin-top: 28px; max-width: 560px; border-radius: var(--r-md); overflow: hidden; background: var(--cal-bg); }
/* Calendly first reports a 2px height before drawing; the minimum (its day-picker size) keeps it from collapsing */
.rb-ask__cal .calendly-inline-widget { width: 100%; min-width: 0 !important; min-height: 600px; }
.rb-ask__mail { margin: 18px 0 0; font-size: 15px; }
.rb-ask__mail a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }

/* 8. Outside work: a strip of three photos (scrolls sideways on phones) */
.rb-strip { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Each section fades in once, the first time it scrolls into view (robbie.js) */
.rb-js .rb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rb-js .rb-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .rb-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rb-hero { grid-template-columns: minmax(0, 1fr); }
  .rb-hero__photo { order: -1; width: min(280px, 75%); }
  .rb-bento { grid-template-columns: minmax(0, 1fr); }
  .rb-bento .kpi__num { margin-top: 28px; }
  .rb-bento__wide { grid-template-columns: minmax(0, 1fr); }
  .rb-turn { grid-template-columns: minmax(0, 1fr); }
  .rb-help { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .rb-work, .rb-pair, .rb-contrast { grid-template-columns: minmax(0, 1fr); }
  .rb-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
  }
  .rb-strip::-webkit-scrollbar { display: none; }
  .rb-strip .rb-photo { flex: none; width: 72%; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-js .rb-reveal { opacity: 1; transform: none; transition: none; }
  .rb-photo img { transition: none; }
}
