/* ===========================================================================
   Tural Jumshudlu — portfolio
   Shared stylesheet. Every page loads this file and nothing else.

   The design language is lifted from the Final Table case study in Figma
   (file p0LZknUhqieeiJ38nAWx9W): #eeeeee page, white content panel,
   #101014 dark media blocks, #f1efef soft blocks, 8px media radius,
   Aeonik display over 42dot Sans body, 24px page gutters.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   TOKENS
--------------------------------------------------------------------------- */
:root {
  /* Surface */
  --page:        #eeeeee;
  --panel:       #ffffff;
  --dark:        #101014;
  --soft:        #f1efef;
  --tile:        #1f1f1f;

  /* Ink */
  --ink:         #000000;
  --ink-58:      rgba(0, 0, 0, 0.58);
  --ink-40:      rgba(0, 0, 0, 0.4);
  --ink-24:      rgba(0, 0, 0, 0.24);
  --on-dark:     #ffffff;
  --on-dark-70:  rgba(255, 255, 255, 0.7);
  --on-dark-45:  rgba(255, 255, 255, 0.45);
  --rule:        #c6c6c6;
  --rule-soft:   rgba(0, 0, 0, 0.1);

  /* Type
     Aeonik is a licensed face. Drop Aeonik-Regular.woff2 / Aeonik-Bold.woff2
     into assets/fonts/ and uncomment the @font-face rules below; until then
     this falls back to 42dot Sans, which is close in feel and free. */
  --font-display: "Aeonik", "42dot Sans", system-ui, -apple-system, sans-serif;
  --font-body:    "42dot Sans", system-ui, -apple-system, sans-serif;

  --t-eyebrow:  13px;
  --t-caption:  12px;
  --t-nav:      14px;
  --t-body:     15px;
  --t-meta:     16px;
  --t-title:    22px;
  --t-lead:     28px;
  --t-section:  40px;

  /* Layout */
  --gutter:     24px;   /* page edge margin, left and right */
  --pad:        8px;    /* component inset, from Figma */
  --r-pill:     2px;
  --r-sm:       4px;
  --r-md:       8px;
  --nav-h:      42px;

  /* This design deliberately commits to one light palette (no dark toggle),
     so pin color-scheme rather than leaving it to the host. */
  color-scheme: light;

  /* Motion — smooth, restrained */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:     0.2s;
  --t-slow:     0.75s;
}

/* Uncomment once the licensed files are in assets/fonts/
@font-face {
  font-family: "Aeonik";
  src: url("assets/fonts/Aeonik-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("assets/fonts/Aeonik-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
*/

/* ---------------------------------------------------------------------------
   BASE
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; font-size: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-pill);
}

::selection { background: var(--ink); color: var(--page); }

.shell {
  width: 100%;
  padding-inline: var(--gutter);
}

.u-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--panel);
  border-radius: var(--r-sm);
}
.skip:focus { left: var(--gutter); top: var(--gutter); }

/* ---------------------------------------------------------------------------
   NAV
--------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: var(--pad);
  background: rgba(238, 238, 238, 0.4);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

/* Fixed nav: everything else starts below it. */
body { padding-top: var(--nav-h); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__left { display: flex; align-items: center; gap: 19px; }

.nav__mark {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 999px;
  background: var(--ink);
  transition: transform var(--t-fast) var(--ease);
}
.nav__mark:hover { transform: scale(1.08); }

.nav__links, .nav__right { display: flex; align-items: center; gap: var(--r-sm); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--panel);
  font-family: var(--font-body);
  font-size: var(--t-nav);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.42px;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.pill:hover { background: var(--ink); color: var(--panel); }
.pill[aria-current="page"] { background: var(--ink); color: var(--panel); }

.pill--ghost { background: transparent; }
.pill--ghost:hover { background: var(--ink); color: var(--panel); }

/* ---------------------------------------------------------------------------
   TYPE PRIMITIVES
--------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  font-family: var(--font-display);
  font-size: var(--t-lead);
  line-height: 1.2;
  letter-spacing: -0.28px;
  text-wrap: pretty;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--t-section);
  line-height: 1.12;
  letter-spacing: -0.4px;
  text-wrap: pretty;
}

.body {
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: -0.14px;
  text-wrap: pretty;
}

.muted { color: var(--ink-58); }
.faint { color: var(--ink-40); }

/* ---------------------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.13px;
  white-space: nowrap;
  transition: opacity var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--ink); color: var(--panel); }
.btn--primary:hover { background: #222; }

.btn--secondary { background: var(--panel); color: var(--ink); }
.btn--secondary:hover { background: #e2e2e2; }

.btn--onDark { background: var(--panel); color: var(--ink); }

.btn__dot {
  width: 6px; height: 6px;
  flex: none;
  border-radius: 999px;
  background: #4cde78;
}

/* Inline link with a quiet underline that wakes up on hover */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-fast) var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* ---------------------------------------------------------------------------
   MEDIA BLOCKS — the case study's core device
--------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--dark);
}

.media img { width: 100%; height: 100%; object-fit: cover; }

.media--soft { background: var(--soft); }

/* Placeholder state for media not yet exported from Figma. Reads as a
   designed tone block rather than a broken image. */
.media[data-placeholder] {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%),
    var(--dark);
}
.media--soft[data-placeholder] {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 60%),
    var(--soft);
}
.media[data-placeholder]::after {
  content: attr(data-placeholder);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--on-dark-45);
  padding: 0 24px;
  text-align: center;
}
.media--soft[data-placeholder]::after { color: var(--ink-24); }

/* ---------------------------------------------------------------------------
   SITE FOOTER
--------------------------------------------------------------------------- */
.foot {
  margin-top: 96px;
  padding-block: 40px 28px;
  border-top: 1px solid var(--rule-soft);
}

.foot__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.foot__say {
  font-family: var(--font-display);
  font-size: var(--t-lead);
  line-height: 1.18;
  letter-spacing: -0.28px;
  max-width: 15ch;
}

.foot__cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.foot__col { display: flex; flex-direction: column; gap: 8px; }

.foot__h {
  font-size: var(--t-caption);
  color: var(--ink-40);
  margin-bottom: 2px;
}

.foot__col a, .foot__col span { font-size: 14px; letter-spacing: -0.14px; }

.foot__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 56px;
  font-size: var(--t-caption);
  color: var(--ink-40);
}

.foot__clock { font-variant-numeric: tabular-nums; }

/* Hidden only between the inline boot script and the split (fonts ready,
   ~100ms). Mirrors SPLIT in site.js — keep them in sync. A 2.5s timeout in
   site.js removes .js-pending regardless, so copy can never stay hidden. */
.js-pending :is(h1, h2, .lead, .section-title, .pane__title, .page-hero__note,
  .cs__lede, .cs-panel__b, .cs-split__b, .cs-block__b, .cs-feat__d,
  .cs-outro__d, .cs-anat li, .svc__lede, .svc-dark__d, .proc__d,
  .bio__prose p, .xp__note, .cta__d, .contact-card__prose p,
  .card__text, .do-card__d, .row__desc, .row__lockD, .gal__note,
  .foot__say, .li__desc, .dl__note) { opacity: 0; }
.js-pending .cpop :is(h1, h2) { opacity: 1; }

/* ---------------------------------------------------------------------------
   LINE REVEAL — the only scroll motion on the site
   site.js splits headings and body copy into lines. Each line starts
   blurred and transparent and resolves over 1s on an expo-out curve,
   staggered 100ms per line. Images and cards do not animate at all.
   Without JS nothing is ever hidden.
--------------------------------------------------------------------------- */
.ln { display: block; }

.js-split .ln__in {
  display: inline-block;
  filter: blur(10px);
  opacity: 0;
  will-change: filter, opacity;
  transition:
    filter  1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 100ms),
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 100ms);
}
.js-split .is-in .ln__in,
.js-split .ln__in.is-in {
  filter: blur(0);
  opacity: 1;
}

/* Elements with inline markup (code, links, <br> mixes) get one
   whole-element reveal instead of per-line. */
.js-split .blur-in {
  filter: blur(10px);
  opacity: 0;
  transition:
    filter  1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-split .blur-in.is-in { filter: blur(0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js-split .ln__in, .js-split .blur-in {
    filter: none; opacity: 1; transition: none;
  }
}

/* ---------------------------------------------------------------------------
   IMAGE FALLBACK
   Applied by site.js when an image fails to load. The container keeps its
   designed tone and proportions and names what belongs there.
--------------------------------------------------------------------------- */
.has-fallback {
  display: grid;
  place-items: center;
  max-width: 100%;
}

.img-fallback {
  padding: 20px 28px;
  max-width: 46ch;
  text-align: center;
  font-size: var(--t-caption);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--on-dark-45);
}

/* On pale containers the label needs the opposite ink. */
.media--soft .img-fallback,
.cs-full--soft .img-fallback,
.contact-tile--list .img-fallback,
.cs-split__media--chart .img-fallback,
.cs-block--soft .img-fallback { color: var(--ink-40); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------------
   RESPONSIVE BASE
--------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root {
    --t-section: 28px;
    --t-lead: 22px;
  }
  .foot__cols { gap: 36px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav__links { display: none; }
  .foot__top { gap: 32px; }
  .foot__say { max-width: none; }
}

/* ===========================================================================
   HOME
   =========================================================================== */
.home-hero { padding-top: 112px; }

.home-hero__eyebrow { color: var(--ink-40); margin-bottom: 18px; }

.home-hero__lead { max-width: 860px; }

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 26px;
  font-size: var(--t-caption);
  color: var(--ink-40);
}
.home-hero__meta li { position: relative; }
.home-hero__meta li + li::before {
  content: "";
  position: absolute;
  left: -15px; top: 50%;
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--ink-24);
  transform: translateY(-50%);
}

/* --- showreel + accordion panel --- */
.home-split {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 40px;
}

.reel {
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 1004 / 560;
  max-height: 620px;
}

.panel-stack {
  flex: none;
  width: clamp(340px, 31%, 500px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--panel);
  transition: background-color var(--t-fast) var(--ease);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--t-meta);
  line-height: 1.2;
  letter-spacing: -0.16px;
}

/* plus / minus drawn in CSS so there is no icon to expire */
.card__sign {
  position: relative;
  width: 14px; height: 14px;
  flex: none;
}
.card__sign::before, .card__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.card__sign::after { transform: rotate(90deg); }
.card[data-open="true"] .card__sign::after { transform: rotate(0deg); opacity: 0; }

.card__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.38s var(--ease), opacity 0.28s var(--ease);
}
.card[data-open="false"] .card__body { grid-template-rows: 0fr; opacity: 0; }

.card__inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.card__text {
  font-size: 14px;
  line-height: 1.52;
  letter-spacing: -0.14px;
  color: var(--ink-58);
}

/* --- section heading --- */
.sec-head { max-width: 760px; }
.sec-head .eyebrow { color: var(--ink-40); margin-bottom: 14px; }

.home-work { margin-top: 128px; }




/* --- what I do --- */
.home-do { margin-top: 128px; }

.do-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 36px;
}

.do-card {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.do-card__n {
  font-size: 11px;
  color: var(--ink-24);
  font-variant-numeric: tabular-nums;
}

.do-card__t {
  font-family: var(--font-display);
  font-size: var(--t-meta);
  line-height: 1.2;
  letter-spacing: -0.16px;
}

.do-card__d {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.14px;
  color: var(--ink-58);
}

.do-more { margin-top: 20px; font-size: 14px; }

/* --- contact --- */
.home-contact {
  margin-top: 128px;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.contact-card {
  flex: 635 1 0;
  min-width: 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px;
  border-radius: var(--r-md);
  background: #d3d3d3;
}

.contact-card__prose {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  font-family: var(--font-display);
  font-size: var(--t-lead);
  line-height: 1.12;
  letter-spacing: -0.4px;
  text-wrap: pretty;
}

.contact-card__actions { display: flex; align-items: center; gap: 6px; }

.contact-pair {
  flex: 846 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-tile {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--tile);
}
.contact-tile img { width: 100%; height: 100%; object-fit: cover; }

.contact-tile__stamp {
  position: absolute;
  top: 16px; left: 14px;
  font-size: var(--t-caption);
  color: #fff;
  letter-spacing: -0.12px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.contact-tile--list {
  background: var(--panel);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.contact-list { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
  letter-spacing: -0.14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list__k { flex: none; width: 76px; color: var(--ink-40); font-size: var(--t-caption); }

/* --- home responsive --- */


@media (max-width: 1000px) {
  .home-hero { padding-top: 72px; }
  .home-split { flex-direction: column; }
  .reel { aspect-ratio: 16 / 10; max-height: 460px; }
  .panel-stack { width: 100%; }
  .do-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-contact { flex-direction: column; }
  .contact-card { flex: none; min-height: 0; }
  .contact-pair { flex: none; }
  .contact-tile { min-height: 300px; }
  .home-work, .home-do, .home-contact { margin-top: 88px; }
}

@media (max-width: 720px) {
  
  
  
  .do-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-pair { grid-template-columns: minmax(0, 1fr); }
  .contact-list__k { width: 68px; }
}

/* ===========================================================================
   SHARED PAGE HERO (services, about, case study)
   =========================================================================== */
.page-hero { padding-top: 112px; max-width: 980px; }
.page-hero__eyebrow { color: var(--ink-40); margin-bottom: 18px; }
.page-hero__lead { max-width: 820px; }
.page-hero__note { max-width: 62ch; margin-top: 28px; }

@media (max-width: 1000px) { .page-hero { padding-top: 72px; } }
@media (max-width: 860px)  { .page-hero__lead { max-width: none; } }

/* ===========================================================================
   SERVICES
   =========================================================================== */
.svc { margin-top: 104px; }

.svc__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  padding-block: 44px;
  border-top: 1px solid var(--rule-soft);
}
.svc__row:last-child { border-bottom: 1px solid var(--rule-soft); }

.svc__num {
  font-size: var(--t-caption);
  color: var(--ink-24);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}

.svc__body { max-width: 860px; }
.svc__title { margin-bottom: 18px; }
.svc__lede { max-width: 68ch; color: var(--ink-58); }

.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}
.svc__tags li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
  font-size: var(--t-caption);
  letter-spacing: -0.12px;
  color: var(--ink-58);
}

/* --- dark accessibility band --- */
.svc-dark { margin-top: 96px; }

.svc-dark__inner {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--r-md);
  padding: 56px 48px;
}

.svc-dark__eyebrow { color: var(--on-dark-45); margin-bottom: 14px; }
.svc-dark__head { max-width: 760px; }

.svc-dark__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.svc-dark__t {
  font-family: var(--font-display);
  font-size: var(--t-meta);
  line-height: 1.2;
  margin-bottom: 8px;
}

.svc-dark__d {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.14px;
  color: var(--on-dark-70);
}

/* --- process --- */
.svc-proc { margin-top: 112px; }

.proc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 36px;
}

.proc__step {
  padding: 28px 24px 32px;
  border-radius: var(--r-md);
  background: var(--panel);
}

.proc__n {
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-24);
  margin-bottom: 14px;
}

.proc__t {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.proc__d {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.14px;
  color: var(--ink-58);
}

/* --- CTA --- */
.svc-cta, .about-contact { margin-top: 112px; }

.cta {
  background: var(--soft);
  border-radius: var(--r-md);
  padding: 64px 48px;
}

.cta__eyebrow { color: var(--ink-40); margin-bottom: 16px; }

.cta__t {
  font-family: var(--font-display);
  font-size: var(--t-section);
  line-height: 1.12;
  letter-spacing: -0.4px;
  text-wrap: pretty;
}

.cta__d { max-width: 58ch; margin-top: 18px; }

.cta__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .svc { margin-top: 72px; }
  .svc__row { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-block: 36px; }
  .svc-dark__inner { padding: 40px 28px; }
  .svc-dark__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .proc { grid-template-columns: minmax(0, 1fr); }
  .svc-dark, .svc-proc, .svc-cta, .about-contact { margin-top: 80px; }
  .cta { padding: 44px 28px; }
}

@media (max-width: 640px) {
  .svc__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svc__num { padding-top: 0; }
}

/* ===========================================================================
   ABOUT
   =========================================================================== */
.bio {
  margin-top: 88px;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.bio__media {
  position: relative;
  aspect-ratio: 420 / 480;
  border-radius: var(--r-md);
}
.bio__media img { width: 100%; height: 100%; object-fit: cover; }

.bio__stamp {
  position: absolute;
  top: 16px; left: 14px;
  font-size: var(--t-caption);
  color: #fff;
  letter-spacing: -0.12px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.bio__prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 64ch;
  font-size: var(--t-meta);
  line-height: 1.6;
  letter-spacing: -0.16px;
  color: var(--ink-58);
  padding-top: 4px;
}
.bio__prose p:first-child { color: var(--ink); }

/* --- experience --- */
.exp { margin-top: 112px; }

.xp { margin-top: 36px; }

.xp__row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  padding-block: 28px;
  border-top: 1px solid var(--rule-soft);
}
.xp__row:last-child { border-bottom: 1px solid var(--rule-soft); }

.xp__when {
  font-size: var(--t-caption);
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.xp__row--now .xp__when {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}
.xp__row--now .xp__when::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #4cde78;
  flex: none;
}

.xp__role {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.xp__org {
  font-size: 14px;
  color: var(--ink-40);
  margin-top: 3px;
}

.xp__note {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.14px;
  color: var(--ink-58);
  max-width: 68ch;
  margin-top: 12px;
}

/* --- credentials --- */
.cred {
  margin-top: 112px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cred__block {
  padding: 28px 24px 32px;
  border-radius: var(--r-md);
  background: var(--panel);
}

.cred__h { color: var(--ink-40); margin-bottom: 20px; }

.cred__list { display: flex; flex-direction: column; gap: 18px; }
.cred__list li { display: flex; flex-direction: column; gap: 3px; }

.cred__t {
  font-size: 14px;
  letter-spacing: -0.14px;
}

.cred__m {
  font-size: var(--t-caption);
  color: var(--ink-40);
  line-height: 1.45;
}

.cta--wide .cta__d { max-width: 64ch; }

@media (max-width: 1000px) {
  .bio { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 56px; }
  .bio__media { aspect-ratio: 16 / 10; }
  .bio__prose { font-size: 15px; }
  .exp, .cred { margin-top: 80px; }
  .cred { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .xp__row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 22px; }
  .xp__when { padding-top: 0; }
}

.work-list { margin-top: 72px; }


/* --- locked entries --- */


@media (max-width: 1000px) {
  .work-list { margin-top: 52px; }
  
}


/* ===========================================================================
   CASE STUDY
   The content sits on a white panel, as in the Figma. Sections inset 8px
   from the panel edge and stack with an 8px gap, matching the source file.
   =========================================================================== */
.cs {
  background: var(--panel);
  border-radius: var(--r-md);
  padding: var(--pad);
  margin-top: var(--pad);
}

/* --- header --- */
.cs__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px 0;
}

.cs__title { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.cs__name {
  font-family: var(--font-display);
  font-size: var(--t-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.44px;
}

.cs__visit {
  font-size: var(--t-nav);
  letter-spacing: -0.28px;
  color: var(--ink-58);
}
.cs__visit:hover { color: var(--ink); }

.cs__visitIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 3px;
  background: #d3d3d3;
  font-size: 9px;
  color: var(--ink);
}

.cs__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #d3d3d3;
  font-size: 17px;
  line-height: 1;
  transition: background-color var(--t-fast) var(--ease);
}
.cs__close:hover { background: #bdbdbd; }

/* --- meta row --- */
.cs__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 26px 16px 44px;
  flex-wrap: wrap;
}

.cs__intro { max-width: 460px; }

.cs__lede {
  font-family: var(--font-display);
  font-size: var(--t-nav);
  line-height: 1.5;
  letter-spacing: -0.14px;
  color: var(--ink-58);
}

.cs__stores { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

.store {
  display: inline-flex;
  flex-direction: column;
  padding: 7px 14px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.store strong { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; }

.cs__cols { display: flex; gap: 56px; flex-wrap: wrap; }

.cs__col dt {
  font-family: var(--font-display);
  font-size: var(--t-meta);
  font-weight: 700;
  line-height: 1.5;
}
.cs__col dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-meta);
  line-height: 1.5;
  color: var(--ink-58);
}
.cs__col-gap { margin-top: 18px; }

/* --- full-bleed media --- */
.cs-hero, .cs-full {
  margin: 0 0 var(--pad);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--dark);
}
.cs-hero img, .cs-full img { width: 100%; height: auto; }
.cs-full--soft { background: var(--soft); }

/* --- challenge / solution pair --- */
.cs-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pad);
  margin-bottom: var(--pad);
}

.cs-panel {
  padding: 48px 40px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
}

.cs-panel--dark { background: var(--dark); color: var(--on-dark); }
.cs-panel--soft { background: var(--soft); color: var(--ink); }

.cs-panel__eyebrow { margin-bottom: 18px; }
.cs-panel--dark .cs-panel__eyebrow { color: var(--on-dark-45); }
.cs-panel--soft .cs-panel__eyebrow { color: var(--ink-40); }

.cs-panel__h { margin-bottom: auto; padding-bottom: 32px; }

.cs-panel__b {
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.15px;
  max-width: 54ch;
}
.cs-panel--dark .cs-panel__b { color: var(--on-dark-70); }
.cs-panel--soft .cs-panel__b { color: var(--ink-58); }

/* --- full-width block with heading above media --- */
.cs-block {
  padding: 56px 40px;
  border-radius: var(--r-md);
  margin-bottom: var(--pad);
}
.cs-block--dark { background: var(--dark); color: var(--on-dark); }
.cs-block--soft { background: var(--soft); color: var(--ink); }

.cs-block__head { max-width: 900px; margin-bottom: 44px; }
.cs-block__head--tight { max-width: 760px; }

.cs-block__eyebrow { margin-bottom: 16px; }
.cs-block--dark .cs-block__eyebrow { color: var(--on-dark-45); }
.cs-block--soft .cs-block__eyebrow { color: var(--ink-40); }

.cs-block__b {
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.15px;
  max-width: 62ch;
  margin-top: 18px;
}
.cs-block--dark .cs-block__b { color: var(--on-dark-70); }
.cs-block--soft .cs-block__b { color: var(--ink-58); }

.cs-block__media { margin: 0; border-radius: var(--r-sm); overflow: hidden; }
.cs-block__media img { width: 100%; height: auto; }

.cs-block__media--inset {
  max-width: 1037px;
  margin-inline: auto;
  background: transparent;
}

.cs-block--center { text-align: center; }
.cs-block__centerH { margin-bottom: 48px; }

/* --- two-column text + media --- */
.cs-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  padding: 56px 40px;
  border-radius: var(--r-md);
  margin-bottom: var(--pad);
}
.cs-split--dark { background: var(--dark); color: var(--on-dark); }
.cs-split--soft { background: var(--soft); color: var(--ink); }

.cs-split__text { max-width: 58ch; }
.cs-split__text .section-title { margin-bottom: 26px; }

.cs-split__eyebrow { margin-bottom: 16px; }
.cs-split--dark .cs-split__eyebrow { color: var(--on-dark-45); }
.cs-split--soft .cs-split__eyebrow { color: var(--ink-40); }

.cs-split__b {
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: -0.15px;
}
.cs-split__b + .cs-split__b { margin-top: 16px; }
.cs-split--dark .cs-split__b { color: var(--on-dark-70); }
.cs-split--soft .cs-split__b { color: var(--ink-58); }

.cs-split__b--note { font-style: italic; }
.cs-split--dark .cs-split__b--note { color: var(--on-dark-45); }

.cs-split__b code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--on-dark);
}
.cs-split--soft .cs-split__b code {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

.cs-split__media { margin: 0; border-radius: var(--r-sm); overflow: hidden; }
.cs-split__media img { width: 100%; height: auto; }
.cs-split__media--chart { background: var(--panel); border-radius: var(--r-md); }

/* media on the left, text on the right */
.cs-split--mediaFirst .cs-split__media { order: -1; }

/* --- feature trio under the analysis block --- */
.cs-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cs-feat__t {
  font-family: var(--font-display);
  font-size: var(--t-meta);
  font-weight: 700;
  margin-bottom: 8px;
}

.cs-feat__d {
  font-size: var(--t-nav);
  line-height: 1.55;
  letter-spacing: -0.14px;
  color: var(--ink-58);
}

/* --- sheet anatomy list --- */
.cs-anat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cs-anat li {
  font-size: var(--t-nav);
  line-height: 1.55;
  letter-spacing: -0.14px;
  color: var(--on-dark-45);
}
.cs-anat__k {
  display: block;
  color: var(--on-dark);
  font-weight: 600;
  margin-bottom: 3px;
}

/* --- outro --- */
.cs-outro {
  padding: 64px 40px 56px;
  border-radius: var(--r-md);
  background: var(--soft);
}
.cs-outro__eyebrow { color: var(--ink-40); margin-bottom: 16px; }
.cs-outro__h { max-width: 18ch; }

.cs-outro__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cs-outro__t {
  font-family: var(--font-display);
  font-size: var(--t-meta);
  font-weight: 700;
  margin-bottom: 8px;
}

.cs-outro__d {
  font-size: var(--t-nav);
  line-height: 1.6;
  letter-spacing: -0.14px;
  color: var(--ink-58);
  max-width: 50ch;
}

.cs-outro__actions {
  display: flex;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- case study responsive --- */
@media (max-width: 1100px) {
  .cs-panel, .cs-block, .cs-split { padding: 40px 28px; }
  .cs-split { gap: 32px; }
  .cs__cols { gap: 32px; }
}

@media (max-width: 900px) {
  .cs-pair { grid-template-columns: minmax(0, 1fr); }
  .cs-split { grid-template-columns: minmax(0, 1fr); }
  /* keep reading order text-then-media once stacked */
  .cs-split--mediaFirst .cs-split__media { order: 0; }
  .cs-feats { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cs-outro__cols { grid-template-columns: minmax(0, 1fr); }
  .cs__meta { gap: 32px; padding-bottom: 32px; }
}

@media (max-width: 640px) {
  .cs { padding: 6px; }
  .cs__head { padding: 10px 10px 0; }
  .cs__meta { padding: 20px 10px 28px; }
  .cs-panel, .cs-block, .cs-split, .cs-outro { padding: 32px 20px; }
  .cs__cols { gap: 24px; flex-direction: column; }
  .cs-outro__h { max-width: none; }
}

/* ===========================================================================
   CONTACT POPOVER
   Opens on hover (fine pointers) and on tap or keyboard focus everywhere
   else. Email is a copy button rather than a mailto: link, because mailto
   is unreliable in embedded contexts and a copied address always works.
   =========================================================================== */
.cwrap { position: relative; display: flex; align-items: center; }

.cpop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(336px, calc(100vw - 32px));
  padding: 6px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 12px 32px -8px rgba(0, 0, 0, 0.18);

  opacity: 0;
  visibility: hidden;           /* also removes it from the tab order */
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease),
              transform 0.18s var(--ease),
              visibility 0s linear 0.18s;
}

.cpop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s var(--ease),
              transform 0.18s var(--ease),
              visibility 0s;
}

/* --- book a meeting --- */
.cpop__book {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel);
  transition: background-color var(--t-fast) var(--ease);
}
.cpop__book:hover { background: #f4f4f4; }

.cpop__mark {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 9px;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.cpop__mark::after {
  content: "";
  width: 17px; height: 17px;
  border-radius: 999px;
  border: 3px solid var(--panel);
}

.cpop__bookText { flex: 1 1 auto; min-width: 0; }

.cpop__bookT {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.15px;
}

.cpop__bookM {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-caption);
  color: var(--ink-40);
  margin-top: 1px;
}

.cpop__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #27c457;
  flex: none;
}

.cpop__arrow {
  flex: none;
  align-self: flex-start;
  font-size: 12px;
  line-height: 1;
  color: var(--ink-40);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.cpop__book:hover .cpop__arrow,
.cpop__person:hover .cpop__arrow { transform: translate(1px, -1px); color: var(--ink); }

/* --- detail rows --- */
.cpop__rows {
  margin-top: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f4f4f4;
}

.cpop__row { display: flex; align-items: center; }

.cpop__copy {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: var(--t-nav);
  letter-spacing: -0.14px;
  transition: background-color var(--t-fast) var(--ease);
}
.cpop__copy:hover { background: rgba(0, 0, 0, 0.05); }

.cpop__copy svg {
  width: 15px; height: 15px;
  flex: none;
  fill: none;
  stroke: var(--ink-40);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--t-fast) var(--ease);
}
.cpop__copy:hover svg { stroke: var(--ink); }

.cpop__copy.is-copied svg { stroke: #27c457; }
.cpop__copy.is-copied .cpop__val { color: #1a9c45; }

.cpop__row--split {
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: 2px;
}

.cpop__k { font-size: var(--t-caption); color: var(--ink-40); }
.cpop__time { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- person --- */
.cpop__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 12px;
  border-radius: 8px;
  transition: background-color var(--t-fast) var(--ease);
}
.cpop__person:hover { background: #f4f4f4; }

.cpop__face {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--t-caption);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-58);
}

.cpop__pText { flex: 1 1 auto; min-width: 0; }

.cpop__pName {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-nav);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.14px;
}

.cpop__pRole {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-40);
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cpop { transition: visibility 0s, opacity 0.01ms; transform: none; }
  .cpop.is-open { transform: none; }
}

/* Clipboard refused — the address is selected instead, so say so. */
.cpop__copy.is-hint { background: rgba(0, 0, 0, 0.05); }
.cpop__copy.is-hint .cpop__val { color: var(--ink); }
.cpop__copy.is-hint svg { stroke: var(--ink); }

/* ===========================================================================
   WORK SHOWCASE
   Row pattern from the Figma homepage: a meta column (identity at the top,
   description at the foot) beside three media tiles, rows divided by
   hairlines. The hover affordance is the one addition.
   =========================================================================== */
.showcase { margin-top: 32px; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 335px) minmax(0, 1fr);
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--rule-soft);
}
.showcase .row:last-child { border-bottom: 1px solid var(--rule-soft); }

.row__meta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
}

.row__id { display: flex; align-items: center; gap: 12px; }

.row__logo {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 9px;
  background: #e8e8e8;
  overflow: hidden;
}
.row__logo img { width: 100%; height: 100%; }
.row__logo--blank { background: rgba(0, 0, 0, 0.06); }

.row__idText { min-width: 0; }

.row__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-meta);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.16px;
}

.row__sector {
  display: block;
  font-size: var(--t-caption);
  color: var(--ink-40);
  margin-top: 2px;
}

.row__desc {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.13px;
  color: var(--ink-40);
  max-width: 40ch;
}

/* --- the hover affordance --- */
.row__open {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--panel);
  font-size: var(--t-caption);
  letter-spacing: -0.12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(7px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.row--live:hover .row__open,
.row--live:focus-visible .row__open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* --- tiles --- */
.row__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.row__tile {
  margin: 0;
  aspect-ratio: 372 / 300;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--dark);
  max-width: 100%;
}
.row__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.row--live:hover .row__tile img { transform: scale(1.03); }

/* --- locked projects get one honest block, not three fake tiles --- */
.row__tiles--locked {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1132 / 300;
  padding: 32px 36px;
  border-radius: var(--r-md);
  border: 1px solid var(--rule-soft);
}

.row__lockT {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-40);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

.row__lockD {
  font-size: var(--t-nav);
  line-height: 1.55;
  letter-spacing: -0.14px;
  color: var(--ink-40);
  max-width: 62ch;
}

/* --- explore all --- */
.showcase__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.showcase__more .link { font-size: 14px; }

@media (max-width: 1000px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .row__meta { gap: 18px; }
  .row__desc { max-width: none; }
  /* No hover on the way to a tap — show the cue as a static chip instead. */
  .row__open {
    position: static;
    align-self: flex-start;
    opacity: 1;
    transform: none;
    padding: 6px 12px;
    font-size: 11px;
  }
  .row__tiles--locked { aspect-ratio: auto; padding: 24px; }
}

@media (max-width: 560px) {
  .row__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row__tile:nth-child(3) { display: none; }
}

/* ===========================================================================
   WORK SHELL — sticky project list beside a content pane
   The pane shows the gallery; selecting a project loads its case study
   into the same pane while the list stays put. Below 1000px the list
   hides and the gallery becomes a stacked feed.
   =========================================================================== */
.wshell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* --- sidebar --- */
.side {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.allchip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 6px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--panel);
  font-size: var(--t-nav);
  font-weight: 500;
  letter-spacing: -0.28px;
}
.allchip svg { width: 12px; height: 12px; }

.li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--panel);
  transition: background-color 0.2s ease;
}
.li--link { cursor: pointer; }
.li--link:hover, .li.is-current { background: #f7f7f7; }
.li--locked { cursor: default; }
.li--locked .li__title, .li--locked .li__desc { color: var(--ink-40); }

.li__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 0;
}

.li__industry {
  font-size: var(--t-caption);
  letter-spacing: -0.02em;
  color: var(--ink-58);
}

/* expand control: two bars; the vertical one rotates flat when current */
.expand {
  position: relative;
  width: 16px; height: 16px;
  flex: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.expand::before, .expand::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 50%;
  height: 1.3px;
  margin-top: -0.65px;
  background: currentColor;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.expand::after { transform: rotate(90deg); }
.li.is-current .expand { background: var(--ink); color: var(--panel); }
.li.is-current .expand::after { transform: rotate(0deg); }
.li--locked .expand { opacity: 0.4; }

.li__bottom { display: flex; align-items: flex-start; gap: 12px; }

.li__logo {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 10px;
  background: var(--dark);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.li__logo img { width: 100%; height: 100%; }
.li__logo--blank { background: rgba(0, 0, 0, 0.06); }

.li__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.li__title { font-size: var(--t-nav); font-weight: 500; letter-spacing: -0.14px; }
.li__desc {
  font-size: var(--t-nav);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.14px;
  color: var(--ink-40);
  max-width: 25ch;
}

/* --- content pane --- */
.pane {
  min-width: 0;
  min-height: calc(100vh - var(--nav-h) - 32px);
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--panel);
  transition: opacity 0.25s ease;
}
.pane.is-loading { opacity: 0.45; }

.pane__title {
  font-family: var(--font-display);
  font-size: var(--t-section);
  line-height: 1.1;
  letter-spacing: -0.4px;
  padding: 20px 12px 28px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gal { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gal--wide { grid-column: 1 / -1; }

.gal__head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 0; }
.gal__logo {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 7px;
  background: var(--dark);
  overflow: hidden;
}
.gal__logo img { width: 100%; height: 100%; }
.gal__logo--blank { background: rgba(0, 0, 0, 0.06); }
.gal__name { font-size: var(--t-nav); font-weight: 500; letter-spacing: -0.14px; }
.gal__kind { font-size: var(--t-caption); color: var(--ink-40); margin-left: 2px; }

.gal__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--dark);
}
.gal--wide .gal__media { aspect-ratio: 1480 / 825; }
.gal__media img { width: 100%; height: 100%; object-fit: cover; }

.gal__block {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--rule-soft);
}
.gal__status {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-40);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}
.gal__note {
  font-size: var(--t-nav);
  line-height: 1.5;
  letter-spacing: -0.14px;
  color: var(--ink-40);
  max-width: 52ch;
}

/* case study rendered inside the pane: the pane is already the white card */
.pane .cs { background: transparent; margin: 0; padding: 0; }
.pane .cs__head { padding-top: 12px; }

/* --- responsive --- */
@media (max-width: 1100px) {
  .wshell { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .wshell { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .side { display: none; }
  .pane { min-height: 0; }
  .pane__title { padding: 16px 8px 20px; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gal { padding: 16px 0; border-top: 1px solid var(--rule-soft); }
  .gal:first-child { border-top: 0; }
  .gal--wide { grid-column: auto; }
  .gal--wide .gal__media { aspect-ratio: 16 / 10; }
  .gal__head { padding: 0 8px 4px; }
  .gal__logo { width: 44px; height: 44px; border-radius: 9px; }
  .gal__name { font-size: 16px; }
}

/* ===========================================================================
   ZUNIDESIGN ADDITIONS
   =========================================================================== */
.nav__brand { display: inline-flex; align-items: center; gap: 8px; }
.nav__brand:hover .nav__mark { transform: scale(1.08); }
.nav__word {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: -0.3px;
}
.foot--slim { padding-top: 0; margin-top: 0; }
.foot--slim .foot__base { padding-top: 24px; }

/* Free-files band — used on the homepage and the download page */
.home-free { padding-top: 24px; }
.free-band {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--dark);
  color: var(--on-dark);
  transition: background-color var(--t-fast) var(--ease);
}
.free-band:hover { background: #1c1c22; }
.free-band__k { font-size: var(--t-caption); color: var(--on-dark-45); }
.free-band__t { font-family: var(--font-display); font-size: var(--t-title); line-height: 1.2; letter-spacing: -0.3px; text-wrap: pretty; }
.free-band__go {
  font-size: 13px; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); white-space: nowrap;
  transition: transform var(--t-fast) var(--ease);
}
.free-band:hover .free-band__go { transform: translateX(3px); }
.free-band--light { background: var(--panel); color: var(--ink); }
.free-band--light:hover { background: #f7f7f7; }
.free-band--light .free-band__k { color: var(--ink-40); }
.free-band--light .free-band__go { background: var(--ink); color: var(--panel); }
@media (max-width: 760px) {
  .free-band { grid-template-columns: 1fr; gap: 10px; }
  .free-band__go { justify-self: start; }
}

/* Download page */
.dl { max-width: 880px; margin-inline: auto; padding-bottom: 64px; }
.dl__hero { padding-top: 96px; padding-bottom: 32px; }
.dl__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-58); margin-bottom: 18px; }
.dl__title { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.6px; max-width: 18ch; }
.dl__note { margin-top: 18px; max-width: 52ch; font-size: var(--t-body); line-height: 1.5; color: var(--ink-58); }

.dl__panel { background: var(--panel); border-radius: var(--r-md); padding: 8px; }
.dl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 16px; }
.dl__h { font-family: var(--font-display); font-size: var(--t-title); letter-spacing: -0.3px; }
.dl__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dl__item {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px; border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease);
}
.dl__item:hover, .dl__item:focus-visible { background: #f7f7f7; }
.dl__type {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; color: var(--ink-58);
}
.dl__text { display: grid; gap: 3px; min-width: 0; }
.dl__name { font-size: var(--t-meta); font-weight: 500; letter-spacing: -0.2px; overflow-wrap: anywhere; }
.dl__meta { font-size: 13px; color: var(--ink-40); }
.dl__go {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--ink); color: var(--panel); font-size: 15px;
  transition: transform var(--t-fast) var(--ease);
}
.dl__item:hover .dl__go { transform: translateY(2px); }
.dl__after { display: grid; gap: 8px; margin-top: 24px; }
@media (max-width: 560px) {
  .dl__hero { padding-top: 56px; }
  .dl__head { flex-direction: column; align-items: stretch; }
  .dl__head .btn { justify-content: center; }
}
.foot--slim .foot__base { margin-top: 0; }

/* ===========================================================================
   HOME — 2026-11 redesign (Figma PORTFOLIO_2026, frame 361:6126)
   Measurements are taken from the 1512px frame: a 1272px column with an
   18px inset, so content runs 1236px wide. Everything here is scoped to
   body.zh so free.html keeps the original look.
   =========================================================================== */
body.zh {
  --zh-col:    1272px;
  --zh-inset:  18px;
  --zh-page:   #fcfcfc;
  --zh-ink:    #1e1e1e;
  --zh-rule:   #c6c6c6;
  --zh-grid:   #e2e2e2;
  --zh-dash:   rgba(153, 159, 173, 0.5);
  position: relative;
  background: var(--zh-page);
  overflow-x: clip;
}

/* Column guides: solid at the column edges, dashed every 300px between. */
body.zh::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: min(var(--zh-col), 100% - 2 * var(--gutter));
  transform: translateX(-50%);
  /* Only the two outer column edges; the inner 300px guides were dropped
     site-wide (Figma 404:9060). */
  border-inline: 1px solid var(--zh-grid);
  pointer-events: none;
  z-index: 0;
}

.zh-frame, .zh-foot { position: relative; z-index: 1; }

/* --- nav ---------------------------------------------------------------- */
.zh .zh-nav {
  padding: 0;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.zh-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--zh-col), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 8px var(--zh-inset);
}

.zh-nav__left { display: flex; align-items: center; gap: 19px; }

.zh-nav__brand {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.54px;
  color: #000;
  white-space: nowrap;
}

.zh-nav__links { display: flex; align-items: center; gap: 4px; }

.zh .pill { font-weight: 524; }
.zh .zh-nav__links .pill { line-height: 1.25; }

.zh-pill--dark { background: #2c2c2c; color: #ffffff; }
.zh-pill--dark:hover { background: #000000; }

/* Booking icon in the contact popover (Figma 395:18135: 212x209 frame,
   #121212, 30px radius, 140px phone glyph at 36/35), scaled to 40px. */
.zh-book-mark {
  position: relative;
  overflow: hidden;
  border-radius: 14.15%;
  background: #121212;
}
.zh-book-mark::after { content: none; }
.zh-book-mark img {
  position: absolute;
  left: 16.98%;
  top: 16.75%;
  width: 66.04%;
  height: auto;
  max-width: none;
}

/* Instagram row avatar */
.zh-face { overflow: hidden; }
.zh-face img { width: 100%; height: 100%; object-fit: cover; }

/* --- column ------------------------------------------------------------- */
.zh-frame main {
  width: min(var(--zh-col), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* --- hero --------------------------------------------------------------- */
.zh-hero {
  display: flex;
  align-items: flex-start;
  gap: 110px;
  padding: 77px var(--zh-inset) 0;
  color: #000;
  line-height: 1.22;
}

.zh-hero__title {
  flex: 0 1 641px;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1.14px;
}

.zh-hero__aside {
  flex: 0 1 485px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.54px;
}

/* --- work rows ---------------------------------------------------------- */
.zh-work {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 125px;
}

.zh-row {
  display: flex;
  gap: 9px;
  padding: 24px var(--zh-inset) 0;
  border-top: 1px solid var(--zh-rule);
}

.zh-row--link { color: inherit; }
.zh-row--link .zh-tile { transition: transform var(--t-fast) var(--ease); }
.zh-row--link:hover .zh-tile { transform: translateY(-2px); }
.zh-row--link:hover .zh-row__name { text-decoration: underline; text-underline-offset: 3px; }

.zh-row__meta {
  flex: 0 0 291px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.zh-row__id { display: flex; align-items: center; gap: 12px; }

.zh-row__logo {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 7.273px;
  background: #0c0c0c;
  overflow: hidden;
}

.zh-row__logo--agent { position: relative; background: #1fa9ee; }
.zh-row__logo--agent img { position: absolute; left: 3px; top: 3.5px; }

.zh-row__idText { line-height: normal; }

.zh-row__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--zh-ink);
}

.zh-row__type {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
}

.zh-row__desc {
  max-width: 247px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.12px;
  color: rgba(0, 0, 0, 0.4);
}

.zh-row__tiles {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 8px;
}

.zh-tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

/* Images inside tiles are placed from the tile's centre, as in Figma. */
.zh-tile > img {
  position: absolute;
  left: 50%; top: 50%;
  max-width: none;
}

.zh-tile__logo { width: 106px; height: 106px; transform: translate(calc(-50% + 0.17px), -50%); }
.zh-tile--ft-logo .zh-tile__logo { border-radius: 24.091px; background: #0c0c0c; }

.zh-tile--ft-logo  { background: #191919; }
.zh-tile--ft-hand  { background: transparent; }
.zh-tile--ft-hand > img {
  width: 495px; height: 371px;
  object-fit: cover;
  transform: translate(calc(-50% + 17.17px), calc(-50% + 20.5px));
}
.zh-tile--ft-phone { background: #161719; }
.zh-tile--ft-phone > img {
  width: 473.455px; height: 651px;
  object-fit: cover;
  transform: translate(calc(-50% - 0.27px), calc(-50% + 105.5px));
}

.zh-tile--pp-logo   { background: #2b72de; }
.zh-tile--pp-screen { background: #161719; }
.zh-tile__shot {
  width: 175px;
  object-fit: cover;
}
.zh-tile__shot--a {
  height: 380.473px;
  border-radius: 24.725px;
  transform: translate(calc(-50% + 0.83px), calc(-50% + 69.24px));
}
.zh-tile__shot--b {
  height: 380px;
  border-radius: 24px;
  transform: translate(calc(-50% + 0.5px), calc(-50% + 70px));
}

.zh-tile--agent-a { background: #1f1f1f; }
.zh-tile--agent-b { background: #1a1a1a; }
.zh-tile--agent-c {
  background: radial-gradient(50% 50% at 50% 50%, #535353 0%, #363636 50%, #282828 75%, #1a1a1a 100%);
}
.zh-tile--agent-c > img {
  top: -10px;
  left: calc(50% - 312.33px);
  width: 688.057px; height: 319px;
  object-fit: cover;
}

/* --- studio band -------------------------------------------------------- */
.zh-studio {
  margin-top: 124px;
  padding-inline: var(--zh-inset);
}

.zh-studio__card {
  display: flex;
  align-items: center;
  gap: 55px;
  padding: 60px 64px;
  border-radius: 6px;
  background: #1e1e1e;
}

.zh-studio__copy, .zh-studio__media { flex: 1 1 0; min-width: 0; }

.zh-studio__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 157px;
}

.zh-studio__text {
  max-width: 373px;
  font-family: "Inter", var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.36px;
  color: #f1efef;
}
.zh-studio__text p + p { margin-top: 18px; }

.zh-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #ffffff;
  color: #0f0f0f;
  font-size: 14px;
  font-weight: 524;
  line-height: 1.22;
  letter-spacing: -0.42px;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.zh-btn-light:hover { transform: translateY(-1px); background: #ececec; }

.zh-studio__media {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.zh-studio__photo {
  position: relative;
  height: 316px;
  overflow: hidden;
  border-radius: 6px;
  background: #dbdbdb;
  container-type: inline-size;
}

/* Figma frame: 526.5px wide box, image 553.5px wide sitting 238px up. */
.zh-studio__photo img {
  position: absolute;
  left: 0;
  top: calc(-238 / 526.5 * 100cqw);
  width: calc(553.5 / 526.5 * 100cqw);
  height: auto;
  max-width: none;
}

.zh-studio__person { display: flex; align-items: flex-start; gap: 13px; }

.zh-studio__yt {
  display: flex;
  align-items: center;
  padding: 6px 26px;
  border-radius: 10px;
  background: #f74545;
}

.zh-studio__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 141px;
  line-height: normal;
  white-space: nowrap;
}

.zh-studio__name { font-size: 16px; font-weight: 600; letter-spacing: -0.32px; color: #ffffff; }
.zh-studio__role { font-size: 14px; color: #a8a8a8; }

/* --- index -------------------------------------------------------------- */
.zh-index {
  margin-top: 28px;
  padding-inline: var(--zh-inset);
}

.zh-index__card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px var(--zh-inset);
  overflow: hidden;
  border: 1px solid #dfdfdf;
  border-radius: 4px;
  background: #ffffff;
}

.zh-index__col--work     { flex: 0 0 281px; }
.zh-index__col--services { flex: 0 0 276px; }
.zh-index__col--products { flex: 0 0 280px; }
.zh-index__col--posts    { flex: 1 1 0; min-width: 0; }

.zh-index__h {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -1.02px;
  color: var(--zh-ink);
}

.zh-index__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 23px;
}

.zh-index__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: var(--ink-58);
  transition: color var(--t-fast) var(--ease);
}
a.zh-index__item:hover { color: #000; }

.zh-index__ic {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 6.364px;
  background: #0c0c0c;
  overflow: hidden;
}
img.zh-index__ic[src*="pp-logo"] { border-radius: 6.125px; background: #1a1a1a; }

.zh-index__ic--agent { background: #1fa9ee; }
.zh-index__ic--agent img { position: absolute; left: 2.63px; top: 3.06px; }

.zh-index__ic--svc { background: #181818; }
.zh-index__ic--svc img {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 0.44px));
}

/* --- footer ------------------------------------------------------------- */
.zh-foot {
  margin-top: 47px;
  padding-bottom: 44px;
}

.zh-foot__mark {
  width: min(var(--zh-col), 100% - 2 * var(--gutter));
  margin-inline: auto;
  border-bottom: 0;
}
.zh-foot__mark img { width: 100%; height: auto; }

/* Full-bleed rule under the wordmark */
.zh-foot__mark::after {
  content: "";
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid #000;
}

.zh-foot__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(1236px, 100% - 2 * var(--gutter) - 2 * var(--zh-inset));
  margin: 55px auto 0;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: #000;
}

.zh-foot__say {
  flex: 0 1 582px;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-58);
}

.zh-foot__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-inline: 24px;
}
.zh-foot__col--contact { flex: 0 0 300px; }
.zh-foot__col--links   { flex: 1 1 0; min-width: 0; }
.zh-foot__col a:not(.pill) { transition: color var(--t-fast) var(--ease); }
.zh-foot__col a:not(.pill):hover { color: var(--ink-58); }
.zh-foot .zh-pill--dark { line-height: 1.22; }

/* --- responsive --------------------------------------------------------- */
/* The dashed guides sit on a fixed 300px rhythm; drop them once the
   column is narrower than the design. */
@media (max-width: 1319px) {
  body.zh::before { background: none; }
}

@media (max-width: 1100px) {
  .zh-hero { gap: 48px; }
  .zh-hero__title { font-size: 32px; letter-spacing: -0.96px; }
  .zh-row { flex-direction: column; gap: 20px; }
  .zh-row__tiles { flex: none; }
  .zh-foot__say { flex: 1 1 0; min-width: 0; }
  .zh-row__meta { flex-basis: auto; }
  .zh-row__desc { max-width: 520px; }
  .zh-index__card { flex-wrap: wrap; row-gap: 40px; }
  .zh-index__col--work, .zh-index__col--services,
  .zh-index__col--products, .zh-index__col--posts { flex: 1 1 calc(50% - 12px); }
  .zh-studio__card { gap: 40px; padding: 48px; }
  .zh-studio__copy { gap: 64px; }
}

@media (max-width: 800px) {
  .zh-hero { flex-direction: column; gap: 20px; padding-top: 48px; }
  .zh-hero__title, .zh-hero__aside { flex: none; width: 100%; }
  .zh-work { margin-top: 64px; }
  .zh-row__tiles {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--zh-inset));
    padding-inline: var(--zh-inset);
    scroll-padding-inline: var(--zh-inset); /* snap to the text edge, not the rule */
    scrollbar-width: none;
  }
  .zh-row__tiles::-webkit-scrollbar { display: none; }
  .zh-tile { flex: 0 0 min(306px, 78%); scroll-snap-align: start; }
  .zh-studio { margin-top: 72px; }
  .zh-studio__card { flex-direction: column; align-items: stretch; padding: 32px 24px; }
  .zh-studio__copy { gap: 32px; }
  .zh-foot__row { flex-direction: column; gap: 28px; }
  .zh-foot__say { flex: none; }
  .zh-foot__col { padding-inline: 0; flex: none !important; }
}

@media (max-width: 640px) {
  /* keep Work / Services / About on phones: tighten the bar instead of hiding them */
  .zh-nav__inner { gap: 8px; padding-inline: 0; }
  .zh-nav__left { gap: 10px; min-width: 0; }
  .zh-nav__brand { font-size: 16px; letter-spacing: -0.48px; }
  .zh-nav__links { gap: 2px; }
  .zh .zh-nav .pill { padding: 4px 8px; font-size: 13px; letter-spacing: -0.3px; }
  .zh-hero__title { font-size: 28px; letter-spacing: -0.84px; }
  .zh-hero__aside { font-size: 16px; letter-spacing: -0.4px; }
  .zh-index__card { flex-direction: column; }
  .zh-index__col--work, .zh-index__col--services,
  .zh-index__col--products, .zh-index__col--posts { flex: none; width: 100%; }
  .zh-index__h { font-size: 28px; }
}

@media (max-width: 370px) {
  .zh-nav__left { gap: 8px; }
  .zh-nav__brand { font-size: 15px; letter-spacing: -0.45px; }
  .zh .zh-nav .pill { padding: 4px 6px; font-size: 12.5px; letter-spacing: -0.25px; }
}
@media (max-width: 340px) {
  .zh-nav__inner { width: calc(100% - 16px); }
  .zh-nav__left { gap: 6px; }
}

/* ===========================================================================
   CASE STUDY — Final Table (Figma PORTFOLIO_2026, frame 386:12398)
   Shares the body.zh column, nav, guides and footer with the homepage.
   Media tiles are 2x exports of the Figma frames; copy is live text.
   =========================================================================== */
.zc { font-family: "Asta Sans", var(--font-body); }

/* --- header ------------------------------------------------------------- */
.zc-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px var(--zh-inset) 0;
  font-family: var(--font-display);
}

.zc-head__top { display: flex; align-items: center; justify-content: space-between; }
.zc-head__titleRow { display: flex; align-items: center; gap: 28px; }

.zc-head__title {
  width: 247px;
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.44px;
  color: #000;
}

.zc-head__visit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  letter-spacing: -0.28px;
  color: var(--ink-58);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.zc-head__visit:hover { color: #000; }
.zc-head__visitIc { display: flex; padding: 2.137px; border-radius: 2.137px; background: #d3d3d3; }

.zc-head__close {
  display: flex;
  padding: 4.275px;
  border-radius: 999px;
  background: #d3d3d3;
  transition: background-color var(--t-fast) var(--ease);
}
.zc-head__close:hover { background: #c2c2c2; }

.zc-head__body { display: flex; align-items: flex-start; gap: 281px; }

.zc-head__intro { flex: 0 0 444px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.zc-head__desc {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.14px;
  color: var(--ink-58);
}

.zc-head__stores { position: relative; display: inline-block; }
.zc-head__stores img { display: block; width: 238.64px; height: 38px; }
.zc-store { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: background-color var(--t-fast) var(--ease); }
.zc-store--apple { left: 0; width: 48.4%; }
.zc-store--play { right: 0; width: 48.4%; }
.zc-store:hover { background: rgba(0, 0, 0, 0.06); }
.zc-store:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.zc-head__meta { flex: 1 1 0; display: flex; align-items: flex-start; gap: 24px; margin: 0; }
.zc-meta-stack { display: flex; flex-direction: column; gap: 8px; }
.zc-meta {
  display: flex;
  flex-direction: column;
  width: 155px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.16px;
  color: #000;
}
.zc-meta dt { font-weight: 700; margin-bottom: 4px; }
.zc-meta dd { margin: 0; }

/* --- body column ---------------------------------------------------------- */
.zc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px var(--zh-inset) 0;
}

.zc-row { display: grid; gap: 8px; }
.zc-row--2        { grid-template-columns: 1fr 1fr; }
.zc-row--site     { grid-template-columns: 764fr 464fr; }
.zc-row--gesture  { grid-template-columns: 604fr 632fr; gap: 0; }
.zc-row--snap     { grid-template-columns: 606fr 622fr; }
.zc-row--opp      { grid-template-columns: 488fr 740fr; }
.zc-row--settings { grid-template-columns: 337fr 892fr; gap: 6.876px; }
.zc-row--impl     { grid-template-columns: 420fr 809fr; gap: 6.881px; }
.zc-row--sheets   { grid-template-columns: 508fr 721fr; gap: 6.881px; }
.zc-col { display: flex; flex-direction: column; gap: 8px; }
.zc-h-486 { min-height: 486px; }
.zc-h-467 { min-height: 467px; }
.zc-h-827 { min-height: 827px; }

.zc-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}
.zc-tile > img { width: 100%; height: auto; }
.zc-tile > video { display: block; width: 100%; height: auto; }
.zc-tile--eee { background: #eeeeee; }
/* Looping screen recording (was a GIF), re-rendered on white. Keeps the old still's 1228x1924 tile shape;
   white fills the side bars. */
.zc-tile--video { aspect-ratio: 1228 / 1924; background: #fff; }
.zc-tile--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* --- cards ---------------------------------------------------------------- */
.zc-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.zc-card--dark { background: linear-gradient(180deg, #2e2e2e 0%, #000000 100%); color: #fff; }
.zc-card--soft { background: #f1efef; color: #000; }
.zc-card--center { display: flex; flex-direction: column; justify-content: center; }
.zc-card--p32 { padding: 32px; }

.zc-txt { display: flex; flex-direction: column; }
.zc-txt--cs   { padding: 24px 64px; }
.zc-txt--px32 { padding-inline: 32px; }
.zc-txt--abs  { position: absolute; }

.zc-label {
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.13px;
  color: #fff;
}
.zc-card--soft .zc-label, .zc-label--ink { color: #000; }

.zc-h {
  margin-top: var(--g1, 8px);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.24px;
}
.zc-h--soft { color: #f1efef; }
.zc-h--ink  { color: #000; }
.zc-h--tight { margin-top: 0; letter-spacing: -1.03px; }

.zc-body-copy {
  margin-top: var(--g2, 16px);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.15px;
  color: rgba(255, 255, 255, 0.7);
}
.zc-body-copy--140   { line-height: 1.4; }
.zc-body-copy--white { color: #fff; }
.zc-body-copy--ink   { color: rgba(41, 41, 41, 0.7); }

.zc-small {
  margin-top: var(--g2, 10px);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.13px;
  color: rgba(255, 255, 255, 0.78);
}
.zc-small--tight { line-height: 1.2; color: rgba(0, 0, 0, 0.78); }

/* --- 6 user flow ---------------------------------------------------------- */
.zc-flow {
  display: flex;
  align-items: center;
  gap: 49px;
  padding: 24px 32px;
}
.zc-flow__txt { flex: 0 0 478px; display: flex; flex-direction: column; padding: 24px 32px; }
.zc-flow__img { flex: 0 1 645px; min-width: 0; width: 645px; height: auto; }

/* --- 7 explore ------------------------------------------------------------ */
.zc-explore { padding: 47px 32px 167px; }
.zc-explore__h {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1.2px;
}
.zc-explore__img { width: min(1037px, 100%); height: auto; margin: 24px auto 0; }

/* --- 9 bottom nav --------------------------------------------------------- */
.zc-nav {
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 8px 22px 8px 21px;
  border-radius: 0;
}
.zc-nav__txt { flex: 0 0 502px; display: flex; flex-direction: column; gap: 35px; padding-inline: 32px; }
.zc-nav__txt .zc-txt { position: relative; z-index: 1; }
.zc-nav__bar { width: 380px; height: 66px; }
.zc-nav__bar img { width: 539px; max-width: none; height: auto; margin: -39px 0 0 -49px; }
.zc-nav__img { flex: 0 1 646px; min-width: 0; width: 646px; height: auto; }

/* --- 10 gesture ----------------------------------------------------------- */
.zc-gesture__card {
  align-self: center;
  min-height: 794px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 222px 64px;
}

/* --- 14 analysis ---------------------------------------------------------- */
.zc-analysis { display: flex; flex-direction: column; gap: 80px; padding: 43px 32px; }
.zc-analysis__top { display: flex; flex-direction: column; gap: 21px; margin-inline: -5px; }
.zc-analysis__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6.876px;
  padding: 20.627px 27.503px;
  text-align: center;
  line-height: 1.2;
}
.zc-analysis__kicker { font-size: 11.173px; letter-spacing: -0.11px; }
.zc-analysis__h { font-size: 24px; font-weight: 400; letter-spacing: -0.24px; }
.zc-analysis__d { max-width: 471px; font-size: 15px; letter-spacing: -0.15px; }
.zc-analysis__phones { position: relative; aspect-ratio: 1183 / 493; }
.zc-analysis__phones img {
  position: absolute;
  left: calc(-24 / 1183 * 100%);
  top: calc(-8 / 1183 * 100%);
  width: calc(1231 / 1183 * 100%);
  max-width: none;
  height: auto;
}

.zc-features { display: flex; gap: 39px; }
.zc-features p {
  flex: 1 1 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.15px;
}
.zc-features strong { font-weight: 700; }

/* --- 15 settings ---------------------------------------------------------- */
.zc-settings { border-radius: 6.876px; }
.zc-settings > img { width: 100%; height: 100%; object-fit: cover; }

/* --- 16 implementation ---------------------------------------------------- */
.zc-impl__card { padding: 56px 32px 32px; border-radius: 6.881px; }
.zc-row--impl .zc-tile, .zc-row--sheets .zc-card { border-radius: 6.881px; }

/* --- 18 sheets ------------------------------------------------------------ */
.zc-sheet__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 32px;
}
.zc-sheet__intro { display: flex; flex-direction: column; gap: 15.482px; }
.zc-sheet__lede { font-size: 15px; line-height: 1.6; }

.zc-notes { margin: 0; }
.zc-note { display: flex; align-items: flex-start; padding-block: 13.762px; }
.zc-note:first-child { padding-top: 0; }
.zc-note dt {
  flex: 0 0 120.419px;
  font-size: 10px;
  font-weight: 500;
  line-height: 18.923px;
  letter-spacing: -0.05px;
}
.zc-note dd {
  flex: 1 1 0;
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 18.063px;
  color: rgba(255, 255, 255, 0.6);
}

.zc-sheet__panel { padding: 31px 21px 0; }
.zc-sheet__head { display: flex; flex-direction: column; gap: 6.881px; max-width: 446px; }
.zc-sheet__h { font-size: 24px; font-weight: 400; line-height: 25.8px; letter-spacing: -1px; }
.zc-sheet__sub { font-size: 13px; line-height: 1.2; }
.zc-sheet__img { width: 700px; max-width: 100%; height: auto; margin-top: 49px; }
video.zc-sheet__img { display: block; }

/* --- footer spacing ------------------------------------------------------- */
.zc ~ .zh-foot, .zh-frame:has(.zc) + .zh-foot { margin-top: 68px; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .zc-head__body { flex-direction: column; gap: 28px; }
  .zc-head__intro { flex: none; max-width: 520px; }
  .zc-head__meta { flex-wrap: wrap; }
  .zc-flow, .zc-nav { flex-direction: column; align-items: stretch; }
  .zc-flow__txt, .zc-nav__txt { flex: none; }
  .zc-flow__img, .zc-nav__img { width: 100%; flex: none; }
  .zc-nav { padding: 32px 21px; }
  .zc-nav__img { max-width: 646px; margin-inline: auto; }
  .zc-txt--abs { position: static; width: auto !important; padding: 48px 40px; }
  .zc-gesture__card { padding: 64px 40px; min-height: 0; }
  .zc-row--gesture { gap: 8px; }
}

@media (max-width: 800px) {
  .zc-row--2, .zc-row--site, .zc-row--gesture, .zc-row--snap, .zc-row--opp,
  .zc-row--settings, .zc-row--impl, .zc-row--sheets { grid-template-columns: 1fr; }
  .zc-h-486, .zc-h-467, .zc-h-827 { min-height: 0; }
  .zc-head__title { width: auto; }
  .zc-head__titleRow { gap: 16px; }
  .zc-txt--cs { padding: 40px 24px; }
  .zc-txt--px32 { padding-inline: 0; }
  .zc-card--p32 { padding: 40px 24px; }
  .zc-txt--abs { padding: 40px 24px; }
  .zc-gesture__card { padding: 40px 24px; }
  .zc-flow { padding: 24px 0; }
  .zc-flow__txt { padding: 16px 24px; }
  .zc-explore { padding: 40px 16px 48px; }
  .zc-explore__h { font-size: 30px; letter-spacing: -0.9px; }
  .zc-nav__txt { padding-inline: 8px; }
  .zc-nav__bar { transform: scale(0.8); transform-origin: left top; }
  .zc-impl__card { padding: 40px 24px; }
  .zc-analysis { padding: 32px 16px; gap: 40px; }
  .zc-features { flex-direction: column; gap: 24px; }
  .zc-sheet__card { padding: 40px 24px; }
  .zc-note { flex-direction: column; gap: 4px; }
  .zc-note dt { flex: none; }
  .zc-sheet__panel { padding: 24px 16px 16px; }
  .zc-sheet__img { margin-top: 24px; }
}

/* ===========================================================================
   ABOUT — modelled on oimachi.co/posts/about, in the homepage's language:
   a posts sidebar in the first 300px column, the article in the rest, and
   the reading column starting on the 600px guide.
   =========================================================================== */
.za {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

/* --- sidebar -------------------------------------------------------------- */
.za-side {
  position: sticky;
  top: 50px;
  padding: 26px 18px 26px 8px;
}
.za-posts { display: flex; flex-direction: column; gap: 6px; }
.za-post {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color var(--t-fast) var(--ease);
}
a.za-post:hover { background: #f3f3f3; }
.za-post.is-current { background: #ffffff; border-color: #dfdfdf; }
.za-post__k { font-size: 11px; line-height: 1.3; color: rgba(0, 0, 0, 0.4); }
.za-post__t { font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: -0.14px; color: var(--zh-ink); }
.za-post__d { font-size: 12px; line-height: 1.3; letter-spacing: -0.12px; color: var(--ink-58); }
.za-post__img {
  display: block;
  margin-top: 6px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
}
.za-post__img img { width: 100%; height: 100%; object-fit: cover; }
.za-post.is-soon .za-post__t { color: var(--ink-58); }

/* --- hero ----------------------------------------------------------------- */
.za-main { min-width: 0; padding-bottom: 8px; }
.za-hero { padding: 26px var(--zh-inset) 0; }
.za-hero__t {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.44px;
  color: #000;
}
.za-hero__lead {
  max-width: 860px;
  margin-top: 56px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -1.14px;
  color: #000;
}
.za-hero__date { margin-top: 40px; font-size: 12px; color: rgba(0, 0, 0, 0.4); }
.za-hero__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  height: 560px;
}
.za-hero__img { margin: 0; overflow: hidden; border-radius: 8px; background: #191919; }
.za-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.za-hero__img--portrait img { object-position: 50% 35%; }

/* --- reading column ------------------------------------------------------- */
.za-body {
  width: min(618px, 100% - 195px);
  margin: 64px 0 0 177px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: var(--ink-58);
}
.za-body p + p { margin-top: 1em; }
.za-body h2 {
  margin: 72px 0 16px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.78px;
  color: #000;
}
.za-quote {
  margin: 48px 0 0;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -1.02px;
  color: #000;
  text-wrap: balance;
}
.za-link { color: #000; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.za-link:hover { color: var(--ink-58); }

.za-list { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.za-list li::marker { color: rgba(0, 0, 0, 0.3); }
.za-list + p { margin-top: 24px; }

.za-faq details { border-top: 1px solid #dfdfdf; }
.za-faq details:last-child { border-bottom: 1px solid #dfdfdf; }
.za-faq summary {
  position: relative;
  padding: 16px 0 16px 32px;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.36px;
  color: #000;
}
.za-faq summary::-webkit-details-marker { display: none; }
.za-faq summary::before, .za-faq summary::after {
  content: "";
  position: absolute;
  left: 4px; top: 50%;
  width: 12px; height: 1.5px;
  background: #000;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.za-faq summary::after { transform: rotate(90deg); }
.za-faq details[open] summary::after { transform: rotate(0deg); }
.za-faq details p { padding: 0 0 18px 32px; }

/* --- CTA ------------------------------------------------------------------ */
.za-cta { margin-top: 120px; padding-inline: var(--zh-inset); }
.za-cta__k { font-size: 16px; font-weight: 500; letter-spacing: -0.16px; color: #000; margin-bottom: 12px; }
.za-cta__card {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 60px 64px;
  border-radius: 6px;
  background: #1e1e1e;
}
.za-cta__face { flex: 0 0 87px; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: 10px; }
.za-cta__face img { width: 100%; height: 100%; object-fit: cover; }
.za-cta__copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.za-cta__t { font-size: 33px; font-weight: 600; line-height: 1.22; letter-spacing: -1.14px; color: #fff; }
.za-cta__d { max-width: 420px; font-size: 16px; line-height: 1.3; letter-spacing: -0.36px; color: rgba(241, 239, 239, 0.7); }
.za-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 8px; }
.za-cta__mail {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  background: #5f5f5f;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.42px;
  line-height: 1.22;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.za-cta__mail:hover { transform: translateY(-1px); background: #6c6c6c; }
/* The same card closes the homepage and case study, across the full column. */
.za-cta--page { position: relative; z-index: 1; width: min(var(--zh-col), 100% - 2 * var(--gutter)); margin-inline: auto; }

.zh-frame:has(.za-cta) .zh-foot { margin-top: 64px; }
.za-hero__media--single { grid-template-columns: 1fr; }
.za-hero__media--single .za-hero__img img { object-position: 50% 0; }

/* The sidebar keeps its place while the page scrolls. Once the list is
   taller than the window (it grows with every post) it scrolls on its own
   instead of sliding away with the page. motion.js already leaves .za-side
   to native scrolling. */
@media (min-width: 1101px) {
  .za-side {
    max-height: calc(100vh - 50px);
    max-height: calc(100dvh - 50px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color var(--t-fast) var(--ease);
  }
  .za-side:hover { scrollbar-color: rgba(0, 0, 0, 0.18) transparent; }
  [data-theme="dark"] .za-side:hover { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .za { grid-template-columns: minmax(0, 1fr); }
  .za-side { display: none; }
  .za-body { width: auto; max-width: 680px; margin-left: var(--zh-inset); margin-right: var(--zh-inset); }
  .za-hero__media { height: 460px; }
  .za-cta__card { padding: 40px; }
}

@media (max-width: 700px) {
  .za-hero__lead { margin-top: 32px; font-size: 28px; letter-spacing: -0.84px; }
  .za-hero__date { margin-top: 24px; }
  .za-hero__media { grid-template-columns: 1fr; height: auto; }
  .za-hero__img { aspect-ratio: 4 / 5; }
  .za-hero__media--single .za-hero__img { aspect-ratio: 3 / 2; }
  .za-body { margin-top: 40px; }
  .za-body h2 { margin-top: 56px; font-size: 24px; }
  .za-quote { font-size: 27px; letter-spacing: -0.8px; margin-top: 36px; }
  .za-cta { margin-top: 80px; }
  .za-cta__card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .za-cta__face { flex: none; width: 72px; }
  .za-cta__t { font-size: 28px; letter-spacing: -0.84px; }
}

/* ==========================================================================
   SERVICES (services/*.html) — reuses the About .za-* layout
   ========================================================================== */
.zs-group {
  padding: 18px 10px 8px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.4);
}
.zs-group:first-child { padding-top: 0; }
.zs-svc { flex-direction: row; align-items: flex-start; gap: 10px; }
.zs-svc__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #181818;
}
.zs-svc__ic img { width: 17.5px; height: 17.5px; }
.zs-svc__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.zs-hero__t {
  max-width: 860px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -1.02px;
}
.zs-hero__lead {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--ink-58);
}
.zs-crumb { margin-top: 28px; font-weight: 300; }
.zs-crumb span[aria-hidden] { margin: 0 4px; }
.zs-hero__img {
  margin: 12px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f3f0;
}
.zs-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.zs-steps { counter-reset: zs; display: grid; gap: 14px; }
.zs-steps li { counter-increment: zs; position: relative; padding-left: 36px; }
.zs-steps li::before {
  content: counter(zs, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums;
}
.zs-steps strong { font-weight: 600; color: #000; }
.zs-steps + p { margin-top: 24px; }

@media (max-width: 1100px) {
  /* keep the services switcher on smaller screens, as a scrolling row */
  .zs .zs-side {
    display: flex;
    gap: 6px;
    position: static;
    padding: 18px var(--zh-inset) 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .zs .zs-side::-webkit-scrollbar { display: none; }
  .zs-side .zs-group { display: none; }
  .zs-side .za-posts { flex: none; flex-direction: row; gap: 6px; }
  .zs .zs-side { scroll-padding-inline: var(--zh-inset); }
  .zs .zs-side::after { content: ""; flex: 0 0 calc(var(--zh-inset) - 6px); }
  .zs-side .za-posts li { flex: none; }
  .zs-side .za-post__d { display: none; }
  .zs-svc { align-items: center; padding: 6px 12px 6px 6px; border-color: #e6e6e6; }
  .zs-svc.is-current { border-color: #000; }
}
@media (max-width: 700px) {
  .zs-hero__t { font-size: 28px; letter-spacing: -0.84px; }
  .zs-hero__lead { font-size: 18px; }
  .zs-crumb { margin-top: 20px; }
}

/* ==========================================================================
   WORK ROWS: hover label, "coming soon" rows, line-drawing tiles
   ========================================================================== */
.zh-tile--art { background: #f4f3f0; }
.zh-tile--art > img { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }

/* Rows without a case study yet read as disabled. */
.zh-row--soon { cursor: default; }
.zh-row--soon .zh-row__tiles { opacity: 0.42; filter: grayscale(0.7); transition: opacity var(--t-fast) var(--ease); }
.zh-row--soon .zh-row__logo,
.zh-row--soon .zh-row__name,
.zh-row--soon .zh-row__desc { opacity: 0.55; }
.zh-row--soon:hover .zh-row__tiles { opacity: 0.5; }
.zh-soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
  vertical-align: 1px;
}

/* Label that follows the pointer over the tiles (pointer devices only; site.js). */
.zh-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #0f0f0f;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), scale 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.zh-cursor.is-on { opacity: 1; scale: 1; }
.zh-cursor.is-soon { background: rgba(30, 30, 30, 0.88); color: rgba(255, 255, 255, 0.78); }
@media (hover: hover) and (pointer: fine) {
  .zh-row--link .zh-row__tiles,
  .zh-row--soon .zh-row__tiles { cursor: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zh-cursor { transition: opacity 0.01s; scale: 1; }
}

/* Slow zoom on work thumbnails. `scale` composes with the images' positioning transforms. */
.zh-tile > img { transition: scale 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.zh-tile:hover > img { scale: 1.06; }
@media (prefers-reduced-motion: reduce) {
  .zh-tile > img { transition: none; }
  .zh-tile:hover > img { scale: 1; }
}

/* Studio card: the reel from @zuni.design plays in the founder box. */
.zh-studio__media:has(.zh-reel) {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto;
  column-gap: 28px;
  row-gap: 20px;
  align-items: end;
}
.zh-reel { grid-row: 1 / 4; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #111; }
.zh-studio__media:has(.zh-reel) .zh-studio__person { grid-column: 2; grid-row: 2; }
.zh-studio__media:has(.zh-reel) .zh-ig { grid-column: 2; grid-row: 3; justify-self: start; }
.zh-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
@media (max-width: 1100px) {
  .zh-studio__media:has(.zh-reel) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .zh-reel { grid-row: auto; width: min(100%, 270px); }
  .zh-studio__media:has(.zh-reel) .zh-studio__person,
  .zh-studio__media:has(.zh-reel) .zh-ig { grid-column: 1; grid-row: auto; }
}
.zh-reel__sound {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.zh-reel__sound:hover { background: rgba(15, 15, 15, 0.75); transform: scale(1.05); }
.zh-reel .zh-reel__ic { position: static; width: 16px; height: 16px; max-width: none; }
.zh-reel__ic--on, .zh-reel__sound[aria-pressed="true"] .zh-reel__ic--off { display: none; }
.zh-reel__sound[aria-pressed="true"] .zh-reel__ic--on { display: block; }
/* Play / stop and Follow on Instagram (Figma 429:9684, 429:9770). */
.zh-studio__yt.zh-reel__play {
  padding: 6px 16px;
  border: 0;
  border-radius: 10px;
  background: #0b0b0b;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.zh-studio__yt.zh-reel__play:hover { transform: translateY(-1px); background: #000; }
.zh-reel__pi { display: block; width: 20px; height: 20px; }
.zh-reel__pi--stop, .zh-reel__play[aria-pressed="true"] .zh-reel__pi--play { display: none; }
.zh-reel__play[aria-pressed="true"] .zh-reel__pi--stop { display: block; }

.zh-ig {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  border-radius: 8px;
  background: #353535;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.28px;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease);
}
.zh-ig img { display: block; }
.zh-ig__arrow { transition: transform var(--t-fast) var(--ease); }
.zh-ig:hover { background: #414141; }
.zh-ig:hover .zh-ig__arrow { transform: translate(2px, -2px); }

/* ==========================================================================
   LEGAL (privacy.html)
   ========================================================================== */
.zl { padding: 64px var(--zh-inset) 0; }
.zl-doc { width: min(618px, 100%); margin: 0 auto; }
.zl-k { font-size: 12px; color: rgba(0, 0, 0, 0.4); }
.zl-t { margin-top: 12px; font-size: 38px; font-weight: 600; line-height: 1.22; letter-spacing: -1.14px; }
.zl-date { margin-top: 16px; font-size: 12px; color: rgba(0, 0, 0, 0.4); }
.zl .zl-body { width: 100%; margin: 48px 0 0; }
.zl .zl-body h2 { margin-top: 48px; }
.zl .zl-body h2:first-of-type { margin-top: 40px; }
.zh-frame:has(.zl) .zh-foot { margin-top: 120px; }
@media (max-width: 700px) {
  .zl { padding-top: 40px; }
  .zl-t { font-size: 30px; letter-spacing: -0.9px; }
}

/* ===== 404 page ===== */
.z404 { min-height: 52vh; }
.z404__p { margin-top: 20px; font-size: 16px; line-height: 1.55; color: rgba(0, 0, 0, 0.6); }
.z404__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.z404__small { margin-top: 40px; font-size: 14px; }

/* ===== PixyPump case study (.zp) ===== */
.zp-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 56px 32px;
}
.zp-phone { display: block; width: min(280px, 44%); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22)); }
.zp-stage--hero { gap: 40px; padding: 72px 32px; }
.zp-stage--hero .zp-phone { width: min(300px, 30%); }
.zp-phone--lift { transform: translateY(-28px); }
.zp .zc-body-copy p + p { margin-top: 10px; }
.zp-row { grid-template-columns: 488fr 740fr; }
.zp-row--rev { grid-template-columns: 740fr 488fr; }
.zp-split { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 56px 32px; }
.zp-split__txt { align-self: stretch; max-width: 460px; padding-inline: 32px; }
.zp-split__phone { width: min(300px, 70%); margin-top: auto; }

@media (max-width: 1100px) {
  .zp-stage { gap: 16px; padding: 40px 20px; }
  .zp-stage--hero { gap: 16px; padding: 56px 16px; }
}
@media (max-width: 800px) {
  .zp-row, .zp-row--rev { grid-template-columns: 1fr; }
  .zp-row--rev .zp-stage { order: 2; }
  .zp-stage--hero .zp-phone { width: 31%; }
  .zp-phone--lift { transform: translateY(-14px); }
  .zp-split { padding: 40px 16px; }
  .zp-split__txt { padding-inline: 8px; }
}

/* --- insight posts: extra reading-column pieces --------------------------- */
.za-hero__media--drawing .za-hero__img { background: #f4f3f0; }
.za-hero__media--drawing .za-hero__img img { object-fit: contain; object-position: 50% 50%; }
.za-body strong { font-weight: 600; color: #000; }
.za-body h3 { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.36px; color: #000; margin-bottom: 6px; }
.za-steps { counter-reset: zstep; display: grid; }
.za-steps > li {
  counter-increment: zstep;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px;
  padding: 20px 0; border-top: 1px solid #dfdfdf;
}
.za-steps > li:last-child { border-bottom: 1px solid #dfdfdf; }
.za-steps > li::before {
  content: counter(zstep, decimal-leading-zero);
  grid-row: span 2; padding-top: 3px;
  font-size: 12px; font-weight: 600; color: rgba(0, 0, 0, 0.4);
}
.za-list--num { list-style: decimal; }
.za-list--num li::marker { color: rgba(0, 0, 0, 0.4); font-size: 0.9em; }
.za-sources { margin-top: 56px; padding-top: 16px; border-top: 1px solid #dfdfdf; font-size: 13px; line-height: 1.45; color: rgba(0, 0, 0, 0.4); }
.za-sources__h { font-weight: 600; color: var(--ink-58); margin-bottom: 8px; }
.za-sources ul { display: grid; gap: 6px; }
.za-sources .za-link { color: inherit; }
@media (max-width: 700px) {
  .za-hero__media--drawing .za-hero__img { aspect-ratio: 16 / 9; }
  .za-steps > li { grid-template-columns: 32px minmax(0, 1fr); }
}

/* ===== Motion layer (motion.js) ===== */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.rv {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) var(--rv-d, 0ms),
    transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) var(--rv-d, 0ms);
}
.rv.rv-in { opacity: 1; transform: none; }
.rv.rv-now, .rv.rv-now * { transition: none !important; }
/* Media inside a revealing block settles from a slight zoom. */
.rv :is(.zc-tile, .zh-tile, .za-hero__img, figure) > :is(img, video) {
  transition:
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) var(--rv-d, 0ms),
    scale 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv:not(.rv-in) :is(.zc-tile, .zh-tile, .za-hero__img, figure) > :is(img, video):not(.px),
.rv.zc-tile:not(.rv-in) > :is(img, video):not(.px) { transform: scale(1.06); }

.px { will-change: transform; transform-origin: center; }

/* Nav tucks away on scroll down, returns on scroll up. */
.zh .zh-nav { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease; }
.zh .zh-nav.nav-hide { transform: translate3d(0, -100%, 0); }
.zh .zh-nav.nav-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }

/* Soft crossfade between pages (browsers with cross-document view transitions). */
@view-transition { navigation: auto; }
.zh .zh-nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out 0.28s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ===== Interaction polish ===== */
/* Selection in the brand green. */
::selection { background: #00ff00; color: #000; }

/* Article links: a faint resting underline, a solid one draws in from the left on hover. */
.za-link {
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: background-size 0.45s cubic-bezier(0.16, 1, 0.3, 1), color var(--t-fast) var(--ease);
}
.za-link:hover { color: #000; background-size: 100% 1px, 100% 1px; }

/* Quiet text links: underline draws in on hover. */
:is(.zh-foot__col a:not(.pill), .zc-head__visit, .zh-index__item, .za-cta__d a, .zh-ig) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 0.45s cubic-bezier(0.16, 1, 0.3, 1), color var(--t-fast) var(--ease);
}
:is(.zh-foot__col a:not(.pill), .zc-head__visit, a.zh-index__item, .za-cta__d a, .zh-ig):hover { background-size: 100% 1px; }
.zh-foot__col a:not(.pill):hover { color: var(--ink); }

/* Work rows: the project name gets the same draw-in instead of a plain underline. */
.zh-row--link .zh-row__name { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size 0.5s cubic-bezier(0.16, 1, 0.3, 1); display: inline; }
.zh-row--link:is(:hover, :focus-visible) .zh-row__name { text-decoration: none; background-size: 100% 1px; }
.zh-row--link:focus-visible .zh-tile { transform: translateY(-2px); }
.zh-row--link:focus-visible .zh-tile > img { scale: 1.06; }

/* Buttons give a little when pressed. */
:is(.pill, .zh-btn-light, .za-cta__mail, .zh-reel__play, .zh-reel__sound, .zc-head__close, .zc-store, .btn) {
  transition-property: background-color, color, transform, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
:is(.pill, .zh-btn-light, .za-cta__mail, .zh-reel__play, .zh-reel__sound, .zc-head__close, .btn):active { transform: scale(0.96); }

/* Keyboard focus: clear rings that suit the surface they sit on. */
:focus-visible { outline: 2px solid #000; outline-offset: 3px; border-radius: 4px; }
.pill:focus-visible, .zh-btn-light:focus-visible, .za-cta__mail:focus-visible { border-radius: 6px; }
:is(.za-cta__card, .zc-card--dark, .zh-cursor, .cpop) :focus-visible { outline-color: #fff; }
.zh-pill--dark:focus-visible { outline-color: #000; }
.zh-row--link:focus-visible { outline-offset: 8px; border-radius: 10px; }
.zh-index__item:focus-visible, .za-post:focus-visible { outline-offset: 2px; }
/* Never hide the nav while someone is tabbing through it. */
.zh .zh-nav:focus-within { transform: none; }

/* ===== Shared-element page transitions (work row ↔ case study) ===== */
.zh-row--link[href="final-table.html"] .zh-row__tiles,
.zc-hero { view-transition-name: ft-media; }
.zh-row--link[href="final-table.html"] .zh-row__name { view-transition-name: ft-title; }
.zh-row--link[href="pixypump.html"] .zh-row__name { view-transition-name: pp-title; }
.zc:has(.zc-hero) .zc-head__title { view-transition-name: ft-title; }
.zp .zc-head__title { view-transition-name: pp-title; }
.zh-row--link[href="pixypump.html"] .zh-row__tiles,
.zp-stage--hero { view-transition-name: pp-media; }
::view-transition-group(ft-media), ::view-transition-group(pp-media),
::view-transition-group(ft-title), ::view-transition-group(pp-title) {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(ft-media), ::view-transition-new(ft-media),
::view-transition-old(pp-media), ::view-transition-new(pp-media) {
  height: 100%; width: 100%; object-fit: cover; overflow: clip;
}
::view-transition-group(site-nav) { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .za-link, :is(.zh-foot__col a:not(.pill), .zc-head__visit, .zh-index__item, .za-cta__d a, .zh-ig), .zh-row--link .zh-row__name { transition: none; }
}

/* ===== Posts switcher on smaller screens =====
   The posts sidebar becomes a horizontal row of compact cards above the
   article (the services pages do the same with their list). */
@media (max-width: 1100px) {
  .za:not(.zs) .za-side {
    display: flex;
    position: static;
    padding: 18px var(--zh-inset) 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--zh-inset);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .za:not(.zs) .za-side::-webkit-scrollbar { display: none; }
  .za:not(.zs) .za-side::after { content: ""; flex: 0 0 calc(var(--zh-inset) - 6px); }
  .za:not(.zs) .za-posts { flex: none; flex-direction: row; gap: 8px; }
  .za:not(.zs) .za-posts li { flex: none; scroll-snap-align: start; }
  .za:not(.zs) .za-post {
    width: 220px;
    height: 100%;
    padding: 10px 12px;
    border-color: #e6e6e6;
    background: #fff;
  }
  .za:not(.zs) .za-post.is-current { border-color: #000; }
  .za:not(.zs) .za-post__d, .za:not(.zs) .za-post__img { display: none; }
  .za:not(.zs) .za-post__t {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .za:not(.zs) .za-post.is-soon { background: transparent; border-style: dashed; }
}

/* Phones: four nav links now, so tighten a little more and keep a clear gap before Contact. */
@media (max-width: 430px) {
  .zh-nav__left { gap: 8px; }
  .zh-nav__brand { font-size: 15px; letter-spacing: -0.45px; }
  .zh-nav__links { gap: 0; }
  .zh .zh-nav .pill { padding: 4px 6px; font-size: 12.5px; letter-spacing: -0.25px; }
  .zh-nav .cwrap { margin-left: 6px; flex: none; }
}
@media (max-width: 370px) {
  .zh-nav__left { gap: 5px; }
  .zh-nav__brand { font-size: 14px; letter-spacing: -0.42px; }
  .zh .zh-nav .pill { padding: 4px 5px; font-size: 12px; }
}

/* Final Table "Get to logging asap": the cropped nav-bar image scales with its box on small screens. */
@media (max-width: 800px) {
  .zc-nav__bar { transform: none; width: 100%; max-width: 380px; height: auto; aspect-ratio: 380 / 66; container-type: inline-size; overflow: hidden; }
  .zc-nav__bar img { width: 141.84cqw; margin: -10.26cqw 0 0 -12.89cqw; }
}

/* ===== Mobile menu (≤640px; built by site.js) ===== */
.zm-btn, .zm-panel { display: none; }
@media (max-width: 640px) {
  .zm-ready .zh-nav__links { display: none; }
  .zm-ready .zh-nav .zt-toggle { display: inline-flex; margin-left: auto; margin-right: 2px; }
  .zm-ready .zh-nav__brand { font-size: 17px; letter-spacing: -0.5px; }

  .zm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none; width: 36px; height: 30px; margin-left: 6px; padding: 0;
    border: 0; border-radius: 6px; background: transparent; color: #000; cursor: pointer;
  }
  .zm-btn__bars { position: relative; display: block; width: 18px; height: 10px; }
  .zm-btn__bars i {
    position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), top 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .zm-btn__bars i:first-child { top: 0; }
  .zm-btn__bars i:last-child { top: 8.4px; }
  .zm-open .zm-btn__bars i:first-child { top: 4.2px; transform: rotate(45deg); }
  .zm-open .zm-btn__bars i:last-child { top: 4.2px; transform: rotate(-45deg); }

  .zm-panel {
    position: fixed; z-index: 49; left: 0; right: 0; top: 46px; bottom: 0;
    display: flex; flex-direction: column; gap: 28px;
    padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--zh-page, #fcfcfc);
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .zm-panel[hidden] { display: none !important; }
  .zm-open .zm-panel { opacity: 1; transform: none; }
  .zm-open, .zm-open body { overflow: hidden; }
  .zm-open .zh .zh-nav, .zm-open body.zh .zh-nav { transform: none; }

  .zm-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(0, 0, 0, 0.08); }
  .zm-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(60ms + var(--zm-i, 0) * 45ms);
  }
  .zm-open .zm-links li { opacity: 1; transform: none; }
  .zm-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 2px; font-size: 32px; line-height: 1.1; letter-spacing: -0.96px; color: #000;
  }
  .zm-link__arr { font-size: 18px; color: rgba(0, 0, 0, 0.3); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
  .zm-link:active .zm-link__arr { transform: translate(2px, -2px); }
  .zm-link.is-current { color: rgba(0, 0, 0, 0.45); }
  .zm-link.is-current .zm-link__arr { opacity: 0; }

  .zm-row { display: flex; flex-direction: column; gap: 10px; }
  .zm-theme { flex-direction: row; align-items: center; justify-content: space-between; }
  .zm-k { font-size: 13px; color: rgba(0, 0, 0, 0.5); }
  .zm-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); }
  .zm-seg__b {
    appearance: none; border: 0; padding: 6px 14px; border-radius: 999px; background: transparent;
    font: inherit; font-size: 13px; color: rgba(0, 0, 0, 0.6); cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .zm-seg__b[aria-pressed="true"] { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }

  .zm-contact { margin-top: auto; gap: 12px; }
  .zm-book {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 18px; border-radius: 8px; background: #2c2c2c; color: #fff; font-size: 16px;
  }
  .zm-book i { width: 6px; height: 6px; border-radius: 50%; background: #00ff00; }
  .zm-mail { font-size: 16px; color: #000; }
  .zm-social { margin: 0; font-size: 14px; color: rgba(0, 0, 0, 0.5); }
  .zm-social a { color: inherit; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .zm-panel, .zm-links li, .zm-btn__bars i { transition: none; }
}

/* Nav logo: the zunidesign mark (assets/logo-mark.svg) as a mask, so it takes
   the text colour and follows light/dark. */
.zh-nav__brand { display: inline-flex; align-items: center; gap: 7px; }
.zh-nav__mark {
  display: block; flex: none;
  width: 0.82em; height: 1.02em;
  background: currentColor;
  -webkit-mask: url("assets/logo-mark.svg") center / contain no-repeat;
          mask: url("assets/logo-mark.svg") center / contain no-repeat;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.zh-nav__brand:hover .zh-nav__mark { transform: rotate(-8deg); }
@media (prefers-reduced-motion: reduce) { .zh-nav__brand:hover .zh-nav__mark { transform: none; } }

/* Phones: the nav logo is the mark alone. The name stays in the link for
   screen readers (font-size 0 hides it visually only). */
@media (max-width: 640px) {
  .zh .zh-nav .zh-nav__brand { font-size: 0; gap: 0; padding: 4px 6px 4px 0; }
  .zh .zh-nav .zh-nav__mark { width: 18px; height: 22px; }
}

/* Homepage index: the draw-in underline only on Posts (text-only items);
   Work, Services and Products items have icons, so no underline there. */
.zh-index__col:not(.zh-index__col--posts) .zh-index__item,
.zh-index__col:not(.zh-index__col--posts) .zh-index__item:hover { background: none; }

/* Footer logo (Figma 436:9696): mark tile + wordmark, full column width.
   The old wordmark carried its own air (the dog); this one gets padding. */
.zh-foot__mark { padding-top: 56px; }
.zh-foot__mark img { margin-bottom: 44px; }
@media (max-width: 640px) { .zh-foot__mark { padding-top: 36px; } .zh-foot__mark img { margin-bottom: 28px; } }

/* ===========================================================================
   ASSISTANT (assets/js/agent.js) — launcher, teaser, chat/voice panel
   Built on the theme tokens, so dark mode needs no extra rules.
   --lvl (0–1) is the live audio level, set by agent.js during calls.
=========================================================================== */
.zai-launch,
.zai-panel,
.zai-teaser {
  --zai-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 16px 40px -12px rgba(0, 0, 0, 0.22);
  --zai-fill: rgba(0, 0, 0, 0.045);
  --zai-fill-2: rgba(0, 0, 0, 0.08);
  --zai-green: #27c457;
  position: fixed;
  z-index: 70;
  right: var(--gutter);
  bottom: var(--gutter);
  font-family: var(--font-body);
  color: var(--ink);
}
html[data-theme="dark"] .zai-launch,
html[data-theme="dark"] .zai-panel,
html[data-theme="dark"] .zai-teaser {
  --zai-shadow: 0 0 0 1px rgba(237, 237, 237, 0.08), 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  --zai-fill: rgba(237, 237, 237, 0.06);
  --zai-fill-2: rgba(237, 237, 237, 0.11);
}
.zai-panel[hidden], .zai-teaser[hidden], .zai-compose[hidden], .zai-voice[hidden], .zai-resume[hidden] { display: none !important; }
.zai-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zai-panel svg, .zai-teaser svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --- avatar: mark at rest, eq bars when speaking, ring when listening --- */
.zai-ava { position: relative; flex: none; width: 32px; height: 32px; }
.zai-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  border-radius: 8px;
  background: var(--ink);
  overflow: hidden;
  transition: transform 0.35s var(--ease);
}
.zai-mark {
  grid-area: 1 / 1;
  width: 16px; height: 16px;
  background: var(--panel);
  -webkit-mask: url(/assets/logo-mark.svg) center / contain no-repeat;
          mask: url(/assets/logo-mark.svg) center / contain no-repeat;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.zai-eq { grid-area: 1 / 1; display: flex; align-items: center; gap: 2.5px; height: 14px; opacity: 0; transition: opacity 0.2s; }
.zai-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--panel); transform: scaleY(0.3); transition: transform 0.09s linear; }
.zai-ring {
  position: absolute;
  inset: -4px;
  border-radius: 11px;
  border: 1.5px solid var(--zai-green);
  opacity: 0;
  transform: scale(calc(1 + var(--lvl, 0) * 0.14));
  transition: opacity 0.25s;
  pointer-events: none;
}
.zai-live {
  position: absolute;
  z-index: 1;
  right: -2px; top: -2px;
  width: 9px; height: 9px;
  border-radius: 99px;
  background: var(--zai-green);
  box-shadow: 0 0 0 2px var(--panel);
}
.zai-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--zai-green);
  animation: zai-ping 3.2s var(--ease) infinite;
}
@keyframes zai-ping { 0% { transform: scale(1); opacity: 0.55; } 45%, 100% { transform: scale(2.6); opacity: 0; } }

.zai-panel.is-speaking .zai-head .zai-mark { opacity: 0; transform: scale(0.6); }
.zai-panel.is-speaking .zai-head .zai-eq { opacity: 1; }
.zai-panel.is-voice.is-listening .zai-head .zai-ring { opacity: calc(0.35 + var(--lvl, 0) * 0.65); }
.zai-panel.is-thinking .zai-head .zai-mark { animation: zai-breathe 1.4s ease-in-out infinite; }
.zai-panel.is-connecting .zai-head .zai-ring {
  opacity: 1;
  border-color: var(--ink-24);
  border-top-color: var(--ink);
  border-radius: 99px;
  animation: zai-spin 0.9s linear infinite;
}
@keyframes zai-breathe { 50% { transform: scale(0.78); opacity: 0.6; } }
@keyframes zai-spin { to { transform: rotate(360deg); } }

/* --- launcher --- */
.zai-launch {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 6px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--zai-shadow);
  font-size: var(--t-nav);
  font-weight: 500;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.zai-launch:hover { transform: translateY(-2px); }
.zai-launch:hover .zai-tile { transform: rotate(-6deg); }
.zai-launch__label {
  display: block;
  overflow: hidden;
  max-width: 240px;
  padding: 0 10px 0 10px;
  transition: max-width 0.45s var(--ease), padding 0.45s var(--ease), opacity 0.3s var(--ease);
}
.zai-roll {
  position: relative;
  display: grid;
  height: 20px;
  overflow: hidden;
  transition: width 0.45s var(--ease);
}
.zai-roll > span { grid-area: 1 / 1; justify-self: start; line-height: 20px; white-space: nowrap; }
.zai-roll.is-rolling > span:first-child { animation: zai-roll-out 0.5s var(--ease) both; }
.zai-roll.is-rolling > span:last-child { animation: zai-roll-in 0.5s var(--ease) both; }
@keyframes zai-roll-out { to { transform: translateY(-110%); opacity: 0; } }
@keyframes zai-roll-in { from { transform: translateY(110%); opacity: 0; } }
.zai-launch.is-tucked .zai-launch__label { max-width: 0; padding: 0; opacity: 0; }
.zai-unread {
  position: absolute;
  left: -4px; top: -4px;
  display: none;
  width: 12px; height: 12px;
  border-radius: 99px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--panel);
}
.zai-launch.has-unread .zai-unread { display: block; animation: zai-pop 0.4s var(--ease) both; }
@keyframes zai-pop { from { transform: scale(0); } }
html.zai-open .zai-launch,
html.zm-open .zai-launch {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
}

/* --- teaser bubble (once per visit) --- */
.zai-teaser {
  bottom: calc(var(--gutter) + 54px);
  max-width: 250px;
  padding: 10px 34px 10px 12px;
  border-radius: 12px 12px 4px 12px;
  background: var(--panel);
  box-shadow: var(--zai-shadow);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.13px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: 100% 100%;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.zai-teaser.is-in { opacity: 1; transform: none; }
.zai-teaser__x {
  position: absolute;
  top: 6px; right: 6px;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  color: var(--ink-40);
}
.zai-teaser__x:hover { background: var(--zai-fill); color: var(--ink); }
.zai-teaser__x svg { width: 14px; height: 14px; }
html.zai-open .zai-teaser, html.zm-open .zai-teaser { display: none; }

/* --- panel --- */
.zai-panel {
  display: flex;
  flex-direction: column;
  width: 392px;
  height: min(640px, calc(100dvh - 2 * var(--gutter)));
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--zai-shadow);
  overflow: hidden;
  transform-origin: 100% 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
}
.zai-panel.is-in { opacity: 1; transform: none; }
.zai-panel.is-leaving { opacity: 0.6; transform: scale(0.99); }

.zai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 12px 10px 12px 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.zai-head__t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.zai-head__t b {
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -0.15px;
  line-height: 1.25;
}
.zai-status {
  display: flex;
  align-items: center;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--t-caption);
  color: var(--ink-40);
  transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease), margin 0.3s var(--ease);
}
.zai-status::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--zai-green); flex: none; animation: zai-blink 1.6s ease-in-out infinite; }
.zai-panel.has-status .zai-status { max-height: 18px; opacity: 1; margin-top: 1px; }
@keyframes zai-blink { 50% { opacity: 0.35; } }

.zai-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  color: var(--ink-58);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.zai-icon:hover { background: var(--zai-fill); color: var(--ink); }
.zai-icon[data-act="reset"]:active svg { transform: rotate(-120deg); transition: transform 0.3s var(--ease); }

/* --- log --- */
.zai-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}
.zai-intro__t {
  font-family: var(--font-display);
  font-size: var(--t-title);
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-wrap: balance;
}
.zai-intro__m {
  margin-top: 6px;
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink-58);
  text-wrap: pretty;
}
.zai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.zai-chip {
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--zai-fill);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.13px;
  text-align: left;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.zai-chip:hover { background: var(--ink); color: var(--panel); }
.zai-chip:active { transform: scale(0.97); }
.zai-panel.is-in .zai-chip { animation: zai-in 0.4s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 45ms); }
.zai-clock { display: flex; align-items: center; gap: 7px; margin-top: 18px; font-size: var(--t-caption); color: var(--ink-40); }
.zai-clock__dot { width: 6px; height: 6px; border-radius: 99px; background: var(--zai-green); flex: none; }
.zai-intro.is-compact .zai-intro__m,
.zai-intro.is-compact .zai-chips,
.zai-intro.is-compact .zai-clock { display: none; }
.zai-intro.is-compact .zai-intro__t { font-size: var(--t-caption); color: var(--ink-40); font-family: var(--font-body); letter-spacing: 0; }

.zai-msg { max-width: 92%; font-size: var(--t-body); line-height: 1.5; letter-spacing: -0.14px; animation: zai-in 0.3s var(--ease) both; }
.zai-msg p + p { margin-top: 8px; }
.zai-msg--agent { align-self: flex-start; text-wrap: pretty; }
.zai-msg--user {
  align-self: flex-end;
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--zai-fill-2);
}
.zai-w { animation: zai-fade 0.45s ease-out both; }
.zai-note { align-self: center; max-width: 90%; font-size: var(--t-caption); color: var(--ink-40); text-align: center; line-height: 1.4; animation: zai-in 0.3s var(--ease) both; }
.zai-retry { margin-left: 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

@keyframes zai-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes zai-fade { from { opacity: 0; filter: blur(2px); } }

.zai-typing { display: flex; gap: 4px; padding: 6px 0; }
.zai-typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-24); animation: zai-dot 1.1s infinite ease-in-out; }
.zai-typing i:nth-child(2) { animation-delay: 0.15s; }
.zai-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes zai-dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* --- link cards (show_page / open_booking) --- */
.zai-card {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  padding: 10px 12px 10px 10px;
  border-radius: 12px;
  background: var(--zai-fill);
  animation: zai-in 0.3s var(--ease) both;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.zai-card:hover { background: var(--zai-fill-2); }
.zai-card:active { transform: scale(0.99); }
.zai-card__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--panel); color: var(--ink); flex: none; }
.zai-card--book .zai-card__ic { background: var(--ink); color: var(--panel); }
.zai-card__t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.zai-card__t b { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.14px; line-height: 1.3; }
.zai-card__t span { font-size: var(--t-caption); color: var(--ink-40); }
.zai-card__go { color: var(--ink-40); transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.zai-card:hover .zai-card__go { transform: translate(1px, -1px); color: var(--ink); }

/* --- dock: composer / voice bar / resume --- */
.zai-dock { padding: 0 10px 8px; }
.zai-compose {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: var(--zai-fill);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--t-fast) var(--ease);
}
.zai-compose:focus-within { box-shadow: inset 0 0 0 1px var(--ink-24); }
.zai-compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  max-height: 120px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-body);
  line-height: 20px;
  letter-spacing: -0.14px;
  resize: none;
  outline: none;
}
.zai-compose textarea::placeholder { color: var(--ink-40); }
.zai-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.zai-btn:active { transform: scale(0.92); }
/* Empty field: the mic is the primary action. With text: send takes over. */
.zai-btn--mic { background: var(--ink); color: var(--panel); }
.zai-btn--mic:hover { transform: scale(1.05); }
.zai-btn--send { display: none; background: var(--ink); color: var(--panel); animation: zai-pop 0.25s var(--ease) both; }
.zai-compose.has-text .zai-btn--mic { background: transparent; color: var(--ink-58); }
.zai-compose.has-text .zai-btn--mic:hover { background: var(--zai-fill-2); color: var(--ink); transform: none; }
.zai-compose.has-text .zai-btn--send { display: grid; }

.zai-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--panel);
  box-shadow: 0 0 calc(4px + var(--lvl, 0) * 26px) calc(var(--lvl, 0) * 4px) rgba(39, 196, 87, calc(var(--lvl, 0) * 0.5));
  animation: zai-in 0.25s var(--ease) both;
}
.zai-bars { display: flex; align-items: center; gap: 2.5px; height: 22px; }
.zai-bars i {
  width: 3px; height: 100%;
  border-radius: 3px;
  background: currentColor;
  transform: scaleY(0.16);
  transition: transform 0.08s linear;
}
.zai-panel.is-voice:not(.is-speaking) .zai-bars i { background: var(--zai-green); }
.zai-voice__t { flex: 1 1 auto; font-size: 13px; letter-spacing: -0.13px; opacity: 0.75; }
.zai-vbtn {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.zai-vbtn:hover { background: rgba(127, 127, 127, 0.22); }
.zai-vbtn:active { transform: scale(0.94); }
.zai-vbtn--end { background: var(--panel); color: var(--ink); padding: 0 14px; }
.zai-vbtn--end:hover { background: var(--panel); opacity: 0.88; }
.zai-slash { display: none; }
.zai-panel.is-muted .zai-slash { display: inline; }
.zai-panel.is-muted .zai-bars { opacity: 0.35; }

.zai-resume { display: flex; gap: 6px; animation: zai-in 0.3s var(--ease) both; }
.zai-resume__go {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--panel);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
  transition: transform var(--t-fast) var(--ease);
}
.zai-resume__go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(39, 196, 87, 0.5);
  animation: zai-call 2s var(--ease) infinite;
}
@keyframes zai-call { 0% { box-shadow: 0 0 0 0 rgba(39, 196, 87, 0.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(39, 196, 87, 0); } }
.zai-resume__go:active { transform: scale(0.98); }
.zai-resume__alt {
  flex: none;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--zai-fill);
  font-size: 13px;
  transition: background-color var(--t-fast) var(--ease);
}
.zai-resume__alt:hover { background: var(--zai-fill-2); }

.zai-fine {
  padding: 0 16px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-40);
  text-align: center;
}
.zai-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.zai-fine a:hover { color: var(--ink); }

.zai-launch:focus-visible,
.zai-teaser :focus-visible,
.zai-panel :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.zai-compose textarea:focus-visible { outline: none; }

@media (max-width: 640px) {
  .zai-launch { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .zai-launch__label { font-size: 13px; }
  .zai-teaser { right: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px); }
  .zai-panel {
    left: 8px; right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: min(78dvh, 600px);
    border-radius: 18px;
    transform-origin: 50% 100%;
  }
  .zai-panel.is-in { box-shadow: var(--zai-shadow), 0 0 0 100vmax rgba(0, 0, 0, 0.32); }
  .zai-compose textarea { font-size: 16px; } /* no iOS zoom on focus */
  html.zai-lock, html.zai-lock body { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .zai-launch, .zai-panel, .zai-teaser, .zai-msg, .zai-card, .zai-voice, .zai-chip, .zai-w, .zai-resume, .zai-note { transition: none !important; animation: none !important; }
  .zai-live::after, .zai-resume__go::after, .zai-status::before, .zai-typing i { animation: none !important; }
}
/* live voice transcript: the visitor's words while they're still speaking */
.zai-msg--live { opacity: 0.6; animation: none; }
.zai-msg--live p::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: currentColor;
  animation: zai-blink 0.9s steps(1) infinite;
}

/* ---------------------------------------------------------------------------
   ASSISTANT v3 — the orb, dark voice mode, optional full screen
   Orb colours live in four variables; swap them to restyle the orb.
--------------------------------------------------------------------------- */
.zai-launch, .zai-panel {
  --orb-base: #101113;
  --orb-a: rgba(255, 255, 255, 0.9);    /* bright pearl */
  --orb-b: rgba(178, 186, 204, 0.85);   /* cool silver */
  --orb-c: rgba(196, 184, 230, 0.55);   /* faint lilac sheen */
  --orb-glow: 210, 216, 232;            /* rgb of the halo */
}
.zai-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 60%, #1b1c20 0%, var(--orb-base) 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 calc(4px + var(--lvl, 0) * 22px) rgba(var(--orb-glow), calc(0.12 + var(--lvl, 0) * 0.45));
  transform: scale(calc(1 + var(--lvl, 0) * 0.08));
  transition: transform 0.12s linear, box-shadow 0.2s linear;
}
.zai-orb__swirl {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 30%, var(--orb-a), transparent 28%),
    radial-gradient(circle at 72% 66%, var(--orb-b), transparent 36%),
    radial-gradient(circle at 68% 24%, var(--orb-c), transparent 32%),
    radial-gradient(circle at 26% 76%, rgba(90, 96, 112, 0.7), transparent 38%);
  filter: blur(7px);
  opacity: 0.7;
  animation: zai-swirl 10s linear infinite;
}
.zai-orb__gloss {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.5), transparent 24%),
    radial-gradient(circle at 50% 125%, rgba(0, 0, 0, 0.6), transparent 55%);
  pointer-events: none;
}
.zai-orb .zai-mark { position: relative; z-index: 1; grid-area: 1 / 1; width: 46%; height: 46%; background: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.zai-orb .zai-eq { position: relative; z-index: 1; grid-area: 1 / 1; height: 42%; }
.zai-orb .zai-eq i { background: #fff; }
@keyframes zai-swirl { to { transform: rotate(360deg); } }
.zai-panel.is-speaking .zai-orb__swirl { animation-duration: 3.4s; opacity: 0.95; }
.zai-panel.is-thinking .zai-orb__swirl { animation-duration: 2.4s; }
.zai-panel.is-listening .zai-orb__swirl { opacity: calc(0.55 + var(--lvl, 0) * 0.45); }

/* small orbs: launcher, header, mic button */
.zai-ava { width: 34px; height: 34px; }
.zai-launch .zai-ava { width: 32px; height: 32px; }
.zai-ring { border-radius: 50%; inset: -4px; border-color: rgba(var(--orb-glow), 0.9); }
.zai-launch { border-radius: 999px; padding: 6px; }
.zai-launch__label { padding: 0 12px 0 10px; }
.zai-launch:hover .zai-orb { transform: scale(1.06); }
.zai-launch .zai-live { right: -1px; top: -1px; }
.zai-panel.is-thinking .zai-head .zai-mark { animation: zai-breathe 1.4s ease-in-out infinite; }

.zai-btn--mic { position: relative; overflow: hidden; border-radius: 50%; background: transparent !important; color: #fff !important; }
.zai-btn__orb { position: absolute; inset: 0; }
.zai-btn__orb .zai-eq { display: none; }
.zai-btn--mic svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.zai-compose.has-text .zai-btn--mic .zai-btn__orb { opacity: 0; transition: opacity 0.2s; }
.zai-compose.has-text .zai-btn--mic { color: var(--ink-58) !important; }
.zai-compose.has-text .zai-btn--mic svg { filter: none; }
.zai-compose.has-text .zai-btn--mic:hover { background: var(--zai-fill-2) !important; color: var(--ink) !important; }
.zai-btn--send { border-radius: 50%; }
.zai-compose { border-radius: 24px; padding-left: 16px; }

/* full-screen toggle icon */
.zai-icon--full svg:last-child { display: none; }
.zai-panel.is-full .zai-icon--full svg:first-child { display: none; }
.zai-panel.is-full .zai-icon--full svg:last-child { display: inline; }

/* stage: the big orb, only in voice mode */
.zai-stage { display: none; }

/* --- voice mode: the panel turns dark (same size), orb on stage --- */
.zai-panel.is-voice {
  --ink: #ededed;
  --ink-58: rgba(237, 237, 237, 0.6);
  --ink-40: rgba(237, 237, 237, 0.42);
  --ink-24: rgba(237, 237, 237, 0.26);
  --panel: #0c0c0d;
  --rule-soft: rgba(237, 237, 237, 0.08);
  --zai-fill: rgba(237, 237, 237, 0.07);
  --zai-fill-2: rgba(237, 237, 237, 0.12);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 40% at 50% 26%, rgba(var(--orb-glow), calc(0.06 + var(--lvl, 0) * 0.12)), transparent 70%),
    #0c0c0d;
  transition: background-color 0.3s;
}
.zai-panel.is-voice .zai-head { border-bottom: 0; }
.zai-panel.is-voice .zai-head .zai-ava { visibility: hidden; }
.zai-panel.is-voice .zai-head .zai-status { display: none; }
.zai-panel.is-voice [data-act="reset"] { display: none; }

.zai-panel.is-voice .zai-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 4px 20px 0;
  animation: zai-in 0.35s var(--ease) both;
}
.zai-stage__orb { display: block; width: 132px; height: 132px; }
.zai-stage__orb .zai-orb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 calc(30px + var(--lvl, 0) * 60px) rgba(var(--orb-glow), calc(0.14 + var(--lvl, 0) * 0.4)); transform: scale(calc(1 + var(--lvl, 0) * 0.12)); }
.zai-stage__orb .zai-mark { width: 30%; height: 30%; }
.zai-panel.is-voice.is-speaking .zai-stage .zai-mark { opacity: 1; transform: none; }
.zai-stage .zai-eq { display: none; }
.zai-stage__t { font-size: 13px; letter-spacing: -0.13px; color: var(--ink-58); }

/* captions: only the latest two lines, centered under the orb */
.zai-panel.is-voice .zai-log {
  align-items: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 22px 12px;
  overflow: hidden;
  gap: 12px;
}
.zai-panel.is-voice .zai-log > *:not(:nth-last-child(-n+2)),
.zai-panel.is-voice .zai-intro { display: none; }
.zai-panel.is-voice .zai-msg {
  align-self: center;
  max-width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.17px;
  text-wrap: balance;
}
.zai-panel.is-voice .zai-msg--user { background: none; padding: 0; border-radius: 0; color: var(--ink-58); font-size: 14px; }
.zai-panel.is-voice .zai-card { align-self: center; width: min(360px, 100%); }

/* call controls: round, dark */
.zai-voice {
  justify-content: center;
  gap: 12px;
  height: auto;
  padding: 4px 0 2px;
  background: none;
  color: var(--ink);
  box-shadow: none;
}
.zai-voice .zai-bars, .zai-voice .zai-voice__t { display: none; }
.zai-vbtn { width: 48px; height: 48px; min-width: 0; padding: 0; border-radius: 50%; background: rgba(237, 237, 237, 0.1); }
.zai-vbtn:hover { background: rgba(237, 237, 237, 0.18); }
.zai-vbtn svg { width: 20px; height: 20px; }
.zai-vbtn--end { width: auto; padding: 0 20px 0 16px; gap: 8px; display: flex; align-items: center; border-radius: 999px; background: #e5484d; color: #fff; font-size: 14px; }
.zai-vbtn--end:hover { background: #d93d42; opacity: 1; }
.zai-vbtn--end svg { width: 17px; height: 17px; }
.zai-panel.is-muted [data-act="mute"] { background: #ededed; color: #0c0c0d; }

.zai-resume__go { border-radius: 999px; background: #0c0c0d; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.zai-resume__alt { border-radius: 999px; }

/* --- full screen (header icon): works for chat and voice --- */
.zai-panel.is-full {
  inset: 0;
  z-index: 90;
  width: auto; height: auto;
  border-radius: 0;
  box-shadow: none;
  animation: zai-full-in 0.4s var(--ease) both;
}
@keyframes zai-full-in { from { opacity: 0.4; transform: scale(0.985); } }
.zai-panel.is-full .zai-head { width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 20px; border-bottom-color: transparent; }
.zai-panel.is-full .zai-log { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.zai-panel.is-full .zai-dock { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px 12px; }
.zai-panel.is-full .zai-fine { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.zai-panel.is-full.is-voice .zai-stage { padding-top: 6vh; gap: 22px; }
.zai-panel.is-full.is-voice .zai-stage__orb { width: clamp(150px, 24vh, 220px); height: clamp(150px, 24vh, 220px); }
.zai-panel.is-full.is-voice .zai-msg { font-size: clamp(18px, 2.4vh, 22px); }
.zai-panel.is-full.is-voice .zai-msg--user { font-size: clamp(15px, 2vh, 17px); }
.zai-panel.is-full .zai-vbtn { width: 56px; height: 56px; }
.zai-panel.is-full .zai-vbtn--end { width: auto; height: 56px; padding: 0 22px 0 18px; }
html.zai-full .zai-teaser { display: none; }

@media (max-width: 640px) {
  .zai-panel.is-full { left: 0; right: 0; bottom: 0; height: auto; border-radius: 0; }
  .zai-panel.is-full.is-in { box-shadow: none; }
  .zai-stage__orb { width: 112px; height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .zai-orb__swirl { animation: none !important; }
  .zai-panel.is-full, .zai-panel.is-voice .zai-stage { animation: none; }
}

/* ---------------------------------------------------------------------------
   ASSISTANT v6 — call UI polish (panel + full screen)
--------------------------------------------------------------------------- */
/* live pill in the header (voice only) */

/* status under the orb: a small pill with a state dot */
.zai-stage__t { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(237, 237, 237, 0.06); }
.zai-stage__t i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-40); transition: background-color 0.2s; }
.zai-panel.is-listening .zai-stage__t i { background: #27c457; animation: zai-blink 1.6s ease-in-out infinite; }
.zai-panel.is-speaking .zai-stage__t i { background: #ededed; }
.zai-panel.is-muted .zai-stage__t i { background: #e5484d; animation: none; }

/* keyboard during a call: composer slides in above the controls */
.zai-panel.is-voice.is-kbd .zai-compose { display: flex; margin-bottom: 12px; animation: zai-in 0.25s var(--ease) both; }
.zai-panel.is-kbd [data-act="kbd"] { background: #ededed; color: #0c0c0d; }

.zai-hint { display: none; }

/* --- full screen, voice: a proper call screen --- */
.zai-panel.is-full.is-voice {
  background:
    radial-gradient(circle at 50% 36%, rgba(var(--orb-glow), calc(0.07 + var(--lvl, 0) * 0.14)) 0, transparent 38%),
    radial-gradient(ellipse 120% 70% at 50% 110%, rgba(255, 255, 255, 0.035), transparent 60%),
    #0b0b0c;
}
.zai-panel.is-full.is-voice::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
}
.zai-panel.is-full.is-voice .zai-head { max-width: 1040px; padding: 20px 24px; }
.zai-panel.is-full.is-voice .zai-head .zai-ava { visibility: visible; }
.zai-panel.is-full.is-voice .zai-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(237, 237, 237, 0.06); }
.zai-panel.is-full.is-voice .zai-icon:hover { background: rgba(237, 237, 237, 0.12); }

.zai-panel.is-full.is-voice .zai-stage { padding-top: 5vh; gap: 26px; }
.zai-panel.is-full.is-voice .zai-stage__orb { width: clamp(170px, 28vh, 260px); height: clamp(170px, 28vh, 260px); }

/* captions: agent large, you smaller with a label; older lines fade out */
.zai-panel.is-full.is-voice .zai-log {
  max-width: 760px;
  padding: 36px 24px 20px;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%);
          mask-image: linear-gradient(180deg, transparent 0, #000 38%);
}
.zai-panel.is-full.is-voice .zai-log > *:not(:nth-last-child(-n+3)) { display: none; }
.zai-panel.is-full.is-voice .zai-log > :nth-last-child(3) { opacity: 0.35; }
.zai-panel.is-full.is-voice .zai-msg--agent { font-size: clamp(20px, 2.8vh, 26px); line-height: 1.38; letter-spacing: -0.3px; max-width: 680px; }
.zai-panel.is-full.is-voice .zai-msg--user { font-family: var(--font-body); font-size: 16px; line-height: 1.45; color: var(--ink-58); max-width: 560px; }
.zai-panel.is-full.is-voice .zai-msg--user::before {
  content: "You";
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.zai-panel.is-full.is-voice .zai-card { width: min(420px, 100%); }

/* floating control dock */
.zai-panel.is-full.is-voice .zai-dock { max-width: 560px; padding-bottom: 8px; }
.zai-panel.is-full.is-voice .zai-voice {
  width: max-content;
  margin: 0 auto;
  padding: 8px;
  gap: 8px;
  border-radius: 999px;
  background: rgba(237, 237, 237, 0.06);
  box-shadow: inset 0 0 0 1px rgba(237, 237, 237, 0.08), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.zai-panel.is-full.is-voice .zai-vbtn { width: 52px; height: 52px; background: rgba(237, 237, 237, 0.08); }
.zai-panel.is-full.is-voice .zai-vbtn:hover { background: rgba(237, 237, 237, 0.16); }
.zai-panel.is-full.is-voice .zai-vbtn--end { width: auto; height: 52px; padding: 0 22px 0 18px; background: #e5484d; }
.zai-panel.is-full.is-voice .zai-vbtn--end:hover { background: #d93d42; }
.zai-panel.is-full.is-voice.is-muted [data-act="mute"], .zai-panel.is-full.is-voice.is-kbd [data-act="kbd"] { background: #ededed; color: #0c0c0d; }
.zai-panel.is-full.is-voice .zai-compose { max-width: 560px; margin-left: auto; margin-right: auto; }

.zai-panel.is-full.is-voice .zai-hint {
  display: block;
  margin: 2px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-40);
}
.zai-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(237, 237, 237, 0.08);
  box-shadow: inset 0 -1px 0 rgba(237, 237, 237, 0.08);
  font: inherit;
  font-size: 10px;
  color: var(--ink-58);
}
.zai-panel.is-full.is-voice .zai-fine { padding-top: 6px; }

@media (max-width: 640px) {
  .zai-panel.is-full.is-voice .zai-hint { display: none; }
  .zai-panel.is-full.is-voice .zai-log > :nth-last-child(3) { display: none; }
}
@media (hover: none) { .zai-hint { display: none !important; } }
.zai-panel.is-voice .zai-btn--mic { display: none; }
.zai-panel.is-voice .zai-btn--send { display: grid; }
.zai-panel.is-full.is-voice .zai-log { justify-content: center; }
.zai-head__t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------------------
   ASSISTANT v7 — text mode polish
--------------------------------------------------------------------------- */
/* welcome */
.zai-intro__orb { display: block; width: 44px; height: 44px; margin-bottom: 16px; }
.zai-intro.is-compact .zai-intro__orb { display: none; }
.zai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}
.zai-chip::after { content: "\2197"; font-size: 11px; color: var(--ink-40); transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.zai-chip:hover { background: var(--ink); color: var(--panel); box-shadow: none; }
.zai-chip:hover::after { color: inherit; transform: translate(1px, -1px); }

/* agent replies: small orb avatar at the start of each reply */
.zai-msg--agent { position: relative; padding-left: 34px; max-width: 100%; }
.zai-msg--agent::before,
.zai-typing::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.85), transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(178, 186, 204, 0.9), transparent 45%),
    radial-gradient(circle at 70% 25%, rgba(196, 184, 230, 0.6), transparent 40%),
    #1a1b1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 8px rgba(210, 216, 232, 0.25);
}
.zai-msg--agent::after,
.zai-typing::after {
  content: "";
  position: absolute;
  left: 6px; top: 6px;
  width: 10px; height: 12px;
  background: #fff;
  -webkit-mask: url(/assets/logo-mark.svg) center / contain no-repeat;
          mask: url(/assets/logo-mark.svg) center / contain no-repeat;
}
:is(.zai-msg--agent, .zai-card) + .zai-msg--agent::before,
:is(.zai-msg--agent, .zai-card) + .zai-msg--agent::after { display: none; }
.zai-log > .zai-card { margin-left: 34px; align-self: stretch; }

/* copy on hover */
.zai-copy {
  position: absolute;
  left: 34px; bottom: -26px;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  color: var(--ink-40);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.zai-copy svg { width: 15px !important; height: 15px !important; }
.zai-msg--agent:hover .zai-copy, .zai-copy:focus-visible { opacity: 1; }
.zai-copy:hover { background: var(--zai-fill); color: var(--ink); }
.zai-copy.is-done { opacity: 1; color: #27c457; }
.zai-msg--agent:has(.zai-copy) { margin-bottom: 18px; }
@media (hover: none) { .zai-copy { display: none; } .zai-msg--agent:has(.zai-copy) { margin-bottom: 0; } }

.zai-msg a { color: inherit; text-decoration: underline; text-decoration-color: var(--ink-24); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
.zai-msg a:hover { text-decoration-color: currentColor; }
.zai-msg--user { border-radius: 18px 18px 6px 18px; padding: 9px 14px; }

/* thinking: shimmering label next to the avatar */
.zai-typing { position: relative; align-items: center; min-height: 24px; padding: 0 0 0 34px; }
.zai-typing i { display: none; }
.zai-think {
  font-size: 14px;
  background: linear-gradient(90deg, var(--ink-40) 0%, var(--ink) 50%, var(--ink-40) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: zai-shimmer 1.6s linear infinite;
}
@keyframes zai-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* jump to latest */
.zai-jump {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 2;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule-soft), 0 8px 20px -6px rgba(0, 0, 0, 0.25);
  animation: zai-in 0.2s var(--ease) both;
}
.zai-jump[hidden] { display: none; }
.zai-jump svg { width: 16px !important; height: 16px !important; }

/* composer: soft elevated pill */
.zai-compose { background: var(--panel); box-shadow: 0 0 0 1px var(--rule-soft), 0 6px 18px -10px rgba(0, 0, 0, 0.25); }
.zai-compose:focus-within { box-shadow: 0 0 0 1px var(--ink-24), 0 8px 22px -10px rgba(0, 0, 0, 0.3); }
html[data-theme="dark"] .zai-panel .zai-compose { background: rgba(237, 237, 237, 0.05); }

/* full screen, text: a centred chat home */
.zai-panel.is-full:not(.is-voice) .zai-intro { align-items: center; text-align: center; margin: auto 0; padding-top: 6vh; display: flex; flex-direction: column; }
.zai-panel.is-full:not(.is-voice) .zai-intro__orb { width: 76px; height: 76px; margin-bottom: 22px; }
.zai-panel.is-full:not(.is-voice) .zai-intro__t { font-size: clamp(24px, 3.2vh, 30px); }
.zai-panel.is-full:not(.is-voice) .zai-intro__m { max-width: 460px; }
.zai-panel.is-full:not(.is-voice) .zai-chips { justify-content: center; max-width: 560px; }
.zai-panel.is-full:not(.is-voice) .zai-clock { justify-content: center; }
.zai-panel.is-full:not(.is-voice) .zai-intro.is-compact { margin: 0; padding-top: 0; align-items: flex-start; text-align: left; }
.zai-panel.is-full:not(.is-voice) .zai-compose { border-radius: 26px; padding: 8px 8px 8px 18px; }
.zai-panel.is-full:not(.is-voice) .zai-msg { font-size: 16px; }
.zai-panel.is-full .zai-jump { bottom: 110px; }

/* voice keeps its centred captions: no avatars / copy there */
.zai-panel.is-voice .zai-msg--agent { padding-left: 0; }
.zai-panel.is-voice .zai-msg--agent::before, .zai-panel.is-voice .zai-msg--agent::after, .zai-panel.is-voice .zai-copy { display: none; }
.zai-panel.is-voice .zai-msg--agent:has(.zai-copy) { margin-bottom: 0; }
.zai-panel.is-voice .zai-log > .zai-card { margin-left: 0; align-self: center; }
.zai-panel.is-voice .zai-typing { display: none; }

@media (prefers-reduced-motion: reduce) { .zai-think { animation: none; color: var(--ink-58); background: none; } }

/* ---------------------------------------------------------------------------
   ASSISTANT v8 — prominence: hero ask bar, live agent row, centred float bar
--------------------------------------------------------------------------- */
/* agent row: live, clickable */
.zh-live { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(39, 196, 87, 0.12); color: #1a9c45; font-size: 12px; font-weight: 500; }
html[data-theme="dark"] .zh-live { color: #45d877; }
.zh-live i { width: 6px; height: 6px; border-radius: 99px; background: #27c457; animation: zai-blink 1.6s ease-in-out infinite; }
.zh-row--agent { cursor: pointer; }
.zh-row--agent .zh-row__tiles { transition: opacity var(--t-fast) var(--ease); }

[data-zai-orb] {
  --orb-base: #101113;
  --orb-a: rgba(255, 255, 255, 0.9);
  --orb-b: rgba(178, 186, 204, 0.85);
  --orb-c: rgba(196, 184, 230, 0.55);
  --orb-glow: 210, 216, 232;
  display: block;
}

/* ---------------------------------------------------------------------------
   ASSISTANT v9 — navigation veil (agent opens a page)
   html.zai-nav turns off the shared-element morphs for this one navigation,
   so the view transition is just the veil crossfading into the next page.
--------------------------------------------------------------------------- */
html.zai-nav * { view-transition-name: none !important; }
.zai-veil {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--page);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.38s var(--ease);
}
.zai-veil.is-in { opacity: 1; }
.zai-veil__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.5s var(--ease);
}
.zai-veil.is-in .zai-veil__in { transform: none; }
.zai-veil__orb {
  --orb-base: #101113;
  --orb-a: rgba(255, 255, 255, 0.9);
  --orb-b: rgba(178, 186, 204, 0.85);
  --orb-c: rgba(196, 184, 230, 0.55);
  --orb-glow: 210, 216, 232;
  display: block;
  width: 64px; height: 64px;
}
.zai-veil__orb .zai-orb__swirl { animation-duration: 2.4s; }
.zai-veil__orb .zai-eq { display: none; }
.zai-veil__t { font-size: 15px; letter-spacing: -0.15px; color: var(--ink-58); }
.zai-veil__t b { font-weight: 500; color: var(--ink); }
.zai-veil__bar { position: relative; width: 120px; height: 2px; border-radius: 2px; overflow: hidden; background: var(--rule-soft); }
.zai-veil__bar i { position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--ink); animation: zai-load 1s var(--ease) infinite; }
@keyframes zai-load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
html.zai-nav .zai-panel { opacity: 0; transition: opacity 0.2s; }
@media (prefers-reduced-motion: reduce) { .zai-veil, .zai-veil__in { transition: none; } .zai-veil__bar i { animation: none; width: 100%; } }

/* full screen: X steps back to the panel, so the separate collapse icon is redundant */
.zai-panel.is-full [data-act="full"] { display: none; }

/* agent row badge: neutral, in the site's ink tones */
.zh-live { background: var(--zai-fill-2, rgba(0, 0, 0, 0.06)); color: var(--ink-58); }
html[data-theme="dark"] .zh-live { background: rgba(237, 237, 237, 0.08); color: var(--ink-58); }
.zh-live i { background: var(--ink); opacity: 0.7; }

/* agent row badge: no dot, a slow gradient sweep around the border */
@property --zl-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.zh-live { position: relative; isolation: isolate; padding: 2px 9px; }
.zh-live i { display: none; }
.zh-live::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--zl-a), transparent 0deg, transparent 220deg, var(--ink-24) 280deg, var(--ink) 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: zl-sweep 3.2s linear infinite;
}
@keyframes zl-sweep { to { --zl-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .zh-live::before { animation: none; background: var(--ink-24); } }

/* ---------------------------------------------------------------------------
   ASSISTANT v10 — premium layer
--------------------------------------------------------------------------- */
/* JS drives open/close with a spring morph; the old fade is switched off */
.zai-panel.zai-m { transition: none; }
.zai-panel.zai-m:not([hidden]) { opacity: 1; transform: none; }

/* rich cards */
.zai-card { gap: 12px; padding: 8px 12px 8px 8px; }
.zai-card__thumb { flex: none; width: 64px; height: 44px; border-radius: 9px; overflow: hidden; background: var(--zai-fill-2); box-shadow: inset 0 0 0 1px var(--rule-soft); }
.zai-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-theme="dark"] .zai-card--page .zai-card__thumb img[src$=".svg"] { filter: invert(0.92) hue-rotate(180deg); }
.zai-card--book { background: var(--ink); color: var(--panel); }
.zai-card--book:hover { background: var(--ink); opacity: 0.92; }
.zai-card--book .zai-card__thumb { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); }
.zai-card--book .zai-card__t span { color: inherit; opacity: 0.6; }
.zai-card__cta { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 12px; font-weight: 500; }
.zai-panel.is-voice .zai-card--book { background: #ededed; color: #0c0c0d; }
.zai-panel.is-voice .zai-card--book .zai-card__cta { background: #0c0c0d; color: #ededed; }

/* follow-up suggestions */
.zai-follow { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 2px 34px; }
.zai-follow button {
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule-soft);
  font-size: 12.5px;
  color: var(--ink-58);
  animation: zai-in 0.35s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.zai-follow button:hover { background: var(--ink); color: var(--panel); box-shadow: none; }
.zai-panel.is-voice .zai-follow { display: none; }

/* feedback */
.zai-fb { position: absolute; left: 64px; bottom: -26px; display: flex; gap: 2px; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.zai-msg--agent:hover .zai-fb, .zai-fb:focus-within, .zai-fb:has(.is-on) { opacity: 1; }
.zai-fb button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--ink-40); transition: background-color var(--t-fast), color var(--t-fast); }
.zai-fb button:hover:not([disabled]) { background: var(--zai-fill); color: var(--ink); }
.zai-fb button.is-on { color: var(--ink); }
.zai-fb button[disabled]:not(.is-on) { opacity: 0.35; }
.zai-fb svg { width: 15px !important; height: 15px !important; }
@media (hover: none) { .zai-fb { opacity: 1; position: static; margin-top: 6px; } }
.zai-panel.is-voice .zai-fb { display: none; }

/* voice tour chip + memory */
.zai-chip--tour { gap: 7px; background: var(--ink); color: var(--panel); box-shadow: none; }
.zai-chip--tour::after { content: none; }
.zai-chip--tour svg { width: 14px !important; height: 14px !important; }
.zai-chip--tour:hover { opacity: 0.88; background: var(--ink); color: var(--panel); }
.zai-resume-mem { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.zai-resume-mem[hidden] { display: none; }
.zai-mem__go { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--zai-fill-2); font-size: 13px; transition: background-color var(--t-fast); }
.zai-mem__go:hover { background: var(--ink); color: var(--panel); }
.zai-mem__go svg { width: 15px !important; height: 15px !important; }
.zai-mem__x { font-size: 12px; color: var(--ink-40); text-decoration: underline; text-underline-offset: 3px; }
.zai-intro.is-compact .zai-resume-mem { display: none; }

/* WebGL orb on the voice stage */
.zai-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; border-radius: 50%; }
.zai-orb.has-gl .zai-orb__swirl, .zai-orb.has-gl .zai-orb__gloss { display: none; }
.zai-orb.has-gl { background: transparent; }

/* offline */
.zai-panel.is-offline .zai-dot, .zai-panel.is-offline .zai-status::before { background: #e5484d; }
.zai-panel.is-offline .zai-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------------------------------------------------------------------------
   ASSISTANT v11 — voice-stage WebGL orb uses the orb lab shader (glOrb in
   agent.js). The canvas is 125% of the orb so the halo has room; the shader
   draws its own edge.
--------------------------------------------------------------------------- */
.zai-orb.has-gl { overflow: visible; box-shadow: none !important; transform: none !important; }
.zai-orb.has-gl .zai-gl { inset: -12.5%; width: 125%; height: 125%; border-radius: 0; }

/* ---------------------------------------------------------------------------
   ASSISTANT v12 — full-screen chat as a reading view, offer buttons
--------------------------------------------------------------------------- */
/* offer buttons: the agent's own offers ("open About", "book a call") */
.zai-follow .zai-offer {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--panel); box-shadow: none; font-weight: 500;
}
.zai-follow .zai-offer svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zai-follow .zai-offer:hover { opacity: 0.86; background: var(--ink); color: var(--panel); }

/* a run of replies reads as one answer: no copy/feedback gap in between */
.zai-msg--agent:has(+ .zai-msg--agent) { margin-bottom: -4px; }
.zai-msg--agent:has(+ .zai-msg--agent) :is(.zai-copy, .zai-fb) { display: none; }

/* full screen, text: one centred reading column */
.zai-panel.is-full:not(.is-voice) {
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(var(--orb-glow), 0.09), transparent 70%),
    var(--panel);
}
.zai-panel.is-full:not(.is-voice) :is(.zai-head, .zai-log, .zai-dock) { max-width: 720px; }
.zai-panel.is-full:not(.is-voice) .zai-log {
  gap: 20px;
  padding-top: 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px);
          mask-image: linear-gradient(180deg, transparent 0, #000 28px);
}
.zai-panel.is-full:not(.is-voice) .zai-msg { font-size: 17px; line-height: 1.62; letter-spacing: -0.12px; }
.zai-panel.is-full:not(.is-voice) .zai-msg p + p { margin-top: 12px; }
.zai-panel.is-full:not(.is-voice) .zai-msg--user { font-size: 16px; line-height: 1.5; max-width: 80%; }
/* no avatar beside every reply: the text stands on its own */
.zai-panel.is-full:not(.is-voice) .zai-msg--agent { padding-left: 0; }
.zai-panel.is-full:not(.is-voice) .zai-msg--agent::before,
.zai-panel.is-full:not(.is-voice) .zai-msg--agent::after { display: none; }
.zai-panel.is-full:not(.is-voice) :is(.zai-follow, .zai-log > .zai-card) { margin-left: 0; }
.zai-panel.is-full:not(.is-voice) .zai-copy { left: -6px; }
.zai-panel.is-full:not(.is-voice) .zai-fb { left: 24px; }
.zai-panel.is-full:not(.is-voice) .zai-follow { gap: 8px; margin-top: -6px; }
.zai-panel.is-full:not(.is-voice) .zai-follow button { padding: 8px 14px; font-size: 13.5px; }
/* page cards: wide, with a real thumbnail */
.zai-panel.is-full:not(.is-voice) .zai-card { gap: 16px; padding: 10px 16px 10px 10px; border-radius: 16px; }
.zai-panel.is-full:not(.is-voice) .zai-card--page .zai-card__thumb { width: 132px; height: 84px; border-radius: 10px; }
.zai-panel.is-full:not(.is-voice) .zai-card__t b { font-size: 16px; }
/* empty state: the orb leads */
.zai-panel.is-full:not(.is-voice) .zai-intro__orb { width: 112px; height: 112px; margin-bottom: 26px; }
.zai-panel.is-full:not(.is-voice) .zai-intro__orb .zai-orb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 48px rgba(var(--orb-glow), 0.22); }
.zai-panel.is-full:not(.is-voice) .zai-intro__m { font-size: 16px; line-height: 1.55; }
.zai-panel.is-full:not(.is-voice) .zai-chips { gap: 8px; margin-top: 26px; }
.zai-panel.is-full:not(.is-voice) .zai-chip { padding: 9px 14px; font-size: 14px; }
@media (max-width: 640px) {
  .zai-panel.is-full:not(.is-voice) .zai-msg { font-size: 16px; }
  .zai-panel.is-full:not(.is-voice) .zai-card--page .zai-card__thumb { width: 96px; height: 64px; }
  .zai-panel.is-full:not(.is-voice) .zai-intro__orb { width: 88px; height: 88px; }
}
/* even rhythm: the hover copy/feedback row sits in the gap, not below it */
.zai-panel.is-full:not(.is-voice) .zai-msg--agent:has(.zai-copy) { margin-bottom: 6px; }
.zai-panel.is-full:not(.is-voice) :is(.zai-copy, .zai-fb) { bottom: -30px; }
.zai-panel.is-full:not(.is-voice) .zai-msg--agent:has(+ .zai-msg--agent) { margin-bottom: -8px; }

/* "Continue by voice": a slow light sweep around the border instead of the green pulse */
.zai-resume__go::after {
  inset: 0;
  padding: 1.5px;
  box-shadow: none;
  background: conic-gradient(from var(--zl-a), transparent 0deg, transparent 200deg, rgba(255, 255, 255, 0.25) 270deg, rgba(255, 255, 255, 0.95) 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: zl-sweep 2.8s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .zai-resume__go::after { animation: none; background: rgba(255, 255, 255, 0.3); } }

/* ---------------------------------------------------------------------------
   ASSISTANT v13 — welcome screen (spotlight, two-tone greeting, live orb),
   layered input box, rolling voice captions
--------------------------------------------------------------------------- */
/* two-tone greeting: a quiet hello, then the question */
.zai-intro__hi { display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: 0.62em; letter-spacing: 0; color: var(--ink-40); }
.zai-intro.is-compact .zai-intro__hi { display: inline; margin: 0; font-size: inherit; }
.zai-intro.is-compact .zai-intro__q { display: none; }
.zai-panel.is-full:not(.is-voice) .zai-intro__t { font-size: clamp(28px, 4vh, 36px); line-height: 1.15; letter-spacing: -0.6px; max-width: 620px; }
.zai-panel.is-full:not(.is-voice) .zai-intro__hi { font-size: clamp(17px, 2.2vh, 20px); margin-bottom: 8px; }
.zai-panel.is-full:not(.is-voice) .zai-intro__m { margin-top: 12px; font-size: 15px; color: var(--ink-40); }
.zai-panel.is-full:not(.is-voice) .zai-intro.is-compact .zai-intro__t { font-size: var(--t-caption); letter-spacing: 0; }

/* full screen, dark: a soft pearl spotlight from above, strongest on the empty screen */
.zai-panel.is-full:not(.is-voice) { isolation: isolate; }
html[data-theme="dark"] .zai-panel.is-full:not(.is-voice)::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  z-index: -1;
  width: min(1200px, 130vw);
  height: 78vh;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 78% at 50% -4%, rgba(var(--orb-glow), 0.17), rgba(var(--orb-glow), 0.05) 48%, transparent 74%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 8px);
  -webkit-mask-image: radial-gradient(ellipse 40% 90% at 50% 0, #000 18%, transparent 76%);
          mask-image: radial-gradient(ellipse 40% 90% at 50% 0, #000 18%, transparent 76%);
  transition: opacity 0.6s var(--ease);
}
html[data-theme="dark"] .zai-panel.is-full:not(.is-voice):has(.zai-intro.is-compact)::before { opacity: 0.35; }
.zai-panel.is-full:not(.is-voice) .zai-intro__orb { width: 128px; height: 128px; margin-bottom: 30px; }

/* layered input box: a tray (page context) around the input */
.zai-tray { display: contents; }
.zai-tray__row { display: none; }
.zai-panel.is-full:not(.is-voice) .zai-tray {
  display: block;
  padding: 4px 6px 6px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.025);
  box-shadow: 0 0 0 1px var(--rule-soft);
}
.zai-panel.is-full:not(.is-voice) .zai-tray:has(> .zai-compose[hidden]) { display: none; }
.zai-panel.is-full:not(.is-voice) .zai-tray__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px 9px;
  font-size: 12.5px; color: var(--ink-40);
}
.zai-tray__ctx { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.zai-tray__ctx > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zai-tray__ctx b { font-weight: 500; color: var(--ink-58); }
.zai-tray__ctx svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.zai-tray__k kbd { font: inherit; padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule-soft); }
.zai-panel.is-full:not(.is-voice) .zai-tray .zai-compose {
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--rule-soft), 0 6px 18px -12px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .zai-panel.is-full:not(.is-voice) .zai-tray { background: rgba(237, 237, 237, 0.03); box-shadow: 0 0 0 1px rgba(237, 237, 237, 0.06); }
html[data-theme="dark"] .zai-panel.is-full:not(.is-voice) .zai-tray .zai-compose {
  background: linear-gradient(180deg, rgba(237, 237, 237, 0.075), rgba(237, 237, 237, 0.035));
  box-shadow: inset 0 0 0 1px rgba(237, 237, 237, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px -14px rgba(0, 0, 0, 0.7);
}
html[data-theme="dark"] .zai-panel.is-full:not(.is-voice) .zai-tray .zai-compose:focus-within {
  box-shadow: inset 0 0 0 1px rgba(237, 237, 237, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 24px -14px rgba(0, 0, 0, 0.7);
}
@media (max-width: 640px), (hover: none) { .zai-tray__k { display: none; } }

/* voice captions: a rolling window that follows the voice, newest line at the bottom */
.zai-panel.is-voice .zai-msg--agent {
  flex-shrink: 0;
  max-height: calc(1.38em * 5);
  overflow: hidden;
}
.zai-panel.is-voice .zai-msg--agent.is-roll {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.6em);
          mask-image: linear-gradient(180deg, transparent 0, #000 1.6em);
}
.zai-panel.is-full.is-voice .zai-msg--agent { max-height: calc(1.38em * 4); }

/* homepage Work list: the Voice & Text Agent row shows the assistant's own orb */
.zh-row__logo--agent { background: radial-gradient(circle at 35% 30%, #8d93a1, #1c1d21 70%); border-radius: 50%; overflow: visible; }
.zh-row__logo--agent .zai-orb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.zh-row__logo--agent .zai-eq { display: none; }
.zh-row--agent:hover .zh-row__logo--agent .zai-orb__swirl { animation-duration: 3s; }
@media (max-width: 640px) { .zai-panel.is-full:not(.is-voice) .zai-intro__t { font-size: 26px; } }

/* ===== Voice & Text Agent case study (.va) ===== */
.va-try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.va-try--center { justify-content: center; }
.va-try__talk {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px 0 5px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule-soft);
  font-size: 14px; letter-spacing: -0.14px; color: var(--ink);
  transition: background-color var(--t-fast) var(--ease);
}
.va-try__talk:hover { background: var(--zai-fill, rgba(0, 0, 0, 0.05)); }
.va-try__orb { display: inline-block; width: 22px; height: 22px; }
.va-try__orb .zai-mark { width: 50%; height: 50%; }

.va-panel { display: block; width: min(280px, 44%); height: auto; border-radius: 16px; box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.va-phone { display: block; width: min(219px, 36%); height: auto; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.3)); }
.va-hero .va-panel { width: min(280px, 29%); }
.va-hero .va-phone { width: min(219px, 22.7%); }
.va-wide { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.va-stage--wide { display: flex; align-items: center; margin: 0; padding: 40px; }

/* principles */
.va-principles { grid-template-columns: repeat(4, 1fr); }
.va-pr { display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 28px 28px 32px; }
.va-pr__n { font-size: 13px; letter-spacing: -0.13px; color: rgba(255, 255, 255, 0.42); font-variant-numeric: tabular-nums; }
.va-pr__h { margin-top: auto; font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: -0.3px; }
.va-pr__p { font-size: 14px; line-height: 1.45; letter-spacing: -0.14px; color: rgba(255, 255, 255, 0.66); }

/* taking you there */
.va-go { grid-template-columns: 740fr 488fr; }
.va-go__card { display: flex; flex-direction: column; gap: 28px; padding: 32px; }
.va-go .zp-stage .va-panel { width: min(320px, 78%); }
.va-go__txt { max-width: 560px; padding: 32px 32px 0; }
.va-go__txt .zc-body-copy p + p { margin-top: 10px; }
.va-go__veil { display: block; width: 100%; height: auto; margin-top: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* full screen */
.va-full { display: flex; flex-direction: column; gap: 14px; padding: 64px 64px 48px; }
.va-full__txt { max-width: 560px; margin-bottom: 26px; }
.va-full .va-wide { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.va-full__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* phone + orb */
.va-phones { display: flex; justify-content: center; gap: 18px; margin-top: auto; width: 100%; }
.va-phones .va-phone { width: min(200px, 44%); }
.va-orb { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 56px 32px 48px; }
.va-orb__row { margin: auto 0 0; width: 100%; }
.va-orb__row img { display: block; width: 100%; height: auto; }
.va-orb__cap { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 10px; text-align: center; font-size: 12px; letter-spacing: -0.12px; color: rgba(255, 255, 255, 0.45); }
.va-orb__cap .is-on { color: #fff; }

/* under the hood */
.va-hood { display: flex; flex-direction: column; gap: 36px; padding: 56px 64px 60px; }
.va-hood__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; }
.va-hood__grid dt { font-size: 13px; font-weight: 600; letter-spacing: -0.13px; color: #fff; margin-bottom: 8px; }
.va-hood__grid dd { margin: 0; font-size: 14px; line-height: 1.45; letter-spacing: -0.14px; color: rgba(255, 255, 255, 0.66); }

/* try it */
.va-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 32px 76px; text-align: center; }
.va-cta__orb { display: block; width: 72px; height: 72px; margin-bottom: 10px; }
.va-cta__h { font-size: 32px; font-weight: 400; line-height: 1.15; letter-spacing: -0.8px; color: #000; }
.va-cta__p { max-width: 420px; font-size: 15px; line-height: 1.45; color: rgba(41, 41, 41, 0.7); margin-bottom: 8px; }
html[data-theme="dark"] body.zh .va-cta__h { color: #ededed; }
html[data-theme="dark"] body.zh .va-cta__p { color: rgba(237, 237, 237, 0.68); }
html[data-theme="dark"] body.zh .va-try__talk { color: #ededed; box-shadow: inset 0 0 0 1px rgba(237, 237, 237, 0.16); }
html[data-theme="dark"] body.zh .va-wide { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 50px -24px rgba(0, 0, 0, 0.8); }

@media (max-width: 1100px) {
  .va-principles { grid-template-columns: 1fr 1fr; }
  .va-hood__grid { grid-template-columns: 1fr 1fr; }
  .va-full { padding: 48px 32px 32px; }
}
@media (max-width: 800px) {
  .va-go { grid-template-columns: 1fr; }
  .va-full { padding: 40px 16px 16px; }
  .va-full__txt { padding-inline: 8px; }
  .va-full__pair { grid-template-columns: 1fr; }
  .va-hood { padding: 40px 24px; }
  .va-go__card { padding: 16px; }
  .va-go__txt { padding: 24px 8px 0; }
  .va-stage--wide { padding: 20px; }
  .va-hero .va-panel { width: 31%; }
  .va-hero .va-phone { width: 24.3%; }
  .va-cta__h { font-size: 26px; }
}
@media (max-width: 520px) {
  .va-principles, .va-hood__grid { grid-template-columns: 1fr; }
  .va-pr { min-height: 0; }
}

/* Work list: the agent row opens the case study; its Live badge opens the chat */
.zh-live[role="button"] { cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.zh-live[role="button"]:hover { background: var(--ink); color: var(--page, #fff); }
.zh-live[role="button"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.zh-row--agent { cursor: auto; }
/* agent row tiles: the orb, then two screens of the assistant */
.zh-tile--va-orb { background: #0c0c0d; }
.zh-tile--va-orb > img { width: 190px; height: 190px; transform: translate(-50%, -50%); }
.zh-tile--va-screen { background: #161719; }
.zh-tile--va-voice { background: radial-gradient(70% 55% at 50% 30%, #2a2b30 0%, #161719 70%); }
.zh-tile__panel { width: 196px; height: auto; border-radius: 13px; transform: translate(-50%, calc(-50% + 64px)); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7); }
.zh-tile--va-voice .zh-tile__panel { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -18px rgba(0, 0, 0, 0.7); }

/* footer wordmark sits on the same inset as the sections above it */
.zh-foot__mark { padding-inline: var(--zh-inset); box-sizing: border-box; }

/* =====================================================================
   POSTS INDEX (blog.html, built by tools/publish_post.py)
   ===================================================================== */
.za-index { --zi-line: rgba(0, 0, 0, 0.08); list-style: none; padding: 0; margin: 0 0 36px; }
.za-index li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 2px; padding: 14px 0; border-top: 1px solid var(--zi-line); }
.za-index li:last-child { border-bottom: 1px solid var(--zi-line); }
.za-index__t { font-weight: 600; color: var(--zh-ink); text-decoration: none; }
.za-index__t:hover { text-decoration: underline; text-underline-offset: 3px; }
.za-index__d { grid-column: 1; color: var(--ink-58); font-size: 0.92em; }
.za-index__k { grid-column: 2; grid-row: 1; color: var(--ink-58); font-size: 0.85em; white-space: nowrap; }

/* The Live/timer pill was removed in PR #34. Keep it hidden in case an old
   copy of agent.js is still cached on a visitor's device. */
.zai-pill { display: none !important; }

/* ---------------------------------------------------------------------------
   ASSISTANT v14 — full-screen voice follows the site theme: a light version
   for light mode (dark stays as it was)
--------------------------------------------------------------------------- */
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice {
  --ink: #0c0c0d;
  --ink-58: rgba(12, 12, 13, 0.6);
  --ink-40: rgba(12, 12, 13, 0.44);
  --ink-24: rgba(12, 12, 13, 0.26);
  --panel: #f7f7f5;
  --rule-soft: rgba(12, 12, 13, 0.08);
  --zai-fill: rgba(12, 12, 13, 0.05);
  --zai-fill-2: rgba(12, 12, 13, 0.09);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 36%, rgba(196, 204, 224, calc(0.38 + var(--lvl, 0) * 0.3)) 0, transparent 40%),
    radial-gradient(ellipse 120% 70% at 50% 110%, rgba(12, 12, 13, 0.035), transparent 60%),
    #f7f7f5;
}
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice::before { filter: invert(1); opacity: 0.04; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-stage__orb { filter: drop-shadow(0 22px 34px rgba(20, 22, 30, 0.22)); }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-stage__orb .zai-orb:not(.has-gl) { box-shadow: 0 0 calc(30px + var(--lvl, 0) * 60px) rgba(160, 170, 196, calc(0.3 + var(--lvl, 0) * 0.3)); }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-stage__t { background: rgba(12, 12, 13, 0.05); }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice.is-speaking .zai-stage__t i { background: #0c0c0d; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-icon { background: rgba(12, 12, 13, 0.05); }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-icon:hover { background: rgba(12, 12, 13, 0.1); }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-voice {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(12, 12, 13, 0.07), 0 20px 50px -24px rgba(20, 22, 30, 0.25);
}
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-vbtn { background: rgba(12, 12, 13, 0.06); color: #0c0c0d; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-vbtn:hover { background: rgba(12, 12, 13, 0.11); }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-vbtn--end { background: #e5484d; color: #fff; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-vbtn--end:hover { background: #d93d42; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice.is-muted [data-act="mute"],
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice.is-kbd [data-act="kbd"] { background: #0c0c0d; color: #f7f7f5; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-hint kbd { background: rgba(12, 12, 13, 0.06); box-shadow: inset 0 -1px 0 rgba(12, 12, 13, 0.08); }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-card--book { background: #0c0c0d; color: #ededed; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-card--book .zai-card__cta { background: #ededed; color: #0c0c0d; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-card:not(.zai-card--book) { background: #fff; box-shadow: 0 0 0 1px rgba(12, 12, 13, 0.07), 0 12px 30px -18px rgba(20, 22, 30, 0.25); }
/* light (mist) orb: a dark logo and a soft shadow instead of the white glow */
.zai-orb.is-mist .zai-mark { background: #1c1d21; filter: none; }
html:not([data-theme="dark"]) .zai-panel.is-full.is-voice .zai-stage__orb { filter: drop-shadow(0 22px 34px rgba(20, 22, 30, 0.16)); }
html:not([data-theme="dark"]) .zai-panel.is-full:not(.is-voice) .zai-intro__orb .zai-orb.is-mist { box-shadow: none; }
html:not([data-theme="dark"]) .zai-panel.is-full:not(.is-voice) .zai-intro__orb:has(.is-mist) { filter: drop-shadow(0 16px 26px rgba(20, 22, 30, 0.14)); }

/* ---------------------------------------------------------------------------
   ASSISTANT v15 — the side panel's voice mode follows the theme too
   (full-screen light rules above are more specific and still win there)
--------------------------------------------------------------------------- */
html:not([data-theme="dark"]) .zai-panel.is-voice {
  --ink: #0c0c0d;
  --ink-58: rgba(12, 12, 13, 0.6);
  --ink-40: rgba(12, 12, 13, 0.44);
  --ink-24: rgba(12, 12, 13, 0.26);
  --panel: #f7f7f5;
  --rule-soft: rgba(12, 12, 13, 0.08);
  --zai-fill: rgba(12, 12, 13, 0.05);
  --zai-fill-2: rgba(12, 12, 13, 0.09);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 40% at 50% 26%, rgba(196, 204, 224, calc(0.35 + var(--lvl, 0) * 0.3)), transparent 70%),
    #f7f7f5;
}
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-stage__orb { filter: drop-shadow(0 16px 26px rgba(20, 22, 30, 0.16)); }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-stage__orb .zai-orb:not(.has-gl) { box-shadow: 0 0 calc(24px + var(--lvl, 0) * 50px) rgba(160, 170, 196, calc(0.3 + var(--lvl, 0) * 0.3)); }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-stage__t { background: rgba(12, 12, 13, 0.05); }
html:not([data-theme="dark"]) .zai-panel.is-voice.is-speaking .zai-stage__t i { background: #0c0c0d; }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-vbtn { background: rgba(12, 12, 13, 0.06); color: #0c0c0d; }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-vbtn:hover { background: rgba(12, 12, 13, 0.11); }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-vbtn--end { background: #e5484d; color: #fff; }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-vbtn--end:hover { background: #d93d42; }
html:not([data-theme="dark"]) .zai-panel.is-voice.is-muted [data-act="mute"],
html:not([data-theme="dark"]) .zai-panel.is-voice.is-kbd [data-act="kbd"] { background: #0c0c0d; color: #f7f7f5; }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-card--book { background: #0c0c0d; color: #ededed; }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-card--book .zai-card__cta { background: #ededed; color: #0c0c0d; }
html:not([data-theme="dark"]) .zai-panel.is-voice .zai-card:not(.zai-card--book) { background: #fff; box-shadow: 0 0 0 1px rgba(12, 12, 13, 0.07), 0 12px 30px -18px rgba(20, 22, 30, 0.25); }

/* ---------------------------------------------------------------------------
   ASSISTANT v16 — easier to find: an Ask button in the navigation and a
   livelier corner button
--------------------------------------------------------------------------- */
/* nav: a pill with the orb, next to Contact */
.zai-navask {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; margin: 0 8px 0 auto; padding: 0 8px 0 3px;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-family: var(--font-body); font-size: var(--t-nav); font-weight: 500; letter-spacing: -0.2px;
  color: #000; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.zai-navask:hover { background: rgba(0, 0, 0, 0.05); }
.zai-navask:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.zai-navask__orb { display: block; flex: none; width: 22px; height: 22px; }
.zai-navask__orb .zai-mark { width: 48%; height: 48%; }
.zai-navask__orb .zai-eq { display: none; }
.zai-navask:hover .zai-orb__swirl { animation-duration: 3s; }
.zai-navask__k { font: inherit; font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); color: rgba(0, 0, 0, 0.5); }
.zt-toggle + .zai-navask { margin-left: 0; }
html[data-theme="dark"] body.zh .zai-navask { color: #ededed; box-shadow: inset 0 0 0 1px rgba(237, 237, 237, 0.16); }
html[data-theme="dark"] body.zh .zai-navask:hover { background: rgba(237, 237, 237, 0.08); }
html[data-theme="dark"] body.zh .zai-navask__k { color: rgba(237, 237, 237, 0.55); box-shadow: inset 0 0 0 1px rgba(237, 237, 237, 0.18); }
@media (max-width: 640px), (hover: none) { .zai-navask__k { display: none; } }
@media (max-width: 640px) {
  .zai-navask { margin: 0 2px 0 0; padding: 0 9px 0 3px; height: 30px; }
}

/* corner button: always labelled, swirling, with a slow light sweep round the edge */
.zai-launch { height: 48px; padding: 7px; isolation: isolate; }
.zai-launch .zai-ava { width: 34px; height: 34px; }
.zai-launch .zai-orb__swirl { animation-duration: 6s; opacity: 0.85; }
.zai-launch__label { font-size: 15px; }
.zai-launch.is-tucked .zai-launch__label { max-width: 240px; padding: 0 10px; opacity: 1; }
.zai-launch::before {
  content: "";
  position: absolute; inset: -1px; z-index: -1;
  padding: 1.2px; border-radius: 999px;
  background: conic-gradient(from var(--zl-a), transparent 0deg, transparent 220deg, rgba(150, 158, 182, 0.55) 290deg, rgba(150, 158, 182, 0.95) 335deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: zl-sweep 4.5s linear infinite;
  pointer-events: none;
}
html[data-theme="dark"] .zai-launch::before { background: conic-gradient(from var(--zl-a), transparent 0deg, transparent 220deg, rgba(237, 237, 237, 0.3) 290deg, rgba(237, 237, 237, 0.85) 335deg, transparent 360deg); }
.zai-launch::after { content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none; }
.zai-launch.is-hello::after { animation: zai-hello 1.7s var(--ease) 2; }
@keyframes zai-hello {
  0% { box-shadow: 0 0 0 0 rgba(150, 158, 182, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(150, 158, 182, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .zai-launch::before { animation: none; background: rgba(150, 158, 182, 0.35); }
  .zai-launch.is-hello::after { animation: none; }
}

/* case study principles: a small piece of the assistant's UI on top, headings on one line */
.va-pr { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 20px 20px 30px; }
.va-pr__ui {
  display: flex; align-items: center; justify-content: center;
  height: 132px; margin-bottom: 26px;
  border-radius: 14px;
  background: radial-gradient(80% 90% at 50% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.va-pr__n { padding: 0 8px; font-size: 12px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.4); font-variant-numeric: tabular-nums; }
.va-pr__h { margin: 8px 0 0; padding: 0 8px; font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: -0.3px; }
.va-pr__p { margin-top: 10px; padding: 0 8px; font-size: 14px; line-height: 1.45; letter-spacing: -0.14px; color: rgba(255, 255, 255, 0.62); }
.va-pr__ui svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 01 sources */
.va-src { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 230px; }
.va-src span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12px; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.08); }
.va-src .is-off { color: rgba(255, 255, 255, 0.35); background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
/* 02 actions */
.va-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.va-acts span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #ededed; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.va-acts .is-solid { background: #ededed; color: #0c0c0d; box-shadow: none; }
/* 03 type / talk */
.va-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.va-seg span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.va-seg .is-on { background: #ededed; color: #0c0c0d; }
/* 04 the corner button, small */
.va-mini { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #f7f7f5; color: #0c0c0d; font-size: 13px; font-weight: 500; letter-spacing: -0.2px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); }
.va-mini__orb { display: block; width: 28px; height: 28px; }
.va-mini__orb .zai-eq { display: none; }
.va-mini__orb .zai-mark { width: 48%; height: 48%; }
@media (max-width: 520px) { .va-pr__ui { height: 112px; } }
