/* Mango Studios — 1940s cartoon redesign */

:root {
  --ink: #111111;
  --title-yellow: #FFDE5F;
  --services-yellow: #FADF73;
  --services-blue: #6CB7E3;
  --card-blue: #ADD9EF;
  --blob-orange: #F9B435;
  --blob-ink: #2B1604;
  --sky-blue: #2EA3DF;
  --paper: #FFFDF6;

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-cartoon: "Chewy", "Comic Sans MS", cursive;
  --font-text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-round: "Fredoka", "Nunito", "Arial Rounded MT Bold", sans-serif;

  --trail-size: clamp(64px, 7.5vw, 124px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--services-blue); color: var(--ink); font-family: var(--font-text); overflow-x: clip; }
img { display: block; }
[hidden] { display: none !important; }
/* no single word left alone on the last line of a paragraph, and headings
   that break into even lines rather than one long and one short */
p, li, dd { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

.sky {
  position: absolute;
  inset: 0;
  background: var(--sky-blue) url("assets/sky-clouds.webp") repeat-x 0 50% / auto 100%;
}

/* ── HERO ──────────────────────────────────── */

/* Pinned for one extra screen so About can slide up over it */
.stage {
  position: relative;
  height: 200vh;
  height: 200svh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #06243a;
}

.hero-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  transform-origin: 50% 0;
  cursor: crosshair;
}

.hero-inner { container-type: inline-size; }

.hero-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.4svh, 28px);
  padding: 0 2cqw;
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.hero-title { margin: 0; display: grid; justify-items: center; gap: 0.02em; line-height: 0.8; }
.hero-word {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: var(--fit, 16cqw);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--title-yellow);
}

/* a strip of services scrolling along the bottom of the sky */
.ticker {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 4svh);
  overflow: hidden;
  background: var(--paper);
  border-block: 4px solid var(--ink);
  transform: rotate(-1.5deg) scaleX(1.04);
  pointer-events: none;
}
.ticker-run { display: flex; width: max-content; animation: tick var(--tick-time, 38s) linear infinite; will-change: transform; }
.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 28px;
  font-family: var(--font-cartoon);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.tick-item img { width: auto; height: 1.5em; }
@keyframes tick { to { transform: translateX(var(--tick-shift, -50%)); } }

/* live skies: the base clouds drift, a lighter layer in front drifts faster */
.sky--live { animation: drift 140s linear infinite; }
.clouds-front {
  position: absolute;
  inset: -4% 0;
  z-index: 1;
  background: url("assets/clouds-front.webp") repeat-x 0 60% / auto 100%;
  opacity: 0.75;
  animation: drift-front 70s linear infinite;
  pointer-events: none;
}
@keyframes drift { to { background-position-x: calc(-100svh * 1.7778); } }
@keyframes drift-front { to { background-position-x: calc(-108svh * 1.7778); } }

.trail {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.trail img {
  position: absolute;
  left: 0;
  top: 0;
  height: var(--trail-size);
  width: auto;
  max-width: none;
  will-change: transform, opacity;
  animation: sticker 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes sticker {
  0%   { transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(var(--r0)) scale(0.2); opacity: 1; }
  22%  { transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(var(--r)) scale(1); opacity: 1; }
  70%  { transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) translate(-50%, calc(-50% + 18px)) rotate(var(--r)) scale(0.6); opacity: 0; }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #06243a;
  opacity: 0;
  pointer-events: none;
}

/* ── TYPE + MOTION TOKENS ──────────────────── */

:root {
  --t-body: clamp(1rem, 0.94rem + 0.22vw, 1.125rem);
  --t-lead: clamp(1.1875rem, 0.98rem + 0.62vw, 1.5rem);
  --t-h3: clamp(1.625rem, 1.2rem + 1.1vw, 2.375rem);
  --t-h2: clamp(2.25rem, 0.9rem + 4.2vw, 5.75rem);
  --t-h1: clamp(2.75rem, 0.8rem + 6vw, 7.5rem);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: max(16px, 4vw);
}

/* ── SHARED PIECES ─────────────────────────── */

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
a { color: inherit; }

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--ink);
  font: 700 15px/1 var(--font-text);
  text-decoration: none;
}
.skip:focus { top: 16px; }

.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.96;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--title-yellow);
  box-shadow: 0 4px 0 var(--ink);
  font: 700 16px/1.1 var(--font-text);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn { gap: 0.5em; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); transition-duration: 0.06s; }
.btn--white { background: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; border-width: 2.5px; box-shadow: 0 3px 0 var(--ink); }

/* ── ICONS ─────────────────────────────────
   Every arrow, close and logo on the site is a drawn SVG, not a typed glyph.
   A glyph sits on the text baseline, so inside a pill or a circle it reads
   low and off to one side; a drawn icon centres on its own box. */
.i {
  display: block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; width: 1.05em; height: 1.05em; }
.btn .i, a .i, button .i { transition: transform 0.25s var(--ease); }

/* ── MENU: a hamburger in the top-left corner, the menu grows out of it ─ */

.menu {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: 16px;
  z-index: 60;
}
.menu-btn {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3.5px solid var(--ink);
  border-radius: 50%;
  background: var(--title-yellow);
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.2s var(--ease);
}
.menu-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.menu-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); transition-duration: 0.06s; }
.menu-btn[aria-expanded="true"] { background: var(--paper); }
.menu-lines { position: relative; width: 24px; height: 18px; }
.menu-lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3.5px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.menu-lines i:nth-child(1) { top: 0; }
.menu-lines i:nth-child(2) { top: 7.25px; }
.menu-lines i:nth-child(3) { top: 14.5px; }
.menu-btn[aria-expanded="true"] .menu-lines i:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-lines i:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(6, 36, 58, 0.45);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
body.menu-open .menu-scrim { opacity: 1; }
.menu-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: min(420px, 88vw);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: calc(env(safe-area-inset-top, 0px) + 104px) 28px calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--paper);
  border-right: 5px solid var(--ink);
  box-shadow: 10px 0 0 var(--ink);
  transition: transform 0.45s var(--ease);
}
.menu-panel[data-state="closed"] { transform: translateX(calc(-100% - 20px)); }
.menu-brand {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 34px);
  left: 92px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.menu-links { list-style: none; display: grid; gap: 2px; }
.menu-links > li > a {
  display: block;
  padding: 8px 16px 9px;
  border: 3px solid transparent;
  border-radius: 18px;
  font-family: var(--font-cartoon);
  font-size: clamp(34px, 4.4svh, 44px);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.menu-links > li > a:hover { background: rgba(17, 17, 17, 0.06); transform: translateX(4px); }
.menu-links > li > a[aria-current] { background: var(--title-yellow); border-color: var(--ink); }
.menu-cta { width: 100%; margin-top: auto; }

/* ── ABOUT: a paper card that slides up over the pinned hero ─ */

.about {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  margin-top: -100svh;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  border-top: 6px solid var(--ink);
  border-radius: 44px 44px 0 0;
  overflow: clip;
  padding: clamp(80px, 8vw, 128px) var(--gutter) clamp(64px, 7vw, 112px);
}

/* ── ABOUT ──────────────────────────────────
   A huge ABOUT US stretched edge to edge, and under it the paragraph on a
   wheel: the line facing you is plain black, the lines after it curve away
   below, each a step smaller and fainter. Scrolling turns the wheel. Without
   JS none of it engages and the paragraph stays an ordinary paragraph. */

.about-reel {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  margin-top: clamp(24px, 3vw, 48px);
}

.about-stage { position: relative; display: grid; align-content: center; gap: clamp(20px, 3vh, 44px); }
.about-reel[data-wheel="on"] .about-stage {
  /* the stage overlaps the top of Our values once it scrolls off; it holds
     nothing clickable, so let the cards underneath keep their pointer */
  pointer-events: none;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  padding-top: clamp(58px, 9vh, 104px);
  padding-bottom: clamp(20px, 4vh, 48px);
  overflow: clip;
}

.about-title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.6rem, 11vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.about-reel[data-wheel="on"] .about-title { font-size: var(--fit-title, 11vw); }
.about-title-ink { display: inline-block; }

/* the wheel */
.about-wheel { position: relative; }
.about-drum { display: grid; gap: 2px; }
.about-reel[data-wheel="on"] .about-wheel {
  display: grid;
  align-content: center;
  perspective: var(--persp, 1400px);
}
.about-reel[data-wheel="on"] .about-drum { display: block; position: relative; transform-style: preserve-3d; }

.about-line {
  padding-inline: clamp(12px, 1.6vw, 26px);
  font-family: var(--font-round);
  font-weight: 600;
  font-size: var(--fit, clamp(1.3rem, 4vw, 3rem));
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
}
.about-reel[data-wheel="on"] .about-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  white-space: nowrap;
  opacity: var(--o, 1);
  /* lifted off the drum and tipped, so the lines ride a wheel rather than a list */
  transform: translateY(var(--ty, 0px)) rotateX(var(--rx, 0deg)) scale(var(--sc, 1));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.about-reel[data-wheel="on"] + .about-plain { display: none; }
.about-plain {
  max-width: 44ch;
  margin-top: clamp(20px, 2.4vw, 32px);
  font: 500 clamp(1.15rem, 0.95rem + 0.6vw, 1.6rem)/1.45 var(--font-round);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: pretty;
}

.values-title { margin: clamp(64px, 8vw, 120px) 0 clamp(28px, 3.5vw, 52px); text-align: center; font-size: clamp(2rem, 1rem + 3vw, 4rem); color: var(--ink); }
.values {
  list-style: none;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  perspective: 900px;
}

/* 3D tilt cards: the card leans toward the pointer as if you were holding it */
.value-card { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; }
.value-inner {
  position: relative;
  height: 100%;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: clamp(26px, 3vw, 40px) 24px clamp(26px, 3vw, 36px);
  text-align: center;
  background: #fff;
  border: 5px solid var(--ink);
  border-radius: 30px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.value-card:nth-child(1) .value-inner { background: var(--title-yellow); }
.value-card:nth-child(2) .value-inner { background: var(--card-blue); }
.value-card:nth-child(3) .value-inner { background: var(--paper); }
.value-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.value-card.is-tilting .value-inner { transition: transform 0.12s linear; }
.value-card.is-tilting .value-inner::after { opacity: 1; }
.value-icon { width: auto; height: clamp(80px, 8vw, 112px); object-fit: contain; transform: translateZ(40px); }
.value-name { font-family: var(--font-cartoon); font-weight: 400; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.02; color: var(--ink); transform: translateZ(30px); }
.value-inner--plain { align-content: center; }
.value-inner--plain .value-name { font-size: clamp(40px, 3.8vw, 58px); }
.value-text { max-width: 26ch; font: 500 15.5px/1.5 var(--font-text); color: var(--ink); transform: translateZ(20px); }

/* ── SERVICES ──────────────────────────────── */

.services {
  position: relative;
  z-index: 2;
  background: var(--services-blue);
  padding: clamp(64px, 7vw, 112px) var(--gutter);
}

.services-title {
  text-align: center;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--services-yellow);
  margin-bottom: clamp(28px, 3vw, 48px);
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  aspect-ratio: 0.92;
  background: var(--card-blue);
  border: clamp(5px, 0.45vw, 7px) solid var(--ink);
  border-radius: clamp(22px, 2vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8% 6% 10%;
  transition: transform 0.45s var(--ease);
}


@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg) scale(1.04); }
  60% { transform: rotate(5deg) scale(1.04); }
}

.card-icon {
  height: 62%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.card-title {
  font-family: var(--font-cartoon);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 46px);
  line-height: 1.08;
  color: #fff;
  text-align: center;
}

/* the three build services; AI Consulting sits apart underneath */
.cards > li { display: flex; }
.card { width: 100%; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.card:focus-visible { outline: 4px solid #fff; outline-offset: 5px; }
.card:active { transform: translateY(-4px) scale(0.985); transition-duration: 0.08s; }

.consult {
  max-width: 1080px;
  margin: clamp(16px, 2vw, 28px) auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  padding: clamp(18px, 2vw, 28px) clamp(22px, 2.6vw, 44px);
  background: var(--paper);
  border: clamp(5px, 0.55vw, 10px) solid var(--ink);
  border-radius: clamp(22px, 2.4vw, 46px);
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--ease);
}
.consult:active { transform: translateY(-1px) scale(0.99); transition-duration: 0.08s; }
.consult:focus-visible { outline: 4px solid #fff; outline-offset: 5px; }
.consult-icon { width: clamp(56px, 4.5vw, 76px); height: auto; transform: rotate(-6deg); }
.consult-copy { display: grid; gap: 6px; }
.consult-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-family: var(--font-cartoon);
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1;
}
.consult-price { font: 800 clamp(14px, 1.1vw, 18px)/1 var(--font-text); }
.consult-text { max-width: 64ch; font: 500 var(--t-body)/1.5 var(--font-text); }
.consult-go {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--title-yellow);
  font-size: 24px;
  transition: transform 0.4s var(--ease);
}

/* ── OUR SOFTWARE: one line that cycles through our apps ─ */

/* a thin band: one bold line, and the way through to the software page */
.apps {
  position: relative;
  z-index: 2;
  background: var(--title-yellow);
  border-top: 6px solid var(--ink);
  padding: clamp(26px, 3.2vw, 42px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px clamp(24px, 3.4vw, 52px);
  text-align: center;
}
.apps-title {
  margin: 0;
  font-size: clamp(1.5rem, 0.9rem + 2.5vw, 3.1rem);
  line-height: 0.95;
  color: var(--ink);
}

/* ── TEAM: a grid-paper stage, one person at a time ─ */

.team { position: relative; z-index: 2; border-top: 6px solid var(--ink); background: var(--card-blue); }
.team-pin { --arc-top: clamp(170px, 22svh, 240px); position: relative; overflow: hidden; padding: 28px var(--gutter) clamp(48px, 6vw, 88px); }
.team-grid-bg {
  position: absolute;
  inset: -60px 0;
  background-color: var(--card-blue);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.75) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.75) 2px, transparent 2px);
  background-size: 56px 56px;
}
.rainbow {
  position: absolute;
  left: 50%;
  top: var(--arc-top);
  bottom: 0;
  width: max(124%, 150svh);
  translate: -50% 0;
}
.arc {
  position: absolute;
  inset: var(--in) var(--in) 0;
  border: var(--w) solid;
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.arc--ink { border-color: var(--ink); }
.arc--orange { border-color: var(--blob-orange); }
.arc--yellow { border-color: var(--title-yellow); }
.arc--paper { border-color: #fff; }
.team-word {
  position: absolute;
  left: 50%;
  top: calc(var(--arc-top) + (100% - var(--arc-top)) * 0.6);
  translate: -50% -50%;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(6rem, 17vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  white-space: nowrap;
  pointer-events: none;
}
.team-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}
.team-title { font: 800 14px/1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.team-count { font: 800 14px/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--ink); }

.team-list { position: relative; z-index: 2; list-style: none; max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.member {
  width: min(430px, 84vw);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(34px, 4vw, 52px) 30px clamp(30px, 3.4vw, 42px);
  text-align: center;
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 30px;
  box-shadow: 8px 8px 0 var(--ink);
}
.member-role { font: 800 13px/1.3 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(17, 17, 17, 0.65); }
.member-name { margin-top: 6px; font-family: var(--font-cartoon); font-weight: 400; font-size: clamp(44px, 4.4vw, 62px); line-height: 0.98; color: var(--ink); text-wrap: balance; }
.member-bio { text-wrap: balance; max-width: 30ch; font: 500 18px/1.5 var(--font-text); color: var(--ink); }
.member-link { margin-top: 10px; }

/* with scripting: pinned, and each card rides the rainbow from one side to the other */
.team.is-scrolly { height: calc((var(--n) + 1) * 100svh); }
.team.is-scrolly .team-pin { position: sticky; top: 0; height: 100svh; }
.team.is-scrolly .team-list { position: absolute; inset: 0; max-width: none; margin: 0; display: block; }
.team.is-scrolly .member { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

/* ── "YOUR AGENT COULD BE…": one big line that keeps swapping ──
   The phrase is painted with a mango-to-sky gradient that slides across it, so
   it shifts and glows without leaving the brand's four colours. */

.could {
  position: relative;
  z-index: 2;
  overflow: clip;
  border-block: 6px solid var(--ink);
  background: var(--ink);
  padding: clamp(96px, 13vw, 200px) var(--gutter);
}
.could-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(1100px, 120%);
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  background:
    radial-gradient(ellipse 48% 62% at 34% 50%, rgba(255, 196, 60, 0.5), transparent 68%),
    radial-gradient(ellipse 46% 58% at 70% 48%, rgba(46, 163, 223, 0.46), transparent 68%);
  filter: blur(42px);
  mix-blend-mode: screen;
  animation: could-breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes could-breathe {
  0%, 100% { opacity: 0.75; scale: 1; }
  50% { opacity: 1; scale: 1.08; }
}

.could-inner { position: relative; z-index: 1; max-width: 1180px; margin-inline: auto; text-align: center; }
.could-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.35rem, 0.8rem + 2.1vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: rgba(255, 253, 246, 0.72);
}

.could-slot {
  position: relative;
  height: 1.08em;
  margin: clamp(10px, 1.4vw, 20px) 0 clamp(18px, 2.2vw, 32px);
  font-family: var(--font-cartoon);
  font-size: clamp(2.6rem, 0.9rem + 8.2vw, 9rem);
  line-height: 1.08;
  filter: drop-shadow(0 0 40px rgba(255, 222, 95, 0.45));
}
.could-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--title-yellow) 2%, var(--blob-orange) 20%, var(--services-blue) 42%, var(--sky-blue) 58%, var(--services-blue) 72%, var(--title-yellow) 94%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: could-shift 7s linear infinite;
}
@keyframes could-shift { to { background-position: 260% 0; } }
.could-word.is-out { opacity: 0; transform: translateY(-62%); transition: opacity 0.34s var(--ease), transform 0.44s var(--ease); }
.could-word.is-in { opacity: 0; transform: translateY(62%); }
.could-word.is-live { opacity: 1; transform: none; transition: opacity 0.34s var(--ease), transform 0.44s var(--ease); }

/* the full list is what shows when the swap never runs */
.could-list {
  max-width: 34ch;
  margin: clamp(10px, 1.4vw, 20px) auto clamp(18px, 2.2vw, 32px);
  font-family: var(--font-cartoon);
  font-size: clamp(1.6rem, 1rem + 2.8vw, 3.4rem);
  line-height: 1.12;
  color: var(--title-yellow);
}
.could-slot:not(:empty) + .could-list { display: none; }

.could-note { max-width: 46ch; margin: 0 auto clamp(22px, 2.6vw, 34px); font: 500 var(--t-body)/1.5 var(--font-text); color: rgba(255, 253, 246, 0.72); }

@media (prefers-reduced-motion: reduce) {
  .could-glow, .could-word { animation: none; }
}

/* ── MANIFESTO: big lines that drift as you scroll ─ */

.manifesto {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 6px solid var(--ink);
  padding: clamp(88px, 10vw, 160px) 0 clamp(48px, 5vw, 72px);
}
.manifesto-sky { inset: -25% 0; }
.manifesto-title {
  position: relative;
  margin: 0 var(--gutter) clamp(28px, 4vw, 56px);
  text-align: center;
  font: 700 14px/1 var(--font-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.manifesto-lines { position: relative; list-style: none; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vw, 22px); }
.manifesto-lines li {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.9rem, 0.4rem + 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.manifesto-lines li.tape span {
  display: inline-block;
  padding: 0.08em 0.3em 0.12em;
  background: var(--title-yellow);
  border: 5px solid var(--ink);
  border-radius: 0.28em;
  transform: rotate(-1.2deg);
}
.manifesto-lines li.tape:nth-child(4n) span { transform: rotate(1.2deg); }

/* page heroes: the sky runs past the edges so it can move slower than the page */
.page-sky { inset: -20% 0; }

/* the tech stack: a spacebar-sized key opens a card of stacked pills */
.spacebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(640px, calc(100% - 32px));
  min-height: 84px;
  margin: clamp(56px, 7vw, 104px) auto 0;
  padding: 12px 20px 12px 14px;
  background: var(--title-yellow);
  border: 4px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 7px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.spacebar:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--ink); }
.spacebar:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); transition-duration: 0.05s; }
.spacebar-icons { display: flex; flex: none; }
.spacebar-icons img {
  width: 44px;
  height: 44px;
  padding: 3px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  object-fit: contain;
}
.spacebar-icons img + img { margin-left: -14px; }
.spacebar-label { font: 600 clamp(22px, 2.2vw, 30px)/1 var(--font-round); letter-spacing: -0.01em; }
.spacebar-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  background: var(--ink);
  border-radius: 50%;
  font-size: 22px;
  color: var(--title-yellow);
  transition: transform 0.3s var(--ease);
}
.spacebar:hover .spacebar-arrow { transform: translateX(3px); }
.spacebar-label { margin-left: auto; }

.stack { margin: auto; padding: 0; border: 0; background: transparent; width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: visible; color: var(--ink); }
.stack::backdrop { background: rgba(6, 36, 58, 0.55); }
.stack-card {
  position: relative;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 32px;
  box-shadow: 10px 10px 0 var(--ink);
}
.stack[open] .stack-card { animation: stack-in 0.4s var(--ease); }
@keyframes stack-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.stack-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--title-yellow);
  padding: 0;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
}
.stack-title { padding-right: 52px; font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); }
.stack-lede { margin: 10px 0 22px; font: 500 var(--t-body)/1.5 var(--font-text); }
.stack-list { list-style: none; display: grid; gap: 10px; }
.stack-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px 8px 8px;
  border: 3.5px solid var(--c);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 9%, #fff);
}
.stack[open] .stack-item { animation: stack-drop 0.45s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 120ms); }
@keyframes stack-drop { from { opacity: 0; transform: translateY(-26px); } }
.stack-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: #fff;
  border: 2.5px solid var(--c);
  border-radius: 14px;
}
.stack-badge img { width: 100%; height: 100%; object-fit: contain; }
.stack-letter { display: grid; place-items: center; width: 100%; height: 100%; background: var(--c); font: 700 22px/1 var(--font-round); color: #fff; }
.stack-copy { display: grid; gap: 2px; }
.stack-copy b { font: 600 22px/1.1 var(--font-round); color: var(--c); }
.stack-copy span { font: 500 14.5px/1.4 var(--font-text); color: var(--ink); }

/* ── FAQ ───────────────────────────────────── */

.faq { position: relative; z-index: 2; background: var(--paper); border-top: 6px solid var(--ink); padding: clamp(72px, 8vw, 120px) var(--gutter); }
.faq-title { max-width: 900px; margin: 0 auto clamp(28px, 3.5vw, 48px); font-size: var(--t-h2); color: var(--ink); }
.faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 4px solid var(--ink); border-radius: 24px; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-cartoon);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--title-yellow);
  font: 800 22px/1 var(--font-text);
  transition: transform 0.35s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 22px; max-width: 62ch; font: 500 var(--t-body)/1.6 var(--font-text); color: var(--ink); }

/* ── LET'S BUILD: a 3D mango you can spin ─── */

.build {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 6px solid var(--ink);
  min-height: min(80svh, 720px);
  padding: clamp(96px, 11vw, 160px) var(--gutter);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(28px, 3.5vw, 48px);
  text-align: center;
}
.build-title { position: relative; max-width: 14ch; font-size: clamp(2.75rem, 1rem + 6vw, 7.5rem); color: var(--ink); }
.build-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ── OUR WORK page ─────────────────────────── */

.work-sec { background: var(--paper); border-top: 6px solid var(--ink); padding: clamp(64px, 7vw, 104px) var(--gutter); }
.work-sec:nth-of-type(odd) { background: var(--services-blue); }
.work-head { max-width: 1180px; margin: 0 auto clamp(24px, 3vw, 44px); }
.work-title { font-size: var(--t-h2); color: var(--ink); }
.work-grid { list-style: none; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.work-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--paper); border: 5px solid var(--ink); border-radius: 28px; overflow: hidden; }
.work-screen { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--card-blue) repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.4) 22px 44px); border-bottom: 5px solid var(--ink); }
.work-screen img { width: 42%; height: 64%; object-fit: contain; }
.work-screen--shot { background: #f7f1ec; }
.work-screen--shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-grid--wide { grid-template-columns: minmax(0, 640px); }
.work-body { padding: 18px 20px 20px; display: grid; align-content: start; gap: 8px; }
.work-kind { font: 700 12px/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(17, 17, 17, 0.62); }
.work-body h3 { font-family: var(--font-cartoon); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); }
.work-body p { font: 500 15px/1.5 var(--font-text); color: var(--ink); }
.work-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.work-empty {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  border: 4px dashed var(--ink);
  border-radius: 28px;
  font: 600 var(--t-lead)/1.4 var(--font-text);
  color: var(--ink);
}
.work-empty img { flex: none; width: 64px; height: 64px; object-fit: contain; opacity: 0.8; }

/* ── FOOTER ────────────────────────────────── */

.footer {
  position: relative;
  z-index: 2;
  background: #0a0a0a;
  color: #fff;
  padding: clamp(48px, 5vw, 72px) var(--gutter) 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-mark {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(18px, 1.7vw, 24px);
  text-transform: uppercase;
  color: var(--title-yellow);
  text-decoration: none;
}
.footer-brand p { font: 500 15px/1.5 var(--font-text); color: rgba(255, 255, 255, 0.6); }
.footer-col h3 {
  margin-bottom: 14px;
  font: 700 12px/1 var(--font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1.4 var(--font-text); color: rgba(255, 255, 255, 0.88); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--title-yellow); }
.footer-base {
  max-width: 1180px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font: 500 13px/1.4 var(--font-text);
  color: rgba(255, 255, 255, 0.5);
}

/* ── SERVICE / SOFTWARE PAGES ──────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 128px) var(--gutter) clamp(72px, 8vw, 120px);
  border-bottom: 6px solid var(--ink);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 380px);
  align-items: center;
  gap: clamp(40px, 6vw, 104px);
}
.page-hero-copy { min-width: 0; display: grid; justify-items: start; gap: clamp(22px, 2.4vw, 32px); }
.page-title { font-size: clamp(2.5rem, 4.8vw, 5.25rem); color: var(--ink); }
.page-lead { max-width: 34ch; font: 650 var(--t-lead)/1.45 var(--font-text); letter-spacing: -0.01em; color: var(--ink); }

.icon-tile {
  justify-self: center;
  width: 100%;
  aspect-ratio: 0.9;
  background: var(--card-blue);
  border: clamp(6px, 0.55vw, 10px) solid var(--ink);
  border-radius: clamp(26px, 2.4vw, 46px);
  display: grid;
  place-items: center;
}
.icon-tile > img { width: 62%; height: auto; }

/* price: its own band, stated plainly */
.price { background: var(--title-yellow); border-bottom: 6px solid var(--ink); padding: clamp(40px, 5vw, 72px) var(--gutter); }
.price-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px clamp(32px, 6vw, 104px);
}
.price-figure { display: grid; color: var(--ink); }
.price-label { font: 700 14px/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; }
.price-amount {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(3.5rem, 2rem + 5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-unit { font: 700 var(--t-body)/1.2 var(--font-text); }
.price-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.price-side p { max-width: 42ch; font: 600 var(--t-lead)/1.45 var(--font-text); color: var(--ink); }

/* scope: an editorial list with ink rules */
.scope { background: var(--paper); padding: clamp(72px, 8vw, 120px) var(--gutter); }
.scope-head {
  max-width: 1180px;
  margin: 0 auto clamp(36px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: clamp(20px, 4vw, 72px);
}
.scope-title { font-size: var(--t-h2); color: var(--ink); }
.scope-head p { max-width: 40ch; font: 600 var(--t-lead)/1.45 var(--font-text); color: var(--ink); }
.rows { list-style: none; max-width: 1180px; margin: 0 auto; border-bottom: 3px solid var(--ink); }
.rows li {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: baseline;
  gap: 8px clamp(20px, 4vw, 72px);
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-top: 3px solid var(--ink);
}
.rows h3 { font-family: var(--font-cartoon); font-weight: 400; font-size: var(--t-h3); line-height: 1; color: var(--ink); }
.rows p { max-width: 48ch; font: 500 var(--t-lead)/1.45 var(--font-text); color: var(--ink); }
.rows--status li { grid-template-columns: 0.8fr 1fr auto; }
.row-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.status {
  justify-self: end;
  padding: 8px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--title-yellow);
  font: 800 12px/1 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

/* other services: where to go next */
.others { background: var(--services-blue); padding: clamp(64px, 7vw, 104px) var(--gutter); border-top: 6px solid var(--ink); }
.others-title { max-width: 1180px; margin: 0 auto clamp(28px, 3vw, 44px); font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); color: var(--services-yellow); }
.mini-cards { list-style: none; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.mini-cards li { display: flex; }
.mini-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--card-blue);
  border: 5px solid var(--ink);
  border-radius: 28px;
  text-decoration: none;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease);
}
.mini-card:active { transform: translateY(-1px) scale(0.985); transition-duration: 0.08s; }
.mini-card img { flex: none; width: 60px; height: 60px; object-fit: contain; }
.mini-name { font-family: var(--font-cartoon); font-size: clamp(24px, 1.9vw, 30px); line-height: 1; }

/* a hero with no icon tile spans the full width */
.page-hero-inner > .page-hero-copy:only-child { grid-column: 1 / -1; }
.page-hero-inner > .page-hero-copy:only-child .page-title { font-size: clamp(3rem, 1rem + 7vw, 9rem); }

/* ── BOOKING (AI Consulting) ───────────────── */

.book { background: var(--services-blue); border-top: 6px solid var(--ink); padding: clamp(72px, 8vw, 120px) var(--gutter); scroll-margin-top: 0; }
.book-head {
  max-width: 1180px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: clamp(20px, 4vw, 72px);
}
.book-title { font-size: var(--t-h2); color: var(--services-yellow); }
.book-head p { max-width: 40ch; font: 600 var(--t-lead)/1.45 var(--font-text); color: var(--ink); }
.book-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.cal, .slots { background: var(--paper); border: 5px solid var(--ink); border-radius: 30px; padding: clamp(18px, 2vw, 28px); }
.cal { width: 100%; }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cal-month { font: 600 clamp(20px, 1.6vw, 24px)/1 var(--font-round); color: var(--ink); }
.cal-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.cal-nav:hover { background: rgba(17, 17, 17, 0.07); }
.cal-nav:active { transform: scale(0.92); transition-duration: 0.05s; }
.cal-nav:disabled { opacity: 0.25; cursor: default; background: transparent; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week { margin-bottom: 6px; }
.cal-week span { text-align: center; font: 600 14px/1 var(--font-round); color: rgba(17, 17, 17, 0.45); }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid transparent;
  border-radius: 14px;
  background: transparent;
  font: 500 clamp(16px, 1.3vw, 19px)/1 var(--font-round);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.18s var(--ease), transform 0.15s var(--ease);
}
button.cal-day:hover { background: var(--card-blue); }
button.cal-day:active { transform: scale(0.94); transition-duration: 0.05s; }
.cal-day[aria-pressed="true"], .cal-day[aria-pressed="true"]:hover { background: var(--title-yellow); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); font-weight: 600; }
.cal-day:disabled, .cal-out { color: rgba(17, 17, 17, 0.28); cursor: default; }
.cal-day:disabled:hover { background: transparent; }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 13%; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.slots { display: grid; gap: 16px; }
.slots-title { font-family: var(--font-cartoon); font-weight: 400; font-size: clamp(26px, 2vw, 34px); line-height: 1.05; color: var(--ink); }
.slots-zone { margin-top: -8px; font: 600 13px/1.3 var(--font-text); color: #6f6959; }
.slot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot {
  min-height: 46px;
  white-space: nowrap;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font: 700 15px/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.slot:hover { transform: translateY(-2px); }
.slot[aria-pressed="true"] { background: var(--title-yellow); box-shadow: 0 3px 0 var(--ink); }
.book-sum { display: grid; gap: 12px; padding-top: 16px; border-top: 3px solid var(--ink); }
.book-choice { font: 700 var(--t-lead)/1.35 var(--font-text); color: var(--ink); }
.book-note { font: 500 13.5px/1.45 var(--font-text); color: rgba(17, 17, 17, 0.7); }

/* ── RESPONSIVE ────────────────────────────── */



@media (max-width: 900px) {
  .page-hero-inner, .scope-head, .price-inner { grid-template-columns: 1fr; }
  .consult { grid-template-columns: auto 1fr; }
  .consult-go { display: none; }
  .book-head, .book-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; max-width: 420px; }
  .mini-cards { grid-template-columns: 1fr; }
  .icon-tile { width: min(70vw, 320px); }
  .page-title { font-size: min(var(--t-h1), 9vw); }
  .rows li, .rows--status li { grid-template-columns: 1fr; }
  .status { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .menu { top: calc(env(safe-area-inset-top, 0px) + 12px); left: 12px; }
  .menu-btn { width: 52px; height: 52px; }
  .menu-panel { padding-top: calc(env(safe-area-inset-top, 0px) + 88px); }
  .menu-brand { top: calc(env(safe-area-inset-top, 0px) + 29px); left: 78px; }
}

@media (max-width: 760px) {
  .member { width: min(320px, 84vw); padding: 22px 18px; }
  .member-name { font-size: 34px; }
  .member-bio { font-size: 16px; }
  .team-word { font-size: 25vw; -webkit-text-stroke-width: 4px; }
  .team-pin { --arc-top: 30svh; }
  .about { border-radius: 28px 28px 0 0; border-top-width: 5px; }
  .services { padding: 56px 16px 64px; }
  .services-title { font-size: 11vw; margin-bottom: 32px; }
  .cards { grid-template-columns: 1fr; gap: 20px; max-width: 420px; }
  .card { aspect-ratio: auto; padding: 32px 20px 36px; gap: 20px; }
  .card-icon { height: auto; width: 46%; }
  .card-title { font-size: clamp(34px, 10vw, 48px); }
  .consult { max-width: 420px; margin-top: 20px; }
  .manifesto-lines { padding: 0 16px; }
  .spacebar-icons img { width: 36px; height: 36px; }
  .spacebar-icons img:nth-child(n+3) { display: none; }
  .spacebar-arrow { width: 40px; height: 40px; }
  .spacebar { gap: 12px; }
  .manifesto-lines li { white-space: normal; text-align: center; font-size: clamp(1.75rem, 8.4vw, 2.75rem); }
  .manifesto-lines li.tape span { border-width: 4px; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@keyframes sticker-still {
  0%, 70% { transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(var(--r)); opacity: 1; }
  100%    { transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(var(--r)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stack[open] .stack-card, .stack[open] .stack-item { animation: none; }
  .value-inner { transform: none; transition: none; }
  .sky--live, .clouds-front, .ticker-run { animation: none; }
  /* no drum: the paragraph is just a paragraph */
  .about-reel { display: none; }
  .menu-panel { transition: opacity 0.2s ease; }
  .menu-panel[data-state="closed"] { transform: none; opacity: 0; }
  .menu-lines i, .menu-links > li > a { transition: none; }
  .trail img { animation-name: sticker-still; animation-timing-function: ease-out; }
  .card, .card:hover, .card:active, .btn, .btn:hover, .btn:active, .mini-card, .mini-card:hover { transition: none; transform: none; }
  .card:hover .card-icon { animation: none; }
}

/* ── BOOKING + PROJECT FORMS ────────────────
   Both live in a dialog so the booking happens on the site. The card is the
   studio's own paper-and-ink card, so it reads as Mango Studios rather than a
   bolted-on tool. */

.formbox-slot {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--title-yellow);
}
.formbox-slot-label { font: 800 11px/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: #6b5a2c; }
.formbox-slot-when { font: 700 17px/1.25 var(--font-text); color: var(--ink); }

.formbox-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 24px;
}
.field--full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font: 700 14px/1.2 var(--font-text); color: var(--ink); }
.field legend { margin-bottom: 8px; }
.field-opt { margin-left: 4px; font-weight: 500; color: #8a8372; }
.field-hint { font: 500 12px/1.4 var(--font-text); color: #6f6959; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 3px solid var(--ink);
  border-radius: 15px;
  background: #fff;
  font: 500 16px/1.4 var(--font-text);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
/* the box grows with what they type, so there's no resize grip in the corner */
.field textarea { min-height: 116px; max-height: 320px; resize: none; field-sizing: content; }
.field input::placeholder, .field textarea::placeholder { color: #aaa392; opacity: 1; }
.field input, .field textarea { transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.field input:hover, .field textarea:hover { box-shadow: 0 3px 0 rgba(17, 17, 17, 0.14); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 20px;
  padding-right: 42px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--blob-orange); outline-offset: 2px; }
/* our own error under the field, shown once they've left it wrong or tried to send */
.field-error { display: none; font: 600 13px/1.3 var(--font-text); color: #b03520; }
.field input:user-invalid,
.was-validated .field input:invalid { border-color: #c2412a; background: #fff7f5; }
.field input:user-invalid ~ .field-error,
.was-validated .field input:invalid ~ .field-error { display: block; }

/* chips: the choices are buttons you can see, not a menu you have to open */
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
  font: 600 14.5px/1 var(--font-text);
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background-color 0.18s var(--ease);
}
.chip input:active + span { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); transition-duration: 0.06s; }
.chip input:checked + span { background: var(--title-yellow); }
.chip input:focus-visible + span { outline: 3px solid var(--blob-orange); outline-offset: 2px; }
/* the four services sit two by two at even widths, so none ends up alone on a line */
.formbox-fields > .chips:first-child .chip-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formbox-fields > .chips:first-child .chip span { width: 100%; justify-content: center; }
/* once it's sent there is nothing to go back to */
.flow-step:has(.flow-form.is-sent) .flow-back { visibility: hidden; }

.formbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.formbox-send:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: 0 4px 0 var(--ink); }
.formbox-status { font: 700 14px/1.4 var(--font-text); }
.formbox-status:empty { display: none; }
.formbox-status a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: inherit; text-underline-offset: 3px; }
.formbox-status.is-good { color: #1d6b3f; }
.formbox-status.is-bad {
  padding: 10px 14px;
  border: 2.5px solid #c2412a;
  border-radius: 14px;
  background: #fff3f0;
  color: #9a2d1a;
}
.formbox-fine { margin-top: 14px; font: 500 12px/1.45 var(--font-text); color: #76705f; }


@media (max-width: 520px) {
  .formbox-fields { gap: 12px; }
  .field input, .field select, .field textarea { min-height: 48px; border-width: 2.5px; font-size: 16px; }
}


/* ── QUIZ BAND: the readiness quiz, under the team ── */

.quizband {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: clip;
  border-top: 6px solid var(--ink);
  background: var(--sky-blue);
  padding: clamp(52px, 7vw, 92px) var(--gutter);
}
.quizband .sky, .quizband .clouds-front { position: absolute; inset: 0; z-index: 0; }
.quizband .clouds-front { inset: -8% 0; z-index: 1; }

.quizband-sticker {
  position: absolute;
  z-index: 1;
  left: clamp(8px, 4vw, 70px);
  top: 16%;
  width: clamp(54px, 6vw, 88px);
  height: auto;
  rotate: -11deg;
  filter: drop-shadow(3px 4px 0 rgba(17, 17, 17, 0.24));
  animation: sticker-drift 9s ease-in-out infinite;
  pointer-events: none;
}
.quizband-sticker--b { left: auto; right: clamp(8px, 4vw, 70px); top: auto; bottom: 14%; rotate: 9deg; animation-delay: -3.5s; }
@keyframes sticker-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -13px; } }

.quizband-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3.4vw, 54px);
  width: min(1020px, 100%);
  margin-inline: auto;
  padding: clamp(26px, 3.4vw, 46px);
  border: 5px solid var(--ink);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 9px 10px 0 var(--ink);
}
.quizband-title {
  font-family: var(--font-cartoon);
  font-weight: 400;
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3.1rem);
  line-height: 1;
  color: var(--ink);
}
.quizband-text { max-width: 42ch; margin-top: 12px; font: 500 var(--t-body)/1.5 var(--font-text); color: #4f4a3e; }
.quizband-go { margin-top: 20px; }

.quizband-stat {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: var(--card-blue);
  rotate: 1.6deg;
}
.quizband-num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.3rem, 1rem + 3.4vw, 3.9rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.quizband-cap { font: 600 13.5px/1.4 var(--font-text); color: #15405a; }

@media (max-width: 760px) {
  .quizband-card { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .quizband-stat { justify-self: start; rotate: 1deg; }
  .quizband-sticker { display: none; }
}

/* ── NUDGE: a quiet card after two minutes on the site ── */

.nudge {
  position: fixed;
  z-index: 70;
  right: clamp(12px, 2.5vw, 26px);
  bottom: clamp(12px, 2.5vw, 26px);
  width: min(336px, calc(100vw - 24px));
  padding: 20px 22px 22px;
  border: 4px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 8px 9px 0 var(--ink);
  animation: nudge-in 0.52s var(--ease) both;
}
.nudge.is-going { animation: nudge-out 0.3s var(--ease) both; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(26px) scale(0.95); } }
@keyframes nudge-out { to { opacity: 0; transform: translateY(18px) scale(0.96); } }

.nudge-x {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s var(--ease);
}
.nudge-x:hover { transform: scale(1.08); }
.nudge-title { max-width: 21ch; padding-right: 34px; font: 400 23px/1.05 var(--font-cartoon); color: var(--ink); }
.nudge-text { margin-top: 9px; font: 500 14px/1.45 var(--font-text); color: #5c5648; }
.nudge-go { margin-top: 15px; }

@media (max-width: 520px) {
  .nudge { width: calc(100vw - 20px); right: 10px; bottom: 10px; padding: 17px 18px 19px; border-width: 3px; border-radius: 22px; }
  .nudge-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .quizband-sticker, .nudge, .nudge.is-going { animation: none; }
}

/* ── START FLOW ─────────────────────────────
   One full-screen takeover: pick what you need, then either tell us about the
   project or book the consulting call. No new page, so it opens from the hero
   and from every Start a project button on the site. */

.flow {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--services-blue);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.flow::backdrop { background: var(--ink); }
.flow[open] { animation: flow-in 0.42s var(--ease); }
@keyframes flow-in { from { opacity: 0; transform: scale(0.985); } }

.flow-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2vw, 22px) var(--gutter);
  border-bottom: 4px solid var(--ink);
  background: var(--paper);
}
/* the same wordmark as the footer, in ink, beside the round mango badge */
.flow-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.flow-brand img {
  width: clamp(36px, 3.2vw, 44px);
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.flow-x {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 19px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.flow-x:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.flow-x:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); transition-duration: 0.06s; }

.flow-step {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 5vh, 64px) var(--gutter) clamp(44px, 7vh, 88px);
}
.flow-step.is-entering { animation: flow-step-in 0.44s var(--ease) both; }
@keyframes flow-step-in { from { opacity: 0; transform: translateY(20px); } }

.flow-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2rem, 1rem + 3.4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.flow-title--sm { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.8rem); text-align: left; }
.flow-sub { margin-top: 12px; font: 600 var(--t-body)/1.5 var(--font-text); text-align: center; color: #0b2e42; }
.flow-title--sm + .flow-sub { text-align: left; max-width: 52ch; }

.flow-cards { margin-top: clamp(24px, 4vh, 44px); }
.flow-cards .card {
  width: 100%;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.flow-cards .card:active { transform: translateY(2px) rotate(-1.2deg); transition-duration: 0.08s; }
.flow-consult {
  width: 100%;
  margin-top: clamp(16px, 2.4vw, 28px);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.flow-step[data-step="project"],
.flow-step[data-step="book"] { width: min(828px, 100%); }
.flow-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  font: 700 14px/1 var(--font-text);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.flow-back:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.flow-back:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); transition-duration: 0.06s; }

.flow-form {
  width: min(780px, 100%);
  padding: clamp(22px, 3vw, 40px);
  border: 5px solid var(--ink);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 9px 10px 0 var(--ink);
}
/* in the flow the calendar sits inside the form's card, so it stacks, drops to
   a lighter border, and keeps its days short instead of square */
.flow-cal {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(20px, 2.6vw, 30px);
}
.flow-cal .cal,
.flow-cal .slots { border-width: 3px; border-radius: 22px; background: #fff; padding: clamp(14px, 2vw, 22px); }
.flow-cal .cal-top { margin-bottom: 12px; }
.flow-cal .cal-day { aspect-ratio: auto; height: clamp(40px, 5.4vw, 50px); }
.flow-cal .slots { gap: 12px; }
.flow-cal .slots-title { font-size: clamp(22px, 2vw, 27px); }
.flow-cal .slot-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-cal .book-sum { display: none; }
.flow-form .formbox-slot { margin-top: clamp(18px, 2.4vw, 26px); }

/* the finished state: a clear yes, and a way back to the site */
.flow-done { display: grid; justify-items: center; gap: 14px; padding: clamp(18px, 4vw, 44px) 0 clamp(8px, 2vw, 16px); text-align: center; }
.flow-done-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--title-yellow);
  box-shadow: 0 5px 0 var(--ink);
  font-size: 40px;
  animation: done-pop 0.6s var(--ease) both;
}
.flow-done-mark .i { stroke-width: 3; }
@keyframes done-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.flow-done-title { font: 400 clamp(36px, 4vw, 52px)/1 var(--font-cartoon); color: var(--ink); }
.flow-done-title:focus { outline: none; }
.flow-done-text { max-width: 40ch; font: 500 var(--t-body)/1.5 var(--font-text); color: #4f4a3e; }
.flow-done-close { margin-top: 8px; }

.hero-cta {
  pointer-events: auto;
  min-height: clamp(54px, 5.4svh, 68px);
  padding-inline: clamp(26px, 3vw, 40px);
  border-width: clamp(3px, 0.32vw, 5px);
  box-shadow: 0 6px 0 var(--ink);
  font-size: clamp(16px, 1.3vw, 20px);
}
.hero-cta:hover { box-shadow: 0 9px 0 var(--ink); }
.hero-cta:active { box-shadow: 0 2px 0 var(--ink); }

@media (max-width: 760px) {
  .flow-cards { grid-template-columns: repeat(2, 1fr); }
  .flow-cards > li:last-child { grid-column: 1 / -1; }
  .flow-cards .card { aspect-ratio: 1.25; }
  .flow-cards .card-icon { height: 52%; }
}
@media (max-width: 620px) {
  .formbox-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .flow-cal .slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .chip span { min-height: 42px; padding: 0 14px; font-size: 14px; border-width: 2.5px; }
  .flow-form { padding: 20px 17px; border-width: 3px; border-radius: 24px; box-shadow: 6px 7px 0 var(--ink); }
  .flow-cards { grid-template-columns: 1fr; }
  .flow-cards .card { aspect-ratio: 3; flex-direction: row; justify-content: flex-start; gap: 16px; padding: 10px 18px; }
  .flow-cards .card-icon { height: 74%; }
  .flow-step[data-step="pick"] { padding-top: 22px; }
  .flow-cards .card-title { font-size: 26px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .flow[open], .flow-step.is-entering, .flow-done-mark { animation: none; }
  .chip span { transition: none; }
}

/* Lifts, tilts and wiggles only where there's a real pointer. On a touch
   screen :hover sticks to whatever was last tapped, which leaves a card
   sitting crooked under your thumb. */
@media (hover: hover) {
  .card:hover { transform: translateY(-8px) rotate(-1.2deg); }
  .card:hover .card-icon { animation: wiggle 0.5s ease-in-out; }
  .consult:hover { transform: translateY(-4px); }
  .consult:hover .consult-go { transform: translateX(4px); }
  .mini-card:hover { transform: translateY(-4px); }
  .chip:hover span { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
  .btn:hover .i:not(.i--fill) { transform: translateX(2px); }
  .flow-back:hover .i, .quiz-back:hover .i { transform: translateX(-2px); }
}
/* the press has to win over the hover it happens during */
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); transition-duration: 0.06s; }
