/* ==========================================================================
   UX with Jay Thaker — Live Canvas  ·  uxwithjaythaker.info
   ========================================================================== */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --canvas: #ECEBE6;
  --paper: #FBFAF7;
  --ink: #0F0F11;
  --ink-2: #3B3A3F;
  --muted: #7A7872;
  --line: rgba(15, 15, 17, .09);
  --dot: rgba(15, 15, 17, .17);
  --jay: #E9533A;        /* UXWITHJAY coral, matched to the logo */
  --brand: #E9533A;
  --mira: #7B61FF;
  --ravi: #12B76A;
  --mint: #8BE3B5;
  --night: #0E0E10;

  --pad: 28px;
  --radius: 26px;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.65, 0, .35, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --glass: rgba(251, 250, 247, .78);
  --shadow-ui: 0 0 0 1px var(--line), 0 12px 32px -14px rgba(20, 18, 14, .28);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--canvas); }
body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
p, h1, h2, ol, ul { margin: 0; }
svg { display: block; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--jay); outline-offset: 3px; }

.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot--jay { background: var(--jay); }
.dot--live { background: var(--ravi); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .55); }
  70% { box-shadow: 0 0 0 7px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

.only-touch { display: none !important; }
@media (hover: none), (pointer: coarse) {
  .only-fine { display: none !important; }
  .only-touch { display: inline-flex !important; }
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--shadow-ui);
}

/* ==========================================================================
   Stage · infinite canvas
   ========================================================================== */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.stage.is-grabbing, .stage.is-grabbing * { cursor: grabbing !important; }
.stage.is-overview { cursor: grab; }

.grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, var(--dot) 1px, transparent 1.6px);
  background-size: 24px 24px;
}
.grid--glow {
  --dot: rgba(233, 83, 58, .95);
  background-image: radial-gradient(circle at center, var(--dot) 1.35px, transparent 2px);
  -webkit-mask-image: radial-gradient(230px circle at var(--mx, -600px) var(--my, -600px), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 72%);
  mask-image: radial-gradient(230px circle at var(--mx, -600px) var(--my, -600px), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 72%);
}

.world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.stage.is-moving .world { will-change: transform; }

/* ---------- Prototype connections ---------- */
.noodles { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.noodle {
  fill: none;
  stroke: var(--jay);
  stroke-width: 1.75;
  stroke-dasharray: 5 7;
  vector-effect: non-scaling-stroke;
  animation: march 1s linear infinite;
}
.noodle-head { fill: var(--jay); }
.noodle-dot { fill: var(--jay); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
@keyframes march { to { stroke-dashoffset: -12; } }
.noodle-tags { position: absolute; left: 0; top: 0; }
.noodle-tag {
  position: absolute;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px 7px 9px;
  border-radius: 99px;
  background: var(--jay);
  color: #fff;
  font: 500 11px/1 var(--mono);
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(233, 83, 58, .7);
}
.noodle-tag svg { width: 12px; height: 12px; }

.deco, .noodles, .noodle-tags { transition: opacity 1.4s var(--out) .5s; }
body:not(.is-intro) .deco,
body:not(.is-intro) .noodles,
body:not(.is-intro) .noodle-tags { opacity: 0; }

/* ---------- Canvas decoration ---------- */
.deco { position: absolute; left: 0; top: 0; --ds: 1; }
.deco__item {
  position: absolute;
  translate: -50% -50%;
  rotate: var(--rot, 0deg);
  scale: var(--ds);
  animation: bob 7s ease-in-out var(--fd, 0s) infinite alternate;
}
@keyframes bob { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

.sticky {
  width: 214px;
  padding: 18px 18px 16px;
  border-radius: 4px;
  background: #FFE27A;
  color: #3A2E00;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.01em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 30px -18px rgba(70, 50, 0, .45);
}
.sticky small { display: block; margin-top: 12px; font: 500 11px/1 var(--mono); opacity: .55; }
.sticky--pink { background: #FFCAD7; color: #4B0D21; }
.sticky--mint { background: #C6F1D9; color: #07331D; }

.swatches { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-ui); }
.swatches span { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatches em { margin-left: 6px; font: 500 11px/1.35 var(--mono); font-style: normal; color: var(--muted); }

.specimen { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-ui); }
.specimen b { font: italic 400 66px/.9 var(--serif); letter-spacing: -.02em; }
.specimen span { font: 500 11px/1.55 var(--mono); color: var(--muted); }

.component { display: grid; justify-items: start; gap: 10px; }
.component em { font: 500 11px/1 var(--mono); font-style: normal; color: var(--mira); }
.component__btn { padding: 15px 24px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; outline: 1.5px dashed var(--mira); outline-offset: 6px; white-space: nowrap; }

.tokens { display: grid; gap: 7px; padding: 14px 18px 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-ui); font: 500 11px/1 var(--mono); color: var(--muted); }
.tokens div { display: flex; align-items: center; gap: 10px; }
.tokens i { display: block; width: calc(var(--w) * 5px); height: 9px; background: rgba(233, 83, 58, .22); border-inline: 1px solid var(--jay); }
.tokens span { margin-top: 4px; }

.comment { display: flex; gap: 10px; width: 228px; padding: 12px 14px; border-radius: 6px 18px 18px 18px; background: #fff; box-shadow: var(--shadow-ui); }
.comment i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mira); color: #fff; font: 600 12px/1 var(--sans); font-style: normal; }
.comment p { font-size: 14px; line-height: 1.35; }
.comment small { display: block; margin-top: 6px; font: 500 11px/1 var(--mono); color: var(--muted); }

/* ==========================================================================
   Frames (artboards)
   ========================================================================== */
.frame {
  --n: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fw, 100vw);
  height: var(--fh, 100vh);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(15, 15, 17, .06),
    0 2px 6px rgba(15, 15, 17, .04),
    0 40px 80px -40px rgba(40, 30, 20, .35);
  container: frame / size;
  transition:
    opacity 1s var(--out) calc(var(--n) * 150ms),
    translate 1.3s var(--out) calc(var(--n) * 150ms),
    box-shadow .5s var(--out);
}
body:not(.is-intro) .frame { opacity: 0; translate: 0 60px; }

.frame__label {
  position: absolute;
  left: 0;
  bottom: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 0 10px 4px;             /* sits just above its own frame, aligned with its corner */
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  white-space: nowrap;
  transform-origin: 0 100%;
  pointer-events: none;
  transition: color .4s;
}
.frame__label svg { width: 12px; height: 12px; }
.frame.is-active .frame__label { color: var(--ink); }
.frame.is-active .frame__label svg { color: var(--jay); }
.frame__dim { margin-left: 6px; opacity: .55; }
.frame__badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: #0B7A47; }

.frame__inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  padding: clamp(20px, 4cqw, 56px);
}

.stage.is-overview .frame { cursor: zoom-in; }
.stage.is-overview .frame__inner { pointer-events: none; }
.stage.is-overview .frame:hover { box-shadow: 0 0 0 8px var(--jay), 0 40px 80px -40px rgba(40, 30, 20, .35); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2 {
  font-size: clamp(30px, min(4.7cqw, 9cqh), 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.042em;
}
.h2 em, .hero__title em, .careers__sub em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.h2 em { font-size: 1.08em; line-height: .9; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: gap .45s var(--out), background-size .45s var(--out);
}
.link:hover { gap: 13px; }
.link svg { width: 15px; height: 15px; flex: none; }

/* ---------- 01 · Hello ---------- */
.hero {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 3cqh, 32px);
}
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 15px 0 13px;
  border-radius: 99px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(15, 15, 17, .05);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.hint { align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); display: inline-flex; }
.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(15, 15, 17, .1);
  color: var(--ink-2);
}

.hero__title {
  align-self: center;
  font-size: clamp(34px, min(8.4cqw, 15cqh), 136px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

/* The live-edited word */
.edit {
  position: relative;
  display: inline-block;
  min-width: .3em;
  padding: 0 .07em 0 .05em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  line-height: .9;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.edit__caret {
  position: absolute;
  right: .03em;
  top: .1em;
  bottom: .02em;
  width: 2px;
  border-radius: 2px;
  background: var(--jay);
  opacity: 0;
}
.edit.is-editing .edit__caret { animation: caret 1s steps(1) infinite; }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.edit__sel {
  position: absolute;
  inset: -.02em -.02em -.07em;
  border: 1.5px solid var(--jay);
  border-radius: 2px;
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
  transition: opacity .25s, transform .5s var(--out);
}
.edit.is-selected .edit__sel { opacity: 1; transform: none; }
.edit__sel i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--jay);
  border-radius: 2px;
  background: #fff;
  transition: opacity .2s;
}
.edit__sel i:nth-child(1) { left: -5px; top: -5px; }
.edit__sel i:nth-child(2) { right: -5px; top: -5px; }
.edit__sel i:nth-child(3) { left: -5px; bottom: -5px; }
.edit__sel i:nth-child(4) { right: -5px; bottom: -5px; }
.edit.is-editing .edit__sel i { opacity: 0; }
.edit__sel::after {
  content: attr(data-size);
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--jay);
  color: #fff;
  font: 500 11px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0;
  white-space: pre;
}

.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; }
.hero__sub { max-width: 42ch; font-size: clamp(14px, calc(1.1cqw + 3px), 18px); line-height: 1.55; color: var(--ink-2); }
.hero__sub strong { color: var(--ink); font-weight: 600; }

.paths { display: grid; grid-template-columns: repeat(2, 266px); gap: 12px; }
.path {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  min-height: 128px;
  padding: 16px 18px;
  border-radius: 18px;
  text-align: left;
  transition: transform .6s var(--out), box-shadow .6s var(--out);
}
/* hover never moves a card: it lights up in gold instead
   (a golden glow follows the cursor + a golden ring runs around the edge) */
.path::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--px, 50%) var(--py, 50%), rgba(232, 196, 128, .13), transparent 70%);
  opacity: 0;
  transition: opacity .6s ease;
}
.path--ghost::after { background: radial-gradient(300px circle at var(--px, 50%) var(--py, 50%), rgba(214, 168, 92, .1), transparent 70%); }
.path:hover::after { opacity: 1; }
.path__kicker {
  position: absolute;
  left: 18px;
  top: 17px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .62;
}
.path__title { font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.path__desc { font-size: 12.5px; line-height: 1.4; opacity: .62; }
.path__arrow {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
}
.path__arrow svg { grid-area: 1 / 1; width: 16px; height: 16px; transition: transform .55s var(--out); }
.path__arrow svg + svg { transform: translate(-170%, 170%); }
.path:hover .path__arrow svg:first-child { transform: translate(170%, -170%); }
.path:hover .path__arrow svg + svg { transform: none; }

.path--primary { background: var(--ink); color: #fff; box-shadow: 0 22px 40px -20px rgba(15, 15, 17, .6); }
.path--primary .path__arrow { background: var(--jay); color: #fff; }
.path--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), transparent 0 60%, rgba(233, 83, 58, 0) 62%, var(--jay) 80%, #F7B5A6 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 4.5s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { --spin: 360deg; } }
/* the second card gets the same running ring — in gold, on hover */
.path--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 5s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
/* a soft champagne ring — present, never loud */
.path--ghost::before,
.path--primary:hover::before {
  background: conic-gradient(from var(--spin), transparent 0 60%, rgba(222, 186, 120, 0) 64%, rgba(222, 186, 120, .75) 80%, rgba(246, 226, 186, .8) 84%, transparent 93%);
}
.path--ghost:hover::before { opacity: .9; }

.path--ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -18px rgba(15, 15, 17, .3); }
.path--ghost .path__kicker { color: #0B7A47; opacity: 1; }
.path--ghost .path__arrow { background: var(--ink); color: #fff; }
.path--ghost .path__arrow svg + svg { transform: translateX(-170%); }
.path--ghost:hover .path__arrow svg:first-child { transform: translateX(170%); }
.path--ghost:hover .path__arrow svg + svg { transform: none; }

/* ---------- 02 · Craft ---------- */
.craft {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(20px, 4cqw, 64px);
}
.craft__copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2.4cqh, 24px); min-height: 0; }
.craft__sub { max-width: 46ch; font-size: clamp(14px, calc(1cqw + 4px), 17px); line-height: 1.55; color: var(--ink-2); }

.services { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.services li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: clamp(9px, 1.7cqh, 15px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(14px, calc(.6cqw + 8px), 17px);
  transition: background-color .4s;
}
.services li > .mono { font-size: 11px; color: var(--muted); transition: color .4s; }
.services strong { font-weight: 500; letter-spacing: -.01em; transition: transform .6s var(--out); }
.services__desc { font-size: 12.5px; color: var(--muted); text-align: right; }
.services li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--jay);
  transform: scaleX(0);
  transform-origin: left;
}
.services li.is-hot > .mono { color: var(--jay); }
.services li.is-hot::after { animation: fill var(--dur, 3s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Live artboard */
.lab {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  /* a soft studio backdrop, distinct from the dotted canvas */
  background:
    radial-gradient(70% 55% at 50% 108%, rgba(233, 83, 58, .22), transparent 70%),
    radial-gradient(90% 70% at 50% 40%, #FBF6F1 0%, #F1E8DF 55%, #E8DFD5 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* the phone's floor shadow */
.lab__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1%;
  width: 46%;
  height: 22px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 30, 15, .28), transparent);
  filter: blur(4px);
  pointer-events: none;
}
.lab__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 9px 9px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, .9);
}
.lab__title { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dot--rec { background: #FF3B30; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .2; } }
/* Stage switcher — a segmented control: one soft track, a raised pill for the
   current step, a status dot per step, and progress only under the current one */
.stages {
  display: flex;
  gap: 2px;
  padding: 3px;
  list-style: none;
  border-radius: 11px;
  background: rgba(15, 15, 17, .055);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 17, .035);
}
.stages li {
  position: relative;
  border-radius: 8px;
  font: 500 11px/1 var(--mono);
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s, background-color .3s, box-shadow .3s;
}
.stages li button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; font: inherit; color: inherit; cursor: pointer; }
/* status dot: hollow = upcoming, coral = done, ink = current */
.stages li button::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.3px currentColor;
  opacity: .6;
  transition: background-color .3s, box-shadow .3s, opacity .3s;
}
.stages li.is-done { color: var(--ink-2); }
.stages li.is-done button::before { background: var(--jay); box-shadow: none; opacity: 1; }
.stages li:not(.is-active):hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.stages li.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 15, 17, .08), 0 2px 8px -3px rgba(15, 15, 17, .12), 0 0 0 .5px rgba(15, 15, 17, .06);
}
.stages li.is-active button::before { background: var(--ink); box-shadow: none; opacity: 1; }
/* progress: a hairline under the current step only */
.stages li i { position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(233, 83, 58, .14); opacity: 0; transition: opacity .3s; }
.stages li i::after { content: ""; position: absolute; inset: 0; background: var(--jay); border-radius: inherit; transform: scaleX(0); transform-origin: left; }
.stages li.is-active i { opacity: 1; }
.stages li.is-active i::after { animation: fill var(--dur, 3s) linear forwards; }
.lab__stage { position: relative; flex: 1; min-height: 0; }

/* A real iPhone (15 Pro proportions): titanium band, Dynamic Island, side buttons */
.iphone {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 302px;
  height: 622px;                     /* true iPhone 15 Pro proportions (≈ 1 : 2.06) */
  margin: -311px 0 0 -151px;
  padding: 11px;
  border-radius: 54px;
  transform: scale(var(--s, 1));
  background: linear-gradient(140deg, #4A4A50 0%, #222226 22%, #34343A 52%, #1A1A1E 78%, #3C3C42 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .18),
    inset 0 0 0 3.5px #0B0B0D,
    0 50px 80px -36px rgba(50, 25, 10, .55),
    0 18px 30px -16px rgba(0, 0, 0, .35);
}
.iphone::before,
.iphone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #1E1E22, #47474D); }
.iphone::before { left: -3px; top: 112px; height: 28px; box-shadow: 0 52px 0 0 #2E2E33, 0 112px 0 0 #2E2E33; }   /* action + volume */
.iphone::after { right: -3px; top: 168px; height: 86px; }                                                      /* side button */
.iphone__island {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 21px;
  width: 80px;                       /* ~31% of the screen, like the real Dynamic Island */
  height: 24px;
  margin-left: -40px;
  border-radius: 20px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
/* the front camera lens inside the island */
.iphone__island::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2A3550 0%, #0B0E18 60%, #000 100%);
  box-shadow: inset 0 0 0 1px rgba(80, 100, 150, .25);
}

/* a faint sheen across the glass */
.iphone__glass {
  position: absolute;
  z-index: 7;
  inset: 11px;
  border-radius: 43px;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 26%, transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}

/* The app that designs itself — the iPhone's screen */
.app {
  position: relative;
  width: 280px;
  height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 11px 16px 8px;
  border-radius: 43px;
  background-color: #fff;
  color: var(--ink);
  transition: background-color .6s;
}
.app[data-stage="sketch"] { background-color: #FBFAF7; }
/* icons: grey blocks while wireframing, real glyphs once the visual lands */
.app__ic { display: grid; place-items: center; flex: none; border-radius: 5px; color: var(--ink); }
.app__ic svg { width: 100%; height: 100%; fill: currentColor; opacity: 0; transition: opacity .5s .1s; }
.app.is-hifi .app__ic { background-color: transparent; }
.app.is-hifi .app__ic svg { opacity: 1; }
.app__ic svg[fill="none"] { fill: none; }        /* outline glyphs stay outlines */

.app__tabs { display: flex; justify-content: space-around; align-items: center; height: 40px; padding: 4px 14px 0; border-top: 1px solid transparent; transition: border-color .5s; }
.app.is-hifi .app__tabs { border-top-color: #EFEDE8; }
.app__tabs .app__ic { width: 22px; height: 22px; padding: 1px; color: #B3AFA7; }
.app__tabs .app__ic.is-on { color: var(--ink); }

.app__search { display: flex; align-items: center; gap: 9px; flex: none; height: 40px; padding: 0 14px; border-radius: 14px; }
.app__search .app__ic { width: 15px; height: 15px; color: #8D8981; }
.app__search .t { font-size: 12.5px; }
.app.is-hifi .app__search { background-color: #F3F1EC; }
.app.is-hifi .app__search .t { color: #8D8981; }

.app__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.app__price { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.app__home { align-self: center; width: 108px; height: 4px; margin-top: 2px; border-radius: 4px; background: var(--ink); opacity: .85; }

.app .b, .app .t {
  outline: 1.5px dashed transparent;
  outline-offset: 2px;
  transition: background-color .6s var(--ease), color .5s, outline-color .5s, transform .7s var(--out), box-shadow .5s;
}
.app .t { display: inline-block; width: fit-content; border-radius: 6px; color: transparent; background-color: #E7E5E0; }
.app .b { background-color: #E7E5E0; }
/* wireframe contrast inside grey blocks */
.app .app__btn .t, .app .app__hero .t { background-color: #D5D3CD; }

/* sketch: dashed, hand-drawn, wobbly */
.app[data-stage="sketch"] .b,
.app[data-stage="sketch"] .t {
  background-color: transparent;
  color: transparent;
  outline-color: rgba(15, 15, 17, .42);
  transform: rotate(var(--r, 0deg));
  animation: sketch .8s var(--out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes sketch {
  from { clip-path: inset(-6px 100% -6px -6px); }
  to { clip-path: inset(-6px -6px -6px -6px); }
}

/* visual + prototype */
.app.is-hifi .t { color: inherit; background-color: transparent; }

/* iOS status bar: time centred in the left "ear", icons in the right, island in between */
.app__status { display: flex; align-items: center; justify-content: space-between; height: 26px; margin: 0 -8px; padding: 0 14px 0 24px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.app__icons { display: flex; align-items: center; gap: 4px; }
.app__icons .app__ic { width: 14px; height: 10px; border-radius: 2px; }
.app__icons .app__ic--batt { width: 22px; }

.app__head { display: flex; align-items: center; gap: 10px; }
.app__avatar, .app__bell { position: relative; flex: none; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; }
.app__avatar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #FFC3A1, #FF5A1F 58%, #7B61FF); opacity: 0; transition: opacity .6s; }
.app.is-hifi .app__avatar::before { opacity: 1; }
.app__bell { margin-left: auto; }
.app.is-hifi .app__bell { background-color: #F2F1ED; }
.app__bell { padding: 10px; }
.app__bell svg { fill: none; }
.app__badge-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--jay); box-shadow: 0 0 0 2px #F2F1ED; opacity: 0; transition: opacity .5s .2s; }
.app.is-hifi .app__badge-dot { opacity: 1; }
.app__hello { display: grid; gap: 4px; }
.app__small { font-size: 11px; }
.app.is-hifi .app__small { color: var(--muted); }
.app__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

.app__hero { position: relative; flex: none; height: 218px; overflow: hidden; border-radius: 22px; }
/* dusk overlay so the caption reads on the image */
.app__hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 58%; background: linear-gradient(transparent, rgba(24, 14, 40, .55)); opacity: 0; transition: opacity .7s; }
.app.is-hifi .app__hero::after { opacity: 1; }
.app__heart { position: absolute; z-index: 2; right: 12px; top: 12px; width: 32px; height: 32px; padding: 8px; border-radius: 50%; color: var(--jay); }
.app.is-hifi .app__heart { background-color: rgba(255, 255, 255, .92); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .3); }
.app__place { position: absolute; z-index: 2; left: 14px; bottom: 13px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.app.is-hifi .app__place { color: #fff; }
.app__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #FFD9B8 0%, #FF9A6B 42%, #F0607A 72%, #7B61FF 100%); opacity: 0; transition: opacity .7s; }
.app__sun { position: absolute; left: 58%; top: 30%; width: 56px; height: 56px; border-radius: 50%; background: #FFF6EC; box-shadow: 0 0 40px 10px rgba(255, 240, 220, .6); opacity: 0; transform: translateY(24px); transition: opacity .8s .1s, transform 1.4s var(--out) .1s; }
.app__hill { position: absolute; left: -10%; right: 30%; bottom: -42px; height: 112px; border-radius: 50% 50% 0 0; background: #3B2A6E; opacity: 0; transition: opacity .7s .15s; }
.app__hill--2 { left: 35%; right: -20%; bottom: -36px; height: 92px; background: #261B4C; }
.app.is-hifi .app__hero::before, .app.is-hifi .app__sun, .app.is-hifi .app__hill { opacity: 1; }
.app.is-hifi .app__sun { transform: none; }
/* Udaipur: lake palace silhouette with lit jharokhas, on Lake Pichola */
.app__palace { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 96px; opacity: 0; transform: translateY(10px); transition: opacity .8s .2s, transform 1.2s var(--out) .2s; }
.app.is-hifi .app__palace { opacity: 1; transform: none; }
.app__lake { fill: #2B1E57; }
.app__glint { fill: #FFB98A; opacity: .55; }
.app__fort { fill: #170E2E; }
.app__lit { fill: #FFC48A; opacity: .9; }
.app__x {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(15, 15, 17, .22) calc(50% - .5px), rgba(15, 15, 17, .22) calc(50% + .5px), transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(15, 15, 17, .22) calc(50% - .5px), rgba(15, 15, 17, .22) calc(50% + .5px), transparent calc(50% + 1px));
  transition: opacity .4s;
}
.app.is-hifi .app__x { opacity: 0; }
.app__badge { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 6px 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.app.is-hifi .app__badge { background-color: rgba(255, 255, 255, .9); color: var(--ink); border-radius: 99px; }

.app__info { display: grid; gap: 6px; }
.app__title { font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.app__meta { font-size: 12px; }
.app.is-hifi .app__meta { color: var(--muted); }
.app__chips { display: flex; gap: 6px; }
.app__chips .t { padding: 7px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 500; }
.app.is-hifi .app__chips .t { background-color: #F2F1ED; }
.app.is-hifi .app__chips .t.is-on { background-color: var(--ink); color: #fff; }

.app__btn { display: grid; place-items: center; height: 50px; margin-top: auto; border-radius: 16px; }
.app.is-hifi .app__btn { background-color: var(--ink); }
.app.is-hifi .app__btn .t { color: #fff; font-size: 14px; font-weight: 600; }
.app[data-stage="proto"] .app__btn { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--jay); }
.app.is-pressed .app__btn { transform: scale(.95); }
.app.is-loading .app__btn { background-color: #2B2B30; }
.app.is-done .app__btn { background-color: var(--ravi); box-shadow: none; }

.app__flow {
  position: absolute;
  right: 18px;
  bottom: 136px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--jay);
  color: #fff;
  font: 500 10px/1 var(--mono);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .4s var(--out);
}
.app[data-stage="proto"]:not(.is-done) .app__flow { opacity: 1; transform: none; }

.app__toast {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(-16px) scale(.96);
  transition: opacity .35s, transform .6s var(--out);
}
.app__toast i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ravi); font-size: 12px; font-style: normal; }
.app.is-done .app__toast { opacity: 1; transform: none; }

.redline { position: absolute; pointer-events: none; opacity: 0; transition: opacity .35s; }
.app[data-stage="visual"] .redline { opacity: 1; transition-delay: .7s; }
.redline--v { width: 1px; background: var(--jay); }
.redline--v::before, .redline--v::after { content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: var(--jay); }
.redline--v::before { top: 0; }
.redline--v::after { bottom: 0; }
.redline--h { height: 1px; background: var(--jay); }
.redline--h::before, .redline--h::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--jay); }
.redline--h::before { left: 0; }
.redline--h::after { right: 0; }
.redline b { position: absolute; padding: 3px 5px; border-radius: 4px; background: var(--jay); color: #fff; font: 500 10px/1 var(--mono); white-space: nowrap; }
.redline--v b { left: 6px; top: 50%; transform: translateY(-50%); }
.redline--h b { left: 50%; top: 6px; transform: translateX(-50%); }

/* ---------- 03 · Careers ---------- */
.frame--careers {
  background: var(--night);
  color: #F3F1EC;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 50px 90px -40px rgba(15, 10, 30, .6);
}
.frame--careers .frame__inner { --mq: clamp(44px, 8cqh, 72px); }
.frame--careers .frame__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 70% at 100% 105%, rgba(233, 83, 58, .22), transparent 65%),
    radial-gradient(45% 55% at -5% -5%, rgba(123, 97, 255, .18), transparent 60%);
}
.frame--careers .frame__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 80% at 30% 40%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 30% 40%, #000, transparent 75%);
}

.careers {
  position: relative;
  z-index: 1;
  height: calc(100% - var(--mq) - 6px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4cqw, 64px);
}
.careers__copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2.4cqh, 24px); min-height: 0; }
.eyebrow--live { color: #F08A73; }
.eyebrow--live .dot--live { background: var(--jay); animation-name: pulseBrand; }
@keyframes pulseBrand { 0% { box-shadow: 0 0 0 0 rgba(233, 83, 58, .55); } 70% { box-shadow: 0 0 0 7px rgba(233, 83, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 83, 58, 0); } }
.frame--careers .h2 { color: #fff; }
.frame--careers .h2 em { color: #F08A73; }
.careers__sub { max-width: 44ch; font-size: clamp(14px, calc(1cqw + 4px), 17px); line-height: 1.55; color: rgba(243, 241, 236, .66); }
.careers__sub em { color: #fff; font-size: 1.12em; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  color: rgba(243, 241, 236, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
}
.perks li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--jay); }

.roles { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 0; }
.roles__head { display: flex; justify-content: space-between; padding: 0 4px 4px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(243, 241, 236, .45); }
.roles__list { display: grid; gap: 8px; list-style: none; padding: 0; }
.role {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title go" "meta go";
  align-items: center;
  column-gap: 16px;
  row-gap: 5px;
  padding: clamp(12px, 2.3cqh, 20px) 16px clamp(12px, 2.3cqh, 20px) 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .6s var(--out), box-shadow .35s;
}
.role::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(233, 83, 58, .08), rgba(233, 83, 58, 0) 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--out);
}
/* Careers hover: a soft glow in the brand coral — no movement */
.role { transition: transform .6s var(--out), box-shadow .7s ease, background-color .7s ease; }
.role:hover {
  background-color: rgba(233, 83, 58, .04);
  box-shadow: inset 0 0 0 1px rgba(233, 83, 58, .3), 0 18px 40px -26px rgba(233, 83, 58, .3);
}
.role:hover .role__title { color: #FCE6E0; }
.role__title { transition: color .6s ease; }
.role:hover::before { transform: scaleX(1); }
.role__title { grid-area: title; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: clamp(16px, calc(.9cqw + 7px), 21px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.role__tag { padding: 5px 7px; border-radius: 6px; background: rgba(233, 83, 58, .12); color: #F08A73; font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.role__meta { grid-area: meta; font-size: 12.5px; color: rgba(243, 241, 236, .5); }
.role__go { grid-area: go; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .35s, transform .6s var(--out); }
.role__go svg { width: 16px; height: 16px; }
.role:hover .role__go { background: linear-gradient(145deg, #F08A73, #E9533A); color: #fff; box-shadow: 0 6px 16px -7px rgba(233, 83, 58, .55); }
.role:hover .role__tag { background: rgba(233, 83, 58, .14); color: #F6A898; }
.role__tag { transition: background-color .6s ease, color .6s ease; }
.link--light { margin-top: 6px; font-size: 13.5px; color: rgba(243, 241, 236, .78); }

.marquee {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mq);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding-right: .5em;
  font-family: var(--serif);
  font-size: calc(var(--mq) * .5);
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
  color: rgba(243, 241, 236, .86);
}
.marquee__track b { font-size: .55em; font-style: normal; color: var(--jay); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Multiplayer cursors
   ========================================================================== */
.cursors { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: transform 1s cubic-bezier(.3, .1, .3, 1), opacity .4s;
}
.cursor.is-on { opacity: 1; }
.cursor__y { position: relative; transition: transform 1s cubic-bezier(.55, 0, .25, 1); }
.cursor svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22));
  transform-origin: 4px 3px;
  transition: transform .16s var(--out);
}
.cursor svg path { fill: var(--c); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.cursor.is-click svg { transform: scale(.8); }
.cursor__y::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -9px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--c);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.3);
}
.cursor.is-click .cursor__y::before { animation: ripple .55s var(--out); }
@keyframes ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.7); } }
.cursor__tag {
  position: absolute;
  left: 15px;
  top: 17px;
  padding: 4px 8px 5px;
  border-radius: 4px 10px 10px 10px;
  background: var(--c);
  color: #fff;
  font: 500 11.5px/1.1 var(--sans);
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35);
}
.cursor__chat {
  position: absolute;
  left: 15px;
  top: 42px;
  padding: 8px 11px;
  border-radius: 4px 12px 12px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 0 0 1px var(--line), 0 12px 28px -12px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(-4px) scale(.95);
  transform-origin: 0 0;
  transition: opacity .3s, transform .45s var(--out);
}
.cursor.is-chatting .cursor__chat { opacity: 1; transform: none; }
.cursor.is-flip .cursor__tag, .cursor.is-flip .cursor__chat { left: auto; right: 6px; border-radius: 10px 4px 10px 10px; transform-origin: 100% 0; }
.cursor--you svg path { fill: var(--night); stroke: #F08A73; }
.cursor--you .cursor__tag { background: rgba(233, 83, 58, .12); color: #F6A898; box-shadow: inset 0 0 0 1.5px #F08A73; }
.cursor--you .cursor__chat { background: var(--jay); color: #fff; box-shadow: none; }

/* ==========================================================================
   Chrome (fixed UI)
   ========================================================================== */
.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top)) var(--pad) 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
/* while loading, the bar sits above the loader so the logo can dock into it */
body:not(.is-ready) .topbar { z-index: 110; }
body:not(.is-ready) .presence,
body:not(.is-ready) .cta { opacity: 0; translate: 0 -14px; pointer-events: none; }

/* UXWITHJAY logo (top-left) */
.brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 2px;
  border-radius: 6px;
  color: var(--ink);                 /* black logo on the canvas */
}
.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--shadow-ui);
  opacity: 0;
  transform: scale(.92);
  transition: opacity .7s var(--out), transform .9s var(--out);
}
.brand::before { display: none; }   /* no pill: the lockup sits straight on the canvas */
.brand__logo {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 788.2 / 236;
  overflow: visible;
  fill: currentColor;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .9s var(--out), transform 1s var(--out);
}
.brand.is-logo-on .brand__logo { opacity: 1; transform: none; }
.brand__logo > use { transform-box: fill-box; }
.brand:hover .brand__logo > use { animation: hop .6s var(--out) calc(var(--i) * 40ms); }
.brand__tag { transition: opacity .4s; }
@keyframes hop { 35% { transform: translateY(-18%); } }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* top-right: "Actively hiring" */
.hiring {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 16px;
  border-radius: 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: opacity .9s var(--out) .1s, translate 1s var(--out) .1s, background-color .3s;
}
.hiring__n { padding: 6px 9px; border-radius: 10px; background: rgba(18, 183, 106, .12); color: #0B7A47; font-size: 11px; }
.hiring:hover { background-color: rgba(255, 255, 255, .95); }
body:not(.is-ready) .hiring { opacity: 0; translate: 0 -14px; pointer-events: none; }
@media (max-width: 420px) { .hiring__n { display: none; } }

/* "Live" sits top-right */
.presence {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 8px 0 15px;
  border-radius: 15px;
}
body:not(.is-ready) .presence { opacity: 0; translate: 0 -14px; pointer-events: none; }

/* bottom-left: a quiet, human tip that changes with the frame */
.tip {
  position: fixed;
  z-index: 30;
  left: var(--pad);
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  transition: opacity .9s var(--out) .2s, translate 1s var(--out) .2s;
}
.tip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jay); animation: rec 1.8s ease-in-out infinite; }
.tip__t { display: none; }
body[data-frame="0"] .tip { opacity: 0; }       /* Hello carries its hint inside the frame */
body[data-frame="1"] .tip__t[data-for="1"],
body[data-frame="2"] .tip__t[data-for="2"] { display: inline; }
body:not(.is-ready) .tip { opacity: 0; translate: 0 18px; }
@media (max-width: 1180px), (hover: none), (pointer: coarse) { .tip { display: none; } }
.presence__live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.avatars { display: flex; padding-left: 6px; }
.avatars i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font: 600 11px/1 var(--sans);
  font-style: normal;
  box-shadow: 0 0 0 2px var(--paper);
}
.presence { transition: opacity .9s var(--out), translate 1s var(--out); }
.avatars .avatars__you { width: auto; padding: 0 10px; border-radius: 99px; background: var(--paper); color: var(--ink-2); box-shadow: 0 0 0 2px var(--paper), inset 0 0 0 1.5px rgba(15, 15, 17, .22); }

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 7px 0 18px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(15, 15, 17, .65);
  transition: transform .5s var(--out), opacity .9s var(--out) .1s, translate 1s var(--out) .1s;
}
.cta:hover { transform: translateY(-1px); }
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 6s var(--ease) 3s infinite;
}
@keyframes sheen { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.cta__short { display: none; }
.cta__icon { display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: 10px; background: var(--jay); }
.cta__icon svg { grid-area: 1 / 1; width: 15px; height: 15px; transition: transform .55s var(--out); }
.cta__icon svg + svg { transform: translate(-170%, 170%); }
.cta:hover .cta__icon svg:first-child { transform: translate(170%, -170%); }
.cta:hover .cta__icon svg + svg { transform: none; }

/* Pager */
.pager {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 54px;
  padding: 6px;
  border-radius: 18px;
  transition: opacity .9s var(--out) .1s, translate 1s var(--out) .1s;
}
body:not(.is-ready) .pager { opacity: 0; translate: 0 18px; }
.pager__overview { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.pager__overview svg { width: 18px; height: 18px; }
.pager__overview:hover { background: rgba(15, 15, 17, .06); }
.pager__overview[aria-pressed="true"] { background: var(--jay); color: #fff; }
.pager__sep { width: 1px; height: 22px; background: var(--line); }
.pager__tabs { position: relative; display: flex; gap: 2px; }
.pager__pill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  border-radius: 12px;
  background: var(--ink);
  transition: transform .75s var(--ease), width .75s var(--ease);
}
.pager__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .45s;
}
.pager__tab .mono { font-size: 10.5px; opacity: .5; }
.pager__tab:hover { color: var(--ink); }
.pager__tab.is-active { color: #fff; }

/* HUD + minimap */
.hud {
  position: fixed;
  z-index: 30;
  left: var(--pad);
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 11px;
  color: var(--muted);
  transition: opacity .9s var(--out) .2s, translate 1s var(--out) .2s;
}
.hud b { display: inline-block; min-width: 5ch; font-weight: 500; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud .hud__z b { min-width: 3ch; }
.minimap {
  position: fixed;
  z-index: 30;
  right: var(--pad);
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 14px 0 10px;
  border-radius: 16px;
  transition: opacity .9s var(--out) .2s, translate 1s var(--out) .2s;
}
.minimap svg { width: 132px; height: 40px; }
.minimap__label { font-size: 10.5px; line-height: 1.35; color: var(--muted); }
.mm-frame { fill: rgba(15, 15, 17, .1); cursor: pointer; transition: fill .3s; }
.mm-frame:hover { fill: rgba(15, 15, 17, .22); }
.mm-frame.is-active { fill: var(--ink); }
.mm-view { fill: rgba(233, 83, 58, .08); stroke: var(--jay); stroke-width: 1; pointer-events: none; }
body:not(.is-ready) .hud, body:not(.is-ready) .minimap { opacity: 0; translate: 0 18px; }

/* "You" cursor tag */
.you {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  padding: 4px 8px 5px;
  border-radius: 4px 10px 10px 10px;
  background: var(--ink);
  color: #fff;
  font: 500 11.5px/1.1 var(--sans);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, background-color .4s, color .4s;
}
.you.is-on { opacity: 1; }
.you__b { display: none; }
body[data-frame="2"] .you { background: var(--jay); color: #fff; }
body[data-frame="2"] .you__a { display: none; }
body[data-frame="2"] .you__b { display: inline; }
@media (hover: none), (pointer: coarse) { .you { display: none; } }

/* Loader — the outlined logo fills with liquid, then we zoom through it into the canvas */
.loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--canvas);
  background-image: radial-gradient(circle at center, rgba(15, 15, 17, .08) 1px, transparent 1.6px);
  background-size: 24px 24px;
  transition: opacity .8s var(--out), visibility 0s linear .85s, background-color .3s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.returning .loader { display: none; }     /* seen it before: straight to the canvas */
.loader__inner { width: min(82vw, 560px); }
.loader__logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 805 / 252;
  overflow: visible;
  color: var(--brand);
}

.ll-ghost use { fill: rgba(233, 83, 58, .08); }
.ll-fill use { fill: currentColor; }
/* the outline is there from the very first frame */
.ll-outline use { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }

/* Create. Convey. Connect. — arriving very softly */
.ll-word {
  fill: currentColor;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px);
  transition: opacity 1.6s ease, filter 1.6s ease, transform 2s var(--out);
}
.ll-word.is-on { opacity: 1; filter: blur(0); transform: none; }

/* corners: label bottom-left, number bottom-right */
.loader__label, .loader__count {
  position: absolute;
  bottom: calc(26px + env(safe-area-inset-bottom));
  color: var(--muted);
  transition: opacity .4s;
}
.loader__label { left: var(--pad); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.loader__count { right: var(--pad); font-size: 13px; font-variant-numeric: tabular-nums; }
.loader__count #loaderPct { color: var(--ink); }
.loader.is-dissolving .loader__label,
.loader.is-dissolving .loader__count { opacity: 0; transition: opacity .35s; }

/* Portal (exit transition to the main site) */
.portal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  clip-path: circle(0px at var(--px, 50%) var(--py, 50%));
  pointer-events: none;
  transition: clip-path .95s var(--ease);
}
.portal.is-open { clip-path: circle(150vmax at var(--px, 50%) var(--py, 50%)); pointer-events: auto; }
.portal__inner { display: grid; justify-items: center; gap: 16px; padding: 24px; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .5s .35s, transform .7s var(--out) .35s; }
.portal.is-open .portal__inner { opacity: 1; transform: none; }
.portal__kicker { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.portal__url { font-family: var(--serif); font-size: clamp(38px, 7vw, 104px); font-style: italic; line-height: 1; letter-spacing: -.02em; }
.portal__bar { width: 200px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.portal__bar i { display: block; height: 100%; background: var(--jay); transform: scaleX(0); transform-origin: left; }
.portal.is-open .portal__bar i { transform: scaleX(1); transition: transform .9s var(--ease) .25s; }

/* ==========================================================================
   Interaction layer — inspect, spotlight, hands-on artboard
   ========================================================================== */
.hint__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jay); animation: rec 1.8s ease-in-out infinite; }

/* Figma-style inspect: hover any element to see its layer name and size */
.inspect {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 0;
  height: 0;
  border: 1.5px solid var(--jay);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .32s var(--out), width .32s var(--out), height .32s var(--out);
}
.inspect.is-on { opacity: 1; }
.inspect b {
  position: absolute;
  left: -1.5px;
  bottom: calc(100% + 6px);
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--jay);
  color: #fff;
  font: 500 10.5px/1 var(--mono);
  white-space: nowrap;
}
.inspect b span { margin-left: 8px; opacity: .72; }
.inspect.is-below b { bottom: auto; top: calc(100% + 6px); }
.inspect i { position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--jay); border-radius: 1.5px; background: #fff; }
.inspect i:nth-of-type(1) { left: -4px; top: -4px; }
.inspect i:nth-of-type(2) { right: -4px; top: -4px; }
.inspect i:nth-of-type(3) { left: -4px; bottom: -4px; }
.inspect i:nth-of-type(4) { right: -4px; bottom: -4px; }
.stage.is-moving .inspect { opacity: 0; }

/* a soft light that follows the cursor across each artboard */
.frame__spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 50%), rgba(233, 83, 58, .075), transparent 62%);
  transition: opacity .6s;
}
.frame--careers .frame__spot { background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 50%), rgba(233, 83, 58, .17), transparent 62%); }
.frame.is-hover .frame__spot { opacity: 1; }

/* the live word can be edited by the visitor — their selection is drawn in ink */
.edit { cursor: text; }
.edit.is-yours .edit__sel,
.edit.is-yours .edit__sel i { border-color: var(--ink); }
.edit.is-yours .edit__caret { background: var(--ink); }
.edit.is-yours .edit__sel::after { content: "You · editing"; background: var(--ink); }

/* services drive the artboard */
.services li { cursor: pointer; }
/* services: the original hover — coral number, title nudges in */
.services li:hover > .mono { color: var(--jay); }
.services li:hover strong,
.services li.is-hot strong { transform: translateX(6px); }
.services li:focus-visible { outline-offset: 2px; }
.lab.is-manual .dot--rec { animation: none; background: var(--jay); }
.app[data-stage="proto"] .app__btn { cursor: pointer; }

/* role cards: a light follows the cursor */
.role::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--px, 50%) var(--py, 50%), rgba(233, 83, 58, .16), rgba(233, 83, 58, .04) 45%, transparent 72%);
  opacity: 0;
  transition: opacity .7s ease;
}
.role:hover::after { opacity: 1; }

/* ==========================================================================
   Responsive — inside frames (container queries on the artboard)
   ========================================================================== */
@container frame (max-width: 1040px) {
  .hero__title { font-size: clamp(34px, min(10.2cqw, 13cqh), 112px); }
  .lab__title { display: none; }
  .lab__head { justify-content: center; }
  .hero__bottom { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
  .services__desc { display: none; }
  .services li { grid-template-columns: 30px minmax(0, 1fr); }
}

@container frame (max-width: 700px) {
  .br-d { display: none; }
  .hero__title { font-size: clamp(32px, min(12.6cqw, 8.8cqh), 66px); line-height: 1.02; }
  .hero__sub { font-size: 14.5px; }
  .paths { gap: 8px; }
  .path { min-height: 116px; padding: 14px; border-radius: 16px; }
  .path__kicker { left: 14px; top: 15px; font-size: 9.5px; }
  .path__title { font-size: 16.5px; }
  .path__desc { font-size: 11.5px; }
  .path__arrow { right: 10px; top: 10px; width: 28px; height: 28px; }
  .path__arrow svg { width: 13px; height: 13px; }

  .craft { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
  .craft__copy { justify-content: flex-start; gap: 12px; }
  .craft__sub { display: none; }
  .h2 { font-size: clamp(28px, 9.8cqw, 46px); }
  .services { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-top: 0; }
  .services li { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 9px 10px; overflow: hidden; border: 0; border-radius: 10px; background: rgba(15, 15, 17, .04); font-size: 12.5px; line-height: 1.2; }
  .services li::after { bottom: 0; }
  .services li.is-hot { background: rgba(233, 83, 58, .08); }
  .services li.is-hot strong { transform: none; }
  .lab__title { display: none; }
  .lab__head { justify-content: center; padding: 7px; }
  .stages li { font-size: 10px; }
  .stages li button { gap: 5px; padding: 7px 7px; }
  .stages li button::before { width: 5px; height: 5px; }
  .stages li i { left: 7px; right: 7px; }

  .careers { grid-template-columns: 1fr; align-content: start; gap: 18px; }
  .careers__copy { justify-content: flex-start; gap: 12px; }
  .careers__sub { font-size: 14px; }
  .perks { display: none; }
  .careers { overflow: hidden; }
  .roles { justify-content: flex-start; }
  .roles__head span:last-child { display: none; }
  .role { padding: 13px 12px 13px 16px; border-radius: 14px; }
  .role:hover, .role.is-ghost { transform: none; }
  .role__title { gap: 4px 8px; font-size: 15.5px; }
  .role__tag { padding: 4px 6px; font-size: 9.5px; }
  .role__meta { font-size: 11.5px; }
  .role__go { width: 34px; height: 34px; }
}

@container frame (max-width: 360px) {
  .path__desc { display: none; }
  .path { min-height: 96px; }
}

@container frame (max-height: 620px) {
  .craft__sub, .perks { display: none; }
}
@container frame (max-height: 540px) {
  .careers__sub, .hint { display: none !important; }
}
@container frame (max-height: 560px) and (max-width: 700px) {
  .roles__head, .role__meta { display: none; }
  .link--light { margin-top: 0; }
}
@container frame (max-height: 380px) {
  .services, .path__desc, .hero__sub, .roles__head, .role__meta { display: none; }
  .role { padding-block: 10px; }
}

/* ==========================================================================
   Responsive — chrome
   ========================================================================== */
@media (max-width: 1060px) {
  .hud, .minimap { display: none; }
}
@media (max-width: 760px) {
  .presence { height: 42px; gap: 10px; padding: 0 6px 0 12px; border-radius: 14px; }
  .avatars i { width: 26px; height: 26px; }
}
@media (max-width: 370px) {
  .avatars__you { display: none !important; }
}
@media (max-width: 760px) {
  :root { --pad: 14px; --radius: 20px; }
  .topbar { padding-top: calc(12px + env(safe-area-inset-top)); }
  .brand { height: 42px; }
  .brand__logo { width: 118px; }
  .cta { height: 42px; gap: 10px; padding-left: 15px; border-radius: 14px; }
  .cta__text { display: none; }
  .cta__short { display: inline; }
  .cta__icon { width: 29px; height: 29px; border-radius: 9px; }
  .pager { bottom: calc(12px + env(safe-area-inset-bottom)); height: 52px; padding: 5px; border-radius: 17px; }
  .pager__overview { width: 40px; height: 42px; }
  .pager__tab { padding: 0 12px; font-size: 13px; }
  .pager__tab .mono { display: none; }
  .deco { --ds: .6; }
  .frame__label { font-size: 11px; }
  .frame__dim { display: none; }
}
@media (max-width: 370px) {
  .pager__overview, .pager__sep { display: none; }
  .pager__tab { padding: 0 11px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
