/* Craft mode — Mindset-style board. Built on the Craft design system (tokens in craft-tokens.css). */

/* ── Switch (both modes) ── */
.craft-switch {
  position: fixed;
  top: 1.15rem;
  right: calc(1.15rem + 76px);
  z-index: 101;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #111511;
  box-shadow: 0 10px 30px rgba(17, 21, 17, 0.12);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.craft-switch:hover {
  box-shadow: 0 14px 34px rgba(17, 21, 17, 0.18);
}
.craft-switch:focus-visible {
  outline: 2px solid #111511;
  outline-offset: 3px;
}
.craft-glyph rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), fill 0.25s ease;
}
.craft-glyph-front {
  fill: #fff !important;
}
.craft-switch:hover .craft-glyph-back,
.craft-switch.is-on .craft-glyph-back {
  transform: translate(1.5px, -1.5px);
}
.craft-switch:hover .craft-glyph-front,
.craft-switch.is-on .craft-glyph-front {
  transform: translate(-1px, 1px);
}
.craft-switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(17, 21, 17, 0.14);
  transition: background 0.25s ease;
}
.craft-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 21, 17, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.craft-switch.is-on .craft-switch-track {
  background: #0a0a0a;
}
.craft-switch.is-on .craft-switch-thumb {
  transform: translateX(14px);
}
.craft-switch.is-on .craft-glyph-front {
  fill: #e9e3f1 !important;
}


/* Craft — component styles. Tokens come from tokens.css (tokens.json). */

.cr, .cr * { box-sizing: border-box; }
.cr {
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
:where(.cr) button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:where(.cr) :is(p, h1, h2, h3, ul) { margin: 0; padding: 0; }
:where(.cr) ul { list-style: none; }
:where(.cr) a { color: inherit; text-decoration: none; }
:where(.cr) img { display: block; max-width: 100%; }
.cr :focus-visible { outline: 2px solid var(--blue-strong); outline-offset: 3px; }

/* ── Type helpers ── */
.cr-t-xl { font-size: 72px; line-height: 1; letter-spacing: -0.045em; font-weight: 400; }
.cr-t-l { font-size: 46px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 400; }
.cr-t-m { font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-weight: 300; }
.cr-t-title { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; }
.cr-t-body { font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
.cr-t-cap { font-size: 14px; line-height: 1.28; }
.cr-t-micro { font-size: 12px; line-height: 1.2; font-weight: 500; }

/* Switch responsive (green and Craft) */
@media (max-width: 1024px) {
  .craft-switch { top: 1rem; right: calc(1rem + 65px); height: 48px; }
}
@media (max-width: 640px) {
  .craft-switch { right: 1rem; padding: 0 8px 0 12px; }
  .craft-switch-label { display: none; }
}

/* ── Stage + backdrop ── */
.cr-stage {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background: var(--haze-mid);
}
.cr-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cr-backdrop svg { position: absolute; inset: -2%; width: 104%; height: 104%; }
.cr-backdrop-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,0.06) 100%);
}

/* ── Glass + solid materials ── */
.cr-glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur-glass);
  backdrop-filter: var(--blur-glass);
  box-shadow: var(--glass-edge);
  color: var(--on-glass);
}
.cr-glass-light {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur-glass);
  backdrop-filter: var(--blur-glass);
  box-shadow: var(--glass-edge);
  color: var(--on-glass);
}
.cr-solid { background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); }

/* ── Card shell ── */
.cr-card {
  position: relative;
  width: var(--widget);
  height: var(--widget);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* ── Avatar ── */
.cr-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--well); }
.cr-avatar--ring { box-shadow: 0 0 0 2px #fff; }

/* ── Icon button ── */
.cr-iconbtn {
  display: inline-grid; place-items: center;
  width: var(--icon-btn); height: var(--icon-btn);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  transition: transform var(--dur-snap) var(--ease-snap), background var(--dur-snap) ease;
}
.cr-iconbtn svg { width: 18px; height: 18px; }
.cr-iconbtn--well { background: var(--well); color: var(--ink-3); }
.cr-iconbtn--well:hover { background: #ececec; }
.cr-iconbtn--glass { width: var(--control-h); height: var(--control-h); }
.cr-iconbtn--glass:hover { background: rgba(150, 136, 148, 0.5); }
.cr-iconbtn--solid { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
.cr-iconbtn--accent { background: var(--orange); color: #fff; }
.cr-iconbtn:active { transform: scale(0.94); }

/* ── Chips ── */
.cr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--chip-h);
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; line-height: 1;
  white-space: nowrap;
  background: var(--surface);
  color: var(--ink);
}
.cr-chip--outline { background: transparent; border: 1px solid var(--hairline); }
.cr-chip--label { color: var(--blue-text); font-size: 14px; font-weight: 400; }
.cr-chip--timer { font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; position: relative; }
.cr-chip--timer .cr-live { position: absolute; top: 4px; right: 6px; }
.cr-chip--count {
  width: var(--icon-btn); height: var(--icon-btn); padding: 0; justify-content: center;
  background: var(--well); font-size: 14px; font-weight: 400;
}
.cr-chip--sub { height: 32px; padding: 0 12px; background: var(--well); font-size: 12px; font-variant-numeric: tabular-nums; }
.cr-live { width: 6px; height: 6px; border-radius: 50%; background: var(--live-red); }

/* ── Toggle ── */
.cr-toggle { position: relative; display: inline-flex; flex-shrink: 0; }
.cr-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cr-toggle-track {
  position: relative; display: block;
  width: 56px; height: 32px; border-radius: var(--radius-pill);
  background: var(--track);
  transition: background var(--dur-snap) ease;
}
.cr-toggle-track svg { position: absolute; left: 8px; top: 9px; width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity var(--dur-snap) ease; }
.cr-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform var(--dur-snap) var(--ease-snap);
}
.cr-toggle input:checked + .cr-toggle-track { background: var(--blue-strong); }
.cr-toggle input:checked + .cr-toggle-track svg { opacity: 1; }
.cr-toggle input:checked + .cr-toggle-track .cr-toggle-knob { transform: translateX(24px); }
.cr-toggle input:focus-visible + .cr-toggle-track { outline: 2px solid var(--blue-strong); outline-offset: 2px; }

/* ── Segmented control ── */
.cr-seg {
  position: relative; display: inline-flex;
  height: var(--control-h); padding: var(--space-1);
  border-radius: var(--radius-pill);
}
.cr-seg-pill {
  position: absolute; top: var(--space-1); bottom: var(--space-1); left: 0;
  border-radius: var(--radius-pill); background: var(--surface);
  box-shadow: 0 2px 8px rgba(40,20,40,.08);
  transition: transform 420ms var(--ease-arrive), width 420ms var(--ease-arrive);
}
.cr-seg button {
  position: relative; z-index: 1;
  height: 100%; padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  font-size: 14px; color: var(--on-glass-2);
  transition: color var(--dur-snap) ease;
}
.cr-seg button[aria-selected="true"] { color: var(--ink); }
.cr-seg button:not([aria-selected="true"]):hover { color: #fff; }

/* ── Top bar ── */
.cr-topbar {
  position: absolute; top: var(--space-8); left: var(--space-8); right: var(--space-8);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  z-index: 3;
}
.cr-topbar-left { display: flex; align-items: center; gap: var(--space-6); color: #fff; }
.cr-topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-6); }
.cr-brandorb {
  width: var(--control-h); height: var(--control-h); border-radius: 50%; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(60,40,60,.18);
}
.cr-brandorb img { width: 100%; height: 100%; object-fit: cover; }
.cr-clock { font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-weight: 300; font-variant-numeric: tabular-nums; margin-left: 90px; }
.cr-topbar-id { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.55); font-size: 13px; line-height: 1.2; }
.cr-topbar-id span:last-child { color: var(--on-glass-2); }

/* ── Notification pill ── */
.cr-notice {
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 6px 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow-float);
  color: var(--ink);
}
.cr-notice-bar { width: 3px; height: 18px; border-radius: 2px; background: var(--blue); }
.cr-notice-text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.15; min-width: 0; white-space: nowrap; }
.cr-notice-text b { font-weight: 400; }
.cr-notice-close { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline); }
.cr-notice-close svg.cr-ring { position: absolute; inset: -1px; width: 44px; height: 44px; transform: rotate(-90deg); }
.cr-notice-close svg.cr-ring circle { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; }
.cr-notice-close svg.cr-x { width: 14px; height: 14px; }

/* ── Widget grid (hero) ── */
.cr-grid {
  position: absolute; left: 50%; top: calc(var(--space-8) + var(--control-h) + var(--space-22));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, var(--widget));
  grid-auto-rows: var(--widget);
  gap: var(--gutter);
  z-index: 2;
}

/* ── Agenda (glass) ── */
.cr-agenda { display: grid; grid-template-rows: auto 1fr auto; padding: var(--space-7); }
.cr-agenda-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cr-agenda-meta { font-size: 22px; letter-spacing: -0.02em; color: var(--on-glass-3); }
.cr-agenda-body { align-self: end; margin-bottom: var(--space-6); }
.cr-agenda-body p { font-size: 46px; line-height: 1.04; letter-spacing: -0.035em; }
.cr-agenda-body p + p { color: var(--on-glass-2); }
.cr-agenda-label { font-size: 19px; letter-spacing: -0.01em; }

/* ── Folder list (solid) ── */
.cr-list { padding: var(--space-6) var(--space-3) var(--space-3); display: flex; flex-direction: column; }
.cr-list-head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-3) var(--space-2); }
.cr-row {
  height: var(--row-h); padding: 0 var(--space-3);
  display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: var(--space-3); align-items: center;
  border-radius: 20px;
  transition: background var(--dur-snap) ease;
}
.cr-row + .cr-row { box-shadow: 0 -1px 0 var(--hairline); }
.cr-row.is-active { background: #f6f5f7; }
.cr-row-thumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--well); }
.cr-row-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.cr-row-text b {
  font-weight: 400; font-size: 17px; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cr-row-text span { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-row[draggable="true"] { cursor: grab; }

/* ── Drop zone (glass) ── */
.cr-drop { display: grid; place-items: center; text-align: center; transition: background var(--dur-snap) ease, transform 400ms var(--ease-arrive); }
.cr-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cr-drop-plus { width: 28px; height: 28px; transition: transform 500ms var(--ease-pop); }
.cr-drop-title { font-size: 22px; letter-spacing: -0.02em; }
.cr-drop-hint { font-size: 15px; color: var(--on-glass-3); }
.cr-drop:hover .cr-drop-plus, .cr-drop.is-over .cr-drop-plus { transform: rotate(90deg) scale(1.1); }
.cr-drop.is-over { background: rgba(96, 80, 92, 0.58); transform: scale(1.02); }

/* ── Preview (solid) ── */
.cr-preview { display: grid; grid-template-rows: auto 1fr auto; }
.cr-preview-chips { display: flex; gap: var(--space-2); padding: var(--space-6) var(--space-6) var(--space-3); position: relative; z-index: 2; }
.cr-preview-shot { position: relative; overflow: hidden; background: #f3eef2; }
.cr-preview-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cr-preview-foot { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-6) var(--space-6) 18px; }
.cr-preview-foot .cr-row-text b { font-size: 18px; }
.cr-preview-foot .cr-row-text span { font-size: 13px; }

/* ── Cursor chip ── */
.cr-cursor { position: absolute; display: flex; align-items: flex-start; gap: 0; pointer-events: none; }
.cr-cursor svg { width: 16px; height: 16px; margin-right: -2px; }
.cr-cursor-tag { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 2px 10px 2px 2px; border-radius: var(--radius-pill); color: #fff; font-size: 12px; font-weight: 600; }
.cr-cursor-tag img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; object-fit: cover; }

/* ── Profile orb ── */
.cr-orb-slot { position: relative; width: var(--widget); height: var(--widget); display: grid; place-items: center; }
.cr-orb {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  transition: transform 500ms var(--ease-arrive);
}
.cr-orb img.cr-orb-photo {
  width: 78%; height: 78%; border-radius: 50%; object-fit: cover; object-position: center 20%;
  box-shadow: 0 18px 40px rgba(40,20,40,.25);
  transition: transform 700ms var(--ease-arrive);
}
.cr-orb-edit { position: absolute; left: 10px; top: 10px; z-index: 2; }
.cr-orb-name {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.88); color: var(--ink); font-size: 13px; white-space: nowrap;
}
.cr-orb:hover img.cr-orb-photo { transform: scale(1.04); }
.cr-orb-faces {
  position: relative; width: 84%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #eceef0; box-shadow: 0 18px 40px rgba(40,20,40,.22);
  transition: transform 700ms var(--ease-arrive);
}
.cr-orb-faces img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity 800ms ease-in-out, transform 1400ms var(--ease-arrive);
}
.cr-orb-faces img.is-on { opacity: 1; transform: scale(1); }
.cr-orb:hover .cr-orb-faces { transform: scale(1.04); }

/* ── Stat (solid) ── */
.cr-stat { padding: var(--space-6) var(--space-6) var(--space-6) 28px; display: flex; flex-direction: column; }
.cr-stat-head { display: flex; justify-content: space-between; align-items: baseline; }
.cr-stat-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.cr-stat-link svg { width: 12px; height: 12px; }
.cr-stat-value { margin-top: 18px; font-variant-numeric: proportional-nums; }
.cr-stat-legs { position: relative; margin-top: auto; height: 74px; }
.cr-stat-leg { position: absolute; bottom: 20px; font-size: 14px; color: var(--ink-2); border-left: 1px solid var(--hairline); padding: 0 0 18px 0; white-space: nowrap; }
.cr-stat-leg span { position: relative; top: -2px; padding-left: 0; display: block; transform: translateX(0); }
.cr-stat-bars { display: flex; gap: 4px; height: 5px; margin-top: 2px; }
.cr-stat-bars i { display: block; height: 100%; border-radius: 3px; transform-origin: left center; }
.cr-stat-keys { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.cr-stat-keys span { display: inline-flex; align-items: center; gap: 6px; }
.cr-stat-keys i { width: 5px; height: 5px; border-radius: 50%; }

/* ── Avatar stack + dock (stage corners) ── */
.cr-corner { position: absolute; bottom: var(--space-8); z-index: 3; }
.cr-corner--left { left: var(--space-8); }
.cr-corner--right { right: var(--space-8); }
.cr-stack {
  width: 56px; height: 56px; padding: 6px; border-radius: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  transition: transform 400ms var(--ease-pop);
}
.cr-stack img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.cr-stack:hover { transform: scale(1.08); }
.cr-dock { display: inline-flex; gap: 6px; padding: 4px; border-radius: var(--radius-pill); }
.cr-dock .cr-iconbtn { width: 44px; height: 44px; }
.cr-dock .cr-iconbtn--ghost { color: #fff; }
.cr-dock .cr-iconbtn--ghost:hover { background: rgba(255,255,255,.18); }

/* ── Meta strip ── */
.cr-meta { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 11px; font-weight: 500; letter-spacing: 0.01em; color: #fff; }
.cr-meta span:last-child { text-align: right; }

/* ── Sheets (folder + profile open) ── */
.cr-sheet {
  position: absolute; z-index: 5;
  border-radius: var(--radius-sheet);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur-glass);
  backdrop-filter: var(--blur-glass);
  box-shadow: var(--glass-edge);
  color: #fff;
  overflow: hidden;
}
.cr-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 28px 28px 0 32px; }
.cr-sheet-title { font-size: 46px; line-height: 1.04; letter-spacing: -0.035em; }
.cr-sheet-sub { margin-top: 6px; font-size: 15px; color: var(--on-glass-2); }
.cr-sheet-grid { position: absolute; left: 32px; right: 32px; bottom: 32px; top: 150px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 1fr; gap: 16px; }
.cr-file {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--surface); color: var(--ink);
  display: grid; grid-template-rows: 1fr auto; box-shadow: 0 10px 30px rgba(30,10,30,.18);
}
.cr-file img { width: 100%; height: 100%; object-fit: cover; object-position: top center; min-height: 0; }
.cr-file-cap { padding: 10px 14px 12px; display: flex; flex-direction: column; font-size: 14px; line-height: 1.2; }
.cr-file-cap span { font-size: 12px; color: var(--ink-2); }
.cr-dim { transition: opacity 380ms ease, transform 520ms var(--ease-arrive), filter 380ms ease; }
.cr-dimmed .cr-dim { opacity: .25; transform: scale(.96); filter: blur(4px); }

.cr-profile-sheet { display: grid; grid-template-columns: 1.05fr 1fr; }
.cr-profile-photo { position: relative; overflow: hidden; }
.cr-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.cr-profile-body { padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.cr-profile-body .cr-chip { background: rgba(255,255,255,.9); }
.cr-profile-facts { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-fact { padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.12); }
.cr-fact b { display: block; font-size: 28px; font-weight: 400; letter-spacing: -0.03em; }
.cr-fact span { font-size: 13px; color: var(--on-glass-2); }

/* ── Demo chrome ── */
.cr-replay {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 9;
  height: 34px; padding: 0 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.9); font-size: 12px; font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .cr *, .cr *::before, .cr *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ═════════════ Portfolio integration ═════════════ */

html.ga-craft, html.ga-craft body { background: #cfc3cf; overflow: hidden; }
html.ga-craft .pa-fab { display: none; }

/* Switch + logo sit on the photo in Craft: keep them white pills, matching the notification pill */
html.ga-craft .craft-switch,
html.ga-craft .ga-brand { box-shadow: 0 8px 24px rgba(30, 20, 30, 0.16); }

/* Full-viewport stage */
.cr-hero {
  position: fixed; inset: 0; z-index: 1;
  width: 100vw !important; height: 100vh !important; height: 100dvh !important;
}

/* Photo wallpaper layers */
.cr-backdrop--photo { background: #cfc3cf; }
.cr-wp { position: absolute; inset: 0; }
.cr-wp-blur, .cr-wp-photo {
  position: absolute; inset: -2%;
  background-size: cover;
  background-position: var(--wp-pos, center 60%);
}
.cr-wp-blur { filter: blur(24px); transform: scale(1.06); }
/* Photo urls live in wallpapers/wallpapers.css so they resolve relative to that file. */
/* Wallpaper change: a slow, even dissolve. The old photo stays fully opaque underneath while the new one fades in. */
.cr-wp.is-entering { animation: crWpIn 2200ms cubic-bezier(0.45, 0, 0.25, 1) both; will-change: opacity; }
@keyframes crWpIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: none; }
}
/* Card tints and the top bar text colour follow the wallpaper over the same time, instead of snapping */
@property --wp-glass { syntax: "<color>"; inherits: true; initial-value: rgba(96, 80, 92, 0.42); }
@property --wp-glass-light { syntax: "<color>"; inherits: true; initial-value: rgba(150, 136, 148, 0.34); }
@property --wp-glass-strong { syntax: "<color>"; inherits: true; initial-value: rgba(70, 56, 68, 0.58); }
@property --wp-topbar-ink { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --wp-accent { syntax: "<color>"; inherits: true; initial-value: #3b8fca; }
@media (prefers-reduced-motion: no-preference) {
  .cr-hero { transition: --wp-glass 2200ms cubic-bezier(0.45, 0, 0.25, 1), --wp-glass-light 2200ms cubic-bezier(0.45, 0, 0.25, 1), --wp-glass-strong 2200ms cubic-bezier(0.45, 0, 0.25, 1), --wp-topbar-ink 2200ms cubic-bezier(0.45, 0, 0.25, 1), --wp-accent 2200ms cubic-bezier(0.45, 0, 0.25, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-wp.is-entering { animation: crWpFade 400ms ease both; }
  @keyframes crWpFade { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: no-preference) {
  .cr-wp-photo { animation: crWpDrift 40s ease-in-out infinite alternate; }
}
@keyframes crWpDrift { from { transform: scale(1); } to { transform: scale(1.045) translate3d(-0.5%, -0.4%, 0); } }
.cr-backdrop--photo .cr-backdrop-veil {
  background:
    linear-gradient(180deg, rgba(20, 14, 24, 0.22) 0%, rgba(20, 14, 24, 0) 22%),
    linear-gradient(0deg, rgba(20, 14, 24, 0.18) 0%, rgba(20, 14, 24, 0) 20%);
}

/* Top bar clears the fixed switch + logo on the right */
.cr-hero .cr-topbar { top: 1.15rem; left: 1.4rem; right: calc(1.15rem + 236px); }
.cr-hero .cr-topbar-left { color: var(--wp-topbar-ink, #fff); }
.cr-hero .cr-clock { margin-left: 28px; }
@media (min-width: 1100px) and (max-width: 1360px) { .cr-hero .cr-topbar-id { display: none; } }
@media (min-width: 1100px) and (max-width: 1260px) { .cr-hero .cr-topbar-right .cr-iconbtn { display: none; } .cr-hero .cr-notice .cr-avatar { display: none; } }
.craft-wp--dike .cr-topbar-left, .craft-wp--barley .cr-topbar-left { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28); }
.cr-hero .cr-topbar-id { border-left-color: currentColor; white-space: nowrap; }
@media (max-width: 1350px) { .cr-hero .cr-clock { margin-left: 12px; } .cr-hero .cr-topbar-left { gap: 16px; } }
.cr-hero .cr-topbar-id span:last-child { color: inherit; opacity: 0.8; }

/* Board: the 892×526 grid (5 × 3 cells of 160, gutters 23), centred and scaled to fit the viewport */
.cr-board {
  --widget: 160px; --gutter: 23px;
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--widget) * 5 + var(--gutter) * 4);
  height: calc(var(--widget) * 3 + var(--gutter) * 2);
  transform: translate(-50%, -46%) scale(var(--cr-scale, 1));
  transform-origin: 50% 50%;
  z-index: 2;
}
.cr-board .cr-grid { position: static; transform: none; }
.cr-board .cr-sheet { inset: -24px; }
.cr-board .cr-sheet-grid { top: 136px; }

/* Wallpaper picker */
.cr-wp-picker {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  display: flex; gap: 8px; padding: 8px; border-radius: 22px;
}
.cr-wp-thumb {
  width: 56px; height: 40px; border-radius: 12px; overflow: hidden; position: relative;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cr-wp-thumb:hover { transform: translateY(-2px) scale(1.05); }
.cr-wp-thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px rgba(255,255,255,.35); }


.cr-profile-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-profile-links .cr-chip { background: rgba(255,255,255,.92); color: var(--ink); }
.cr-preview-shot { display: block; }
a.cr-chip { text-decoration: none; }

.cr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ═════════════ Responsive (tablet + mobile) ═════════════ */
/* Desktop (>=1100 x >=700) is untouched. useBoardScale (app.js) tags the stage:
   data-cr-fit="flow"  tablet / short screens: board pinned under the top bar, may scroll
   data-cr-cols="2"    portrait tablet: 2 x 3 board
   data-cr-fit="stack" mobile: the CSS below takes over, no scaling */

/* Corners wrapper is layout-neutral until mobile turns it into the bottom bar */
.cr-corners { display: contents; }

/* ── Tablet + short screens: fitted board, scroll instead of tiny cards ── */
html.ga-craft:has(.cr-hero[data-cr-fit="flow"]) { overflow-x: hidden; overflow-y: auto; }
html.ga-craft:has(.cr-hero[data-cr-fit="flow"]) body { overflow: visible; }
.cr-hero[data-cr-fit="flow"] {
  position: absolute; inset: 0 0 auto 0;
  width: 100% !important;
  height: max(100vh, var(--cr-stage-h, 100vh)) !important;
}
.cr-hero[data-cr-fit="flow"] .cr-backdrop { position: fixed; }
.cr-hero[data-cr-fit="flow"] .cr-board {
  top: var(--cr-board-top, 168px);
  transform: translateX(-50%) scale(var(--cr-scale, 1));
  transform-origin: 50% 0;
}

/* Portrait tablet: 4 x 4. Avatar, Experience | Contextual Chat / Playground, date |
   Case studies | Ask and Say hello as wide cards (DOM order matches, see BOARD_ORDER) */
.cr-hero[data-cr-cols="2"] .cr-board {
  width: calc(var(--widget) * 4 + var(--gutter) * 3);
  height: calc(var(--widget) * 4 + var(--gutter) * 3);
}
.cr-hero[data-cr-cols="2"] .cr-board .cr-grid { grid-template-columns: repeat(4, var(--widget)); grid-template-rows: repeat(4, var(--widget)); }
.cr-hero[data-cr-cols="2"] .cr-slot--orb { grid-area: 1 / 1; }
.cr-hero[data-cr-cols="2"] .cr-slot--exp { grid-area: 1 / 2; }
.cr-hero[data-cr-cols="2"] .cr-slot--chat { grid-area: 1 / 3 / 3 / 5; }
.cr-hero[data-cr-cols="2"] .cr-slot--pg { grid-area: 2 / 1; }
.cr-hero[data-cr-cols="2"] .cr-slot--date { grid-area: 2 / 2; }
.cr-hero[data-cr-cols="2"] .cr-slot--cases { grid-area: 3 / 1 / 5 / 3; }
.cr-hero[data-cr-cols="2"] .cr-slot--np { grid-area: 3 / 3 / 4 / 5; }
.cr-hero[data-cr-cols="2"] .cr-slot--hello { grid-area: 4 / 3 / 5 / 5; }
.cr-hero[data-cr-cols="2"] .cr-sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cr-hero[data-cr-cols="2"] .cr-profile-sheet { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
.cr-hero[data-cr-cols="2"] .cr-profile-body { padding: 32px 36px 36px; }
.cr-hero[data-cr-cols="2"] .cr-profile-facts { grid-template-columns: repeat(4, 1fr); }

/* Tablet top bar: name/role drops, the notification gets its own centred row */
@media (min-width: 701px) and (max-width: 1099px) {
  .cr-hero .cr-topbar { grid-template-columns: auto 1fr; }
  .cr-hero .cr-topbar-id { display: none; }
  .cr-hero .cr-clock { margin-left: 20px; }
  .cr-hero .cr-topbar > :nth-child(2) {
    position: absolute; top: calc(100% + 18px); left: 0;
    width: calc(100vw - 56px);
    display: flex; justify-content: center;
  }
  .cr-hero .cr-topbar-right { grid-column: 2; }
}
@media (min-width: 701px) and (max-width: 860px) {
  /* Narrow tablets: search steps out (the dock's chat button does the same job) */
  .cr-hero .cr-topbar-right .cr-iconbtn { display: none; }
}

/* ── Mobile: one scrolling column ── */
@media (max-width: 700px) {
  html.ga-craft { overflow-x: hidden; overflow-y: auto; }
  html.ga-craft body { overflow: visible; }
  html.ga-craft:has(.cr-sheet) { overflow: hidden; }

  /* Switch top right, logo hidden (the avatar carries identity); both step aside for sheets */
  html.ga-craft .ga-brand { display: none; }
  html.ga-craft .craft-switch {
    top: 16px; right: 16px; height: 44px; padding: 0 8px 0 12px; font-size: 13px;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  }
  html.ga-craft:has(.cr-sheet) .craft-switch { opacity: 0; pointer-events: none; }

  .cr-hero {
    position: relative; inset: auto;
    width: 100% !important;
    height: auto !important; min-height: 100vh; min-height: 100dvh;
    overflow: clip;
    display: flex; flex-direction: column;
  }
  .cr-hero .cr-backdrop { position: fixed; }

  /* Top bar: avatar + clock, notification on its own row */
  .cr-hero .cr-topbar {
    position: relative; top: auto; left: auto; right: auto;
    display: flex; flex-wrap: wrap; align-items: center;
    padding: 16px 16px 0;
  }
  .cr-hero .cr-brandorb { width: 44px; height: 44px; }
  .cr-hero .cr-clock { margin-left: 14px; font-size: 34px; }
  .cr-hero .cr-topbar-id,
  .cr-hero .cr-topbar-right { display: none; }
  .cr-hero .cr-topbar > :nth-child(2) {
    flex: 0 0 100%; order: 3;
    display: flex; justify-content: center;
    margin-top: 18px;
  }
  .cr-hero .cr-notice { width: 100%; max-width: 420px; height: 56px; }
  .cr-hero .cr-notice-text { flex: 1; }
  .cr-hero .cr-notice-text > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Board flows; no transform, so fixed sheets work */
  .cr-hero .cr-board {
    position: relative; left: auto; top: auto; z-index: auto;
    width: 100%; height: auto;
    transform: none;
    padding: 20px 16px 0;
    flex: 1 0 auto;
  }
  /* Two-up column: wide cards span both columns, small cards sit in pairs at their desktop size.
     Order (DOM, see BOARD_ORDER): avatar, Contextual Chat, Case studies, Experience | Playground,
     date | Ask, Say hello */
  .cr-hero .cr-board .cr-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 14px;
    max-width: 420px; margin: 0 auto;
  }
  .cr-hero .cr-grid > .cr-slot { grid-area: auto; min-width: 0; }
  .cr-hero .cr-grid > .cr-slot--orb, .cr-hero .cr-grid > .cr-slot--chat,
  .cr-hero .cr-grid > .cr-slot--cases, .cr-hero .cr-grid > .cr-slot--hello { grid-column: 1 / -1; }
  .cr-hero .cr-board .cr-card { width: 100%; height: auto; aspect-ratio: 1; }
  .cr-hero .cr-board .cr-slot--cases .cr-card, .cr-hero .cr-board .cr-slot--chat .cr-card { aspect-ratio: auto; height: 343px; }
  .cr-hero .cr-board .cr-slot--hello .cr-card { aspect-ratio: auto; height: 172px; }
  .cr-hero .cr-orb-slot { width: min(232px, 100%); height: auto; aspect-ratio: 1; margin: 2px auto 6px; }

  /* Stack + dock become one sticky glass pill */
  .cr-hero .cr-corners {
    position: sticky; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 4;
    align-self: center;
    display: flex; align-items: center; gap: 6px;
    margin: 24px auto 14px; padding: 5px;
    border-radius: var(--radius-pill);
    background: var(--glass-light);
    -webkit-backdrop-filter: var(--blur-glass);
    backdrop-filter: var(--blur-glass);
    box-shadow: var(--glass-edge), 0 12px 30px rgba(30, 20, 30, 0.18);
  }
  .cr-hero .cr-corner { position: static; }
  .cr-hero .cr-corner--left { padding-right: 6px; border-right: 1px solid rgba(255, 255, 255, 0.28); }
  .cr-hero .cr-stack { width: 44px; height: 44px; padding: 4px; gap: 2px; border-radius: 22px; }
  .cr-hero .cr-stack img { border-radius: 50%; }
  .cr-hero .cr-dock { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .cr-hero .cr-wp-picker { right: auto; left: 50%; transform: translateX(-50%); }

  /* Sheets: full screen, scrolling, close always in reach */
  .cr-hero .cr-board .cr-sheet {
    position: fixed; inset: 0; z-index: 20;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .cr-hero .cr-sheet-head {
    position: sticky; top: 0; z-index: 2;
    padding: 20px 16px 16px 20px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    background: linear-gradient(180deg, rgba(30, 20, 30, 0.22), rgba(30, 20, 30, 0.06));
  }
  .cr-hero .cr-sheet-title { font-size: 34px; }
  .cr-hero .cr-board .cr-sheet-grid {
    position: static; inset: auto;
    padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px;
  }
  .cr-hero .cr-file { border-radius: 20px; }
  .cr-hero .cr-file img { height: auto; aspect-ratio: 4 / 3; }
  .cr-hero .cr-file-cap { padding: 8px 12px 10px; font-size: 13px; }

  .cr-hero .cr-profile-sheet { display: flex; flex-direction: column; }
  .cr-hero .cr-profile-photo { flex: 1 1 0; min-height: 200px; }
  .cr-hero .cr-profile-body { flex: none; padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .cr-hero .cr-profile-body > :first-child { position: absolute; top: 16px; left: 16px; right: 16px; }
  .cr-hero .cr-profile-facts { margin-top: 6px; gap: 8px; }
  .cr-hero .cr-fact { padding: 10px 14px; border-radius: 18px; }
  .cr-hero .cr-fact b { font-size: 22px; }
}

/* QA fixes */
.cr-dock .cr-iconbtn:focus-visible, .cr-stack:focus-visible { outline-color: #fff; }
@media (max-width: 380px) { .cr-hero .cr-notice { max-width: calc(100vw - 32px); } .cr-hero .cr-notice .cr-avatar, .cr-hero .cr-notice .cr-chip--sub { display: none; } }
@media (hover: none) { .cr-drop-hint { visibility: hidden; } }
.cr-row { grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; }
.cr-row .cr-iconbtn { width: 38px; height: 38px; }

/* Tap-to-change hint */
.cr-wp-hint {
  position: absolute; left: 50%; bottom: var(--space-8); z-index: 4; margin: 0;
  transform: translateX(-50%);
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  font-size: 13px; white-space: nowrap; pointer-events: none;
  box-shadow: var(--shadow-float);
  animation: crHintIn 600ms var(--ease-arrive) both;
}
@keyframes crHintIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 700px) { .cr-wp-hint { bottom: 96px; } }

/* Glass tint and top-bar ink follow the wallpaper with the same slow dissolve */
.cr-hero .cr-glass, .cr-hero .cr-glass-light, .cr-hero .cr-sheet { transition: background-color 1.6s cubic-bezier(0.4, 0, 0.2, 1); }
.cr-hero .cr-topbar-left { transition: color 1.6s cubic-bezier(0.4, 0, 0.2, 1); }

/* 3D avatar in the profile orb: bust rises out of the bottom of the glass circle, slow idle sway like the Behance head */
.cr-orb-figure {
  position: absolute; left: 50%; bottom: -4%;
  width: 96%; aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.cr-orb-avatar {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 18px 24px rgba(30, 14, 30, 0.28));
  transform-origin: 50% 85%;
  transition: transform 700ms var(--ease-arrive);
}
.cr-orb:hover .cr-orb-avatar { transform: scale(1.04) translateY(-2%); }
@media (prefers-reduced-motion: no-preference) {
  .cr-orb-figure { animation: crHeadSway 7s ease-in-out infinite; }
}
@keyframes crHeadSway {
  0%, 100% { transform: translateX(-50%) rotate(-1.6deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(1.6deg) translateY(-1.5%); }
}
.cr-orb .cr-orb-name { z-index: 2; }

/* ═════════════ Reference fidelity (spec: research/G-hero-spec.md) ═════════════
   Every value below is measured from the 1280px mindset dashboard. Each glass
   surface has its own sampled colour (tokens --g-*), not one shared tint. */

/* ── Materials: one sampled fill per surface ── */
.cr-glass.cr-agenda { background: var(--g-date); }
.cr-glass.cr-drop { background: var(--g-create); }
.cr-glass.cr-drop.is-over { background: var(--g-sheen), linear-gradient(rgba(64, 52, 64, 0.32), rgba(64, 52, 64, 0.36)); }
.cr-glass.cr-orb { background: var(--g-head); }
.cr-glass-light.cr-seg { background: var(--g-seg); }
.cr-glass-light.cr-iconbtn--glass { background: var(--g-search); }
.cr-glass-light.cr-iconbtn--glass:hover { background: rgba(60, 48, 60, 0.34); }
.cr-glass-light.cr-dock { background: var(--g-dock); }
.cr-glass-light.cr-stack { background: var(--g-stack); }
.cr-agenda, .cr-drop, .cr-orb, .cr-seg, .cr-iconbtn--glass, .cr-dock, .cr-stack {
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.cr-solid { box-shadow: 0 1px 2px rgba(40, 20, 40, 0.03); }

/* ── Top bar pieces ── */
.cr-clock { font-size: 34px; font-weight: 300; letter-spacing: -0.02em; }
.cr-topbar-id { font-size: 13px; line-height: 1.3; gap: 1px; padding-left: 16px; border-left: 1px solid; }
.cr-hero .cr-topbar-id { border-left-color: color-mix(in srgb, currentColor 55%, transparent); }
.cr-hero .cr-topbar-id span:last-child { opacity: 0.65; }
/* the name reads a step above the role (2px larger) */
.cr-topbar-id span:first-child { font-size: 15px; }

.cr-notice { position: relative; height: 50px; gap: 0; padding: 0 7px 0 10px; box-shadow: 0 6px 18px rgba(60, 40, 60, 0.07); }
.cr-notice::before { /* the second, stacked notification peeking out underneath */
  content: ""; position: absolute; z-index: -1; left: 17px; right: 17px; top: 8px; bottom: -6px;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.6);
}
.cr-notice-bar { display: flex; flex-direction: column; gap: 2px; width: 2px; height: 16px; background: none; border-radius: 0; flex-shrink: 0; }
.cr-notice-bar i { display: block; width: 2px; border-radius: 1px; }
.cr-notice-bar i:first-child { height: 5px; background: #d6d6d6; }
.cr-notice-bar i:last-child { flex: 1; background: var(--blue); }
.cr-notice .cr-avatar { margin-left: 9px; }
.cr-notice-text { margin: 0 10px 0 10px; font-size: 14px; line-height: 1.12; letter-spacing: -0.01em; }
.cr-notice .cr-chip--sub { height: 36px; padding: 0 14px; background: #f4f4f4; font-size: 12px; font-weight: 400; color: var(--ink); margin-left: auto; }
.cr-notice-close { width: 36px; height: 36px; margin-left: 3px; border-color: #e8e8e8; }
.cr-notice-close svg.cr-ring { width: 36px; height: 36px; }
.cr-notice-close svg.cr-x { width: 12px; height: 12px; }

.cr-seg { height: 50px; padding: 3px; }
.cr-seg-pill { top: 3px; bottom: 3px; box-shadow: 0 2px 6px rgba(40, 20, 40, 0.14); }
.cr-seg button { padding: 0 22px; font-size: 13px; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.62); }
.cr-iconbtn--glass svg { width: 22px; height: 22px; }

/* ── Desktop: top bar laid out on the reference canvas ──
   Clock lines up with the grid's left edge, the notification with column 2,
   the segmented control ends at column 3 (+4px), search sits left of the Craft switch. */
.cr-hero:not([data-cr-fit]) .cr-topbar { top: 27px; left: 0; right: 0; height: 50px; display: block; }
.cr-hero:not([data-cr-fit]) .cr-topbar-left { position: absolute; left: 28px; top: 0; height: 50px; gap: 0; }
/* (board half-width 446; clock sits 17 left of the grid, notice 148 left of centre, Home/Projects ends 20 past the grid) */
.cr-hero:not([data-cr-fit]) .cr-clock { margin-left: calc(50vw - 463px * var(--cr-scale, 1) - 78px); }
.cr-hero:not([data-cr-fit]) .cr-topbar-id { display: flex; margin-left: 18px; }
.cr-hero:not([data-cr-fit]) .cr-topbar > :nth-child(2) { position: absolute; top: 0; left: calc(50% - 148px * var(--cr-scale, 1)); }
.cr-hero:not([data-cr-fit]) .cr-notice .cr-avatar { display: block; }
.cr-hero:not([data-cr-fit]) .cr-topbar-right { position: absolute; inset: 0; display: block; pointer-events: none; }
.cr-hero:not([data-cr-fit]) .cr-topbar-right > * { pointer-events: auto; }
.cr-hero:not([data-cr-fit]) .cr-topbar-right .cr-seg { position: absolute; top: 0; right: calc(50% - 466px * var(--cr-scale, 1)); }
.cr-hero:not([data-cr-fit]) .cr-topbar-right .cr-iconbtn { display: inline-grid; position: absolute; top: 0; right: 90px; }

/* Board: centred in the viewport like the reference (top 197 of 1052) */
.cr-hero:not([data-cr-fit]) .cr-board {
  top: calc((100% - 526px * var(--cr-scale, 1)) * 0.5 + 2px * var(--cr-scale, 1));
  transform: translateX(-50%) scale(var(--cr-scale, 1));
  transform-origin: 50% 0;
}

/* Craft switch + logo (tablet and desktop): the logo steps out (the top-left orb carries
   identity, as on mobile) and the switch becomes a grey glass circle like the reference's search */
@media (min-width: 701px) {
  html.ga-craft .ga-brand { display: none; }
  html.ga-craft .craft-switch {
    top: 27px; right: 28px; width: 50px; height: 50px; padding: 0; gap: 0; justify-content: center;
    background: var(--g-search, rgba(166, 156, 166, 0.9)); color: #fff; box-shadow: none;
    -webkit-backdrop-filter: blur(30px) saturate(1.1); backdrop-filter: blur(30px) saturate(1.1);
  }
  html.ga-craft .craft-switch:hover { background: rgba(60, 48, 60, 0.34); }
  html.ga-craft .craft-switch:focus-visible { outline-color: #fff; }
  html.ga-craft .craft-switch-label, html.ga-craft .craft-switch-track { display: none; }
  html.ga-craft .craft-switch.is-on .craft-glyph-front { fill: rgba(255, 255, 255, 0.25) !important; }
  .cr-hero[data-cr-fit="flow"] .cr-topbar { top: 27px; left: 28px; right: 90px; }
}
html.ga-craft .craft-switch { --g-search: rgba(60, 48, 60, 0.22); }

/* ── Date card ── */
.cr-agenda { padding: 24px 21px 22px 29px; }
.cr-agenda-meta { margin-top: 2px; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; color: var(--on-glass-3); }
.cr-agenda-body { margin-bottom: 25px; }
.cr-agenda-body p { font-size: 46px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 400; }
.cr-agenda-body p + p { margin-top: 7px; font-size: 42px; color: rgba(255, 255, 255, 0.62); }
.cr-agenda-label { font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }

/* ── Privacy-style list ── */
.cr-list { padding: 21px 8px 10px 6px; }
.cr-list-head { height: 34px; padding: 0 14px 0 23px; margin-bottom: 10px; }
.cr-list-head .cr-t-title { font-size: 21px; }
.cr-list-head .cr-chip--outline { height: 34px; padding: 0 14px; font-size: 11px; border-color: var(--hairline); }
.cr-row { height: 72px; padding: 0 6px 0 13px; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 16px; }
.cr-row + .cr-row { box-shadow: none; position: relative; }
.cr-row + .cr-row::before { /* straight hairline (a box-shadow followed the row's hover radius) */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hairline-row); pointer-events: none;
}
.cr-row-av { position: relative; width: 50px; height: 50px; }
.cr-row-thumb { width: 50px; height: 50px; }
.cr-row-text b { font-size: 17px; line-height: 1.22; letter-spacing: -0.015em; text-overflow: clip; display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), rgba(0, 0, 0, 0.18));
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), rgba(0, 0, 0, 0.18)); }
.cr-row-text span { font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.cr-row .cr-iconbtn { width: 50px; height: 50px; }
.cr-row .cr-iconbtn--well { color: var(--ink-3); }
.cr-row .cr-iconbtn svg { width: 15px; height: 15px; }
/* Trailing "open" control, the same on every row: a grey round arrow that fills Craft blue
   from the centre when its row is active (hover or keyboard focus, one row at a time).
   Transform/opacity/colour only, so the morph never relayouts. */
.cr-row-go {
  --go-ease: cubic-bezier(0.16, 1, 0.3, 1); --go-dur: 320ms;
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: var(--well); color: var(--ink-3);
  transition: color var(--go-dur) var(--go-ease), box-shadow var(--go-dur) var(--go-ease);
}
.cr-row-go-fill {
  position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--blue);
  transform: scale(0.2); opacity: 0;
  transition: transform var(--go-dur) var(--go-ease), opacity calc(var(--go-dur) * 0.6) var(--go-ease);
}
.cr-row-go svg { width: 15px; height: 15px; transition: transform var(--go-dur) var(--go-ease); }
.cr-row + .cr-row::before { transition: opacity 280ms ease; }
.cr-row.is-active::before, .cr-row.is-active + .cr-row::before { opacity: 0; }
.cr-row.is-active .cr-row-go { color: #fff; box-shadow: 0 6px 16px -6px rgba(43, 85, 246, 0.55); }
.cr-row.is-active .cr-row-go-fill { transform: scale(1); opacity: 1; }
.cr-row.is-active .cr-row-go svg { transform: translate(1.5px, -1.5px); }
.cr-row-go:active .cr-row-go-fill { background: var(--blue-strong); }
@media (prefers-reduced-motion: reduce) {
  .cr-row, .cr-row-go, .cr-row-go-fill, .cr-row-go svg { transition: none; }
}

/* ── Create a room ── */
.cr-drop-inner { gap: 5px; }
.cr-drop-plus { width: 17px; height: 17px; margin-bottom: 2px; }
.cr-drop-plus path { stroke-width: 1.6; }
.cr-drop-title { font-size: 21px; line-height: 1.2; }
.cr-drop-hint { font-size: 13px; color: var(--on-glass-3); }

/* ── Screen share ── */
.cr-solid.cr-preview { background: var(--share-top); grid-template-rows: auto 1fr 86px; }
.cr-preview-chips { gap: 4px; padding: 22px 22px 0; }
.cr-preview .cr-chip { height: 35px; padding: 0 13px; font-size: 13px; font-weight: 400; background: #fff; }
.cr-preview .cr-chip--label { color: var(--blue-chip-text); }
.cr-preview .cr-chip--timer { padding: 0 12px; }
.cr-preview .cr-chip--timer .cr-live { top: 5px; right: 6px; width: 5px; height: 5px; }
.cr-preview-shot--strip { background: none; overflow: visible; }
.cr-strip { position: absolute; inset: 0; }
.cr-strip-slide { position: absolute; top: 18px; height: 99px; }
.cr-strip-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: #e9e4e8; }
.cr-strip-slide--left { left: 1px; width: 42px; }
.cr-strip-slide--left img { object-position: right top; border-radius: 0 3px 3px 0; }
.cr-strip-slide--main { left: 57px; width: 175px; }
.cr-strip-slide--main img { object-position: left top; }
.cr-strip-slide--right { left: 245px; width: 46px; }
.cr-strip-slide--right img { object-position: left top; border-radius: 3px 0 0 3px; }
.cr-strip-label { position: absolute; left: 0; top: -11px; font-size: 8px; line-height: 1; color: #a3a3a3; white-space: nowrap; }
.cr-preview .cr-cursor { display: block; width: 1px; height: 1px; z-index: 2; }
.cr-cursor svg { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: 0; }
.cr-cursor-av {
  position: absolute; left: 4px; top: 14px; width: 25px; height: 25px; border-radius: 50%; overflow: hidden;
  background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600;
}
.cr-cursor-av img { width: 100%; height: 100%; object-fit: cover; }
.cr-cursor .cr-cursor-tag { position: absolute; left: 33px; top: 15px; height: 23px; margin: 0; padding: 0 8px; gap: 0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cr-preview-foot { background: #fff; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 11px; padding: 0 16px 0 18px; }
.cr-preview-foot .cr-row-text b { font-size: 18px; line-height: 1.2; letter-spacing: -0.025em; -webkit-mask-image: none; mask-image: none; text-overflow: ellipsis; }
.cr-preview-foot .cr-row-text span { font-size: 14px; }
.cr-preview-foot .cr-chip--count { width: 50px; height: 50px; background: var(--well); color: var(--ink); }
.cr-preview-foot .cr-chip--count svg { width: 16px; height: 16px; }

/* ── 3D head circle ── */
.cr-orb-edit { left: 21px; top: 21px; }
.cr-orb-edit .cr-iconbtn { width: 49px; height: 49px; color: #000; box-shadow: 0 4px 14px rgba(40, 20, 40, 0.10); }
.cr-orb-edit .cr-iconbtn svg { width: 22px; height: 22px; }
.cr-hero .cr-orb-name { display: none; }
/* The bust floats in the circle like the reference head: smaller, higher, shoulders dissolve into the glass */
.cr-orb .cr-orb-figure { top: 13%; bottom: auto; width: 80%; }
.cr-orb .cr-orb-avatar {
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 90%);
  filter: drop-shadow(0 14px 18px rgba(30, 14, 30, 0.16));
}

/* ── Data card ── */
.cr-stat { padding: 27px 28px 21px; }
.cr-stat-head .cr-t-title { font-size: 20px; }
.cr-stat-link { gap: 13px; font-size: 13px; color: var(--ink-link); }
.cr-stat-link svg { width: 11px; height: 11px; color: var(--ink); }
.cr-stat-value { margin-top: 20px; font-size: 62px; line-height: 1; letter-spacing: -0.045em; }
.cr-stat-legs { margin-top: 17px; height: 61px; flex: none; }
.cr-stat-leg { bottom: 0; display: flex; flex-direction: column; padding: 0; border: 0; font-size: 13px; line-height: 1.2; color: var(--ink-cap); }
.cr-stat-leg span { top: 0; }
.cr-stat-tick { flex: 1; margin-top: 7px; width: 0; border-left: 1px solid var(--track); }
.cr-stat-bars { height: 6px; gap: 3px; margin-top: 6px; }
.cr-stat-keys { margin-top: 28px; font-size: 14px; color: var(--ink); }
.cr-stat-keys span { gap: 6px; }
.cr-stat-keys i { width: 4px; height: 4px; }

/* ── Corners ── */
.cr-corner { bottom: 28px; }
.cr-corner--left { left: 28px; }
.cr-corner--right { right: 28px; }
.cr-stack { position: relative; width: 50px; height: 50px; padding: 5px; gap: 2px; border-radius: 16px; }
.cr-stack img { border-radius: 50%; }
.cr-stack::after { /* the stacked tile peeking out underneath */
  content: ""; position: absolute; left: 7px; right: 7px; top: 100%; height: 5px;
  border-radius: 0 0 12px 12px; background: rgba(182, 179, 181, 0.55);
}
@media (min-width: 701px) {
  .cr-dock { gap: 4px; padding: 8px; }
  .cr-dock .cr-iconbtn { width: 34px; height: 34px; }
  .cr-dock .cr-iconbtn svg { width: 16px; height: 16px; }
  .cr-dock .cr-iconbtn--ghost { background: var(--g-dock-ghost); }
  .cr-dock .cr-iconbtn--ghost:hover { background: rgba(255, 255, 255, 0.26); }
}
.cr-dock .cr-iconbtn--accent { background: var(--mic-orange); }
@media (max-width: 700px) {
  .cr-hero .cr-stack::after { display: none; }
  .cr-hero .cr-corners { background: var(--g-dock); }
}

/* Dusk haze over the photo, strongest behind the grid, like the reference's low-contrast backdrop.
   Kept light at the top so top-bar ink contrast is unchanged. */
.cr-backdrop--photo .cr-backdrop-veil {
  background:
    linear-gradient(180deg, rgba(20, 14, 24, 0.22) 0%, rgba(20, 14, 24, 0) 22%),
    linear-gradient(0deg, rgba(20, 14, 24, 0.18) 0%, rgba(20, 14, 24, 0) 20%),
    linear-gradient(180deg, rgba(214, 202, 216, 0) 8%, rgba(220, 210, 220, 0.22) 30%, rgba(232, 225, 226, 0.26) 60%, rgba(222, 215, 224, 0.14) 100%);
}

/* ═════════════ Interactive 3D head ═════════════ */
.cr-head-orb { touch-action: none; cursor: grab; overflow: visible; -webkit-user-select: none; user-select: none; }
.cr-head-orb:active { cursor: grabbing; }
.cr-head-stack { position: absolute; inset: -14% -14% -8%; pointer-events: none; }
.cr-head-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 110ms linear;
  filter: drop-shadow(0 16px 22px rgba(20, 12, 20, 0.28));
}
.cr-head-frame.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .cr-head-stack { animation: crHeadFloat 6s ease-in-out infinite; }
}
@keyframes crHeadFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5%); } }

/* Live chrome droplets: orbit independently of the head (back layer passes behind, front layer in front) */
.cr-liquid { position: absolute; inset: 0; pointer-events: none; }
.cr-liquid i {
  position: absolute; left: 50%; top: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0 12%, #e9e9ee 22%, #9a9aa3 48%, #3d3d44 72%, #c9c9d0 92%);
  box-shadow: 0 4px 10px rgba(20, 12, 20, 0.3), inset -2px -3px 4px rgba(0, 0, 0, 0.25);
}
.cr-liquid--back i:nth-child(1) { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.cr-liquid--front i:nth-child(2) { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
.cr-liquid--front i:nth-child(3) { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
@media (prefers-reduced-motion: no-preference) {
  .cr-liquid--front i:nth-child(1) { animation: crOrbitA 9s linear infinite; }
  .cr-liquid--front i:nth-child(2) { animation: crOrbitB 13s linear infinite; }
  .cr-liquid--front i:nth-child(3) { animation: crOrbitC 7s linear infinite reverse; }
  .cr-liquid--back i:nth-child(1) { animation: crOrbitBack 11s linear infinite; }
  .cr-liquid--back i:nth-child(2) { animation: crOrbitBack 16s linear infinite reverse; animation-delay: -5s; }
}
/* front layer: visible on the near half of the orbit, fades when it passes behind */
@keyframes crOrbitA {
  0% { transform: rotate(0deg) translateX(118px) rotate(0deg) scale(1); opacity: 1; }
  45% { opacity: 1; } 50% { transform: rotate(180deg) translateX(118px) rotate(-180deg) scale(0.7); opacity: 0; }
  95% { opacity: 0; } 100% { transform: rotate(360deg) translateX(118px) rotate(-360deg) scale(1); opacity: 1; }
}
@keyframes crOrbitB {
  0% { transform: rotate(40deg) translateX(132px) translateY(-18px) scale(1); opacity: 1; }
  40% { opacity: 1; } 50% { transform: rotate(220deg) translateX(132px) translateY(-18px) scale(0.6); opacity: 0; }
  92% { opacity: 0; } 100% { transform: rotate(400deg) translateX(132px) translateY(-18px) scale(1); opacity: 1; }
}
@keyframes crOrbitC {
  0% { transform: rotate(200deg) translateX(104px) translateY(30px); opacity: 1; }
  50% { transform: rotate(380deg) translateX(104px) translateY(30px); opacity: 1; }
  100% { transform: rotate(560deg) translateX(104px) translateY(30px); opacity: 1; }
}
@keyframes crOrbitBack {
  0% { transform: rotate(0deg) translateX(122px) scale(0.75); opacity: 0.85; }
  100% { transform: rotate(-360deg) translateX(122px) scale(0.75); opacity: 0.85; }
}
.cr-head-slot.is-paused .cr-liquid i, .cr-head-slot.is-paused .cr-head-stack { animation-play-state: paused; }

.cr-head-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.88); color: #0a0a0a;
  font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity 240ms ease; pointer-events: none;
}
.cr-head-orb:hover .cr-head-hint, .cr-head-orb:focus-visible .cr-head-hint { opacity: 1; }
.cr-head-orb.is-turned .cr-head-hint { opacity: 0; }
.cr-liquid-toggle {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.9); color: #0a0a0a; box-shadow: 0 4px 12px rgba(20, 12, 20, 0.16);
  opacity: 0; transition: opacity 200ms ease;
}
.cr-head-slot:hover .cr-liquid-toggle, .cr-liquid-toggle:focus-visible, .cr-head-slot.is-paused .cr-liquid-toggle { opacity: 1; }
@media (hover: none) { .cr-liquid-toggle { opacity: 1; } .cr-head-hint { opacity: 1; } }

/* GK logo in the top-left orb */
.cr-brandorb img[src*="logo"] { object-fit: contain; padding: 22%; background: #fff; }

/* ═════════════ Liquid glass (all glass surfaces) ═════════════ */
.cr-agenda, .cr-drop, .cr-orb, .cr-seg, .cr-iconbtn--glass, .cr-dock, .cr-stack, .cr-wp-picker,
html.ga-craft .craft-switch {
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(20, 10, 30, 0.10);
}
.cr-seg, .cr-iconbtn--glass, .cr-dock, .cr-stack, html.ga-craft .craft-switch {
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
}
.cr-wp-picker { background: rgba(60, 48, 60, 0.24); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
/* keep white text readable on see-through glass over bright skies */
.cr-agenda, .cr-drop, .cr-seg button:not([aria-selected="true"]) { text-shadow: 0 1px 3px rgba(20, 10, 20, 0.22); }
.cr-agenda .cr-agenda-meta { color: rgba(255, 255, 255, 0.82); }
/* opened sheets: same liquid glass, stronger so small text stays readable */
.cr-sheet {
  background: var(--g-sheen), linear-gradient(rgba(44, 34, 44, 0.46), rgba(44, 34, 44, 0.54)) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 24px 60px rgba(20, 10, 30, 0.18);
  -webkit-backdrop-filter: blur(34px) saturate(1.5); backdrop-filter: blur(34px) saturate(1.5);
}

/* ═════════════ 3D head: one front view, gentle 3D tilt toward the pointer ═════════════ */
.cr-head-stack { transform-style: preserve-3d; transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.cr-head-orb { cursor: pointer; perspective: 900px; }
.cr-head-orb:active { cursor: pointer; }
.cr-head-tilt { position: absolute; inset: 0; transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); transform-style: preserve-3d; }
.cr-liquid { transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }

/* Cards without a profile picture */
.cr-preview-foot.cr-preview-foot--noavatar { grid-template-columns: minmax(0, 1fr) 50px; padding-left: 24px; }

/* ═════════════ Project icon wells (Case studies rows + All work cards) ═════════════
   1.5px line icons in a 50px circle; the tint is the reference #f5f5f5 well with a
   faint lean toward one accent from the reference palette. */
.cr-pwell {
  display: grid; place-items: center; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--well); color: #3d3d3d;
}
.cr-pwell svg { width: 21px; height: 21px; }
.cr-pwell--blue { background: #eef1fe; color: var(--blue); }
.cr-pwell--orange { background: #fdf0ea; color: #e0582c; }
.cr-pwell--pink { background: #fcedf6; color: #cf268f; }
.cr-pwell--plain { background: var(--well); color: #454545; }
.cr-row-av .cr-pwell { width: 50px; height: 50px; }

/* Project orbs (assets/craft/orb.js): the canvas is painted by one shared WebGL renderer;
   the gradient underneath is the stand-in until the first frame (or without WebGL). */
.cr-pwell--orb { position: relative; background-color: #e9e4ec; background-size: 100% 100%; }
.cr-pwell--orb canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
  transition: opacity 240ms ease; will-change: transform;
}
.cr-pwell--orb.is-lit { background: none !important; }

/* Project badge: a black circle with a white glyph on the orb's bottom edge, cut out of the
   orb by a ring in the surface colour (--cr-orb-ring). Sized off the orb with container
   units: ~41% on a 50px well, ~30% on a 120px orb; ring 3px growing to ~4.5px. */
.cr-pwell--orb.has-badge { container-type: inline-size; overflow: visible; }
.cr-orb-badge {
  --b: 20px; --b: calc(9px + 23cqw);
  --ring: 3px; --ring: calc(2px + 2cqw);
  position: absolute; z-index: 1; left: 50%; bottom: calc(var(--b) / -2 + 4%);
  width: var(--b); height: var(--b); border-radius: 50%;
  display: grid; place-items: center;
  background: #0d0d0d; color: #0d0d0d; /* glyph cut-outs use currentColor = badge ink */
  box-shadow: 0 0 0 var(--ring) var(--cr-orb-ring, var(--surface, #fff));
  transform: translate(-50%, 0);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms ease;
  pointer-events: none;
}
.cr-pwell.cr-pwell--orb .cr-orb-badge svg.cr-orb-glyph { width: 58%; height: 58%; display: block; overflow: visible; }
:is(.cr-row, .cr-aw-card, .cs-row, .cs-related, .cr-preview):is(:hover, :focus-within, .is-active) .cr-orb-badge {
  transform: translate(-50%, -1.5px) scale(1.04);
}
/* Ring follows the surface the orb sits on */
.cr-row.is-active { --cr-orb-ring: #f6f5f7; }
.cs-row.is-active { --cr-orb-ring: var(--well); }
@media (prefers-reduced-motion: reduce) { .cr-orb-badge { transition: none; } }

/* "All 5" chip is a button now */
.cr-chip--btn { cursor: pointer; transition: background var(--dur-snap) ease, border-color var(--dur-snap) ease; }
.cr-chip--btn:hover { background: var(--well); border-color: #e2e2e2; }

/* ═════════════ All work popup ═════════════ */
.cr-aw { position: fixed; inset: 0; z-index: 40; }
.cr-aw-scrim { position: absolute; inset: 0; background: rgba(28, 18, 30, 0.2); }
.cr-hero .cr-topbar, .cr-hero .cr-corner { transition: opacity 380ms ease, filter 380ms ease; }
.cr-hero.is-aw .cr-topbar, .cr-hero.is-aw .cr-corner { opacity: 0.25; filter: blur(4px); }
html.ga-aw-open, html.ga-aw-open body { overflow: hidden !important; }
html.ga-aw-open .craft-switch, html.ga-aw-open .ga-brand { opacity: 0; visibility: hidden; pointer-events: none; }

.cr-aw-sheet {
  position: absolute; inset: 32px; margin: auto;
  width: min(1240px, calc(100vw - 64px)); height: min(880px, calc(100vh - 64px));
  display: flex; flex-direction: column;
  border-radius: var(--radius-sheet);
  color: #fff; overflow: hidden;
  background: var(--g-sheen), linear-gradient(rgba(44, 34, 44, 0.46), rgba(44, 34, 44, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 24px 60px rgba(20, 10, 30, 0.22);
  -webkit-backdrop-filter: blur(34px) saturate(1.5); backdrop-filter: blur(34px) saturate(1.5);
}
.cr-aw-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "titles tabs close";
  align-items: center; gap: 16px;
  padding: 28px 28px 22px 36px;
}
.cr-aw-titles { grid-area: titles; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.cr-aw-title { font-size: 46px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 400; }
.cr-aw-counts { display: flex; gap: 6px; }
.cr-aw-count {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 13px; color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24);
  font-variant-numeric: tabular-nums;
}
.cr-aw-tabs {
  grid-area: tabs; position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 50px; padding: 3px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24);
}
.cr-aw-tabs button {
  position: relative; z-index: 1; padding: 0 20px; border-radius: var(--radius-pill);
  font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; color: rgba(255, 255, 255, 0.78);
  transition: color 300ms ease;
}
.cr-aw-tabs button[aria-selected="true"] { color: #000; }
.cr-aw-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.cr-aw-tabpill {
  position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3);
  border-radius: var(--radius-pill); background: #fff; box-shadow: 0 2px 6px rgba(40, 20, 40, 0.14);
  transition: transform 460ms var(--ease-arrive);
}
.cr-aw-close { grid-area: close; width: 50px; height: 50px; }
.cr-aw-close:focus-visible { outline-color: #fff; }

.cr-aw-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 28px 28px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.cr-aw-scroll:focus { outline: none; }
.cr-aw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.cr-aw-card {
  display: flex; flex-direction: column; width: 100%; min-width: 0;
  padding: 8px; border-radius: 34px; text-align: left;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(40, 20, 40, 0.04), 0 14px 34px rgba(30, 10, 30, 0.14);
  transition: transform 420ms var(--ease-arrive), box-shadow 420ms var(--ease-arrive);
}
.cr-aw-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(40, 20, 40, 0.04), 0 22px 44px rgba(30, 10, 30, 0.2); }
.cr .cr-aw-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cr-aw-media {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden;
  background: var(--share-top);
}
.cr-aw-media img, .cr-aw-media video { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 700ms var(--ease-arrive); }
.cr-aw-card:hover .cr-aw-media img { transform: scale(1.03); }
.cr-aw-body { display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; padding: 14px 8px 6px 6px; }
.cr-aw-head { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; align-items: center; }
.cr-aw-name { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.cr-aw-name b { font-size: 17px; line-height: 1.22; letter-spacing: -0.015em; font-weight: 500; white-space: nowrap; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), rgba(0, 0, 0, 0.18));
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), rgba(0, 0, 0, 0.18)); }
.cr-aw-name span { font-size: 13px; line-height: 1.3; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-aw-foot {
  margin-top: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tags tags" "metric go";
  align-items: end; gap: 14px 10px;
}
.cr-aw-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 4px; }
.cr-aw-chip { height: 28px; padding: 0 11px; font-size: 12px; font-weight: 400; color: #3a3a3a; border-color: var(--hairline); }
.cr-aw-metric { grid-area: metric; display: flex; flex-direction: column; min-width: 0; min-height: 50px; justify-content: flex-end; }
.cr-aw-metric b { font-size: 44px; line-height: 1; letter-spacing: -0.045em; font-weight: 400; font-variant-numeric: tabular-nums; }
.cr-aw-metric.is-word b { font-size: 30px; letter-spacing: -0.035em; }
.cr-aw-metric span { margin-top: 6px; font-size: 13px; line-height: 1.25; color: var(--ink-cap); }
.cr-aw-go {
  grid-area: go; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--well); color: var(--ink);
  transition: background var(--dur-snap) ease, color var(--dur-snap) ease;
}
.cr-aw-go svg { width: 16px; height: 16px; }
.cr-aw-card:hover .cr-aw-go, .cr-aw-card:focus-visible .cr-aw-go { background: var(--blue); color: #fff; }

/* Tablet: two columns, filter on its own row */
@media (max-width: 1099px) {
  .cr-aw-sheet { inset: 24px; width: calc(100vw - 48px); height: calc(100vh - 48px); height: calc(100dvh - 48px); border-radius: 40px; }
  .cr-aw-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "titles close" "tabs tabs"; padding: 24px 24px 18px 28px; }
  .cr-aw-tabs { justify-self: start; }
  .cr-aw-scroll { padding: 2px 24px 24px; }
  .cr-aw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobile: full-screen sheet, one column */
@media (max-width: 700px) {
  .cr-aw-sheet { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .cr-aw-top { gap: 14px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 14px 20px; }
  .cr-aw-title { font-size: 34px; }
  .cr-aw-titles { gap: 8px 12px; }
  .cr-aw-count { height: 26px; padding: 0 10px; font-size: 12px; }
  .cr-aw-close { width: 44px; height: 44px; }
  .cr-aw-tabs { justify-self: stretch; height: 46px; }
  .cr-aw-tabs button { padding: 0 8px; }
  .cr-aw-scroll { padding: 2px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .cr-aw-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cr-aw-card { border-radius: 30px; }
  .cr-aw-media { border-radius: 22px; }
  .cr-aw-metric b { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-aw-tabpill, .cr-aw-card, .cr-aw-media img { transition: none; }
  .cr-aw-card:hover, .cr-aw-card:hover .cr-aw-media img { transform: none; }
}

/* ═════════════ Now Playing pill (Resonance) ═════════════
   Sits right of the Design Playground stack, bottom edge on the dock's baseline.
   Starts paused. While playing, JS writes the line from the audio clock and the bars
   from real levels; these classes only handle the jump, the marker pulse and the subline. */
.cr-hero .cr-corner--left { display: flex; align-items: flex-end; gap: 12px; }
.cr-np {
  --np-w: calc(272px * min(1.1, max(0.92, var(--cr-scale, 1))));
  position: relative; display: flex; align-items: center; gap: 4px;
  width: var(--np-w); height: 52px; padding: 5px 6px 5px 5px;
  border-radius: var(--radius-pill); color: #fff; cursor: pointer;
  background: var(--g-sheen), linear-gradient(rgba(60, 48, 60, 0.26), rgba(60, 48, 60, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(20, 10, 30, 0.10);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  transition: translate 420ms var(--ease-arrive), scale 240ms var(--ease-snap), box-shadow 420ms var(--ease-arrive), background 300ms ease;
  -webkit-tap-highlight-color: transparent;
}
.cr-np:hover {
  translate: 0 -3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(20, 10, 30, 0.18);
}
.cr-np:active { translate: 0 -1px; scale: 0.985; }
.cr-np-open {
  flex: 1 1 auto; min-width: 0; height: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 0 4px 0 0; border-radius: var(--radius-pill);
  color: inherit; text-align: left; cursor: pointer;
}
.cr-np-open:focus-visible, .cr-np-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cr-np-art {
  flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: #222; box-shadow: 0 2px 8px rgba(10, 6, 12, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.cr-np-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-np-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; text-shadow: 0 1px 3px rgba(20, 10, 20, 0.22); }
.cr-np-title { font-size: 14px; line-height: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-np-sub { position: relative; height: 15px; font-size: 12px; line-height: 15px; color: rgba(255, 255, 255, 0.8); }
.cr-np-sub > span { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cr-np-sub > span { transition: opacity 260ms ease; }
.cr-np-sub-b { opacity: 0; color: #fff; }
.cr-np.is-moment .cr-np-sub-a { opacity: 0; }
.cr-np.is-moment .cr-np-sub-b { opacity: 1; }
.cr-np-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #1db954; box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.22); }
.cr-np-track { position: relative; display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.24); }
.cr-np-fill { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.cr-np-mark {
  position: absolute; left: 30.77%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #1db954; box-shadow: 0 0 0 1.5px rgba(20, 12, 20, 0.35);
}
.cr-np-eq { flex: none; display: flex; align-items: flex-end; gap: 2px; width: 16px; height: 14px; margin-right: 2px; }
.cr-np-eq i { flex: 1; height: 100%; border-radius: 1px; background: #fff; transform-origin: 50% 100%; opacity: 0.92; }
.cr-np-eq i { transform: scaleY(0.22); transition: transform 240ms ease; }
.cr-np.is-playing .cr-np-eq i { transition: none; }
.cr-np.is-paused .cr-np-eq i { opacity: 0.7; }
.cr-np-play {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, 0.16); cursor: pointer;
  transition: background var(--dur-snap) ease, transform var(--dur-snap) var(--ease-snap);
}
.cr-np-play:hover { background: rgba(255, 255, 255, 0.28); }
.cr-np-play:active { transform: scale(0.92); }
.cr-np-play svg { width: 15px; height: 15px; }

@media (prefers-reduced-motion: no-preference) {
  /* the skip to the drop: the line glides instead of snapping */
  .cr-np.is-jumping .cr-np-fill { transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1); }
  .cr-np.is-pulse .cr-np-mark { animation: crNpMark 700ms var(--ease-snap, ease) 1; }
  /* no AnalyserNode: plain CSS bars, only while playing */
  .cr-np.is-eq-css.is-playing .cr-np-eq i { animation: crNpEq 900ms ease-in-out infinite alternate; }
  .cr-np.is-eq-css.is-playing .cr-np-eq i:nth-child(2) { animation-duration: 640ms; animation-delay: -200ms; }
  .cr-np.is-eq-css.is-playing .cr-np-eq i:nth-child(3) { animation-duration: 1080ms; animation-delay: -420ms; }
  .cr-np.is-eq-css.is-playing .cr-np-eq i:nth-child(4) { animation-duration: 760ms; animation-delay: -120ms; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-np .cr-np-eq i { animation: none !important; transform: scaleY(0.5) !important; }
  .cr-np-sub > span { transition: none; }
}
@keyframes crNpMark { 0% { transform: scale(1); } 35% { transform: scale(1.9); box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.35); } 100% { transform: scale(1); } }
@keyframes crNpEq { 0% { transform: scaleY(0.25); } 100% { transform: scaleY(1); } }

/* While the popup is open the corners and top bar step back like the All work sheet */
html.ga-np-open .cr-hero .cr-topbar, html.ga-np-open .cr-hero .cr-corner { opacity: 0.25; filter: blur(4px); }
/* dim in step with the popup morph instead of snapping */
.cr-hero .cr-topbar, .cr-hero .cr-corner { transition: opacity 520ms cubic-bezier(0.33, 1, 0.68, 1), filter 520ms cubic-bezier(0.33, 1, 0.68, 1); }
html.ga-np-open, html.ga-np-open body { overflow: hidden !important; }
html.ga-np-open .craft-switch, html.ga-np-open .ga-brand { opacity: 0; visibility: hidden; pointer-events: none; }

/* Tablet: the one-time wallpaper hint would sit on the pill, lift it */
@media (min-width: 701px) and (max-width: 1099px) { .cr-hero:has(.cr-np) .cr-wp-hint { bottom: 96px; } }

/* Mobile: the pill docks centred above the stack + dock bar, like a mini player above a tab bar */
@media (max-width: 700px) {
  .cr-hero .cr-corner--left { display: block; }
  .cr-hero .cr-corners:has(.cr-np) { margin-top: 90px; }
  .cr-hero .cr-np {
    --np-w: min(340px, calc(100vw - 32px));
    position: absolute; left: 50%; bottom: calc(100% + 10px);
    margin-left: calc(var(--np-w) / -2);
    height: 56px;
    /* cards scroll underneath, like a mini player over a list. The stack + dock bar is a
       backdrop root (it has its own backdrop-filter), so blur can't reach through here: go near-opaque. */
    background: var(--g-sheen), linear-gradient(rgba(40, 31, 42, 0.96), rgba(40, 31, 42, 0.97));
    -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 30px rgba(20, 10, 30, 0.22);
  }
  .cr-hero .cr-np:hover { translate: none; }
  .cr-hero .cr-np-art { width: 44px; height: 44px; }
  .cr-hero .cr-np-play { width: 42px; height: 42px; }
  .cr-hero:has(.cr-np) .cr-wp-hint { bottom: 170px; }
}

/* ── Resonance popup ── */
.cr-np-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
/* parked: closed, but the prototype inside keeps playing (the board card is its mini player) */
.cr-np-modal.is-parked { display: none; }
.cr-np-scrim {
  position: absolute; inset: 0; background: rgba(24, 16, 28, 0.26);
  -webkit-backdrop-filter: blur(6px) saturate(1.05); backdrop-filter: blur(6px) saturate(1.05);
}
/* layers the open/close morph adds to the sheet for its duration (see rsMorph) */
.cr-np-morph-tint { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; }
.cr-np-sheet > .cr-np-ghost { z-index: 7; pointer-events: none; transition: none; }
/* While the Resonance popup is up: the board dims on the same clock as the morph, the scrim's one
   backdrop blur replaces the per-card blur (cheaper per frame), and the card's own slot stays put
   so the popup can fold back into exactly where the card is. */
body:has(.cr-np-modal:not(.is-parked)) .cr-dim { transition: opacity 520ms cubic-bezier(0.33, 1, 0.68, 1), transform 560ms cubic-bezier(0.16, 1, 0.3, 1); }
body:has(.cr-np-modal:not(.is-parked)) .cr-dimmed .cr-dim { filter: none; }
body:has(.cr-np-modal:not(.is-parked)) .cr-dimmed .cr-dim:has(> .cr-rp) { opacity: 1; transform: none; }
.cr-np-sheet {
  --np-phone-h: min(680px, calc(100vh - 176px));
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 380px); align-items: center; gap: 56px;
  max-width: calc(100vw - 64px); max-height: calc(100vh - 64px);
  padding: 32px 64px 32px 40px;
  border-radius: var(--radius-sheet); color: #fff; overflow: hidden;
  background: var(--g-sheen), linear-gradient(rgba(44, 34, 44, 0.46), rgba(44, 34, 44, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 24px 60px rgba(20, 10, 30, 0.22);
  -webkit-backdrop-filter: blur(34px) saturate(1.5); backdrop-filter: blur(34px) saturate(1.5);
}
.cr-np-close { position: absolute; top: 22px; right: 22px; z-index: 2; width: 50px; height: 50px; }
.cr-np-close:focus-visible { outline-color: #fff; }
.cr-np-device { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; }
.cr-np-phone {
  position: relative; height: var(--np-phone-h); aspect-ratio: 1294 / 2656; flex: none;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.32));
}
.cr-np-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; user-select: none; }
.cr-np-screen {
  position: absolute; top: 1.88%; right: 4.48%; bottom: 1.88%; left: 4.4%; z-index: 1;
  overflow: hidden; border-radius: 11.5% / 5.4%; background: #000;
  /* own layer, so the rounded clip holds while the app zooms in */
  isolation: isolate; transform: translateZ(0);
}
/* iOS home screen (Figma export); the whole screen is the Spotify button, as on the case page */
.cr-np-home {
  position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0;
  background: #000; cursor: pointer; overflow: hidden; border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}
.cr-np-home img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; user-select: none; }
.cr-np-home:focus-visible { outline: 2px solid #1db954; outline-offset: -3px; }
.cr-np-home:active img { filter: brightness(0.92); }
.cr-np-screen[data-phase="app"] .cr-np-home { visibility: hidden; transition: visibility 0s linear 480ms; }
/* soft ring on the Spotify icon so the first tap is obvious */
.cr-np-home-ring {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 24%; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.85), 0 0 18px rgba(30, 215, 96, 0.45);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .cr-np-home-ring { animation: crNpRing 2.4s ease-out 900ms infinite; }
}
@media (prefers-reduced-motion: reduce) { .cr-np-home-ring { opacity: 0.8; } }
@keyframes crNpRing {
  0% { opacity: 0; scale: 0.96; }
  20% { opacity: 1; scale: 1.04; }
  60%, 100% { opacity: 0; scale: 1.2; }
}
/* The app: opens out of the icon (origin set inline), black like the Spotify splash while it loads */
.cr-np-app { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #000; }
.cr-np-app iframe {
  position: absolute; top: 0; left: 0; border: 0; background: #000;
  transform-origin: 0 0; opacity: 0; transition: opacity 260ms ease;
}
.cr-np-screen[data-status="ready"] .cr-np-app iframe { opacity: 1; }
.cr-np-state {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 34px; padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 12px; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
/* only say "opening" if it takes a moment */
@media (prefers-reduced-motion: no-preference) { .cr-np-state.is-loading { animation: crNpFadeIn 240ms ease 900ms backwards; } }
@keyframes crNpFadeIn { from { opacity: 0; } }
.cr-np-state.is-failed {
  left: 10%; right: 10%; bottom: auto; top: 50%; transform: translateY(-50%); height: auto; flex-direction: column; gap: 12px;
  padding: 16px 12px; border-radius: 22px; white-space: normal; text-align: center; font-size: 13px; line-height: 1.3;
}
.cr-np-state p { margin: 0; }
.cr-np-state-link {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: var(--radius-pill); background: #fff; color: #000; font-size: 13px; font-weight: 500; text-decoration: none;
}
.cr-np-state-link svg { width: 13px; height: 13px; }
.cr-np-state-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cr-np-spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@media (prefers-reduced-motion: no-preference) { .cr-np-spin { animation: crNpSpin 900ms linear infinite; } }
@keyframes crNpSpin { to { transform: rotate(360deg); } }
/* Under the phone: hint, then Home screen / Restart */
.cr-np-phonebar { display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; flex: none; }
.cr-np-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.cr-np-ctl {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 11px; margin: 0;
  border-radius: var(--radius-pill); font: inherit; font-size: 13px; font-weight: 500; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.26);
  transition: background var(--dur-snap) ease, transform var(--dur-snap) var(--ease-snap);
}
.cr-np-ctl svg { width: 15px; height: 15px; }
.cr-np-ctl:hover { background: rgba(255, 255, 255, 0.22); }
.cr-np-ctl:active { transform: scale(0.96); }
.cr-np-ctl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.cr-np-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.cr-np-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  height: 30px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 13px; color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24);
}
.cr-np-heading { margin: 4px 0 0; font-size: 46px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 400; }
.cr-np-desc { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; color: #fff; }
.cr-np-note { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.cr-np-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cr-np-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px;
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background var(--dur-snap) ease, transform var(--dur-snap) var(--ease-snap);
}
.cr-np-btn:hover { background: rgba(255, 255, 255, 0.22); }
.cr-np-btn--primary { background: #fff; color: #000; border-color: #fff; }
.cr-np-btn--primary:hover { background: #f0f0f0; }
.cr-np-btn svg { width: 14px; height: 14px; }
.cr-np-btn:active { transform: scale(0.97); }
.cr-np-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 1099px) {
  .cr-np-sheet { --np-phone-h: min(640px, calc(100vh - 160px)); grid-template-columns: auto minmax(0, 280px); gap: 36px; padding: 28px 56px 28px 32px; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); }
  .cr-np-heading { font-size: 40px; }
  .cr-np-desc { font-size: 16px; }
}
/* Portrait tablets: phone over copy */
@media (min-width: 701px) and (max-width: 1099px) and (orientation: portrait) {
  .cr-np-sheet { --np-phone-h: min(620px, calc(100vh - 518px)); grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; padding: 36px 48px 36px; width: min(560px, calc(100vw - 48px)); }
  .cr-np-copy { align-items: center; text-align: center; }
  .cr-np-actions { justify-content: center; }
}
/* Mobile: full-screen sheet, phone scaled to fit between the title and the buttons */
@media (max-width: 700px) {
  .cr-np-sheet {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 0; border: 0;
  }
  .cr-np-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; }
  .cr-np-copy { display: contents; }
  .cr-np-eyebrow { order: 1; height: 28px; font-size: 12px; }
  .cr-np-heading { order: 2; margin: -4px 0 0; font-size: 34px; }
  .cr-np-desc { order: 3; font-size: 15px; margin-top: -6px; }
  .cr-np-note { display: none; }
  .cr-np-device { order: 4; flex: 1 1 0; min-height: 0; width: 100%; gap: 10px; }
  .cr-np-phone { flex: 1 1 0; min-height: 0; height: auto; max-height: 640px; max-width: 100%; }
  .cr-np-phonebar { height: 32px; }
  .cr-np-ctl { height: 32px; }
  .cr-np-actions { order: 5; width: 100%; margin-top: 0; flex-wrap: nowrap; }
  .cr-np-btn { flex: 1 1 0; justify-content: center; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-np, .cr-np-play, .cr-np-btn, .cr-np-ctl, .cr-np-app iframe { transition: none; }
  .cr-np:hover, .cr-np:active { translate: none; scale: none; }
}

/* ═════════════ Search button: visible at every width ═════════════
   Search is a primary entry now, so the round top-bar button never steps out.
   Room comes from the notification pill (its thumbnail and "Open" chip go first). */
@media (min-width: 1100px) and (max-width: 1260px) {
  .cr-hero .cr-topbar-right .cr-iconbtn { display: inline-grid; }
  .cr-hero .cr-notice .cr-chip--sub { display: none; }
}
@media (min-width: 701px) and (max-width: 860px) {
  .cr-hero .cr-topbar-right .cr-iconbtn { display: inline-grid; }
}
/* Phones: Home/Projects stays out (the board is the home), search sits in the header
   next to the Craft switch, which is fixed at top right */
@media (max-width: 700px) {
  .cr-hero .cr-topbar-right { display: flex; margin-left: auto; margin-right: 100px; gap: 0; }
  .cr-hero .cr-topbar-right .cr-seg { display: none; }
  .cr-hero .cr-topbar-right .cr-iconbtn { display: inline-grid; width: 44px; height: 44px; }
}
@media (max-width: 359px) {
  .cr-hero .cr-clock { margin-left: 10px; font-size: 28px; }
  .cr-hero .cr-topbar-right { margin-right: 92px; }
}

/* ═════════════ Board v2: the mindset "Dashboard" screen ═════════════
   5 × 3 grid of 160px cells, 23px gutters. Values are the reference screenshot's px / 1.258
   (it shows this canvas at 1610 × 1052). Cards keep their components; this only places and sizes them. */
.cr-board .cr-grid { grid-template-columns: repeat(5, var(--widget)); grid-template-rows: repeat(3, var(--widget)); grid-auto-rows: var(--widget); }
.cr-slot { display: grid; min-width: 0; min-height: 0; }
.cr-slot > * { grid-area: 1 / 1; }
.cr-slot--cases { grid-area: 1 / 1 / 3 / 3; }
.cr-slot--exp { grid-area: 1 / 3; }
.cr-slot--date { grid-area: 1 / 4; }
.cr-slot--orb { grid-area: 1 / 5; }
.cr-slot--pg { grid-area: 2 / 3; }
.cr-slot--chat { grid-area: 2 / 4 / 4 / 6; }
.cr-slot--np { grid-area: 3 / 1; }
.cr-slot--hello { grid-area: 3 / 2; }
.cr-board .cr-slot > .cr-card { width: 100%; height: 100%; border-radius: 32px; }
.cr-board .cr-slot--cases > .cr-card, .cr-board .cr-slot--chat > .cr-card { border-radius: 37px; }
.cr-board .cr-slot--np > .cr-card, .cr-board .cr-slot--hello > .cr-card { border-radius: 32px; }

/* ── Case studies ("Privacy"): 2 × 2 ── */
.cr-board .cr-list { display: block; padding: 0 8px; }
.cr-board .cr-list-head { height: 79px; margin: 0; padding: 21px 13px 0 20px; align-items: flex-start; }
.cr-board .cr-list-head .cr-t-title { margin-top: 9px; font-size: 17px; line-height: 1; letter-spacing: -0.02em; }
.cr-board .cr-list-head .cr-chip--outline { height: 44px; min-width: 67px; justify-content: center; padding: 0 15px; font-size: 12px; font-weight: 400; }
.cr-board .cr-list .cr-row { height: 86px; padding: 0 12px 0 13px; grid-template-columns: 57px minmax(0, 1fr) auto; gap: 15px; border-radius: 24px; }
.cr-board .cr-list .cr-row + .cr-row::before { left: 13px; right: 6px; }
.cr-board .cr-row-av, .cr-board .cr-row-av .cr-pwell, .cr-board .cr-row-thumb { width: 57px; height: 57px; }
.cr-board .cr-row-av .cr-pwell svg { width: 24px; height: 24px; }
.cr-board .cr-list .cr-row-text b { font-size: 17.5px; line-height: 1.2; }
.cr-board .cr-list .cr-row-text span { margin-top: 3px; font-size: 12px; }
.cr-board .cr-list .cr-row .cr-iconbtn { width: 57px; height: 57px; }
.cr-board .cr-list .cr-row .cr-iconbtn svg { width: 16px; height: 16px; }
.cr-board .cr-list .cr-row-go { width: 57px; height: 57px; }
.cr-board .cr-list .cr-row-go svg { width: 16px; height: 16px; }

/* ── Experience ("Data") ── */
.cr-mstat { position: relative; display: block; }
.cr-mstat-head { position: absolute; left: 17px; right: 15px; top: 17px; height: 18px; display: flex; justify-content: space-between; align-items: center; }
.cr-mstat-head :is(h2, h3) { margin: 0; font-size: 13.5px; font-weight: 400; letter-spacing: -0.015em; white-space: nowrap; }
.cr-mstat-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-link); white-space: nowrap; }
.cr-mstat-link svg { width: 8px; height: 8px; color: var(--ink); }
.cr-mstat-link:hover { color: var(--ink); }
.cr-mstat-value { position: absolute; left: 17px; top: 71px; margin: 0; font-size: 22px; line-height: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cr-mstat-bars { position: absolute; left: 17px; right: 17px; top: 108px; height: 5px; display: flex; gap: 2.5px; }
.cr-mstat-bars i { display: block; height: 100%; border-radius: 3px; transform-origin: left center; }
.cr-mstat-keys { position: absolute; left: 17px; right: 15px; top: 126px; margin: 0; display: flex; justify-content: space-between; gap: 6px; font-size: 11px; line-height: 16px; color: var(--ink-2); white-space: nowrap; }
.cr-mstat-keys span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.cr-mstat-keys i { flex: none; width: 4px; height: 4px; border-radius: 50%; }

/* ── Date ── */
.cr-board .cr-agenda { display: block; padding: 0; }
.cr-board .cr-agenda-top { position: absolute; left: 17px; top: 19px; }
.cr-board .cr-agenda-meta { margin: 0; font-size: 12px; line-height: 16px; letter-spacing: -0.01em; }
.cr-board .cr-agenda-body { position: absolute; left: 17px; right: 8px; top: 59px; margin: 0; }
.cr-board .cr-agenda-body p { font-size: 21px; line-height: 23px; letter-spacing: -0.025em; }
.cr-board .cr-agenda-body p + p { margin-top: 0; font-size: 21px; color: #fff; }
.cr-board .cr-agenda-label { position: absolute; left: 17px; right: 8px; top: 126px; font-size: 12px; line-height: 16px; }

/* ── Avatar orb: the white button sits on the circle's left edge ── */
.cr-board .cr-orb-edit { left: 0; top: 13px; }
.cr-board .cr-orb-edit .cr-iconbtn { width: 44px; height: 44px; }
.cr-board .cr-orb-edit .cr-iconbtn svg { width: 19px; height: 19px; }

/* ── Design Playground ("Core Product Team") ── */
.cr-team { position: relative; display: block; padding: 0; text-align: left; cursor: pointer; color: var(--ink); transition: box-shadow 240ms ease; }
/* Small grey label on top, what's inside as the main line (matches the Experience card's quiet header) */
.cr-team-title { position: absolute; left: 17px; right: 14px; top: 18px; font-size: 11.5px; line-height: 14px; color: var(--ink-2); white-space: nowrap; }
.cr-team-glyph { position: absolute; right: 20px; top: 19px; width: 14px; height: 14px; color: #8c8c8c; }
.cr-team-sub { position: absolute; left: 17px; right: 12px; top: 36px; font-size: 15px; line-height: 17.5px; letter-spacing: -0.015em; color: var(--ink); }
.cr-team-foot { position: absolute; left: 17px; right: 17px; top: 99px; height: 43px; display: flex; align-items: center; justify-content: space-between; }
.cr-team-faces { display: flex; }
.cr-team-faces img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--well); box-shadow: 0 0 0 2px #fff; transition: margin 420ms var(--ease-arrive); }
.cr-team-faces img + img { margin-left: -22px; }
.cr-team:hover .cr-team-faces img + img, .cr-team:focus-visible .cr-team-faces img + img { margin-left: -16px; }
.cr-team-count { flex: none; width: 43px; height: 43px; border-radius: 50%; background: var(--well); display: grid; place-items: center; font-size: 12px; }
.cr-team.is-over { box-shadow: inset 0 0 0 2px var(--blue); }

/* ── Contextual Chat ("Growth Team"): 2 × 2 ── */
.cr-board .cr-preview { display: block; }
.cr-board .cr-preview-chips { position: absolute; left: 25px; top: 25px; padding: 0; z-index: 3; }
.cr-board .cr-preview .cr-chip { height: 41px; padding: 0 17px; font-size: 12px; }
.cr-board .cr-preview-shot { position: absolute; left: 0; right: 0; top: 0; height: 246px; overflow: visible; }
.cr-board .cr-strip-slide { top: 89px; height: 115px; }
.cr-board .cr-strip-slide--left { left: 0; width: 49px; }
.cr-board .cr-strip-slide--main { left: 66px; width: 206px; }
.cr-board .cr-strip-slide--right { left: 288px; width: 72px; }
.cr-board .cr-strip-label { top: -12px; font-size: 9px; }
.cr-board .cr-preview .cr-cursor svg { width: 15px; height: 15px; }
.cr-board .cr-preview .cr-cursor-av { left: 4px; top: 14px; width: 29px; height: 29px; font-size: 12px; }
.cr-board .cr-preview .cr-cursor .cr-cursor-tag { left: 37px; top: 14px; height: 29px; padding: 0 11px; font-size: 13.5px; font-weight: 400; }
.cr-board .cr-preview-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 97px; padding: 0 21px 13px; grid-template-columns: 57px minmax(0, 1fr) 57px; gap: 13px; }
.cr-board .cr-preview-foot .cr-pwell { width: 57px; height: 57px; }
.cr-board .cr-preview-foot .cr-pwell svg { width: 24px; height: 24px; }
.cr-board .cr-preview-foot .cr-row-text b { font-size: 17.5px; }
.cr-board .cr-preview-foot .cr-row-text span { margin-top: 3px; font-size: 12px; }
.cr-board .cr-preview-foot .cr-chip--count { width: 57px; height: 57px; }
.cr-preview-go { transition: background var(--dur-snap) ease, color var(--dur-snap) ease; }
.cr-preview-go:hover, .cr-preview-go:focus-visible { background: var(--blue); color: #fff; }

/* ── Ask the assistant ("Create a room") ── */
.cr-action { position: relative; display: block; padding: 0; cursor: pointer; color: #fff; }
.cr-action-icon { position: absolute; left: 50%; top: 60px; width: 16px; height: 16px; margin-left: -8px; transition: transform 500ms var(--ease-pop); }
.cr-action-label { position: absolute; left: 8px; right: 8px; top: 86px; font-size: 13.5px; line-height: 18px; letter-spacing: -0.01em; text-align: center; color: rgba(255, 255, 255, 0.8); }
.cr-action:hover .cr-action-icon, .cr-action:focus-visible .cr-action-icon { transform: rotate(90deg) scale(1.1); }
.cr-action:focus-visible, .cr-plusbtn:focus-visible { outline-color: #fff; }
.cr-glass.cr-action { background: var(--g-create); }
.cr-action, .cr-plusbtn {
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.10), inset 0 0 24px rgba(255, 255, 255, 0.06), 0 10px 30px rgba(20, 10, 30, 0.10);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  text-shadow: 0 1px 3px rgba(20, 10, 20, 0.22);
}

/* ── Say hello ("Happy Birthday!") ── */
.cr-hello { position: relative; padding: 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.cr-hello-track { position: absolute; inset: 0; display: flex; transition: transform 560ms var(--ease-arrive); }
.cr-hello-slide { position: relative; flex: 0 0 100%; height: 100%; transition: opacity 400ms ease; }
.cr-hello-slide:not(.is-on) { opacity: 0.35; }
.cr-hello .cr-hello-icon { position: absolute; left: 17px; top: 17px; width: 57px; height: 57px; background: var(--well); color: #3d3d3d; }
.cr-hello .cr-hello-icon svg { width: 24px; height: 24px; }
.cr-hello-go { position: absolute; right: 17px; top: 17px; width: 57px; height: 57px; border-radius: 50%; display: grid; place-items: center; transition: transform var(--dur-snap) var(--ease-snap), background var(--dur-snap) ease; }
.cr-hello-go svg { width: 20px; height: 20px; }
.cr-hello-go:active { transform: scale(0.94); }
.cr-hello-go--orange { background: #fdeeea; color: #e0582c; }
.cr-hello-go--orange:hover { background: #fbe1d8; }
.cr-hello-go--blue { background: #eef1fe; color: var(--blue); }
.cr-hello-go--blue:hover { background: #e0e6fd; }
.cr-hello-go--plain { background: var(--well); color: #222; }
.cr-hello-go--plain:hover { background: #ececec; }
.cr-hello-title { position: absolute; left: 8px; right: 8px; top: 81px; text-align: center; font-size: 17.5px; line-height: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.cr-hello-sub { position: absolute; left: 8px; right: 8px; top: 103px; text-align: center; font-size: 12px; line-height: 14px; color: var(--ink-2); }
.cr-hello-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; }
.cr-hello-dot { width: 13px; height: 13px; display: grid; place-items: center; cursor: pointer; }
.cr-hello-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #d6d6d6; transition: background 240ms ease, transform 240ms ease; }
.cr-hello-dot.is-on::before { background: #000; transform: scale(1.3); }
.cr-hello-dot:hover::before { background: #9a9a9a; }
.cr-hello-dot.is-on:hover::before { background: #000; }
.cr .cr-hello-dot:focus-visible { outline-offset: 0; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .cr-hello-track { transition: none; } }

/* ── "+" All work, bottom centre on the dock's baseline ── */
.cr-corner--center { left: 50%; transform: translateX(-50%); }
.cr-plusbtn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; background: var(--g-dock); transition: transform 400ms var(--ease-pop), background 240ms ease; }
.cr-plusbtn svg { width: 20px; height: 20px; }
.cr-plusbtn:hover { transform: scale(1.06); background: rgba(60, 48, 60, 0.34); }
.cr-plusbtn:active { transform: scale(0.95); }
@media (min-width: 701px) { .cr-hero .cr-wp-hint { bottom: 96px; } }

/* ── Mobile: the bottom bar holds stack | + | dock; cards keep their desktop px ── */
@media (max-width: 700px) {
  .cr-hero .cr-board .cr-slot > .cr-card { width: 100%; height: auto; aspect-ratio: 1; }
  .cr-hero .cr-board .cr-slot--cases > .cr-card, .cr-hero .cr-board .cr-slot--chat > .cr-card { aspect-ratio: auto; height: 343px; }
  .cr-hero .cr-board .cr-slot--hello > .cr-card { aspect-ratio: auto; height: 172px; }
  .cr-hero .cr-slot--orb { justify-items: center; }
  .cr-hero .cr-corner--center { transform: none; padding-right: 6px; border-right: 1px solid rgba(255, 255, 255, 0.28); }
  .cr-hero .cr-plusbtn { width: 44px; height: 44px; border-radius: 14px; border: 0; box-shadow: none; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cr-hello-dot { width: 22px; height: 22px; }
  .cr-hello-dots { bottom: 6px; }
  /* Case rows: smaller go button and gap so long titles like White Label Setup fit */
  .cr-board .cr-list .cr-row { gap: 12px; padding: 0 8px 0 10px; grid-template-columns: 52px minmax(0, 1fr) auto; }
  .cr-board .cr-row-av, .cr-board .cr-row-av .cr-pwell, .cr-board .cr-row-thumb { width: 52px; height: 52px; }
  .cr-board .cr-list .cr-row .cr-iconbtn, .cr-board .cr-list .cr-row-go { width: 46px; height: 46px; }
  .cr-board .cr-list .cr-row-text b { font-size: 16.5px; }
}

/* ═════════════ Resonance widget card (board slot) ═════════════
   An iOS music widget: soft tint from the album art (--rp-tint, set by JS), art top-left, round
   mark top-right, title + line bottom-left, round white play bottom-right, progress on the bottom
   edge. Sizes are in container units so the same card fits every board size. JS writes the line
   (.cr-rp-fill) and the waveform bars; these classes only style the states. */
.cr-rp {
  --rp-tint: #467ca2;
  --rp-pad: 9.5cqw;
  container-type: size;
  position: relative; isolation: isolate; color: #fff; cursor: pointer;
  background: var(--rp-tint);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, 0.08)),
    var(--rp-tint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px rgba(16, 28, 44, 0.16);
  translate: 0 0; scale: 1;
  transition:
    translate 380ms cubic-bezier(0.16, 1, 0.3, 1),
    scale 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 600ms ease;
  -webkit-tap-highlight-color: transparent;
}
.cr-rp:hover {
  translate: 0 -4px; scale: 1.025;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 22px 44px rgba(16, 28, 44, 0.26);
}
.cr-rp:active:not(:has(.cr-rp-play:active)) {
  translate: 0 -1px; scale: 0.975;
  transition-duration: 160ms, 160ms, 160ms, 600ms;
}
/* The surface: a flat version of the project orbs' grainy swirl (orb.js), in the cover's tint.
   The plain tint above stays underneath until the first frame, and if WebGL is missing. */
.cr-rp-orb { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.cr-rp-orb canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.cr-rp-orb.is-lit canvas { opacity: 1; }
.cr-rp-orb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 40%, rgba(8, 16, 28, 0.2)); }
.cr-rp:has(.cr-rp-open:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.cr-rp-open { position: absolute; inset: 0; z-index: 1; padding: 0; border-radius: inherit; background: none; cursor: pointer; }
.cr-rp-open:focus-visible { outline: none; }

.cr-rp-art {
  position: absolute; left: var(--rp-pad); top: var(--rp-pad); pointer-events: none;
  width: 50cqw; height: 50cqw; border-radius: 7.5cqw; overflow: hidden; background: #1a1a1a;
  box-shadow: 0 6px 16px rgba(8, 18, 30, 0.26);
  transition: scale 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cr-rp:hover .cr-rp-art { scale: 1.03; }
.cr-rp-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* live waveform on the art, only while playing */
.cr-rp-art::after {
  content: ""; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
  opacity: 0; transition: opacity 360ms ease;
}
.cr-rp-wave {
  position: absolute; z-index: 1; left: 10%; right: 10%; bottom: 9%; height: 22%;
  display: flex; align-items: center; justify-content: space-between;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 100%); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 100%);
  opacity: 0; transition: opacity 360ms ease;
}
.cr-rp-wave i { flex: none; width: 2px; height: 100%; border-radius: 2px; background: #fff; transform: scaleY(0.12); }
.cr-rp.is-playing .cr-rp-art::after, .cr-rp.is-playing .cr-rp-wave { opacity: 1; }
.cr-rp.is-paused .cr-rp-wave i { transform: scaleY(0.12) !important; transition: transform 300ms ease; }

.cr-rp-mark {
  position: absolute; top: var(--rp-pad); right: var(--rp-pad); pointer-events: none;
  display: grid; place-items: center; width: 16cqw; height: 16cqw; border-radius: 50%;
  background: #fff; color: var(--rp-tint);
  box-shadow: 0 2px 6px rgba(8, 18, 30, 0.16);
  transition: color 600ms ease;
}
.cr-rp-mark svg { width: 70%; height: 70%; }

.cr-rp-meta {
  position: absolute; left: var(--rp-pad); right: 37cqw; bottom: calc(var(--rp-pad) + 1.5cqw);
  display: flex; flex-direction: column; min-width: 0; pointer-events: none;
}
.cr-rp-title { font-size: 9.3cqw; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-rp .cr-rp-sub { height: 1.3em; margin-top: 0.5cqw; font-size: 6.4cqw; line-height: 1.3; color: rgba(222, 236, 247, 0.8); }
.cr-rp .cr-rp-sub > span { max-width: 100%; }
.cr-rp .cr-rp-sub > span { transition: opacity 300ms ease, translate 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.cr-rp .cr-np-sub-b { translate: 0 30%; }
.cr-rp .cr-np-sub-b { color: #fff; }
.cr-rp.is-moment .cr-np-sub-a { opacity: 0; translate: 0 -30%; }
/* mini player mode (the prototype's song): artist names run long, so cut them cleanly */
.cr-rp.is-proto .cr-np-sub-a { display: block; right: 0; overflow: hidden; text-overflow: ellipsis; }
.cr-rp.is-proto.is-loading .cr-rp-play { opacity: 0.75; }
.cr-rp.is-moment .cr-np-sub-b { opacity: 1; translate: 0 0; }

.cr-rp-play {
  position: absolute; z-index: 2; right: var(--rp-pad); bottom: calc(var(--rp-pad) - 1cqw);
  display: grid; place-items: center; width: 28cqw; height: 28cqw; padding: 0; border-radius: 50%;
  background: #fff; color: var(--rp-tint); cursor: pointer;
  box-shadow: 0 6px 16px rgba(8, 18, 30, 0.22);
  transition: scale 340ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 340ms cubic-bezier(0.16, 1, 0.3, 1), color 600ms ease;
  -webkit-tap-highlight-color: transparent;
}
.cr-rp-play:hover { scale: 1.06; box-shadow: 0 10px 22px rgba(8, 18, 30, 0.28); }
.cr-rp-play:active { scale: 0.9; transition-duration: 140ms; }
.cr-rp-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cr-rp-play svg { width: 46%; height: 46%; overflow: visible; }
/* play <-> pause: both glyphs mounted, crossfade with a quarter turn and a scale */
.cr-rp-play path {
  transform-box: fill-box; transform-origin: 50% 50%;
  transition: opacity 220ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cr-rp-g-play { translate: 1px 0; }
.cr-rp-g-pause { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.cr-rp.is-playing .cr-rp-g-play { opacity: 0; transform: rotate(90deg) scale(0.4); }
.cr-rp.is-playing .cr-rp-g-pause { opacity: 1; transform: none; }

/* progress along the bottom edge; the drop is a faint tick */
.cr-rp-track { position: absolute; left: 0; right: 0; bottom: 0; height: 2.2cqw; min-height: 3px; background: rgba(255, 255, 255, 0.2); pointer-events: none; }
.cr-rp-fill { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.cr-rp-drop { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .cr-rp.is-jumping .cr-rp-fill { transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1); }
  .cr-rp.is-pulse .cr-rp-drop { animation: crRpDrop 700ms cubic-bezier(0.16, 1, 0.3, 1) 1; }
  .cr-rp.is-eq-css.is-playing .cr-rp-wave i { animation: crNpEq 900ms ease-in-out infinite alternate; }
  .cr-rp.is-eq-css.is-playing .cr-rp-wave i:nth-child(3n) { animation-duration: 640ms; animation-delay: -200ms; }
  .cr-rp.is-eq-css.is-playing .cr-rp-wave i:nth-child(3n+1) { animation-duration: 1080ms; animation-delay: -420ms; }
}
@keyframes crRpDrop { 0% { background: #fff; scale: 1 1; } 35% { background: #fff; scale: 2.5 2.4; } 100% { scale: 1 1; } }
@media (prefers-reduced-motion: reduce) {
  .cr-rp, .cr-rp-art, .cr-rp-play, .cr-rp-play path, .cr-rp .cr-rp-sub > span { transition: none; }
  .cr-rp:hover, .cr-rp:active, .cr-rp:hover .cr-rp-art { translate: none; scale: none; }
  .cr-rp-wave { display: none; }
}
/* Portrait tablet: the slot is two cells wide, so art | text | play in one row */
.cr-hero[data-cr-cols="2"] .cr-rp { --rp-pad: 9.5cqh; }
.cr-hero[data-cr-cols="2"] .cr-rp-art { width: 62cqh; height: 62cqh; top: 50%; translate: 0 -50%; border-radius: 9cqh; }
.cr-hero[data-cr-cols="2"] .cr-rp-meta { left: calc(var(--rp-pad) + 62cqh + 6cqh); right: calc(var(--rp-pad) + 34cqh); top: 50%; bottom: auto; translate: 0 -50%; }
.cr-hero[data-cr-cols="2"] .cr-rp-title { font-size: 12cqh; }
.cr-hero[data-cr-cols="2"] .cr-rp .cr-rp-sub { font-size: 9.5cqh; }
.cr-hero[data-cr-cols="2"] .cr-rp-mark { width: 15cqh; height: 15cqh; }
.cr-hero[data-cr-cols="2"] .cr-rp-play { width: 30cqh; height: 30cqh; top: 50%; bottom: auto; translate: 0 -50%; right: calc(var(--rp-pad) + 4cqh); }
.cr-hero[data-cr-cols="2"] .cr-rp-track { height: 2.2cqh; }

/* ═════════════ Contextual Chat card: the assistant panel itself ═════════════ */
.cr-pclip {
  position: absolute; left: 24px; right: 24px; top: 84px; aspect-ratio: 1376 / 652;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(40, 30, 60, 0.07), 0 10px 26px rgba(50, 40, 80, 0.13), 0 2px 6px rgba(50, 40, 80, 0.06);
  transition: transform 520ms var(--ease-arrive), box-shadow 520ms var(--ease-arrive);
}
.cr-pclip img, .cr-pclip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.cr-pclip video { opacity: 0; transition: opacity 420ms ease; }
.cr-pclip.is-live video { opacity: 1; }
.cr-preview:hover .cr-pclip { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(40, 30, 60, 0.07), 0 16px 34px rgba(50, 40, 80, 0.18), 0 2px 6px rgba(50, 40, 80, 0.06); }
.cr-preview-shot[data-clip] .cr-cursor { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .cr-pclip, .cr-pclip video { transition: none; } .cr-preview:hover .cr-pclip { transform: none; } }

/* ═════════════ Design notes pill (Craft.PhilosophyPill) ═════════════
   Replaces the "Latest case study" notice: one idea at a time, the ring fills, the next idea rises in.
   The text area gets an explicit width/height from JS (measured off .cr-philo-measure), so the pill eases
   between sizes. --philo-max caps the text width per layout so the pill never reaches the tabs. */
.cr-philo {
  --philo-max: calc(614px * var(--cr-scale, 1) - 314px);
  height: auto; min-height: 50px; padding-top: 6px; padding-bottom: 6px;
  transform-origin: 50% 50%;
}
.cr-philo .cr-philo-mark {
  position: relative; flex-shrink: 0; width: 30px; height: 30px; margin-left: 9px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; line-height: 1;
  transition: background-color 420ms ease, color 420ms ease;
}
.cr-philo-mark[data-tone="blue"] { background: rgba(43, 85, 246, 0.11); color: var(--blue); }
.cr-philo-mark[data-tone="orange"] { background: rgba(232, 100, 44, 0.13); color: #c4501a; }
.cr-philo-mark[data-tone="ink"] { background: #1f1d22; color: #fff; }
.cr-philo-mono, .cr-philo-glyph { animation: crPhiloMark 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.cr-philo-glyph { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cr-philo-glyph path[d*="L12"] { fill: currentColor; stroke-width: 1.2; }
.cr-philo-stage {
  position: relative; display: block; flex-shrink: 0; margin: 0 10px; min-width: 0; max-width: var(--philo-max);
  overflow: hidden;
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1), height 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cr-philo-item, .cr-philo-measure { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.cr-philo-item { position: absolute; left: 0; top: 0; }
.cr-philo-measure {
  position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none;
  width: max-content; max-width: var(--philo-max);
}
.cr-philo-idea {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 14px; line-height: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  overflow-wrap: anywhere; text-wrap: balance;
}
.cr-philo-credit {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; line-height: 15px; color: var(--ink-2);
}
.cr-philo-item.is-in { animation: crPhiloIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.cr-philo-item.is-out { animation: crPhiloOut 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.cr-philo-toggle {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 0; background: transparent; cursor: pointer; color: inherit;
}
.cr-philo-toggle:focus-visible { outline: none; }
.cr-philo:has(.cr-philo-toggle:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.cr-philo .cr-ring circle { transition: opacity 240ms ease; }
.cr-philo.is-paused .cr-ring circle { opacity: 0.45; }
.cr-philo.is-closing { pointer-events: none; animation: crPhiloClose 360ms cubic-bezier(0.7, 0, 0.84, 0) both; }
.cr-philo.is-closing .cr-philo-stage { width: 0 !important; transition-duration: 360ms; }
@keyframes crPhiloIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes crPhiloOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px); } }
@keyframes crPhiloMark { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes crPhiloClose { to { opacity: 0; transform: translateY(-6px) scale(0.92); filter: blur(3px); } }

/* Short desktop screens (flow fit) and the 1100-1260 squeeze: the mark and the book title step out */
@media (min-width: 1100px) { .cr-hero[data-cr-fit] .cr-philo { --philo-max: 300px; } }
@media (min-width: 1100px) and (max-width: 1260px) {
  .cr-hero .cr-philo { --philo-max: calc(614px * var(--cr-scale, 1) - 275px); }
  .cr-hero .cr-philo .cr-philo-mark { display: none; }
  .cr-hero .cr-philo .cr-philo-work { display: none; }
}
/* Tablet: the pill has its own centred row */
@media (min-width: 701px) and (max-width: 1099px) { .cr-hero .cr-philo { --philo-max: 400px; } }
/* Phones: full width under the top row; the text area fills it, only its height animates */
@media (max-width: 700px) {
  .cr-hero .cr-philo { --philo-max: calc(min(420px, 100vw - 32px) - 117px); height: auto; min-height: 56px; }
  .cr-hero .cr-philo .cr-philo-stage { flex: 1 1 auto; width: auto !important; }
  .cr-hero .cr-philo .cr-philo-item { width: 100% !important; }
  .cr-hero .cr-philo .cr-notice-close { margin-left: auto; }
}
@media (max-width: 480px) { .cr-hero .cr-philo .cr-philo-work { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cr-philo-stage { transition: none; }
  .cr-philo-item.is-in { animation: crPhiloFade 420ms ease both; }
  .cr-philo-item.is-out { animation: crPhiloFade 420ms ease reverse both; }
  .cr-philo-mono, .cr-philo-glyph { animation: crPhiloFade 240ms ease both; }
  .cr-philo.is-closing { animation: none; }
}
@keyframes crPhiloFade { from { opacity: 0; } to { opacity: 1; } }

/* ═════════════ Live availability status (Craft.LiveStatus) ═════════════
   Green dot with a soft pulsing halo: reads as an active status, not a plain label.
   White pill so it stays legible on every wallpaper and glass tint. */
.cr-live-status {
  --live-green: #1fb45a;
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(30, 20, 30, 0.10);
}
.cr-live-dot {
  position: relative; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live-green);
  box-shadow: 0 0 0 2px rgba(31, 180, 90, 0.18);
}
.cr-live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--live-green); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .cr-live-dot::after { animation: crLivePulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
}
@keyframes crLivePulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}
/* Date card: the chip replaces the plain "Open to new roles" line */
.cr-board .cr-agenda-label--live { top: auto; bottom: 14px; left: 12px; right: auto; }
.cr-board .cr-agenda-label--live .cr-live-status { height: 28px; padding: 0 11px 0 9px; gap: 7px; font-size: 11.5px; }

/* ═════════════ Profile sheet: header, scroll area, experience and education ═════════════ */
.cr-profile-sheet { grid-template-rows: auto minmax(0, 1fr); }
.cr-profile-sheet > .cr-profile-photo { grid-column: 1; grid-row: 1 / span 2; }
.cr-profile-sheet > .cr-profile-head {
  grid-column: 2; grid-row: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 32px 8px 40px;
}
.cr-profile-sheet > .cr-profile-body { grid-column: 2; grid-row: 2; min-height: 0; padding: 0; gap: 0; }
.cr-profile-head .cr-live-status { height: 34px; padding: 0 14px 0 12px; font-size: 13px; }
.cr-profile-scroll {
  height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 40px 36px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
}
.cr-profile-scroll:focus { outline: none; }
.cr-profile-scroll > * { flex-shrink: 0; }
.cr-profile-bio { color: rgba(255, 255, 255, 0.9); max-width: 420px; }
.cr-profile-sheet .cr-profile-facts { margin-top: 6px; }

.cr-pt { margin-top: 14px; }
.cr-pt-title {
  margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--on-glass-3);
}
.cr-pt-list { list-style: none; margin: 0; padding: 0; }
.cr-pt-row {
  position: relative;
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 12px;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cr-pt-row:first-child { border-top: 0; padding-top: 2px; }
/* rail: a thin line through the dots ties the rows into one timeline */
.cr-pt-row::before {
  content: ""; position: absolute; left: 8.5px; top: 0; bottom: 0; width: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.cr-pt-row:first-child::before { top: 10px; }
.cr-pt-row:last-child::before { bottom: auto; height: 20px; }
.cr-pt-row:only-child::before { display: none; }
.cr-pt-dot {
  position: relative; z-index: 1; margin: 5px 0 0 4px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(40, 30, 40, 0.35);
}
.cr-pt-row:first-child .cr-pt-dot { margin-top: 5px; }
.cr-pt-row:not(:first-child) .cr-pt-dot { margin-top: 5px; }
.cr-pt-row.is-current .cr-pt-dot { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.cr-pt-main { min-width: 0; }
.cr-pt-role { margin: 0; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; color: #fff; }
.cr-pt-org { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--on-glass-2); }
.cr-pt-note { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--on-glass-3); max-width: 46ch; }
.cr-pt-date {
  margin: 1px 0 0; font-size: 12px; line-height: 1.4; color: var(--on-glass-2);
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right;
}

/* Tablet (2 columns): photo band on top, header, then the rest scrolls */
.cr-hero[data-cr-cols="2"] .cr-profile-sheet { grid-template-columns: 1fr; grid-template-rows: minmax(140px, 34%) auto minmax(0, 1fr); }
.cr-hero[data-cr-cols="2"] .cr-profile-sheet > .cr-profile-photo { grid-column: 1; grid-row: 1; }
.cr-hero[data-cr-cols="2"] .cr-profile-sheet > .cr-profile-head { grid-column: 1; grid-row: 2; padding: 22px 28px 4px 36px; }
.cr-hero[data-cr-cols="2"] .cr-profile-sheet > .cr-profile-body { grid-column: 1; grid-row: 3; padding: 0; }
.cr-hero[data-cr-cols="2"] .cr-profile-scroll { padding: 12px 36px 32px; }

@media (max-width: 700px) {
  /* The whole sheet scrolls; the status + close row is sticky (zero height, so it floats over the photo) */
  .cr-hero .cr-profile-sheet > .cr-profile-head {
    position: sticky; top: 0; z-index: 3; flex: none; height: 0; overflow: visible;
    align-items: flex-start; padding: 0 16px; margin: 0;
  }
  .cr-hero .cr-profile-sheet > .cr-profile-head > * { margin-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .cr-hero .cr-profile-sheet > .cr-profile-photo { flex: none; height: 52vh; height: 52svh; min-height: 260px; }
  .cr-hero .cr-profile-sheet > .cr-profile-body { padding: 0; }
  .cr-hero .cr-profile-body > .cr-profile-scroll {
    position: static; height: auto;
    overflow: visible; -webkit-mask-image: none; mask-image: none;
    padding: 22px 20px calc(28px + env(safe-area-inset-bottom, 0px)); gap: 10px;
  }
  .cr-hero .cr-sheet-title { font-size: 34px; }
  .cr-pt-row { grid-template-columns: 18px minmax(0, 1fr); }
  .cr-pt-date { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; margin: 0 0 2px; font-size: 12px; color: var(--on-glass-3); }
  .cr-pt-main { grid-column: 2; grid-row: 2; }
  .cr-pt-dot { grid-row: 1 / span 2; }
}

/* ═════════════ Design-notes pill visibility ═════════════
   Hidden while any overlay is open (CraftHero noticeHidden): fades and lifts away, then leaves the
   tab order (inert) and the accessibility tree (aria-hidden). Phones never show it. */
.cr-topbar-notice > * {
  transition: opacity 260ms ease, transform 420ms var(--ease-arrive), filter 260ms ease, visibility 0s linear 0s;
}
.cr-topbar-notice.is-hidden > * {
  opacity: 0; transform: translateY(-12px) scale(0.96); filter: blur(4px);
  visibility: hidden; pointer-events: none;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.7, 0, 0.84, 0), filter 220ms ease, visibility 0s linear 320ms;
}
@media (prefers-reduced-motion: reduce) {
  .cr-topbar-notice > *, .cr-topbar-notice.is-hidden > * { transform: none; filter: none; }
}
@media (max-width: 700px) {
  .cr-hero .cr-topbar > .cr-topbar-notice { display: none; }
}

/* Board avatar (white shirt bust): head and collar fill the circle; the shirt dissolves into the glass lower down */
.cr-orb .cr-orb-figure[data-figure="bust"] { top: 3%; width: 102%; }
.cr-orb .cr-orb-figure[data-figure="bust"] .cr-orb-avatar {
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 97%);
  filter: drop-shadow(0 12px 16px rgba(30, 14, 30, 0.18));
}

/* ── Top bar: right cluster mirrors the logo's inset when the Craft switch isn't there (e.g. the preview) ── */
html:not(:has(.craft-switch)) .cr-hero:not([data-cr-fit]) .cr-topbar-right .cr-iconbtn { right: 28px; }
html:not(:has(.craft-switch)) .cr-hero[data-cr-fit="flow"] .cr-topbar { right: 28px; }
@media (max-width: 700px) { html:not(:has(.craft-switch)) .cr-hero .cr-topbar-right { margin-right: 0; } }
/* Experience card opens the profile at the Experience timeline */
.cr-mstat.is-clickable { cursor: pointer; transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1); }
.cr-mstat.is-clickable:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cr-pt { scroll-margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .cr-mstat.is-clickable { transition: none; } .cr-mstat.is-clickable:hover { transform: none; } }

/* Say hello on the same liquid glass as the date card ("Open to new roles") */
.cr-glass.cr-hello { background: var(--g-date); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); color: var(--on-glass); }
.cr-glass.cr-hello .cr-hello-icon { background: rgba(255, 255, 255, 0.16); color: var(--on-glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.cr-glass.cr-hello .cr-hello-go { background: rgba(255, 255, 255, 0.16); color: var(--on-glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.cr-glass.cr-hello .cr-hello-go:hover { background: rgba(255, 255, 255, 0.26); }
.cr-glass.cr-hello .cr-hello-title { color: var(--on-glass); }
.cr-glass.cr-hello .cr-hello-sub { color: var(--on-glass-2); }
.cr-glass.cr-hello .cr-hello-dot::before { background: rgba(255, 255, 255, 0.35); }
.cr-glass.cr-hello .cr-hello-dot.is-on::before { background: #fff; }
.cr-glass.cr-hello .cr-hello-dot:hover::before { background: rgba(255, 255, 255, 0.6); }
.cr-glass.cr-hello .cr-hello-slide:not(.is-on) { opacity: 0.25; }
/* Say hello: same liquid glass edge as the "Open to new roles" card */
.cr-glass.cr-hello {
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(20, 10, 30, 0.10);
  text-shadow: 0 1px 3px rgba(20, 10, 20, 0.22);
}

/* Live character in the profile orb (assets/craft/avatar-live.js): a silent looping clip built from
   Gaurav's nine head renders, composited on a canvas with a transparent background. The 640x800
   frame is placed so the face sits where the old still bust did; the neck fades into the glass. */
.cr-orb .cr-orb-figure[data-figure="live"] { top: 3%; width: 102%; animation: none; transform: translateX(-50%); }
.cr-avl {
  position: absolute; left: 2%; width: 96%; top: -13%; aspect-ratio: 640 / 800; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 64%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 64%, transparent 88%);
  filter: drop-shadow(0 12px 16px rgba(30, 14, 30, 0.18));
}
.cr-avl-rig { position: absolute; inset: 0; transform-origin: 50% 70%; will-change: transform; }
.cr-avl-poster, .cr-avl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.cr-avl-canvas { opacity: 0; }
.cr-avl-rig.is-live .cr-avl-canvas { opacity: 1; }
.cr-avl-rig.is-live .cr-avl-poster { opacity: 0; }

/* Profile photos: crossfading slides with a round arrow on the right (and one on the left) */
.cr-profile-photo .cr-pp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 420ms ease, transform 620ms var(--ease-arrive); transform: scale(1.03); }
.cr-profile-photo .cr-pp-slide.is-on { opacity: 1; transform: none; }
.cr-pp-nav { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; pointer-events: none; }
.cr-pp-btn { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; color: var(--ink, #1a1a1a); cursor: pointer; transition: transform 200ms var(--ease-arrive); }
.cr-pp-btn:hover { transform: scale(1.08); }
.cr-pp-btn:active { transform: scale(0.94); }
.cr-pp-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cr-pp-btn svg { width: 20px; height: 20px; }
.cr-pp-btn--prev svg { transform: scaleX(-1); }
.cr-pp-dots { display: flex; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(20,14,24,.28); }
.cr-pp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background 200ms, transform 200ms; }
.cr-pp-dots i.is-on { background: #fff; transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) { .cr-profile-photo .cr-pp-slide, .cr-pp-btn { transition: none; } }

/* Experience bars: the colour moves the way the case study orbs do. Same three colours,
   tints drift through each bar and a soft light passes along it. */
.cr-mstat-bars i.cr-flow {
  position: relative; overflow: hidden;
  background:
    linear-gradient(100deg,
      var(--c) 0%,
      color-mix(in oklab, var(--c), #fff 38%) 18%,
      var(--c) 36%,
      color-mix(in oklab, var(--c), #000 14%) 54%,
      color-mix(in oklab, var(--c), #fff 24%) 72%,
      var(--c) 100%);
  background-size: 320% 100%;
  animation-name: crBar, crFlow;
  animation-duration: 1.2s, 7s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease-in-out;
  animation-delay: var(--bd, 0s), var(--d, 0s);
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: both, none;
}
.cr-mstat-bars i.cr-flow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: crSheen 4.6s ease-in-out var(--d, 0s) infinite;
  mix-blend-mode: soft-light;
}
.cr-mstat-bars i.cr-flow.is-still { animation-name: none, crFlow; }
@keyframes crFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes crSheen { 0% { background-position: -60% 0; } 60%, 100% { background-position: 160% 0; } }
@supports not (background: color-mix(in oklab, red, white)) { .cr-mstat-bars i.cr-flow { background: var(--c); } }
@media (prefers-reduced-motion: reduce) { .cr-mstat-bars i.cr-flow, .cr-mstat-bars i.cr-flow::after { animation: none; } }

/* ── Resume link: one tap from the board at every width ── */
.cr-resume {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 20px 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92); color: #16181d;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.10);
  transition: transform var(--dur-snap) var(--ease-snap), background .2s ease;
}
.cr-resume svg { width: 20px; height: 20px; flex: none; }
.cr-resume:hover { background: #fff; }
.cr-resume:active { transform: scale(.97); }
.cr-resume:focus-visible { outline: 2px solid #1f6bff; outline-offset: 3px; }
.cr-topbar-right { gap: 10px; }

/* Phone intro row: hidden above phone width, where the bar shows name, role and Resume */
.cr-topbar-intro { display: none; }

.cr-resume--bar { height: 50px; padding: 0 16px 0 14px; gap: 6px; font-size: 14px; }
.cr-resume--bar svg { width: 18px; height: 18px; }

/* Desktop canvas: Resume sits just left of Home/Projects (191 = control width + 10 gap).
   The quote pill moves left to end 12px before Resume (311 = 191 + Resume 108 + 12).
   Below 1340px there is no room for both, so the quote pill steps out. */
.cr-hero:not([data-cr-fit]) .cr-topbar-right .cr-resume--bar {
  position: absolute; top: 0; right: calc(50% - 466px * var(--cr-scale, 1) + 191px);
}
.cr-hero:not([data-cr-fit]) .cr-topbar > :nth-child(2) { left: auto; right: calc(50% - 466px * var(--cr-scale, 1) + 311px); }
@media (max-width: 1339px) {
  .cr-hero:not([data-cr-fit]) .cr-topbar > :nth-child(2) { display: none; }
}

/* Wider tablets: name and role fit between the clock and the tabs */
@media (min-width: 861px) and (max-width: 1099px) {
  .cr-hero .cr-topbar-id { display: flex; margin-left: 16px; }
}

@media (max-width: 700px) {
  .cr-hero .cr-resume--bar { display: none; }
  .cr-hero .cr-topbar-intro {
    flex: 0 0 100%; order: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 12px; padding: 10px 10px 10px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.92); color: #16181d;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.10);
  }
  /* Name and role on the left, status chip on the right */
  .cr-intro-id { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px; align-items: center; }
  .cr-intro-id b { grid-column: 1; grid-row: 1; font-size: 15px; font-weight: 600; line-height: 1.3; }
  .cr-intro-id > span:not(.cr-live-status) { grid-column: 1; grid-row: 2; font-size: 13px; line-height: 1.3; color: #474b55; }
  .cr-intro-id b, .cr-intro-id > span:not(.cr-live-status) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cr-intro-id > .cr-live-status { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; height: 30px; padding: 0 12px 0 10px; font-size: 12.5px; gap: 7px; }
  .cr-hero .cr-resume--intro { height: 48px; flex: none; background: #16181d; color: #fff; box-shadow: none; }
}
/* Narrow tablets: the clock steps out so name and role always show */
@media (min-width: 701px) and (max-width: 860px) {
  .cr-hero .cr-clock { display: none; }
  .cr-hero .cr-topbar-id { display: flex; margin-left: 16px; }
}

/* ── Audit fixes: notice only on desktop, 44px tap targets, readable glass ── */
/* Design-notes pill: desktop dashboard only. Tablets and phones never show it. */
@media (max-width: 1099px) {
  .cr-hero .cr-topbar > .cr-topbar-notice { display: none; }
}
/* Close keeps its 36px look with a 44px hit area */
.cr-notice-close::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
/* Experience "View all": same look, 44px tall hit area */
.cr-mstat-link { position: relative; }
.cr-mstat-link::after { content: ""; position: absolute; inset: -15px -10px; }
/* Contact card dots: wider and taller hit areas around the same small dots */
.cr-hello-dot { position: relative; width: 26px; }
.cr-hello-dot::after { content: ""; position: absolute; inset: -15px 0 -9px; }
/* Home/Projects: the same glass as the search button beside it; a soft shadow under the
   inactive label keeps it readable on bright wallpapers instead of a darker tint */
.cr-glass-light.cr-seg { background: var(--g-search); }
.cr-seg button:not([aria-selected="true"]) { color: #fff; text-shadow: 0 1px 2px rgba(20, 10, 24, 0.45), 0 0 10px rgba(20, 10, 24, 0.35); }
/* Home/Projects buttons fill the 50px control (3px inset each side): 44px tall */
.cr-seg button { height: 44px; }
/* Case-study rows: a few pixels of extra hit area above and below each row */
.cr-row-text { position: relative; }
.cr-row-text::after { content: ""; position: absolute; inset: -3px 0; }

/* ── Profile: "How I use AI" ── a small heading and a short paragraph under the bio */
.cr-profile-ai { margin-top: 4px; }
.cr-profile-ai-title { margin: 0 0 4px; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: #fff; }

.cr-profile-ai .cr-profile-bio { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, 0.78); }

/* Case study icon: the white icon alone, centred on the orb (Contextual Chat, Deal Room, White Label Setup) */
.cr-pwell--orb.has-core { container-type: inline-size; }
.cr-orb-core {
  --d: 16px; --d: calc(8px + 14cqw);
  position: absolute; z-index: 1; left: 50%; top: 50%; width: var(--d); height: var(--d);
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cr-orb-core img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(40, 20, 50, 0.22)); }
/* white-label.png has more empty space around the mark than the others, so it would read smaller */
.cr-orb-core img[src*="white-label"] { transform: scale(1.18); }
:is(.cr-row, .cr-aw-card, .cs-row, .cs-related, .cr-preview):is(:hover, :focus-within, .is-active) .cr-orb-core { transform: translate(-50%, -50%) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .cr-orb-core { transition: none; } }

/* Bitmoji listening to music: the head nods on the beat (about 100 bpm) with a slow sway now and then.
   Eyes are mostly open with natural blinks, closing for a couple of seconds into the song twice a loop. Two layers of the same cut-out so the
   body stays put. */
.cr-orb-groove { position: absolute; }
.cr-orb-groove .cr-orb-head { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1;
  transform-origin: 50% 64%; animation: crNod 4.8s ease-in-out infinite; will-change: transform; }
.cr-orb-groove .cr-orb-head img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-orb-groove .cr-orb-closed { opacity: 0; animation: crEyes 14.4s ease-in-out infinite; }
@keyframes crNod {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  12.5% { transform: rotate(-1.6deg) translateY(1.2%); }
  25% { transform: rotate(0deg) translateY(0); }
  37.5% { transform: rotate(1.6deg) translateY(1.2%); }
  50% { transform: rotate(0deg) translateY(0); }
  62.5% { transform: rotate(-3deg) translateY(.6%); }
  75% { transform: rotate(-3deg) translateY(1.4%); }
  87.5% { transform: rotate(2deg) translateY(.4%); }
}
@keyframes crEyes {
  /* open most of the time: blink, close about 2s into the song, blink, close about 1.5s, then open */
  0%, 9% { opacity: 0; }
  10%, 11% { opacity: 1; }
  12.5%, 26% { opacity: 0; }
  28.5%, 44% { opacity: 1; }
  46.5%, 56% { opacity: 0; }
  57%, 58% { opacity: 1; }
  59.5%, 77% { opacity: 0; }
  79.5%, 90% { opacity: 1; }
  92.5%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-orb-groove .cr-orb-head, .cr-orb-groove .cr-orb-closed { animation: none; }
  .cr-orb-groove .cr-orb-closed { opacity: 0; }
}

/* Experience: "View all" is just the arrow, with a round target around it */
.cr-mstat-link--icon { width: 24px; height: 24px; justify-content: center; border-radius: 50%; gap: 0; transition: background-color 200ms ease; }
.cr-mstat-link--icon svg { width: 10px; height: 10px; }
.cr-mstat-link--icon:hover { background: rgba(20, 16, 24, 0.06); }

/* Same lift as the Resonance card for Experience, Design Playground and Book a call. Two classes so it
   wins over the older per-card hovers (.cr-mstat.is-clickable, .cb-card in booking.css). Same timing
   and curve as .cr-rp. The glass date card keeps its own shadow, only the solid cards deepen theirs. */
.cr-card.cr-mstat, .cr-card.cr-team, .cr-card.cr-agenda {
  translate: 0 0; scale: 1;
  transition:
    translate 380ms cubic-bezier(0.16, 1, 0.3, 1),
    scale 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cr-card.cr-mstat:hover, .cr-card.cr-team:hover, .cr-card.cr-agenda:hover { translate: 0 -4px; scale: 1.025; }
.cr-card.cr-mstat:hover, .cr-card.cr-team:hover { box-shadow: 0 22px 44px rgba(20, 16, 24, 0.2); }
.cr-card.cr-mstat:active, .cr-card.cr-team:active, .cr-card.cr-agenda:active {
  translate: 0 -1px; scale: 0.975; transition-duration: 160ms, 160ms, 160ms;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cr-card.cr-mstat:hover, .cr-card.cr-team:hover, .cr-card.cr-agenda:hover,
  .cr-card.cr-mstat:active, .cr-card.cr-team:active, .cr-card.cr-agenda:active { translate: none; scale: none; }
}

/* Resume slide: the document icon opens the PDF, the button on the right downloads it */
.cr-hello-view { display: contents; cursor: pointer; }
.cr-hello-view .cr-hello-icon { transition: scale 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.cr-hello-view:hover .cr-hello-icon { scale: 1.06; }
.cr-hello-view:focus-visible .cr-hello-icon { outline: 2px solid #fff; outline-offset: 3px; }

/* ── Profile: daily tool stack + skills (two rows each; "+N more" opens the full list) ── */
.cr-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 10px; }
.cr-tool { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cr-tool-tile {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(10, 6, 14, 0.18);
}
.cr-tool-tile img { width: 14px; height: 14px; display: block; }
.cr-tool-tile svg { width: 14px; height: 14px; }
.cr-tool-name { min-width: 0; font-size: 12.5px; line-height: 1.2; letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.cr-tool--more { padding: 0; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; }
.cr-tool-tile--more { background: rgba(255, 255, 255, 0.14); font-size: 11.5px; font-weight: 500; transition: background 160ms ease; }
.cr-tool--more .cr-tool-name { color: var(--on-glass-2); }
.cr-tool--more:hover .cr-tool-tile--more { background: rgba(255, 255, 255, 0.26); }
.cr-tool--more:hover .cr-tool-name { color: #fff; }
.cr-tool--more:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 10px; }

.cr-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cr-skill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: -0.005em; color: #fff; white-space: nowrap;
  background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.cr-skill-more { display: inline-flex; }
button.cr-skill--btn { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; background: rgba(255, 255, 255, 0.22); transition: background 160ms ease; }
button.cr-skill--btn:hover { background: rgba(255, 255, 255, 0.32); }
button.cr-skill--btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the "more" panel floats over the profile sheet */
.cr-pmore {
  position: absolute; z-index: 5; right: 20px; bottom: 20px;
  width: calc(100% / 2.05 - 40px); max-height: calc(100% - 40px);
  display: flex; flex-direction: column; border-radius: 28px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 45%), rgba(36, 28, 40, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 60px rgba(10, 6, 14, 0.4);
}
.cr-pmore-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 6px 24px; }
.cr-pmore-title { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.cr-pmore-head .cr-iconbtn { width: 38px; height: 38px; }
.cr-pmore-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 24px 24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent; }
.cr-tools--all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.cr-skill-group + .cr-skill-group { margin-top: 16px; }
.cr-skill-group-t { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.01em; color: var(--on-glass-3); }
@media (max-width: 700px) {
  /* phones: still 4 across (two rows), logo above the name */
  .cr-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cr-tools .cr-tool { flex-direction: column; gap: 6px; text-align: center; }
  .cr-tools .cr-tool-name { max-width: 100%; }
  .cr-tools .cr-tool-name { font-size: 11.5px; }
  .cr-tools--all { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cr-pmore { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 70vh; }
}
.cr-hero[data-cr-cols="2"] .cr-pmore { left: 20px; width: auto; }

/* Book a call + Say hello: same glass as the Home/Projects switch and the search button
   (tint --g-search; liquid-glass.js adds the rim, glare and lens edge). A soft shadow under
   the text keeps it readable on bright wallpapers, like the switch label. */
.cr-hero .cr-card.cr-glass.cr-agenda, .cr-hero .cr-card.cr-glass.cr-hello,
.cr-board .cb-card.cr-glass.cr-agenda,
.cr-hero[class*="craft-wp--"] .cr-board .cb-card.cr-glass.cr-agenda, .cr-hero[class*="craft-wp--"] .cr-board .cr-card.cr-glass.cr-hello {
  background: var(--g-search); background-image: none;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) brightness(1.03); backdrop-filter: blur(10px) saturate(1.8) brightness(1.03);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(20, 10, 24, 0.35), 0 0 12px rgba(20, 10, 24, 0.25);
}
.cr-hero .cr-card.cr-glass.cr-agenda.lg-lens, .cr-hero .cr-card.cr-glass.cr-hello.lg-lens {
  -webkit-backdrop-filter: var(--lg-lens) blur(10px) saturate(1.8) brightness(1.03); backdrop-filter: var(--lg-lens) blur(10px) saturate(1.8) brightness(1.03);
}
/* white pills and buttons inside keep crisp text */
.cr-hero .cr-glass.cr-agenda .cr-live-status, .cr-hero .cr-glass.cr-agenda .cb-go,
.cr-hero .cr-glass.cr-hello .cr-hello-go, .cr-hero .cr-glass.cr-hello .cr-hello-icon { text-shadow: none; }


/* ═════════════ Say hello: the card opens every contact at once (ContactSheet) ═════════════
   Shares the booking sheet's root, scrim and glass panel (booking.css). */
.cr-hello-open { position: absolute; inset: 0; z-index: 0; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.cr-hello-open:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cr-hello.is-openable .cr-hello-track { pointer-events: none; }
.cr-hello.is-openable .cr-hello-track :is(a, button) { pointer-events: auto; position: relative; z-index: 1; }
.cr-hello.is-openable .cr-hello-dots { pointer-events: auto; z-index: 1; } /* stays absolute: bottom centre of the card */
.cr-hello.is-openable .cr-hello-track .cr-hello-go, .cr-hello.is-openable .cr-hello-track .cr-hello-view { position: absolute; }
.cr-hello.is-openable { cursor: pointer; }

.cc-panel { width: min(520px, calc(100vw - 32px)); padding: 30px 28px 24px; }
.cc-head { padding-right: 56px; }
.cc-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cc-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 12px 12px 12px; border-radius: 26px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
}
.cc-row .cc-icon { width: 52px; height: 52px; background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.cc-row .cc-icon svg { width: 22px; height: 22px; }
.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; }
.cc-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 11px; letter-spacing: 0; color: rgba(255, 255, 255, 0.88); }
.cc-sub { margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-acts { display: flex; gap: 6px; }
.cc-act {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff; font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background 200ms ease, transform 200ms cubic-bezier(0.2, 0.9, 0.25, 1.05);
}
.cc-act svg { width: 15px; height: 15px; }
.cc-act:hover { background: rgba(255, 255, 255, 0.26); }
.cc-act:active { transform: scale(0.96); }
.cc-act--main { background: #fff; color: #141414; }
.cc-act--main:hover { background: #f0f0f0; }
.cr .cc-act:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 520px) {
  .cc-panel { padding: 26px 18px 18px; }
  .cc-row { grid-template-columns: 44px minmax(0, 1fr); row-gap: 10px; }
  .cc-row .cc-icon { width: 44px; height: 44px; }
  .cc-acts { grid-column: 1 / -1; }
  .cc-act { flex: 1 1 0; justify-content: center; }
}
/* phones: a bottom sheet that fits its three rows, not a full screen */
@media (max-width: 700px) {
  .cb-root.cc-root { place-items: end stretch; }
  .cc-root .cb-panel.cc-panel {
    height: auto; max-height: calc(100dvh - 24px); border-radius: 32px 32px 0 0; border: 1px solid rgba(255, 255, 255, 0.28); border-bottom: 0;
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .cc-root .cb-close { top: 16px; }
}

/* ═════════════ Phone fixes (Nov 26 mobile pass) ═════════════ */
@media (max-width: 700px) {
  /* Profile sheet: once you scroll, text no longer runs under the status chip and close button.
     A soft frosted strip sits behind them (fades out downward, so the photo still shows through). */
  .cr-hero .cr-profile-sheet > .cr-profile-head::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none;
    height: calc(76px + env(safe-area-inset-top, 0px));
    background: linear-gradient(to bottom, rgba(28, 22, 32, 0.5), rgba(28, 22, 32, 0));
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }
  /* sheets keep their own scroll; the page behind never moves */
  .cr-hero .cr-sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 700px) {
  /* opened from the Experience card: the heading lands below the status chip, not under it */
  .cr-hero .cr-profile-sheet .cr-pt { scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px)); }
}
/* "+N more" on phones: page-level bottom sheet over a light shade (see ProfileMore) */
.cr-pmore-layer { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.cr-pmore-layer > * { pointer-events: auto; }
.cr-pmore-scrim { position: absolute; inset: 0; background: rgba(12, 8, 16, 0.38); animation: crPmFade 280ms ease both; }
@keyframes crPmFade { from { opacity: 0; } }
.cr-pmore-layer .cr-pmore { border-radius: 28px; }
@media (max-width: 700px) {
  /* full-screen sheets on phones: heavier blur and tint, so the home screen doesn't read through the text */
  .cr-hero .cr-board .cr-sheet {
    background: linear-gradient(rgba(34, 26, 38, 0.5), rgba(34, 26, 38, 0.5)), var(--glass-strong);
    -webkit-backdrop-filter: blur(44px) saturate(1.4); backdrop-filter: blur(44px) saturate(1.4);
  }
}

/* ═════════════ Phones: pop-ups are sheets with room above them, not full pages ═════════════
   Same shape as the Say hello sheet: a gap at the top showing the dimmed dashboard,
   rounded top corners. Profile, Resonance and Book a call. Plus breathing room under the last card. */
@media (max-width: 700px) {
  :root { --m-sheet-gap: calc(28px + env(safe-area-inset-top, 0px)); }
  .cr-hero .cr-board { padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }

  .cr-hero .cr-board .cr-sheet {
    top: var(--m-sheet-gap); border-radius: 28px 28px 0 0;
    box-shadow: 0 0 0 100vmax rgba(12, 8, 16, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  .cr-hero .cr-profile-sheet > .cr-profile-head > * { margin-top: 16px; }
  .cr-hero .cr-profile-sheet > .cr-profile-head::before { height: 76px; border-radius: 28px 28px 0 0; }
  .cr-hero .cr-profile-sheet > .cr-profile-photo { height: 46svh; }

  .cr-np-sheet {
    top: var(--m-sheet-gap); height: auto; border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.28); border-bottom: 0;
    padding-top: 18px;
  }
  .cr-np-close { top: 14px; }
  .cr-np-scrim { background: rgba(12, 8, 16, 0.4); }
}

/* Opening loader: cards wait (wallpaper only) until the loader's circle opens */
.cr-stage[data-await-intro] [data-cr-enter] { opacity: 0; }
