/* Jinn, the Uwee World. Shared sheet: tokens, grounds, type, chrome, components, motion rules. */

/* ---------- tokens ---------- */
:root {
  --amber: #e8930c; --amber-hi: #ffd58a; --amber-ink: #875b00; --amber-hover: #f0a830;
  --navy: #111627; --navy-2: #171d31; --navy-3: #212c4a;
  --ink: #15171c; --ink-2: #3f444d; --ink-3: #5d636e;
  --paper: #f6f3ec; --paper-2: #ece7dc;
  --cream: #f3e9d6; --cream-deep: #e8d9bb;
  --butter: #f5cf63; --butter-deep: #e9b93a;
  --iris: #5b3fa6; --iris-deep: #46307f; --iris-lite: #8b74cf;
  --studio: #f7f5f0; --studio-2: #ebe8e1;
  --pink: #f0a3c4; --pink-deep: #d9679a;
  --cobalt: #1e3a6e; --sapphire: #2f5496; --azure: #4278cc;
  --viridian: #217a55; --rust: #be5530; --petrol: #235f6b; --harbor: #4a6785; --coral: #cc5a4e;
  --on-dark: #eef2f9; --on-dark-2: #b7c1d6; --on-dark-3: #94a0ba;
  --radius: 18px; --radius-sm: 10px;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 50px rgba(17, 22, 39, .18);
}

/* ---------- grounds: a real color change behind the content ---------- */
[data-ground] { background: var(--bg); color: var(--fg); }
[data-ground="navy"]   { --bg: var(--navy);   --fg: var(--on-dark); --muted: var(--on-dark-2); --rule: rgba(238,242,249,.18); --card: var(--navy-2); }
[data-ground="ink"]    { --bg: var(--ink);    --fg: var(--on-dark); --muted: var(--on-dark-2); --rule: rgba(238,242,249,.16); --card: #22252d; }
[data-ground="cream"]  { --bg: var(--cream);  --fg: var(--ink);     --muted: var(--ink-2);     --rule: rgba(21,23,28,.14);    --card: #fbf6ea; }
[data-ground="paper"]  { --bg: var(--paper);  --fg: var(--ink);     --muted: var(--ink-2);     --rule: rgba(21,23,28,.14);    --card: #fffdf8; }
[data-ground="butter"] { --bg: var(--paper);  --fg: var(--ink);     --muted: var(--ink-2);     --rule: rgba(21,23,28,.14);    --card: #fffdf8; } /* G16 (r4): the 10 butter closes (7 product pages, uwee-u, uwees, Demos #after) read as clean paper; butter stays in cards and buttons */
[data-ground="iris"]   { --bg: var(--iris);   --fg: var(--on-dark); --muted: #e2d9ff;          --rule: rgba(238,242,249,.2);  --card: var(--iris-deep); }
[data-ground="studio"] { --bg: var(--studio); --fg: var(--ink);     --muted: var(--ink-2);     --rule: rgba(21,23,28,.12);    --card: #ffffff; }
[data-ground="pink"]   { --bg: var(--pink);   --fg: #2a1420;        --muted: #4a2a3a;          --rule: rgba(42,20,32,.18);    --card: #f9c9dc; }
[data-ground="cobalt"] { --bg: var(--cobalt); --fg: var(--on-dark); --muted: var(--on-dark-2); --rule: rgba(238,242,249,.2);  --card: var(--sapphire); }

/* ---------- reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.012em; line-height: 1.04; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 400; }
h3 { font-family: var(--head); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 0 0 .4em; }
h4 { font-family: var(--head); font-weight: 700; font-size: 1.05rem; margin: 0 0 .3em; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; }
.label { font-family: var(--ui); font-weight: 600; font-size: .82rem; letter-spacing: .01em; color: var(--muted, var(--ink-2)); }
.serif { font-family: var(--serif-accent); font-style: italic; }
.small { font-size: .92rem; }
.muted { color: var(--muted, var(--ink-2)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.band { padding-block: clamp(56px, 9vw, 120px); position: relative; }
.band--tight { padding-block: clamp(36px, 5vw, 64px); }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- buttons and doors ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.35em;
  border-radius: 999px; font-weight: 700; font-family: var(--ui); font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn--secondary { background: transparent; color: var(--fg, var(--ink)); border-color: currentColor; }
.btn--secondary:hover { background: rgba(127,127,127,.12); }
.btn--quiet { background: transparent; border-color: transparent; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; padding: 0 .6em; }
.btn--small { min-height: 44px; font-size: .92rem; padding: 0 1em; }
.doors { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.doors .after { width: 100%; }

/* ---------- chips, cards, rules ---------- */
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 30px; padding: 2px 11px; border-radius: 999px; font-family: var(--ui); font-size: .8rem; border: 1.5px solid var(--rule, rgba(21,23,28,.2)); white-space: nowrap; }
/* status chips: a tinted dot carries the status; on dark grounds the chip itself goes light so the word stays readable (fix 42) */
.chip--status { --dot: var(--ink-2); border-color: var(--dot); color: var(--ink); }
.chip--status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: 0 0 auto; }
.chip--status[data-status="Live"] { --dot: var(--viridian); }
.chip--status[data-status="Early access"] { --dot: var(--azure); }
.chip--status[data-status="Private beta"] { --dot: var(--rust); }
[data-ground="navy"] .chip--status, [data-ground="ink"] .chip--status, [data-ground="iris"] .chip--status, .product-card .chip--status, .pcard .chip--status { background: var(--paper); color: var(--ink); border-color: var(--paper); }
[data-ground="navy"] .chip--status[data-status="Live"], [data-ground="ink"] .chip--status[data-status="Live"] { --dot: #1f8f5f; }
.chip--example { display: none; } /* S4: no per-tile "Example brand" tags; each section carries one quiet line instead */
.card { background: var(--card, #fff); color: var(--fg, var(--ink)); border: 1px solid var(--rule, rgba(21,23,28,.12)); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); }
.rule { border: 0; border-top: 1px solid var(--rule, rgba(21,23,28,.14)); margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.plain th, table.plain td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain th { font-family: var(--head); font-weight: 700; }
@media (max-width: 860px) {
  table.plain thead { display: none; }
  table.plain tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.plain td { display: block; border: 0; padding: 4px 0; font-size: .95rem; }
  table.plain td::before { content: attr(data-th); display: block; font-family: var(--ui); font-size: .8rem; color: var(--muted); }
}

/* ---------- Uwee figure: still never touched; shadow is its own element ---------- */
.uwee { position: relative; display: inline-block; line-height: 0; }
.uwee img, .uwee video { width: 100%; height: auto; position: relative; z-index: 1; }
.uwee .shadow { position: absolute; left: 12%; right: 12%; bottom: 2%; height: 7%; border-radius: 50%; background: rgba(17,22,39,.22); z-index: 0; }
.uwee.flip img, .uwee.flip video { transform: scaleX(-1); }
.uwee img.flip, .uwee video.flip { transform: scaleX(-1); } /* a single flipped pose inside an unflipped figure */
.uwee .pose { display: none; }
.uwee .pose.is-on { display: block; }
.uwee[data-pose-open] .pose-base { display: none; }

/* Tip: a Uwee beside a one-line tip on a clean surface */
.tip { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 20px; align-items: end; }
.tip .bubble { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; font-family: var(--serif-accent); font-style: italic; font-size: 1.2rem; line-height: 1.35; margin-bottom: 28px; align-self: center; }
.tip .bubble::after { content: ""; position: absolute; left: -10px; bottom: 22px; width: 18px; height: 18px; background: inherit; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transform: rotate(45deg); }
.tip .prop { position: absolute; bottom: 0; right: -14%; width: 36%; z-index: 2; }
@media (max-width: 600px) { .tip { grid-template-columns: 1fr; } .tip .bubble::after { left: 30px; bottom: -10px; transform: rotate(-45deg); } }

/* ---------- painted bands: whole renders that hold still ---------- */
.painted { position: relative; overflow: hidden; }
.painted .scene { position: relative; aspect-ratio: 1672 / 941; width: 100%; }
.painted .scene > img, .painted .scene > video, .painted .layer > img, .painted .layer > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* a layered still fills its layer, so a height-clamped scene (the close) never lets the image run past its box into the copy band */
.painted .layer { position: absolute; inset: 0; will-change: transform; }
/* painted stills never run a loop of their own and nothing is painted over them: the stage controller owns every moving Uwee, one at a time */
.painted .copy { position: relative; padding: clamp(20px, 4vw, 56px) 0; color: var(--on-dark); } /* copy sits on its own clean band beside or beneath the scene, never on a matte over it */
/* ---------- S2 hero template (F21, H06, R11): every page opens with one full-width picture directly under the nav ----------
   The whole 1672 x 941 frame shows wherever the viewport allows (1440 x 900 shows it uncropped); a short, wide screen
   crops a sliver from the top and bottom only, anchored by --hx-pos so no Uwee head is cut. Phone shows the whole frame.
   The copy sits below the picture on its own band, never over it. */
.hero.painted { display: grid; grid-template-rows: none; min-height: 0; max-height: none; align-items: stretch; }
.hero.painted > .scene, .hx-art { order: -1; position: relative; inset: auto; width: 100%; max-width: none; margin: 0; height: auto; aspect-ratio: 1672 / 941; max-height: calc(100svh - 68px); overflow: hidden; background: var(--navy); }
.hero.painted > .scene .layer { position: absolute; inset: 0; }
.hero.painted > .scene img, .hero.painted > .scene video, .hx-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hx-pos, 50% 45%); }
.chero.has-art { padding-top: 0; }
.chero .hx-art { margin-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 860px) {
  .hero.painted > .scene, .hx-art { aspect-ratio: 1672 / 941; max-height: none; }
  .hero.painted > .scene img, .hero.painted > .scene video, .hx-art img { object-position: var(--hx-pos-m, 50% 50%); }
}
/* H04: the Home scenes step back and forth: arrows at the sides, dots at the foot, a sideways swipe */
.hx-step { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,253,248,.92); color: var(--ink); font-size: 1.3rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(17,22,39,.25); display: grid; place-items: center; }
.hx-prev { left: 16px; } .hx-next { right: 16px; }
.hx-step:hover { background: #fff; }
.hx-dots { position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%); display: flex; gap: 4px; background: rgba(17,22,39,.45); border-radius: 999px; padding: 2px 6px; }
.hx-dots button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hx-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.55); }
.hx-dots button[aria-pressed="true"]::before { background: #fff; transform: scale(1.25); }
#hero-scene { touch-action: pan-y; }
@media (max-width: 860px) { .hx-step { width: 44px; height: 44px; font-size: 1.1rem; } .hx-prev { left: 8px; } .hx-next { right: 8px; } .hx-dots { bottom: 8px; } } /* r4 fix 33: 44 px targets under a thumb */
.hero.painted > .scene, .hx-art, .hx-slide { overflow: clip; contain: paint; } /* r4 fix 41: the off-screen scenes never count toward the page width (scrollWidth = viewport at 390) */
.strip { position: relative; overflow: hidden; }
.strip .scene { aspect-ratio: 1672 / 522; width: 100%; max-width: 1672px; margin-inline: auto; position: relative; }
.strip .scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .painted .scene { aspect-ratio: 4 / 5; }
  .strip .scene { aspect-ratio: 16 / 9; }
}

/* ---------- photoreal plates with a mount for the real work ---------- */
.plate { position: relative; aspect-ratio: 1672 / 941; overflow: hidden; border-radius: var(--radius); background: var(--studio-2); }
.plate > img, .plate > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* H40 / rule 2: a plate earns its place by sliding the real example in; the example is never cropped inside its border,
   so the mount takes the example's own shape (height follows the image) and nothing is cut off */
.plate .mount { position: absolute; right: 5%; bottom: 7%; width: min(46%, 600px); height: auto; margin: 0; background: #fff; box-shadow: 0 10px 30px rgba(17,22,39,.25); border-radius: 6px; overflow: hidden; animation: mount-in .6s var(--ease, ease) both; }
.plate .mount img { display: block; width: 100%; height: auto; }
.plate .mount.mount--tall { width: auto; height: 84%; bottom: 8%; } /* a portrait example is sized by height so it is never cut off by the plate */
.plate .mount.mount--tall img { width: auto; height: 100%; }
@keyframes mount-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .plate .mount { animation: none; } }
@media (max-width: 860px) { .plate .mount { width: 64%; right: 4%; bottom: 5%; } }
.plate .mount .ex { position: static; display: inline-flex; margin: 6px 8px; } /* a caption strip under the example, never laid over it */

/* ---------- pinned sideways track ---------- */
.track { position: relative; height: calc(var(--panels, 4) * var(--per, 100vh) + 40vh); view-timeline-name: --track; view-timeline-axis: block; }
.track__view { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.track__rail { display: flex; height: 100%; width: max-content; will-change: transform; }
.track__panel { width: 100vw; height: 100%; flex: 0 0 auto; position: relative; }
@supports (animation-timeline: view()) {
  .track.css-driven .track__rail { animation: rail linear both; animation-timeline: --track; animation-range: contain 0% contain 100%; }
}
@keyframes rail { from { transform: translateX(0); } to { transform: translateX(calc(-1px * var(--rail-shift, 0))); } }
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .track { height: auto; }
  .track__view { position: static; height: auto; overflow: visible; display: block; }
  .track__rail { display: block; width: auto; animation: none !important; transform: none !important; }
  .track__panel { width: 100%; height: auto; }
}

/* ---------- motion rules ---------- */
/* H05, H47, rule 10: no cursor tilt and no scene drift; painted scenes hold still */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.uwee[data-reveal] { opacity: 1; transform: none; transition: none; } /* Uwee entrances are moves or cuts, never fades */
.pop.is-on { transform: translateY(-6px) scale(1.04); transition: transform .35s var(--ease); } /* the incoming one eases; the outgoing one cuts */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); color: var(--ink); border-bottom: 1px solid rgba(21,23,28,.1); }
.site-header .wrap { width: min(1380px, 100% - 2 * var(--gutter)); } /* the bar gets the whole width so six labels and three doors stay on one row at 1440 */
.bar { display: flex; align-items: center; gap: 8px; min-height: 68px; flex-wrap: nowrap; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 44px; text-decoration: none; margin-right: 8px; line-height: 1; flex: 0 0 auto; } /* S7: stacked lockup, tagline fitted to the word by JINN.fitLogos */
.logo .word { font-family: var(--ui); font-weight: 700; font-size: 2.1rem; letter-spacing: -.03em; color: var(--navy); }
.logo .word i { font-style: normal; color: var(--amber); }
.logo .word { display: block; width: max-content; line-height: .95; }
.site-footer a.logo { display: inline-flex; padding: 0; } /* the footer link rule would make it inline-block and stretch the tagline box */
.logo .cat { display: block; width: max-content; font-family: var(--ui); font-weight: 600; font-size: .62rem; line-height: 1; color: var(--ink-2); margin-top: 3px; white-space: nowrap; }
.nav-top { display: flex; gap: 0; margin-left: 2px; }
.nav-top > li { list-style: none; position: static; display: flex; align-items: center; } /* panels hang from the header, not from their item, so none can run off screen (K01, K02) */
.nav-top, .nav-list { padding: 0; margin: 0; }
.nav-item { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border-radius: 10px; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-item:hover, .nav-top > li.is-open .nav-item { background: rgba(21,23,28,.06); }
/* the label is a link to its page; hover, focus or the chevron opens the panel */
.nav-caret { display: inline-grid; place-items: center; min-width: 28px; min-height: 44px; margin-left: -6px; padding: 0 5px; border: 0; background: none; cursor: pointer; border-radius: 8px; color: var(--ink); }
.nav-caret:hover, .nav-caret[aria-expanded="true"] { background: rgba(21,23,28,.06); }
.nav-caret .caret { display: block; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.nav-caret[aria-expanded="true"] .caret { transform: rotate(225deg) translateY(-2px); }
.bar .spacer { flex: 1; }
.bar .doors { gap: 8px; flex-wrap: nowrap; flex: 0 0 auto; }
.bar .doors .btn { min-height: 44px; font-size: .92rem; padding: 0 1em; white-space: nowrap; }
/* S5: a narrow dropdown (rows, each with its small Uwee) that widens into a preview with a featured Uwee */
.panel {
  --rows-w: 340px; --pv-w: 540px; /* R06: room for a 240px featured Uwee beside the copy */
  position: absolute; left: 0; top: calc(100% + 4px); width: var(--rows-w); max-height: calc(100vh - 84px); /* R06: all rows fit at 900 tall, no inner scroll */
  background: #fffdf8; color: var(--ink); border: 1px solid rgba(21,23,28,.12); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none; grid-template-columns: var(--rows-w) 0px; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden;
  transition: width .22s var(--ease), grid-template-columns .22s var(--ease);
}
.panel.is-open { display: grid; }
.panel.is-wide { width: calc(var(--rows-w) + var(--pv-w)); grid-template-columns: var(--rows-w) var(--pv-w); }
.panel .rows { padding: 10px; overflow: auto; min-height: 0; }
.panel .rows a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px 10px; border-radius: 10px; text-decoration: none; }
.panel .rows a .uwee { width: 34px !important; }
.panel .rows a .nm { display: block; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.panel .rows a .sub { display: block; font-weight: 400; font-size: .85rem; line-height: 1.3; color: var(--ink-2); }
.panel .rows a:hover, .panel .rows a.is-current, .panel .rows a:focus-visible { background: var(--cream); }
.panel .preview { min-width: 0; border-left: 1px solid rgba(21,23,28,.1); background: var(--paper); padding: 22px 22px 18px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; align-items: start; overflow: hidden; opacity: 0; transition: opacity .2s var(--ease) .05s; }
.panel.is-wide .preview { opacity: 1; }
.panel .preview .pv-copy { align-self: start; }
.panel .preview .pv-fig { align-self: end; }
.panel .preview .pv-copy .chip { margin-bottom: 8px; }
.panel .preview .pv-who { display: block; font-family: var(--ui); font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: var(--amber-ink); margin: 0 0 6px; }
.panel .preview h3 { font-size: 1.3rem; margin: 0 0 6px; }
.panel .preview p { font-size: .95rem; margin: 0 0 12px; }
.panel .preview .pv-line { font-family: var(--serif-accent); font-style: italic; font-weight: 500; font-size: 1.2rem; line-height: 1.3; color: var(--ink); } /* Gambetta's heaviest true italic is 500 */
.panel .preview .pv-go { font-weight: 700; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; }
.panel .preview .pv-fig .uwee { width: 240px !important; }
.panel .foot { grid-column: 1 / -1; padding: 10px 20px 12px; border-top: 1px solid rgba(21,23,28,.1); font-size: .92rem; background: #fffdf8; }
.panel .foot a { font-weight: 700; }
.pcard { border-radius: var(--radius-sm); padding: 14px 16px; color: var(--on-dark); background: var(--pc, var(--navy)); text-decoration: none; display: block; }
.pcard .nm { font-family: var(--head); font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .nm .chip { border-color: rgba(255,255,255,.5); color: #fff; }
.pcard p { color: rgba(255,255,255,.88); margin: 6px 0 0; font-size: .95rem; max-width: none; }
.pcard .lead { font-family: var(--ui); font-size: .78rem; color: rgba(255,255,255,.8); margin-top: 8px; display: block; }
.menu-btn { display: none; }
@media (prefers-reduced-motion: reduce) { .panel, .panel .preview { transition: none; } }
@media (min-width: 861px) and (max-width: 960px) { .panel { --pv-w: 460px; } .panel .preview { grid-template-columns: minmax(0, 1fr) 180px; } .panel .preview .pv-fig .uwee { width: 180px !important; } } /* narrow desktops: the widened panel still fits */
@media (max-width: 860px) {
  .nav-top, .bar .doors .btn--quiet { display: none; }
  /* r4 fix 42: the compact header keeps Try Jinn and Talk to Us side by side, each 44 px tall, beside the menu */
  .bar { gap: 0; }
  .bar .logo { margin-right: 6px; }
  .bar .doors { gap: 6px; margin-right: 6px; }
  .bar .doors .btn, .menu-btn { min-height: 44px; font-size: .8rem; padding: 0 .7em; }
  .bar a.btn:not(.btn--quiet)::after { margin-left: .25em; }
  .menu-btn { display: inline-flex; }
  @media (max-width: 380px) { .bar .logo .word { font-size: 1.75rem; } .bar .doors .btn, .menu-btn { font-size: .76rem; padding: 0 .55em; } .bar .doors { gap: 4px; margin-right: 4px; } }
  .site-header.is-open .nav-top { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid rgba(21,23,28,.12); max-height: calc(100vh - 68px); overflow: auto; padding: 8px var(--gutter) 24px; }
  .site-header.is-open .nav-top > li { display: flex; flex-wrap: wrap; align-items: center; }
  .site-header.is-open .nav-item { flex: 1 1 auto; min-height: 48px; font-size: 1.05rem; }
  .site-header.is-open .nav-caret { min-width: 48px; min-height: 48px; margin: 0; }
  .panel, .panel.is-wide { position: static; width: 100%; flex: 1 1 100%; max-height: none; box-shadow: none; border: 0; border-radius: 0; grid-template-columns: 1fr; background: transparent; transition: none; }
  .panel .rows { border: 0; padding: 0 0 4px 4px; overflow: visible; }
  .panel .rows a { min-height: 48px; }
  .panel .preview { display: none; }
  .panel .foot { display: block; background: transparent; padding: 4px 14px 12px; border: 0; }
  .site-header.is-open .nav-top > li.m-doors { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 0; }
  .m-doors .btn { width: 100%; }
}
.nav-top > li.m-doors { display: none; } /* the phone menu doors; the open menu below shows them */

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(48px, 6vw, 80px) 0 32px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.2fr; gap: 28px; }
.site-footer .f-brand .logo .word { font-size: 2.9rem; letter-spacing: -.04em; }
.site-footer .f-line { margin: 16px 0 0; font-size: 1.05rem; color: var(--on-dark); max-width: 22ch; }
.site-footer .f-brief p { margin: 0 0 12px; color: var(--on-dark); }
.site-footer .f-brief .text-link { color: #fff; font-weight: 600; }
.site-footer .f-brief .f-pair { display: flex; flex-wrap: wrap; gap: 4px 20px; } /* r4 fix 26: Bring Your Brand paired with Talk to Us */
.site-footer h4, .site-footer .f-h { color: #fff; font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: inherit; letter-spacing: normal; text-wrap: wrap; margin: 0 0 10px; } /* SWEEP: footer column titles are h2 (heading order after a page's h2), styled as the old h4 */
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; font-size: .95rem; }
.site-footer a:not(.btn) { color: var(--on-dark-2); text-decoration: none; display: inline-block; padding: 2px 0; }
.site-footer .btn--secondary { color: #fff; border-color: rgba(255,255,255,.75); } /* the second door reads on the ink (fix 37) */
@media (max-width: 860px) { .site-footer li { margin: 0; } .site-footer li a, .site-footer li a:not(.btn) { padding: 11px 0; display: inline-block; min-width: 44px; } .site-footer .f-brief .text-link { padding: 8px 0; } } /* 44 px rows under a thumb (SWEEP: the brief link too) */
@media (max-width: 860px) { .doors .after a, a.tcta, a.go { display: inline-flex; align-items: center; min-height: 44px; } main p a:not([class]) { padding-block: 11px; } } /* SWEEP: inline text CTAs reach 44 px under a thumb; D03 arrows kept (::after) */
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .logo .word { color: #fff; }
.site-footer .logo .cat { color: var(--on-dark-3); }
.site-footer .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(238,242,249,.14); display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: var(--on-dark-3); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .f-brand, .site-footer .f-brief { grid-column: 1 / -1; } }

/* ---------- product cards (the only flat accent blocks) ---------- */
.product-card { border-radius: var(--radius); padding: 22px; color: #fff; background: var(--pc, var(--navy)); display: grid; grid-template-columns: 1fr 120px; gap: 10px; min-height: 240px; text-decoration: none; position: relative; overflow: hidden; }
.product-card h3 { color: #fff; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.product-card .chip { border-color: rgba(255,255,255,.55); color: #fff; }
.product-card p { color: #fff; font-size: .98rem; }
.product-card .uwee { width: 120px; align-self: end; }
.product-card .lead { font-family: var(--ui); font-size: .8rem; color: #fff; }
.lead--shown { display: flex; align-items: center; gap: 8px; }
.lead--shown .uwee { flex: 0 0 40px; width: 40px; }
.product-card .go { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.product-card .plans { font-size: .9rem; color: #fff; }

/* ---------- mini crew: a named Uwee always shows its still (rule 11) ---------- */
.mini-crew { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mini-crew li { display: flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: .92rem; }
.mini-crew .uwee { flex: 0 0 auto; }
.uwee.mini .shadow { display: none; }

/* ---------- credits ---------- */
.credits { font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.45rem); color: var(--on-dark); list-style: none; padding: 0; margin: 0; }
.credits li { display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(238,242,249,.12); }
.credits li .uwee.mini { flex: 0 0 40px; }
.credits li span:last-child { margin-left: auto; }
.credits li span:last-child { color: var(--on-dark-2); text-align: right; font-family: var(--body); font-size: .9em; }

/* ---------- cross-document view transitions (magic 3): move and resize only, no cross-fade ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  /* every named traveler is one Uwee (uwee-proof, uwee-pip, uwee-<host> set at click time by js/shell.js):
     the group moves and resizes, the old snapshot is dropped, nothing blends and nothing fades over a still */
  ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
  ::view-transition-image-pair(*) { isolation: auto; }
  ::view-transition-old(*), ::view-transition-new(*) { animation: none; mix-blend-mode: normal; }
  ::view-transition-old(*) { display: none; }
  /* the root snapshot holds Uwees, so it never fades: a hard cut, and only the named traveler moves */
  ::view-transition-group(root) { animation: none; }
}
.vt-proof { view-transition-name: uwee-proof; }
.vt-pip { view-transition-name: uwee-pip; }
/* .vt-lead is marked at click time; the name itself is an inline style, uwee-<host>, matched by the destination hero host */

/* ---------- misc ---------- */
.placeholder { display: grid; place-items: center; text-align: center; border: 2px dashed var(--rule, rgba(21,23,28,.3)); border-radius: var(--radius-sm); padding: 18px; font-family: var(--ui); font-size: .85rem; color: var(--muted); background: rgba(127,127,127,.06); }
.notice { font-size: .92rem; color: var(--muted, var(--ink-2)); display: block; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 40px); }
.section-head p { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.steps li .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ui); background: var(--card); border: 1px solid var(--rule); }
.steps li b { font-family: var(--head); }
.steps li p { margin: 2px 0 0; font-size: .98rem; }
.steps li.is-on .n { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.sticky-aside { position: sticky; top: 90px; align-self: start; }
.index { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.index a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; }
.index a:hover, .index a.is-current { background: var(--card); }
.frame-phone { width: min(320px, 100%); aspect-ratio: 9 / 18; border-radius: 34px; border: 8px solid var(--navy); background: #fff; overflow: hidden; box-shadow: var(--shadow); margin-inline: auto; }
.frame-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

[hidden] { display: none !important; }

/* ---------- site-wide CTA arrows (X07, A10, F09, D03): buttons angle up and right, text CTAs point right ---------- */
a.btn:not(.btn--quiet)::after { content: "\2197" / ""; display: inline-block; margin-left: .4em; font-weight: 400; transition: transform .18s ease; }
a.btn:not(.btn--quiet):hover::after { transform: translate(2px, -2px); }
a.btn--quiet::after, .go::after, .tcta::after, .text-link::after, .dest a::after, .doors .after a::after, .panel .foot a::after, .panel .preview .pv-go::after, .vt-row a::after, main p a:not([class])::after { content: " \2192" / ""; display: inline-block; margin-left: .25em; transition: transform .18s ease; }
a.btn--quiet:hover::after, .go:hover::after, .tcta:hover::after, .text-link:hover::after, .dest a:hover::after, .doors .after a:hover::after, .panel .foot a:hover::after { transform: translateX(3px); }
a[href^="https://jinn.works/login"].btn--quiet::after { content: none; } /* Sign in is a door, not a call to action */

/* U01: anchor targets land with their heading in view under the sticky header */
[id] { scroll-margin-top: 88px; }
@media (min-width: 861px) { #doors .route[id] { scroll-margin-top: 250px; } } /* U01: a door's anchor lands with the "4 doors" heading on the same screen */
.site-footer .f-brand .doors { margin-top: 14px; }
