/* ==========================================================================
   Hozefa — homepage
   Person-first hero · a reel of projects that each open to full screen (Google's agent flow first).
   Loads after site.css, which holds the tokens, base, nav, footer and cursor.
   ========================================================================== */

/* ==========================================================================
   Dot intro loader
   ========================================================================== */
.loader { display: none; }

.show-loader { overflow: hidden; }
.show-loader .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
}

.loader__field { position: absolute; left: 50%; top: 50%; }

.loader__dot {
  position: absolute;
  left: 0; top: 0;
  width: var(--d, 12px);
  height: var(--d, 12px);
  margin: calc(var(--d, 12px) / -2) 0 0 calc(var(--d, 12px) / -2);
  border-radius: 50%;
  background: var(--ink);
  will-change: transform;
}

/* ==========================================================================
   Hero — the person, first
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
}
.motion .hero {
  position: sticky;
  top: 0;
  z-index: 0;
  overflow: clip;
}

.hero__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-top) + var(--nav-h) + 20px) var(--gutter) calc(var(--peek) + 72px);
  transform-origin: 50% 30%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vh, 30px);
  max-width: 1120px;
  text-align: center;
  margin-top: -3vh;
}

.hero__title {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.8vh, 28px);
  font-weight: inherit;
}

.hero__hello {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font: 400 clamp(17px, 1.3vw, 19px)/1 var(--font-sans);
  letter-spacing: -0.005em;
  color: var(--ink-2);
}
.hero__name { color: var(--ink); }

.hero__statement {
  display: block;
  max-width: 17ch;
  font: 300 clamp(40px, min(5.8vw, 10.5vh), 92px)/1.1 var(--font-serif);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__statement em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  transition: color 0.9s var(--ease-out);
}
.hero__statement,
.footer__title { font-optical-sizing: auto; font-variation-settings: "SOFT" 0, "WONK" 0; }

.hero__statement .line { padding-bottom: 0.06em; margin-bottom: -0.06em; }

.hero__sub {
  font: 400 16px/1.45 var(--font-sans);
  color: var(--ink-2);
}
.hero__sub b { font-weight: 400; color: var(--ink); }


/* ---------- Hozefa, illustrated: the first fold's pointer (a size down from the first version) ---------- */
.me {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: clamp(40px, 3.3vw, 54px);
  pointer-events: none;
  will-change: transform;
}
.motion .me { visibility: hidden; }
.me__img {
  position: relative;
  width: 100%;
  transform-origin: 50% 12%;
  filter: drop-shadow(0 10px 12px rgba(30, 26, 12, 0.22));
}
.me__art { display: block; width: 100%; height: auto; }
/* live features over the blank face: they talk, look and blink (setupMe) */
.me__face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: #000; }

.has-me .hero { cursor: none; }
.has-me .hero .pill { cursor: none; }
:root:not(.motion) .me { position: static; order: -1; margin-bottom: -12px; }

/* ---------- Physical pills ---------- */
.pills {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pill {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 19px 0 21px;
  border-radius: 999px;
  background: var(--c);
  color: var(--ink);
  font: 500 16px/1 var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(15, 15, 13, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 13px 27px -16px rgba(30, 26, 12, 0.5);
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  visibility: hidden;
  will-change: transform;
}
.pill:active { cursor: grabbing; }
.pill svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pill--chip {
  width: 48px;
  padding: 0;
  justify-content: center;
}
.pill--chip svg { width: 19px; height: 19px; }
.pills.is-live .pill.is-in { visibility: visible; }
.hero.is-dragging { user-select: none; -webkit-user-select: none; }

/* physics unavailable: a calm row above the work sheet instead */
.pills.is-static {
  inset: auto auto calc(var(--peek) + 24px) 50%;
  translate: -50% 0;
  width: min(880px, 92vw);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pills.is-static .pill { position: static; visibility: visible; cursor: default; }

/* ==========================================================================
   The work — a sheet slides over the hero; then the projects scroll by (nothing pins).
   Each sits in a white frame that opens from inset as it arrives, with a mock built from
   the case study's own screens, driven by scroll: phones part, screens advance, a chip says what's on screen.
   ========================================================================== */
.work {
  position: relative;
  z-index: 1;
  background: var(--sheet);
  border-radius: 36px 36px 0 0;
  /* no elevation: the sheet meets the hero's white with a faint hairline only */
  box-shadow: 0 -1px 0 rgba(15, 15, 13, 0.06);
  padding-bottom: clamp(24px, 5vh, 64px);
}
.motion .work { margin-top: calc(var(--peek) * -1); }

/* the sheet's lip: "Selected work" between hairlines, as the peek under the hero */
.work__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--peek);
  margin: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.work__title {
  font: 300 clamp(26px, min(2.9vw, 5vh), 44px)/1 var(--font-serif);
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.work__meta {
  font: 400 14px/1 var(--font-sans);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.work__meta span { margin-right: 10px; }

/* ---------- A project ---------- */
.reel {
  padding: clamp(56px, 10vh, 120px) var(--gutter) 0;
}
.reel:first-of-type { padding-top: clamp(28px, 5vh, 56px); }

.reel__top {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font: 400 14px/1.2 var(--font-sans);
  color: var(--ink-2);
}
.reel__num,
.reel__year { font-variant-numeric: tabular-nums; }
.reel__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.reel__name .live { width: 7px; height: 7px; }
.reel__year { text-align: right; }

/* the frame: white, a hairline, rounded; it opens from an inset as it arrives (clip-path set by main.js) */
.reel__frame {
  position: relative;
  display: block;
  height: clamp(440px, 76vh, 940px);
  margin-top: clamp(14px, 2.4vh, 24px);
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  container-type: size;
}
.has-cursor .reel__frame { cursor: none; }
.reel__media {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 60%;
}

.reel__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: clamp(18px, 3vh, 28px);
}
.reel__title {
  max-width: 24ch;
  font: 300 clamp(28px, min(2.9vw, 5.2vh), 48px)/1.1 var(--font-serif);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.reel__title em { font-style: italic; color: var(--accent); }
/* View case: a rounded-rectangle pill of liquid glass; on hover a colourful beam rides its border
   (after Libraries.dev Beam: size md, colorVariant colorful, strength 0.7, active on hover) */
@property --beam-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.reel__cta {
  --beam-strength: 0.7;
  position: relative;
  isolation: isolate;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px 0 22px;
  border-radius: 16px;
  font: 500 15px/1 var(--font-sans);
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: scale 0.3s var(--ease-out);
}
.reel__cta .glass {
  box-shadow:
    0 0 0 0.5px rgba(15, 15, 13, 0.14),
    0 12px 28px -16px rgba(30, 26, 12, 0.38),
    0 3px 8px -5px rgba(30, 26, 12, 0.16);
}
.reel__cta .glass__tint { background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5)); transition: background 0.4s var(--ease-out); }
.reel__cta-label { position: relative; }
.reel__cta .btn__arrow { position: relative; }
.reel__cta:hover .glass__tint { background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)); }
.reel__cta:active { scale: 0.97; }
.reel__cta .btn__arrow { transition: transform 0.55s var(--ease-out); }
.reel__cta:hover .btn__arrow { transform: translate(2px, -2px); }

.beam {
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.beam i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  /* the gradient lives here, where --beam-a animates (a variable resolved on the button would freeze it) */
  background: conic-gradient(from var(--beam-a), transparent 0deg 228deg, #4F8CFF 262deg, #9B6BFF 292deg, #FF5FA2 318deg, #FFB547 342deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam-ride 2.6s linear infinite paused;
}
/* the glow: the same ring, blurred, at the beam's strength */
.beam--glow { filter: blur(7px); }
.beam--glow i { padding: 3px; }
.reel__cta:hover .beam,
.reel__cta:focus-visible .beam { opacity: 1; }
.reel__cta:hover .beam--glow,
.reel__cta:focus-visible .beam--glow { opacity: var(--beam-strength); }
.reel__cta:hover .beam i,
.reel__cta:focus-visible .beam i { animation-play-state: running; }
@keyframes beam-ride { to { --beam-a: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .beam i { animation: none; --beam-a: 300deg; }
}

/* ---------- Mocks ---------- */
.mock { position: absolute; inset: 0; display: block; }

/* a phone, drawn in CSS around the case study's real screen (any size stays sharp) */
.ph {
  position: relative;
  display: block;
  flex: none;
  height: var(--ph-h, 74cqh);
  aspect-ratio: 1000 / 2159;
  padding: calc(var(--ph-h, 74cqh) * 0.016);
  border-radius: calc(var(--ph-h, 74cqh) * 0.07);
  background: #111110;
  box-shadow:
    inset 0 0 0 1.5px #3A3A37,
    0 2px 2px rgba(15, 15, 13, 0.06),
    0 30px 60px -28px rgba(15, 15, 13, 0.42),
    0 60px 110px -60px rgba(15, 15, 13, 0.32);
}
.ph img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--ph-h, 74cqh) * 0.056);
  object-fit: cover;
  object-position: top;
  background: #fff;
}

/* the chip: which step is on screen */
.mock__chip {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3.4cqh, 28px);
  z-index: 3;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px var(--line), 0 10px 26px -14px rgba(15, 15, 13, 0.35);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  font: 400 14px/1 var(--font-sans);
  color: var(--ink);
  white-space: nowrap;
}
.mock__count { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.mock__count b { font-weight: 600; color: var(--ink); }
.mock__say { font-weight: 500; }
.mock__bar { position: relative; display: block; width: 44px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.mock__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--q, 0)); }

/* Google: the Sobi demo, with a few of its agents drifting at the edges */
.mock--sobi .comp {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  margin: 0;
  --uc: min(calc(0.86 * 100cqh / var(--h)), calc(0.9 * 100cqw / var(--w)));
  width: calc(var(--w) * var(--uc));
  height: calc(var(--h) * var(--uc));
}
.mock__float {
  --size: min(clamp(40px, 6.4cqw, 92px), var(--max, 92px));
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: auto;
  aspect-ratio: 1;
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 14px 26px -14px rgba(15, 15, 13, 0.4);
}
.device { position: absolute; left: var(--l); top: var(--t); width: var(--dw); height: var(--dh); }
.device__inner { width: 100%; height: 100%; }

/* Coinbase: one phone, then the camera pulls back and tilts to a wall of the whole flow.
   The resting (static) state is the wall; main.js starts it close on the hero phone. */
/* no perspective: a 3D context makes Chrome rasterise the wall at low resolution on phones; the tilt reads as a flattened plane */
.mock--wall { overflow: hidden; }
.wall__plane {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 3.2cqh;
  --ph-h: 46cqh;
  translate: -50% -50%;
  transform: rotateX(20deg) rotateZ(-18deg);
  transform-origin: 50% 50%;
}
/* no will-change on the wall: Chrome would rasterise it once at rest and upscale it while the camera is close */
.wall__col { display: flex; flex-direction: column; gap: 3.2cqh; }
.mock--wall .ph { aspect-ratio: 1000 / 2158; }
.mock--wall .ph:not(.is-hero) { opacity: var(--dim, 1); }
.mock--wall .ph.is-hero { z-index: 1; box-shadow: inset 0 0 0 1.5px #3A3A37, 0 0 0 calc(var(--ring, 0) * 6px) color-mix(in srgb, var(--accent) 22%, transparent), 0 40px 80px -36px rgba(15, 15, 13, 0.5); }

/* Limeroad: nine phones held as one deck, fanned into an arc wider than the frame */
.mock--fan { overflow: hidden; }
.fan__set { position: absolute; inset: 0; --ph-h: 62cqh; }
.mock--fan .ph {
  position: absolute;
  left: 50%;
  top: 13cqh;
  margin-left: calc(var(--ph-h) * -0.2316);
  z-index: var(--z);
  transform-origin: 50% 250%;
  rotate: calc(var(--k) * 10deg);
  transition: translate 0.6s var(--ease-out), scale 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.mock--fan .ph.is-up { z-index: 30; box-shadow: inset 0 0 0 1.5px #3A3A37, 0 0 0 5px color-mix(in srgb, var(--accent) 24%, transparent), 0 46px 90px -40px rgba(15, 15, 13, 0.55); }

/* Upgrad: the five modules in a row, carried past the centre one at a time */
.mock__row {
  position: absolute;
  inset: 0 0 8cqh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.4cqw;
  --ph-h: 66cqh;
}
.mock--carousel .ph { aspect-ratio: 428 / 926; transition: scale 0.6s var(--ease-out); }

/* Tinyowl: the short funnel, five screens dealt one over the next */
.mock--stack .mock__row { gap: 0; }
.mock--stack .ph { aspect-ratio: 390 / 844; z-index: var(--i); margin-left: calc(var(--ph-h) * -0.2); }
.mock--stack .ph:first-child { margin-left: 0; }

/* ---------- Static layout (no JS, reduced motion, or libraries unavailable) ---------- */
:root:not(.motion) .hero { height: auto; min-height: 100svh; }
:root:not(.motion) .hero__stage {
  position: relative;
  inset: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-bottom: 72px;
}
:root:not(.motion) .hero__inner { margin-top: 0; }
:root:not(.motion) .pills {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
}
:root:not(.motion) .pill { position: static; visibility: visible; cursor: default; }

/* Pre-hide what the entrance choreography reveals */
.motion:not(.is-intro) .nav,
.motion:not(.is-intro) .hero__stage,
.motion:not(.is-intro) .work { opacity: 0; }

/* ==========================================================================
   Google · Sobi — "Two agents. One goal. Done." (scoped product styles)
   Designed at 700×660 (wide) or 360×480 (compact) and scaled to the stage as one unit.
   ========================================================================== */
.sobi {
  --ground: #F0F3FA;
  --surface: #FFFFFF;
  --s-ink: #1B1B1F;
  --s-ink-2: #44474E;
  --s-ink-3: #5E636E;
  --s-line: #DCE2EE;
  --blue: #0B57D0;
  --blue-2: #0842A0;
  --blue-soft: #D3E3FD;
  --sky: #C2E7FF;
  --ok: #1E8E3E;
  --busy: #E37400;
  --wait: #0B57D0;
  --card-shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 22px 44px -26px rgba(30, 45, 90, 0.35);
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-s: cubic-bezier(0.2, 0.7, 0.1, 1);

  position: absolute;
  left: 0;
  top: 0;
  width: 700px;
  height: 690px;
  transform: scale(var(--sobi-s, 1));
  transform-origin: 0 0;
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 60% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #F5F7FC 0%, var(--ground) 100%);
  box-shadow: inset 0 0 0 1px rgba(11, 87, 208, 0.07), 0 50px 90px -60px rgba(11, 40, 120, 0.55);
  font: 400 14px/1.4 var(--f-body);
  color: var(--s-ink);
  text-align: left;
}
.sobi p, .sobi ul, .sobi ol { margin: 0; padding: 0; list-style: none; }

.sobi .how-arc { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.sobi .how-arc path { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0.45; }

.sobi .acard {
  position: absolute;
  top: 66px;
  z-index: 1;
  width: 252px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  animation: sobi-float 6s ease-in-out infinite;
}
.sobi .acard.left { left: 30px; transform: perspective(900px) rotateY(10deg); }
.sobi .acard.right { right: 30px; transform: perspective(900px) rotateY(-10deg); animation-delay: -3s; }
.sobi .ac-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sobi .ac-av { width: 60px; height: 60px; border-radius: 50%; animation: sobi-bob 4s ease-in-out infinite; }
.sobi .acard.talk .ac-av { animation: sobi-talk 0.5s ease-in-out infinite; }
.sobi .acard.cheer .ac-av { animation: sobi-cheer 0.6s ease-in-out infinite; }
.sobi .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--s-line);
  font: 500 12px/1 var(--f-body);
  color: var(--s-ink-2);
  white-space: nowrap;
}
.sobi .badge svg { width: 13px; height: 13px; }
.sobi .ac-name { font: 500 19px/1.2 var(--f-body); }
.sobi .d { font-size: 14px; color: var(--s-ink-2); }
.sobi .st { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1.2 var(--f-body); color: var(--s-ink); }
.sobi .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--busy); animation: sobi-pulse 1.8s infinite; }
.sobi .st[data-s="idle"]::before { background: #C4C7CF; animation: none; }
.sobi .st[data-s="wait"]::before { background: var(--wait); }
.sobi .st[data-s="done"]::before { background: var(--ok); animation: none; }

.sobi .how-center { position: absolute; left: 86px; right: 86px; top: 272px; height: 330px; z-index: 2; }
.sobi .hs {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-44%) scale(0.96);
  transition: opacity 0.45s, transform 0.7s var(--ease-s), visibility 0s 0.7s;
}
.sobi .hs.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity 0.45s 0.08s, transform 0.7s var(--ease-s) 0.08s, visibility 0s;
}
.sobi .hs-k { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-body); letter-spacing: 0.04em; color: var(--s-ink-3); }
.sobi .hs-t { font: 400 30px/1.15 var(--f-display); letter-spacing: -0.005em; text-wrap: balance; }
.sobi .hs-as { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--s-ink-2); }
.sobi .hs ul { display: grid; gap: 6px; }
.sobi .hs li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--ground); font-size: 14px; font-weight: 500; }
.sobi .hs li small { margin-left: auto; font-weight: 500; color: var(--s-ink-3); font-size: 12px; white-space: nowrap; }
.sobi .hs-x { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--ground); font-size: 14px; opacity: 0.35; transition: opacity 0.4s; }
.sobi .hs-x b { font: 600 12px/1.2 var(--f-body); color: var(--s-ink-3); }
.sobi .hs-x.on { opacity: 1; }
.sobi .ava { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.sobi .pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--wait); animation: sobi-pulse 1.8s infinite; }
.sobi .ap-q { font: 500 18px/1.25 var(--f-body); }
.sobi .ap .n { font-size: 13px; color: var(--s-ink-2); }
.sobi .opts { display: grid; gap: 4px; }
.sobi .opt { display: grid; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; transition: background 0.3s; }
.sobi .opt svg { width: 18px; height: 18px; color: var(--s-ink-3); }
.sobi .opt b { display: block; font: 600 13.5px/1.2 var(--f-body); }
.sobi .opt span { display: block; font-size: 12px; color: var(--s-ink-3); line-height: 1.3; }
.sobi .opt .ck { opacity: 0; color: var(--blue); }
.sobi .opt.sel { background: var(--sky); }
.sobi .opt.sel .ck { opacity: 1; }
.sobi .ap-btns { display: flex; justify-content: flex-end; gap: 14px; align-items: center; }
.sobi .link { font: 600 14px/1.2 var(--f-body); color: var(--blue); }
.sobi .confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 600 14px/1 var(--f-body);
  box-shadow: 0 10px 22px -12px rgba(11, 87, 208, 0.8);
  transition: background 0.3s;
}
.sobi .cf-b,
.sobi .is-approved .cf-a { display: none; }
.sobi .is-approved .cf-b { display: inline; }
.sobi .is-approved .confirm { background: var(--ok); }
.sobi .fake-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 22px; height: 22px; opacity: 0; pointer-events: none; transition: opacity 0.3s; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25)); }
.sobi .done-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.sobi .done-ic svg { width: 22px; height: 22px; }
.sobi .hs-stats { font: 500 12px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--s-ink-3); }

.sobi .packet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--s-ink);
  font: 600 13px/1 var(--f-body);
  white-space: nowrap;
  box-shadow: 0 14px 26px -12px rgba(15, 20, 55, 0.5), inset 0 0 0 1px var(--s-line);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.sobi .how-rail { position: absolute; left: 30px; right: 30px; bottom: 22px; z-index: 3; display: grid; gap: 12px; justify-items: center; }
.sobi .how-rail ol { display: flex; gap: 2px; justify-content: center; }
.sobi .hr-step { display: inline-flex; padding: 6px 9px; border-radius: 999px; font: 500 12px/1 var(--f-body); color: var(--s-ink-3); white-space: nowrap; transition: color 0.3s, background 0.3s; }
.sobi .hr-step .n { font-family: var(--f-mono); margin-right: 5px; opacity: 0.7; }
.sobi .hr-step.is-on { color: var(--blue-2); background: var(--blue-soft); }
.sobi .hr-bar { width: min(560px, 100%); height: 3px; border-radius: 3px; background: var(--s-line); overflow: hidden; }
.sobi .hr-bar i { display: block; width: 100%; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* compact (phones): agents side by side, plan below, active step label only */
.sobi.is-compact { width: 360px; height: 480px; border-radius: 26px; font-size: 13px; }
.sobi.is-compact .acard { top: 48px; width: 160px; padding: 10px; gap: 6px; border-radius: 18px; }
.sobi.is-compact .acard.left { left: 12px; }
.sobi.is-compact .acard.right { right: 12px; }
.sobi.is-compact .ac-av { width: 44px; height: 44px; }
.sobi.is-compact .d,
.sobi.is-compact .badge,
.sobi.is-compact .ap .n,
.sobi.is-compact .opt span { display: none; }
.sobi.is-compact .ac-name { font-size: 13px; }
.sobi.is-compact .st { font-size: 11.5px; }
.sobi.is-compact .how-center { left: 12px; right: 12px; top: 172px; height: 248px; }
.sobi.is-compact .hs { top: 0; padding: 14px; gap: 10px; transform: translateY(10px) scale(0.97); }
.sobi.is-compact .hs.is-on { transform: none; }
.sobi.is-compact .hs-t { font-size: 23px; }
.sobi.is-compact .hs li { padding: 7px 8px; font-size: 12.5px; }
.sobi.is-compact .ap-q { font-size: 15px; }
.sobi.is-compact .opt { padding: 7px 8px; }
.sobi.is-compact .packet { font-size: 11px; padding: 5px 10px 5px 5px; }
.sobi.is-compact .how-rail { left: 12px; right: 12px; bottom: 12px; gap: 8px; }
.sobi.is-compact .hr-step { padding: 5px 7px; font-size: 11px; }
.sobi.is-compact .hr-step:not(.is-on) .l { display: none; }

@keyframes sobi-float { 50% { translate: 0 -6px; } }
@keyframes sobi-bob { 50% { transform: translateY(-4px); } }
@keyframes sobi-talk { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes sobi-cheer { 50% { transform: translateY(-12px) scale(1.06); } }
@keyframes sobi-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 142, 62, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(30, 142, 62, 0); }
}


/* ==========================================================================
   Responsive (homepage)
   ========================================================================== */
@media (max-width: 819px) {
  /* hero */
  .hero__hello { gap: 10px; font-size: 16px; }
  .hero__statement { max-width: 13ch; font-size: clamp(38px, 10.6vw, 52px); }
  .hero__sub { max-width: 30ch; }
  /* phones: the desktop pills at their phone scale */
  .pill { height: 33px; gap: 6px; padding: 0 11px 0 13px; font-size: 12px; }
  .pill svg { width: 12px; height: 12px; }
  .pill--chip { width: 33px; padding: 0; }
  .pill--chip svg { width: 14px; height: 14px; }
  .pill[data-wide] { display: none; }
  .work { border-radius: 26px 26px 0 0; }

  /* projects: name and years only in the row; the mock's phones a touch larger */
  .work__meta span { display: none; }
  .reel__top { grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 10px; font-size: 13px; }
  .reel__field { display: none; }
  .reel__frame { height: min(128vw, 72svh); border-radius: 22px; }
  .reel__foot { flex-direction: column; align-items: flex-start; }
  .reel__title { font-size: clamp(24px, 6.8vw, 32px); }
  .mock__float { display: none; }
  .wall__plane { --ph-h: 36cqh; }
  .fan__set { --ph-h: 54cqh; }
  .mock--fan .ph { top: 12cqh; }
  .mock__row { --ph-h: 64cqh; }
  .mock__chip { height: 36px; gap: 10px; padding: 0 13px; font-size: 13px; }
  .mock__bar { display: none; }
}

/* big monitors (27–32"): the rows, titles and chip grow with the screen, as the case studies do */
@media (min-width: 1900px) and (min-height: 1000px) {
  .work__title { font-size: 56px; }
  .work__meta, .reel__top { font-size: 18px; }
  .reel__title { font-size: 64px; }
  .mock__chip { height: 50px; padding: 0 20px; font-size: 17px; }
  .mock__count { font-size: 16px; }
}

/* short screens: a smaller, single-layer pile so the statement stays clear */
@media (max-height: 760px) and (min-width: 820px) {
  .pill { height: 40px; gap: 8px; padding: 0 15px 0 17px; font-size: 14px; }
  .pill svg { width: 15px; height: 15px; }
  .pill--chip { width: 40px; padding: 0; }
  .pill--chip svg { width: 16px; height: 16px; }
  .pill[data-wide] { display: none; }
}

/* short phones (SE-size): compact pills so the pile clears the hero line */
@media (max-height: 760px) and (max-width: 819px) {
  .pill { height: 29px; gap: 5px; padding: 0 10px 0 11px; font-size: 11px; }
  .pill svg { width: 11px; height: 11px; }
  .pill--chip { width: 29px; padding: 0; }
  .pill--chip svg { width: 12px; height: 12px; }
}
