/* unicorn-banner -- TEMPORARY (Oct 2026) while the Unicorn case story is
   rebuilt. A quiet note sits on the Unicorn card (the card's video stays
   untouched underneath). Clicking the card opens a small beta card.
   Three variants for review, switched with ?v=a / ?v=b / ?v=c (default a):
     A  band     -- a glass strip across the bottom, like a macOS notification
     B  chip     -- one small glass pill in the corner: chip + one line + CTA
     C  overlay  -- the media dims, the message + CTA sit centered
   Type: Ubuntu Sans (already loaded by index.html). Motion: one fade in.
   To remove: delete this folder + the two tags in index.html. */

.ub {
  --ub-glass: rgb(16 16 22 / 0.58);
  --ub-glass-hi: rgb(255 255 255 / 0.06);
  --ub-ink: rgb(244 238 230 / 0.96);
  --ub-dim: rgb(232 222 210 / 0.62);
  --ub-grad: linear-gradient(100deg, #FFAF5F 0%, #D79BA0 50%, #AF87D7 100%);
  --ub-btn-ink: #0b0a10;
  position: absolute; z-index: 3;
  font-family: "Ubuntu Sans", system-ui, sans-serif;
  color: var(--ub-ink);
  pointer-events: none;            /* the card itself takes the click */
  animation: ub-in 0.7s var(--ease) 0.25s both;
}
@keyframes ub-in { from { opacity: 0; } to { opacity: 1; } }
.card--01.has-banner { cursor: pointer; }

.ub__line1 { margin: 0; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.ub__line2 { margin: 0; font-weight: 400; color: var(--ub-dim); text-wrap: balance; }

/* the CTA: a span (the card is already a link), filled with the one gradient */
.ub__cta {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: var(--radius-pill);
  background: var(--ub-grad); color: var(--ub-btn-ink);
  font: 500 14px/1 "Ubuntu Sans", system-ui, sans-serif; letter-spacing: 0;
  padding: 11px 18px;
  transition: filter 0.25s var(--ease);
}
.card--01.has-banner:hover .ub__cta { filter: brightness(1.06) saturate(1.05); }

.ub__glass {
  background: var(--ub-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 0.5px var(--ub-glass-hi), 0 18px 40px -22px rgb(0 0 0 / 0.55);
}

/* ── A: band ── */
.ub--a {
  left: clamp(16px, 2.2%, 32px); right: clamp(16px, 2.2%, 32px); bottom: clamp(16px, 2.6%, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 18px 18px 26px; border-radius: var(--radius);
}
.ub--a .ub__line1 { font-size: clamp(17px, 1.25vw, 21px); line-height: 1.25; }
.ub--a .ub__line2 { font-size: clamp(14px, 0.95vw, 16px); line-height: 1.4; margin-top: 3px; }

/* ── B: chip + one line, corner chrome ── */
.ub--b {
  left: clamp(16px, 2.2%, 32px); bottom: clamp(16px, 2.6%, 32px);  /* bottom: the top edge is the app's own menu bar */
  display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 6px;
  --btn-r: 15px; border-radius: calc(var(--btn-r) * .58);   /* squircle family, same as the CTA inside it */
  max-width: calc(100% - 32px);
}
@supports (corner-shape: squircle) {
  .ub--b { border-radius: var(--btn-r); corner-shape: squircle; }
}
.ub--b .ub__chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 7px 12px; border-radius: var(--radius-sm);   /* badge radius, same family as .card__soon-badge */
  background: rgb(255 255 255 / 0.08);
  font: 500 13px/1 "Ubuntu Sans", system-ui, sans-serif;
}
.ub--b .ub__chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ub-grad);
}
.ub--b .ub__line2 { font-size: 14px; line-height: 1.2; color: var(--ub-ink); white-space: nowrap; }
.ub--b .ub__cta { --btn-r: 10px; padding: 8px 14px; font-size: 13px; margin-left: 4px; border-radius: calc(var(--btn-r) * .58); }
@supports (corner-shape: squircle) {
  .ub--b .ub__cta { border-radius: var(--btn-r); corner-shape: squircle; }
}

/* ── C: soft full-card overlay ── */
.ub--c {
  inset: 0; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0; padding: 32px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgb(7 7 10 / 0.8) 0%, rgb(7 7 10 / 0.6) 60%, rgb(7 7 10 / 0.45) 100%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.ub--c .ub__line1 { font-size: clamp(28px, 2.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.ub--c .ub__line2 { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.4; margin-top: 10px; }
.ub--c .ub__cta { --btn-r: 16px; margin-top: 26px; padding: 13px 22px; font-size: 15px; border-radius: calc(var(--btn-r) * .58); }
@supports (corner-shape: squircle) {
  .ub--c .ub__cta { border-radius: var(--btn-r); corner-shape: squircle; }
}
/* C rests hidden so the new card video plays clean; the overlay arrives on
   hover or keyboard focus (Ivy 10-25). Touch screens have no hover, so they keep it shown. */
@media (hover: hover) {
  .ub--c { animation: none; opacity: 0; transition: opacity 0.45s var(--ease); }
  .card--01:hover .ub--c, .card--01:focus-visible .ub--c,
  .work-row--lead:has(.card__title a:hover, .card__title a:focus-visible) .ub--c { opacity: 1; }
}

/* ── light (linen) ── */
html[data-theme="linen"] .ub {
  --ub-glass: rgb(243 236 223 / 0.74);
  --ub-glass-hi: rgb(255 255 255 / 0.5);
  --ub-ink: rgb(34 28 21 / 0.94);
  --ub-dim: rgb(34 28 21 / 0.62);
}
html[data-theme="linen"] .ub__glass {
  box-shadow: inset 0 0 0 0.5px var(--ub-glass-hi), 0 2px 6px rgb(34 28 21 / 0.08), 0 18px 40px -18px rgb(34 28 21 / 0.28);
}
html[data-theme="linen"] .ub--b .ub__chip { background: rgb(34 28 21 / 0.06); }
html[data-theme="linen"] .ub--c {
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgb(231 221 202 / 0.86) 0%, rgb(231 221 202 / 0.74) 60%, rgb(231 221 202 / 0.6) 100%);
}

/* ── dev toggle (only shown when ?v= is in the URL) ── */
.ub-dev {
  position: fixed; left: 16px; bottom: 16px; z-index: 9000;
  display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill);
  background: rgb(16 16 22 / 0.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 500 11px/1 var(--f-mono);
}
.ub-dev a {
  padding: 6px 10px; border-radius: var(--radius-pill); color: rgb(232 222 210 / 0.6); text-decoration: none;
}
.ub-dev a[aria-current] { background: rgb(255 255 255 / 0.12); color: rgb(244 238 230); }
html[data-theme="linen"] .ub-dev { background: rgb(243 236 223 / 0.8); }
html[data-theme="linen"] .ub-dev a { color: rgb(34 28 21 / 0.6); }
html[data-theme="linen"] .ub-dev a[aria-current] { background: rgb(34 28 21 / 0.08); color: rgb(34 28 21); }

/* ── the small beta card ───────────────────────────────────────── */
.ub-scrim {
  position: fixed; inset: 0; z-index: 10010;
  background: rgba(5, 5, 8, 0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.ub-card {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 10011; width: min(400px, calc(100vw - 32px));
  padding: 24px 24px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, #13131b 0%, #0b0b10 55%, #07070b 100%); background-color: #07070b;
  box-shadow: 0 40px 100px -45px rgba(0, 0, 0, 0.9);
  font-family: "Ubuntu Sans", system-ui, sans-serif; color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity 0.28s var(--ease);
}
.ub-open .ub-scrim, .ub-open .ub-card { opacity: 1; pointer-events: auto; }

.ub-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ub-card__title { margin: 2px 0 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: rgb(244 238 230 / 0.96); }
/* matches the IND 703 sheet's close control exactly (site/work/ind703/ind703.css
   .sheet__close) -- same box, same ink-rgb background, same hover. */
.ub-x {
  appearance: none; border: 0; cursor: pointer; flex: none; width: 30px; height: 30px; border-radius: 999px; padding: 0;
  background: rgb(var(--ink-rgb) / .06); color: var(--text-dim); font-size: 17px; line-height: 1;
  transition: background .2s, color .2s;
}
.ub-x:hover { background: rgb(var(--ink-rgb) / .12); color: var(--text); }
.ub-card p { margin: 0; text-wrap: pretty; }
.ub-card__copy { margin-top: 8px !important; font-size: 15px; line-height: 1.5; color: var(--text-dim); }

.ub-form__row { display: flex; gap: 8px; }
.ub-form input[type="email"] {
  flex: 1; min-width: 0; padding: 12px 16px; border: 0;
  --btn-r: 16px; border-radius: calc(var(--btn-r) * .58);   /* squircle family, matches the Join button */
  background: rgba(255, 255, 255, 0.07); color: var(--text); font: 400 15px/1.2 "Ubuntu Sans", system-ui, sans-serif;
}
@supports (corner-shape: squircle) {
  .ub-form input[type="email"] { border-radius: var(--btn-r); corner-shape: squircle; }
}
.ub-form input::placeholder { color: var(--text-mute); }
.ub-form input:focus { outline: none; background: rgba(255, 255, 255, 0.11); }
.ub-btn {
  appearance: none; border: 0; cursor: pointer; flex: none;
  --btn-r: 16px;
  padding: 12px 18px; border-radius: calc(var(--btn-r) * .58);   /* squircle family, not a pill */
  background: linear-gradient(100deg, #FFAF5F 0%, #D79BA0 50%, #AF87D7 100%); color: #0b0a10;
  font: 500 15px/1 "Ubuntu Sans", system-ui, sans-serif;
  transition: filter 0.25s var(--ease);
}
@supports (corner-shape: squircle) {
  .ub-btn { border-radius: var(--btn-r); corner-shape: squircle; }
}
.ub-btn:hover { filter: brightness(1.06) saturate(1.05); }
.ub-btn:focus-visible, .ub-x:focus-visible { outline: 2px solid #AF87D7; outline-offset: 2px; }
.ub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ub-note { margin-top: 10px !important; font: 400 11.5px/1.5 var(--f-mono); color: var(--text-mute); }
/* form + thank-you share one grid cell, so the card keeps its size (nothing moves under the cursor) */
.ub-slot { display: grid; margin-top: 20px; }
.ub-slot > * { grid-area: 1 / 1; }
.ub-form { margin-top: 0; }
.ub-done { visibility: hidden; align-self: center; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; outline: none; }
.ub-done__heart { grid-row: 1 / 3; width: 35px; height: 25px; display: block; }
.ub-card .ub-done__title { font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.ub-card .ub-done__sub { font-size: 14px; line-height: 1.4; color: var(--text-dim); margin-top: 2px; }
/* the heart lands with one small pop, the words follow */
.ub-card.is-done .ub-done__heart { animation: ub-pop 0.5s cubic-bezier(.34,1.56,.64,1) both; }
.ub-card.is-done .ub-done p { animation: ub-in 0.4s var(--ease) 0.12s both; }
@keyframes ub-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.ub-card.is-done .ub-form { visibility: hidden; }
.ub-card.is-done .ub-done { visibility: visible; }

html[data-theme="linen"] .ub-scrim { background: color-mix(in srgb, var(--void) 72%, transparent); }
html[data-theme="linen"] .ub-card {
  background: linear-gradient(180deg, #F3ECDF 0%, #EDE4D4 55%, var(--void) 100%);
  box-shadow: 0 2px 6px rgb(34 28 21 / 0.08), 0 18px 40px -12px rgb(34 28 21 / 0.22), 0 50px 110px -40px rgb(34 28 21 / 0.30);
}
html[data-theme="linen"] .ub-card__title { color: rgb(34 28 21 / 0.94); }
html[data-theme="linen"] .ub-form input[type="email"] { background: rgb(var(--ink-rgb) / 0.07); }
html[data-theme="linen"] .ub-form input:focus { background: rgb(var(--ink-rgb) / 0.11); }

@media (prefers-reduced-motion: reduce) {
  .ub { animation: none; }
  .ub-scrim, .ub-card, .ub-btn, .ub__cta { transition: none; }
  .ub-card.is-done .ub-done__heart, .ub-card.is-done .ub-done p { animation: none; }
}

/* the tl;dr summarizes the OLD case study, so it sits out the week (Ivy 10-25) */
.work-row--lead .work-row__text .quick-read[data-brief="unicorn"] { display: none; }
