/* Noise2Profit — "matchday programme" design system (v3).
   Tokens first; everything else builds on them. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --cream: #F3F4DB;
  --cream-2: #EAEBCD;
  --paper: #FBFBEF;
  --red: #D03333;          /* brand red: large type, decoration */
  --red-ui: #C62D2D;       /* backgrounds that carry text (AA with cream) */
  --red-text: #B42A2A;     /* small red text on cream (AA) */
  --ink: #202020;
  --ink-2: #4A4A42;
  --line: rgba(32, 32, 32, .16);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 14px;
  --shadow: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  overflow-x: hidden;
}
/* Grain: one static SVG noise layer, low opacity, never over the text contrast budget */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .start :focus-visible, .ftr :focus-visible, .case-board :focus-visible { outline-color: var(--cream); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ type */

.display {
  font-family: var(--sans);
  font-weight: 860;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
  font-size: clamp(2.3rem, 6vw, 4.75rem);
  text-wrap: balance;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--red);
  font-stretch: 100%;
  padding-inline: .06em .04em;
}
.display--xl { font-size: clamp(2.9rem, 9vw, 7.4rem); }
.hero .display--xl { font-size: clamp(2.5rem, 5.2vw, 5rem); }
.start .display--xl { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.display--lg { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.display--sm { font-size: clamp(1.9rem, 4vw, 3rem); }

.eyebrow {
  display: flex; align-items: center; gap: .7em;
  font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.eyebrow--dot::before {
  content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--red);
}
.sec-n {
  display: inline-grid; place-items: center;
  min-width: 2.3em; height: 2.3em; padding: 0 .4em;
  border: 2px solid currentColor; border-radius: 999px;
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 40ch; color: var(--ink-2); margin-top: 1.4rem; }
.dark .lede { color: rgba(243, 244, 219, .78); }
.meta { font-size: .85rem; color: var(--ink-2); }
.dark .meta { color: rgba(243, 244, 219, .7); }

.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec-head .display { max-width: 18ch; }
.sec-head .eyebrow { padding-bottom: 1rem; border-bottom: 2px solid currentColor; max-width: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .85em 1.45em;
  border: 2px solid var(--ink); border-radius: 999px;
  font: inherit; font-size: .92rem; font-weight: 780; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--red-ui); color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ghost { box-shadow: none; }
.btn-ghost:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-sm { min-height: 40px; padding: .55em 1.1em; font-size: .78rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { min-height: 56px; padding: 1em 1.8em; font-size: 1rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.arr { display: inline-block; transition: transform .18s var(--ease); }
a:hover > .arr, button:hover > .arr { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.hdr-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: block; flex: none; padding: 6px 0; }
.logo-mark {
  display: block; width: 66px; aspect-ratio: 640 / 343;
  background: var(--ink);
  -webkit-mask: url("/assets/brand/n2p-logo-mask.png") center / contain no-repeat;
  mask: url("/assets/brand/n2p-logo-mask.png") center / contain no-repeat;
}
.logo-mark--cream { background: var(--cream); width: 96px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); }
.nav-list { display: flex; gap: clamp(.8rem, 2vw, 1.8rem); }
.nav-list a, .lang {
  font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: .5em 0; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
  transition: background-size .2s var(--ease);
}
.nav-list a:hover, .lang:hover { background-size: 100% 2px; }
.lang { border: 2px solid var(--ink); border-radius: 999px; padding: .35em .75em; background: none; }
.lang:hover { background: var(--ink); color: var(--cream); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6em; margin-left: auto;
    min-height: 44px; padding: 0 1em; border: 2px solid var(--ink); border-radius: 999px;
    background: transparent; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 750;
    letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  }
  .burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -5px; } .burger::after { top: 5px; }
  .nav-open .burger { background: transparent; }
  .nav-open .burger::before { transform: translateY(5px) rotate(45deg); }
  .nav-open .burger::after { transform: translateY(-5px) rotate(-45deg); }

  .js .nav {
    position: fixed; inset: 70px 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 2px solid var(--ink);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .js.nav-open .nav { display: flex; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { display: block; padding: 1rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); background: none; }
  .js .nav .lang { align-self: flex-start; display: inline-grid; place-items: center; min-width: 48px; min-height: 44px; margin: 1rem 0; }
  .js .nav .btn { width: 100%; }
  html:not(.js) .nav { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .hdr-in { flex-wrap: wrap; padding-block: .5rem; }
}

/* ------------------------------------------------------------------ sections */

section { position: relative; }
.alt { background: var(--cream-2); }
.dark { background: var(--ink); color: var(--cream); }
.goals, .profiles, .how, .case-sec { padding-block: clamp(4.5rem, 10vw, 8rem); }

/* links inside text: a red underline that wipes in */
.tlink {
  font-weight: 750; text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat;
  transition: background-size .25s var(--ease), color .2s;
  padding-bottom: 1px;
}
.tlink:hover { background-size: 0 2px; color: var(--red-text); }
.lbl { margin: 0 0 .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font-size: .82rem; font-weight: 650; padding: .3em .75em; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper);
}

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 44ch; color: var(--ink-2); margin: 1.6rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem 1rem; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); } }
.hero-h1 .h1-line { display: block; }
.hero-h1 .h1-in { display: inline-block; }

/* entrance: eyebrow, then the three beats of the headline rise one after another */
.js .hero-eyebrow { animation: fade-up .6s var(--ease) both .05s; }
.js .hero-h1 .h1-in { animation: line-up .8s var(--ease) both; }
.js .hero-h1 .h1-line:nth-child(1) .h1-in { animation-delay: .15s; }
.js .hero-h1 .h1-line:nth-child(2) .h1-in { animation-delay: .32s; }
.js .hero-h1 .h1-line:nth-child(3) .h1-in { animation-delay: .49s; }
.js .hero-sub, .js .hero .actions { animation: fade-up .7s var(--ease) both .75s; }
.js .hero .proof { animation: fade-up .7s var(--ease) both .95s; }
@keyframes line-up { from { transform: translateY(.6em); clip-path: inset(0 0 100% 0); opacity: 0; } to { transform: none; clip-path: inset(-30% -10% -40% -10%); opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
.hero .marker path { animation-delay: 1.15s; }

.proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin: 0;
  padding-top: 1.3rem; border-top: 2px dashed var(--line); font-size: .95rem; color: var(--ink-2);
}
.proof strong { color: var(--ink); font-weight: 800; }
.proof-item { display: inline-flex; align-items: center; gap: .7rem; }
.proof-logos { display: inline-flex; flex: none; }
.proof-logo { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cream); box-shadow: 0 0 0 2px var(--ink); object-fit: cover; }
.proof-logos > * + * { margin-left: -9px; }
.proof-more {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--cream); box-shadow: 0 0 0 2px var(--ink); background: var(--ink); color: var(--cream);
  font-size: .72rem; font-weight: 800;
}
.proof-sep { color: var(--red); font-weight: 900; }
.proof.is-wrapped .proof-sep { visibility: hidden; }   /* hidden, not removed: removing it could unwrap the line again */
.proof-post { display: inline; padding-block: .6rem; margin-block: -.6rem; text-decoration: none; }   /* bigger tap target, same layout */
.proof-post strong { color: var(--red-text); font-size: 1.1em; }
.proof-post:hover strong { text-decoration: underline; text-underline-offset: 3px; }
a.proof-post:hover > .arr { transform: translateY(3px); }

/* ticket */
.ticket {
  display: grid; grid-template-columns: 1fr auto;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-2.2deg);
  animation: ticket-in .8s var(--ease) backwards .15s;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  max-width: 520px; margin-inline: auto;
}
@keyframes ticket-in { from { opacity: 0; transform: rotate(-7deg) translateY(24px); } }
@media (hover: hover) and (min-width: 561px) {
  .ticket:hover { transform: rotate(0deg) translate(-4px, -4px); box-shadow: 14px 14px 0 var(--ink); }
}

/* hand-drawn marker under the hero accent word */
.display em.marked { position: relative; display: inline-block; }
.marker {
  position: absolute; left: -3%; bottom: -.2em; width: 106%; height: .18em;
  overflow: visible; pointer-events: none;
}
.marker path {
  fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .9s var(--ease) .45s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.ticket-main { padding: 1.3rem 1.4rem 1.2rem; min-width: 0; }
.ticket-top {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: .8rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.1rem;
}
.fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .6rem; }
.team { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.team:last-child { text-align: right; align-items: flex-end; }
.code {
  display: inline-block; align-self: flex-start;
  background: var(--ink); color: var(--cream);
  font-size: .7rem; font-weight: 800; letter-spacing: .12em; padding: .25em .55em; border-radius: 4px;
}
.team:last-child .code { align-self: flex-end; }
.team-id { display: flex; align-items: center; gap: .5rem; }
.team-id .code, .acct-top .code { align-self: center; }
.team:last-child .team-id { flex-direction: row-reverse; }
.team-logo { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 10px; object-fit: cover; }
.tname { font-weight: 860; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1;
  overflow-wrap: anywhere; }
.score { font-weight: 880; font-stretch: 68%; font-size: clamp(2.6rem, 7vw, 3.8rem); line-height: .9; font-variant-numeric: tabular-nums; }
.tlbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.vs { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--red); font-size: 1.7rem; padding-bottom: 1.6rem; }
.ticket-foot { margin: 1.2rem 0 0; padding-top: .9rem; border-top: 2px dashed var(--line); font-size: .7rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.plus { color: var(--red); }
.ticket-stub {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
  width: 74px; padding: 1rem .6rem;
  border-left: 2px dashed var(--ink);
  background: var(--red-ui); color: var(--cream);
  border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0;
}
.ticket-stub span:first-child {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.barcode { width: 34px; height: 64px; background: repeating-linear-gradient(0deg, var(--cream) 0 2px, transparent 2px 4px, var(--cream) 4px 5px, transparent 5px 8px); opacity: .9; }

/* ticket */
.ticket {
  display: grid; grid-template-columns: 1fr auto;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-2.2deg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  max-width: 520px; margin-inline: auto;
}
.js .ticket { animation: ticket-in 1s cubic-bezier(.2, 1.3, .4, 1) backwards .55s; }
@keyframes ticket-in { from { opacity: 0; transform: rotate(-12deg) translate(40px, -30px) scale(.92); } }
@media (hover: hover) and (min-width: 561px) {
  .ticket:hover { transform: rotate(0deg) translate(-4px, -4px); box-shadow: 14px 14px 0 var(--ink); }
}
.js .ticket-stub { animation: stub-in .5s var(--ease) backwards 1.35s; }
/* the other public profiles: a second ticket behind the main one, the same size, peeking out at the top
   with their profile pictures */
.ticket-pile { display: grid; max-width: 520px; margin-inline: auto; padding-top: 3.2rem; }
.ticket-pile > * { grid-area: 1 / 1; }
.ticket-pile > .ticket { position: relative; }
.ticket-back {
  display: flex; align-items: flex-start; padding: .7rem 1.2rem;
  background: var(--cream-2); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink); transform: rotate(2.6deg) translate(10px, -3rem);
}
.back-logos { display: flex; flex-wrap: wrap; gap: .45rem; }
.back-logo { width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 10px; object-fit: cover; }
.back-more {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding-inline: .35rem;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--cream); font-size: .75rem; font-weight: 800;
}
.js .ticket-back { animation: back-in .6s var(--ease) backwards 1.2s; }
@media (max-width: 979px) {   /* one column: the ticket is below the headline and the buttons, often below the fold */
  .js .ticket-pile:not(.is-in) .ticket, .js .ticket-pile:not(.is-in) .ticket-stub, .js .ticket-pile:not(.is-in) .ticket-back { animation-play-state: paused; }
}
@keyframes back-in { from { opacity: 0; transform: none; } }
@keyframes stub-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.team--type .tname { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.team--type .tlbl { margin-top: .3rem; }
.team--type { padding-block: .4rem; }

/* split-flap scoreboard: digits are tiles that flip into place once (site.js) */
.flaps { display: inline-flex; align-items: baseline; gap: .045em; }
.flap {
  position: relative; display: inline-block; min-width: .62em; text-align: center;
  padding: .07em .06em .03em; border-radius: .08em;
  background: var(--ink); color: var(--cream);
  line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -.05em 0 rgba(0, 0, 0, .35);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, .02em); background: rgba(0, 0, 0, .55); }
.flap-sym { padding-inline: .03em; }
.flap-sym.plus { color: var(--red); }
.flap-gap { display: inline-block; width: .12em; }
.dark .flap { background: #34342F; box-shadow: inset 0 -.05em 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
.score .flaps { gap: .04em; }
.ticket .score { font-size: clamp(1.9rem, 4.3vw, 2.75rem); }
.fixture { column-gap: .4rem; }
.aud li + li { margin-top: .1rem; }

/* a post with the brand marked by N2P's hand, and its stats one tap away */
.pm-frame { position: relative; }
.pm-frame img { width: 100%; height: auto; border-radius: 10px; background: #111; }
.ann { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ann path {
  fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.pm.is-drawn .ann path { stroke-dashoffset: 0; transition: stroke-dashoffset .85s var(--ease) .1s; }
.ann-label {
  position: absolute; z-index: 1; max-width: 86%;
  padding: .32em .6em; border-radius: 6px; background: var(--red-ui); color: var(--cream);
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2;
  box-shadow: 2px 2px 0 var(--ink); transform: rotate(-1.5deg) translateY(6px); opacity: 0;
  transition: opacity .3s var(--ease) .75s, transform .3s var(--ease) .75s;
}
.pm.is-drawn .ann-label { opacity: 1; transform: rotate(-1.5deg); }
html:not(.js) .ann path { stroke-dashoffset: 0; }
html:not(.js) .ann-label { opacity: 1; }
.js .pm-view:not(.is-on) { display: none; }
.js .pm-view.is-on { animation: pm-in .3s var(--ease); }
@keyframes pm-in { from { opacity: 0; transform: translateY(6px); } }
html:not(.js) .pm-view + .pm-view { margin-top: .8rem; }
.pm-tabs { display: inline-flex; margin-top: .7rem; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
html:not(.js) .pm-tabs { display: none; }
.pm-tab {
  min-height: 42px; padding: .3rem .95rem; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.pm-tab + .pm-tab { border-left: 2px solid var(--ink); }
.pm-tab[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* ------------------------------------------------------------------ goals: three starting points */
.goal-grid { --goal-gap: clamp(1.2rem, 2.6vw, 1.8rem); display: grid; gap: var(--goal-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 680px) and (max-width: 1039px) {   /* two columns here: the third card would sit alone on the left */
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--goal-gap)) / 2); }
}
.goal {
  display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.goal:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.goal-top { position: relative; display: flex; justify-content: center; margin: -.2rem -.4rem 1rem; padding: .6rem 0; border-radius: 10px; background: var(--cream); border: 1.5px dashed var(--line); }
.goal-art { width: 100%; max-width: 290px; height: auto; overflow: visible; }
@media (max-width: 520px) { .goal-top { padding-top: 2.1rem; } }   /* the number above the drawing, not on it */
.goal-n { position: absolute; left: .7rem; top: .5rem; font-weight: 880; font-stretch: 70%; font-size: 1.5rem; line-height: 1; color: var(--red); }
.goal-title { font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: .95; margin-bottom: .7rem; }
.goal-body { color: var(--ink-2); margin-bottom: 1.1rem; }
.goal .tags { margin-bottom: 1.1rem; }
.goal-gets { margin: auto 0 1.1rem; padding: .7rem .85rem; border-left: 4px solid var(--red); background: var(--cream); font-weight: 650; font-size: .95rem; }
.goal-gets span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .15rem; }
.goal-link {
  margin: 0 -1.4rem; padding: .95rem 1.4rem; border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px); transition: background-color .18s, color .18s;
}
.goal-link:hover { background: var(--ink); color: var(--cream); }
.goals-foot {
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0; padding: 1rem 1.3rem; border: 2px solid var(--ink); border-radius: var(--radius);
  font-weight: 700; font-size: 1.05rem; background: var(--cream-2);
}

/* the little drawings: they play once, when the card comes into view */
.a-card { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.a-img { fill: var(--cream-2); }
.a-line { fill: var(--ink); opacity: .22; }
.a-ink { fill: var(--ink); }
.a-brand, .a-dot { fill: var(--red-ui); }
.a-cream { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; }
.a-cream-r { fill: var(--cream); }
.a-axis, .a-tick { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.a-tap { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.a-mark { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.a-dot, .a-sticker { transform-box: fill-box; transform-origin: center; }
.a-faint { opacity: .12; }
.a-stroke { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.a-chart { fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a-chart-base { stroke: var(--cream); stroke-width: .8; stroke-dasharray: 2 2; opacity: .45; }
.a-btxt, .a-adtxt, .a-score, .a-md, .a-ctxt, .a-ttl, .a-rtxt { font-family: var(--sans); }
.a-btxt { fill: var(--cream); font-size: 6.6px; font-weight: 900; letter-spacing: .3px; }
.a-adtxt { fill: var(--cream); font-size: 5px; font-weight: 800; letter-spacing: .8px; opacity: .8; }
.a-score { fill: var(--cream); font-size: 10px; font-weight: 900; font-stretch: 75%; }
.a-md { fill: var(--ink); font-size: 7.5px; font-weight: 800; letter-spacing: .4px; }
.a-ctxt { fill: var(--ink); font-size: 5.6px; font-weight: 900; letter-spacing: .5px; }
.a-ttl { fill: var(--ink); font-size: 6px; font-weight: 900; letter-spacing: 1px; }
.a-rtxt { fill: var(--ink-2); font-size: 6px; font-weight: 700; }
.a-coupon { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2.2 1.6; }
.a-link { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 2.4 2; stroke-linecap: round; }
.a-tally { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
/* social posts about football, in N2P's own colours: the pitch is ink, its lines cream, the brand red */
.a-pitch { fill: var(--ink); }
.a-stripe { fill: var(--cream); opacity: .045; }
.a-pline { fill: none; stroke: var(--cream); stroke-width: .8; opacity: .4; }
.a-pline--bold { stroke-width: 1.4; opacity: .85; }
.a-net { stroke: var(--cream); stroke-width: .45; opacity: .45; }
.a-crowd { fill: var(--cream); opacity: .08; }
.a-paper { fill: var(--paper); }
.a-soft { opacity: .85; }
.a-dim { opacity: .35; }
.a-dotoff { fill: var(--ink); opacity: .22; }
.a-ring { fill: none; stroke: var(--red); stroke-width: 1.2; }
.a-face { fill: var(--paper); stroke: var(--ink); stroke-width: .7; }
.a-reply { fill: none; stroke: var(--cream); stroke-width: .7; opacity: .55; }
.a-reply-h { fill: none; stroke: var(--cream); stroke-width: .8; opacity: .7; stroke-linejoin: round; }
.a-linkico { fill: none; stroke: var(--red-text); stroke-width: 1.1; stroke-linecap: round; }
.a-name, .a-name-c, .a-sub, .a-kick, .a-num, .a-num-c, .a-score-i, .a-vs, .a-time, .a-linktxt { font-family: var(--sans); }
.a-name { fill: var(--ink); font-size: 5.6px; font-weight: 800; }
.a-name-c { fill: var(--cream); font-size: 5.4px; font-weight: 800; }
.a-sub { fill: var(--ink-2); font-size: 4.4px; font-weight: 600; }
.a-kick { fill: var(--ink); font-size: 4.4px; font-weight: 900; letter-spacing: .4px; }
.a-num { fill: var(--ink); font-size: 11px; font-weight: 900; font-stretch: 75%; }
.a-num-c { fill: var(--cream); font-size: 9px; font-weight: 900; font-stretch: 75%; }
.a-score-i { fill: var(--ink); font-size: 8px; font-weight: 900; font-stretch: 75%; }
.a-vs { fill: var(--cream); font-size: 9px; font-weight: 900; font-stretch: 75%; }
.a-time { fill: var(--cream); font-size: 4.6px; font-weight: 800; letter-spacing: .5px; opacity: .85; }
.a-linktxt { fill: var(--red-text); font-size: 5.4px; font-weight: 900; letter-spacing: .4px; }
.a-note-txt { fill: var(--red-text); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 10px; }
.a-note-arrow { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.js .goal:not(.is-in) .a-mark { stroke-dashoffset: 1; }
.js .goal:not(.is-in) .a-dot { transform: scale(0); }
.js .goal:not(.is-in) .a-sticker { transform: scale(.4); opacity: 0; }
.js .goal:not(.is-in) .a-note, .js .goal:not(.is-in) .a-link, .js .goal:not(.is-in) .a-tally { opacity: 0; }
.goal.is-in .a-mark { transition: stroke-dashoffset .9s var(--ease) .35s; }
.goal.is-in .a-note { transition: opacity .4s 1.15s; }
.goal.is-in .a-dot { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) .2s; }
.goal.is-in .a-d2 .a-dot { transition-delay: .4s; }
.goal.is-in .a-d3 .a-dot { transition-delay: .6s; }
.goal.is-in .a-d4 .a-dot { transition-delay: .8s; }
.goal.is-in .a-sticker { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) .3s, opacity .2s .3s; }
.goal.is-in .a-tap { animation: tap 1.1s var(--ease) .85s 2; }
.goal.is-in .a-link { transition: opacity .35s 1.2s; }
.goal.is-in .a-tally { transition: opacity .15s 1.5s; }
.goal.is-in .a-t2 { transition-delay: 1.68s; }
.goal.is-in .a-t3 { transition-delay: 1.86s; }
.goal.is-in .a-t4 { transition-delay: 2.04s; }
.goal.is-in .a-t5 { transition-delay: 2.22s; }
.goal.is-in .a-t6 { transition-delay: 2.4s; }
@keyframes tap { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.2); } }

/* ------------------------------------------------------------------ profiles: explore the network */
.js .ppanel { animation: pm-in .35s var(--ease); }

.picker { display: flex; gap: .6rem; margin-bottom: 1.2rem; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
@media (min-width: 900px) { .picker { flex-wrap: wrap; overflow: visible; } }   /* desktop: every profile in sight, in as many rows as it takes */
html:not(.js) .picker { display: none; }
.picker-hint { display: none; margin: 0 0 .55rem; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.picker-wrap { position: relative; }
@media (max-width: 899px) {
  .js .picker-hint { display: block; }
  .picker-wrap::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 8px; width: 3.2rem; pointer-events: none;
    background: linear-gradient(to right, rgba(234, 235, 205, 0), var(--cream-2) 85%); transition: opacity .2s;
  }
  .picker-wrap.is-end::after, html:not(.js) .picker-wrap::after { opacity: 0; }
}
.pick {
  flex: none; display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .35rem 1rem .35rem .4rem;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  font: inherit; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s;
}
.pick:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.pick[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--red); }
.pick-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); }
.pick-name { font-weight: 860; font-stretch: 75%; text-transform: uppercase; font-size: 1.1rem; line-height: 1; }
.pick-mk { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.pdetails { display: grid; gap: 1.6rem; }
.js .pdetails .profile[hidden] { display: none; }
.js .pdetails .profile.is-shown { animation: profile-in .45s var(--ease); }
@keyframes profile-in { from { opacity: 0; transform: translateY(10px); } }

.profile {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start;
  background: var(--paper); border: 2px solid var(--ink); border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow); padding: clamp(1.1rem, 3vw, 1.8rem);
}
@media (min-width: 900px) { .profile:not(.profile--solo) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.profile--solo .profile-info { max-width: 760px; }
.profile-info { display: flex; flex-direction: column; min-width: 0; }
.profile-head { display: flex; align-items: center; gap: .9rem; }
.profile-logo { width: 64px; height: 64px; border-radius: 14px; border: 2px solid var(--ink); object-fit: cover; flex: none; }
.profile-id { min-width: 0; }
.profile-kind { margin: 0 0 .25rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.profile-name { font-weight: 880; font-stretch: 66%; text-transform: uppercase; font-size: clamp(2.3rem, 5vw, 3.3rem); line-height: .88;
  overflow-wrap: anywhere; }   /* a long one-word name breaks at its soft hyphen (accounts.json) instead of running off a phone */
.profile-handle { display: inline-block; margin: -.15rem 0 -.45rem; padding: .45rem 0;   /* a bigger target to tap, same look */
  font-weight: 650; color: var(--red-text); text-underline-offset: 3px; }
.profile-head .code { margin-left: auto; align-self: flex-start; }
.profile-handle--long { font-size: clamp(.85rem, 4.2vw, 1em); }   /* long handles keep their arrow on the line, inside the card, down to 360 px */
.profile-desc { margin: 1rem 0 1.1rem; font-size: 1.05rem; color: var(--ink-2); max-width: 52ch; }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.profile-stats > div { padding: .75rem .9rem .8rem 0; border-bottom: 1px dashed var(--line); }
.profile-stats > div:nth-child(even) { padding-left: .9rem; border-left: 1px dashed var(--line); }
.profile-stats dt { font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .3rem; }
.profile-big { display: block; font-weight: 880; font-stretch: 70%; font-size: 2.2rem; line-height: 1; }
.profile-stats small { display: block; font-size: .8rem; color: var(--ink-2); margin-top: .25rem; }
.profile-brands { margin-top: 1.1rem; }
.brands { display: flex; flex-wrap: wrap; gap: .5rem; }
.brands li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .35rem .45rem .35rem .8rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); }
.brands strong { font-weight: 850; }
.profile-asof { font-size: .78rem; color: var(--ink-2); margin: 1rem 0 0; }
.profile-cta {
  align-self: flex-start; margin-top: 1.2rem;
  display: inline-flex; align-items: center; gap: .55em; min-height: 46px; padding: .7em 1.25em;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream);
  font-size: .82rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  box-shadow: 3px 3px 0 var(--red); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.profile-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); }
.known { display: flex; flex-wrap: wrap; gap: .35rem; }
.known li { font-size: .78rem; font-weight: 700; padding: .2em .6em; border: 1.5px solid var(--ink); border-radius: 999px; }
.aud li + li { margin-top: .1rem; }

/* managed accounts: the rubber stamp */
.stamp { margin: 1rem 0 0; }
.stamp span {
  display: inline-block; padding: .35em .7em; border: 2.5px solid var(--red-text); border-radius: 6px;
  color: var(--red-text); font-size: .74rem; font-weight: 880; letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-2.5deg); background: rgba(198, 45, 45, .05);
}
.js .profile.is-shown .stamp span, .js .is-in .stamp span { animation: stamp .5s cubic-bezier(.3, 1.5, .5, 1) .2s backwards; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.6); } }

.rel { white-space: nowrap; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .3em .6em; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.rel--n2p { background: var(--red-ui); border-color: var(--red-ui); color: var(--cream); }
.rel--format { background: var(--cream-2); }

.profile-posts { min-width: 0; }
.ppost { margin: 0; max-width: 400px; }
.ppost figcaption { padding-top: .8rem; }
.ppost-top { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; }
.ppost-brand { font-weight: 850; }
.ppost-format { font-weight: 860; font-stretch: 78%; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; margin: 0 0 .35rem; }
.ppost-desc { color: var(--ink-2); font-size: .93rem; margin: 0 0 .5rem; }
.ppost-stat { margin: 0; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ppost-stat strong { font-weight: 880; font-stretch: 68%; font-size: 1.9rem; letter-spacing: 0; color: var(--ink); margin-right: .2rem; }
.ppost-meta { font-size: .8rem; color: var(--ink-2); margin: .3rem 0 0; }
.ppost-note { font-size: .8rem; font-style: italic; color: var(--ink-2); margin: .3rem 0 0; }

.pempty { padding: clamp(1.3rem, 3vw, 2rem); border: 2px dashed var(--ink); border-radius: var(--radius); background: var(--paper); max-width: 760px; }
.pempty-title { font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin-bottom: .6rem; }
.pempty p:not(.pempty-title) { color: var(--ink-2); }
.network-line { margin: 2rem 0 0; max-width: 70ch; font-size: 1.02rem; }

/* ------------------------------------------------------------------ how it works: two lanes */
.how { overflow-x: clip; }   /* the stamp lands scaled up by the card's right edge: on a phone that would widen the page */
.how-top { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .how-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.how-top .sec-head { margin-bottom: 0; }
.inbox-card { position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; transform: rotate(1.2deg); }
.inbox-title {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 0 .3rem; padding-bottom: .6rem; border-bottom: 2px solid currentColor;
  font-weight: 860; font-stretch: 75%; text-transform: uppercase; font-size: 1.3rem; line-height: 1;
}
.inbox-note { font-size: .64rem; font-weight: 750; letter-spacing: .14em; font-stretch: 100%; color: var(--ink-2); }
.inbox { display: grid; }
.chat { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; align-items: start; padding: .42rem 0; border-bottom: 1px dashed var(--line); }
.chat-av { width: 2.4rem; height: 2.4rem; overflow: visible; }
.chat-body { display: grid; gap: .2rem; min-width: 0; }
.chat-top { display: flex; align-items: center; gap: .45rem; margin: 0; line-height: 1.2; }
.chat-who { font-size: .76rem; font-weight: 780; }
.chat-time { font-size: .7rem; color: var(--ink-2); }
.chat-unread {
  margin-left: auto; display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
  border-radius: 999px; background: var(--red-ui); color: var(--cream); font-size: .64rem; font-weight: 800; line-height: 1;
}
.bubble {
  justify-self: start; max-width: 92%; margin: 0; padding: .22rem .68rem .26rem;
  border: 1.5px solid var(--ink); border-radius: 4px 14px 14px 14px; background: var(--paper);
  font-size: .86rem; line-height: 1.3;
}
.bubble--me { justify-self: end; border-radius: 14px 4px 14px 14px; background: var(--ink); color: var(--cream); }
.bubble + .bubble--them { border-top-left-radius: 14px; }
.bubble--me + .bubble--me { border-top-right-radius: 14px; }
.bubble-txt { position: relative; }
.chat-meta { justify-self: end; margin: 0; font-size: .68rem; color: var(--ink-2); }
/* avatars: made-up profile kinds, drawn in the same ink, cream and red as the rest */
.av-red, .av-redf { fill: var(--red-ui); }
.av-ink { fill: var(--ink); }
.av-cream { fill: var(--cream); }
.av-pale { fill: var(--cream-2); }
.av-face { fill: var(--cream); stroke: var(--ink); stroke-width: 1.5; }
.av-brim { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.av-sheet { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.av-dim { fill: var(--ink); opacity: .45; }
.av-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.av-mouth { fill: var(--red-ui); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.av-shirt { fill: var(--cream); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.av-num { fill: var(--ink); font-family: var(--sans); font-size: 9px; font-weight: 900; font-stretch: 75%; }
.av-set { fill: none; stroke: var(--red-ui); stroke-width: 2.4; stroke-linecap: round; }
.av-ball { fill: var(--cream); stroke: var(--ink); stroke-width: 1.5; }
.av-tear { fill: var(--paper); stroke: var(--ink); stroke-width: .9; }
.av-badge { fill: var(--ink); stroke: var(--paper); stroke-width: 1.6; }
.av-swap { fill: none; stroke: var(--cream); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.av-live { fill: var(--red-ui); stroke: var(--ink); stroke-width: 1.2; }
/* N2P takes over: after a moment to read the chats, the marker crosses out the messages one by one, in reading order,
   at full contrast (no fade, blur or overlay), the unread counts go, and a small stamp presses onto the foot of the card,
   beside "...and four more chats", where it covers no message. Delays (--d, --u, --stamp-at) come from build.py. */
.strike { position: absolute; left: -3%; top: 56%; width: 106%; max-width: none; height: 10px; transform: translateY(-50%); overflow: visible; pointer-events: none; opacity: 0; }
.strike path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bubble--me .strike path { stroke: #FF5A4E; }
.inbox.is-struck .strike { opacity: 1; transition: opacity 0s var(--d); }   /* no dot from the round line end before it draws */
.inbox.is-struck .strike path { stroke-dashoffset: 0; transition: stroke-dashoffset .28s cubic-bezier(.5, 0, .3, 1) var(--d); }
.chat-unread { transition: transform .25s var(--ease) var(--u), opacity .25s var(--u); }
.inbox.is-struck .chat-unread { transform: scale(0); opacity: 0; }
.inbox-stamp { position: absolute; right: .9rem; bottom: .45rem; display: grid; margin: 0; pointer-events: none; }
.inbox-stamp span {
  padding: .3em .6em; border: 2.5px solid var(--red-text); border-radius: 8px; background: var(--paper); color: var(--red-text);
  font-size: clamp(.78rem, 1.3vw, .92rem); font-weight: 900; font-stretch: 75%; letter-spacing: .07em; text-transform: uppercase;
  text-align: center; transform: rotate(-4deg); box-shadow: 3px 3px 0 var(--ink); opacity: 0;
}
.inbox.is-struck ~ .inbox-stamp span { opacity: 1; animation: stamp-press .4s cubic-bezier(.2, .7, .3, 1) var(--stamp-at) backwards; }
@keyframes stamp-press {
  0% { opacity: 0; transform: rotate(-9deg) scale(1.45); }
  60% { opacity: 1; transform: rotate(-4deg) scale(.97); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}
html:not(.js) .strike { opacity: 1; }
html:not(.js) .strike path { stroke-dashoffset: 0; }
html:not(.js) .inbox-stamp span { opacity: 1; }
.inbox-more { margin: .7rem 0 0; font-size: .86rem; font-style: italic; color: var(--ink-2); }

.lanes { position: relative; margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.lane-label { margin: 0; }
.step-name { display: flex; align-items: center; gap: .6rem; font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: 1.45rem; line-height: 1; }
.step-n {
  display: inline-grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper); font-size: .85rem; font-stretch: 90%; letter-spacing: 0;
  transition: background-color .3s, color .3s, border-color .3s;
}
.cell { position: relative; margin: 0; padding: .85rem .95rem; border-radius: 12px; font-size: .95rem; line-height: 1.4; }
.cell--you { background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding-left: 2.5rem; font-weight: 650; }
.tick { position: absolute; left: .75rem; top: .9rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--red-ui); }
.tick::after { content: ""; position: absolute; left: .37rem; top: .2rem; width: .3rem; height: .55rem; border: solid var(--cream); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cell--us { background: var(--ink); color: var(--cream); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); }
.node { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--ink); transition: transform .3s var(--ease), background-color .3s; }
.you-end { margin: 0; display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--red-text); font-size: 1.05rem; }
.you-end::after { content: ""; flex: 1; border-top: 2px dashed var(--line); min-width: 1rem; }
.lane-line { position: absolute; background: rgba(32, 32, 32, .14); border-radius: 3px; overflow: hidden; }
.lane-fill { position: absolute; inset: 0; background: var(--red); transform-origin: 0 0; }

/* not reached yet (only with JS: without it everything is on) */
/* not reached yet: still readable (ink-2 on paper, well above AA); the red line only switches the step on */
.js .step--us:not(.is-on) .cell--us { background: var(--paper); color: var(--ink-2); border-style: dashed; border-color: rgba(32, 32, 32, .35); box-shadow: none; }
.js .step--us:not(.is-on) .node { background: var(--paper); transform: scale(.8); }
.cell--us, .cell--you { transition: background-color .35s var(--ease), color .35s, box-shadow .35s var(--ease), border-color .35s; }
.step.is-on .step-n, html:not(.js) .step .step-n { background: var(--ink); color: var(--cream); }
.js .lanes:not(.is-in) .cell--you { opacity: 0; transform: translateY(10px) scale(.97); }
.lanes.is-in .cell--you { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.lanes.is-in .step:nth-child(2) .cell--you { transition-delay: .2s; }

@media (min-width: 900px) {
  .lanes { display: grid; grid-template-columns: 5.2rem repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 1rem; row-gap: 1.1rem; }
  .lane-label { display: flex; align-items: center; font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
  .lane-label--you { grid-column: 1; grid-row: 2; }
  .lane-label--us { grid-column: 1; grid-row: 3; align-items: flex-start; padding-top: 1.6rem; }
  .lane-label--us .logo-mark { background: var(--ink); width: 60px; }
  .steps { grid-column: 2 / 7; grid-row: 1 / 4; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
  .step { grid-row: 1 / 4; display: grid; grid-template-rows: subgrid; min-width: 0; }
  .step-you { display: flex; align-items: center; }
  .step-you .cell { width: 100%; }
  .step-us { position: relative; padding-top: 1.6rem; }
  .cell-none:not(.cell-none--us) { display: block; width: calc(100% + 1rem); margin-right: -1rem; border-top: 2px dashed var(--line); }
  .step:last-child .cell-none { width: 100%; margin-right: 0; }
  .you-end { width: calc(100% + 1rem); margin-right: -1rem; }
  .node { left: -2px; top: -1.6rem; transform-origin: center; }
  .js .step--us:not(.is-on) .node { transform: scale(.8); }
  .lane-line { grid-column: 2 / 7; grid-row: 3; align-self: start; position: relative; height: 4px; margin-top: 5px; z-index: 0; }
  .step-us .cell { z-index: 1; }
}
@media (max-width: 899px) {
  .lane-label { display: none; }
  .steps { display: grid; gap: 1.3rem; padding-left: 3rem; position: relative; }
  .step { position: relative; display: grid; gap: .6rem; }
  .step-n { position: absolute; left: -3rem; top: -.2rem; z-index: 1; }
  .cell-none { display: none; }
  .node { display: none; }
  .lane-line { left: 1.05rem; top: .5rem; bottom: .5rem; width: 4px; }
  .lane-fill { transform-origin: 50% 0; }
}

.how-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.how-foot p { margin: 0; max-width: 62ch; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.35; }

/* ------------------------------------------------------------------ the case */
.case-sec { background: var(--cream-2); border-block: 2px solid var(--ink); }
.case-client { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin: -1rem 0 2rem; }
.case-client-l { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.case-client strong { font-weight: 880; font-stretch: 68%; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4rem); line-height: .9; }
.case-client-d { font-weight: 650; color: var(--ink-2); }
.csteps { display: grid; gap: .8rem; margin-bottom: clamp(2rem, 4vw, 2.8rem); counter-reset: none; }
@media (min-width: 900px) { .csteps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cstep { position: relative; padding: 1rem 1rem 1.1rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.cstep .step-n { position: absolute; top: -1.1rem; left: .9rem; background: var(--ink); color: var(--cream); }
.cstep h3 { margin: .7rem 0 .35rem; font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: 1.25rem; line-height: 1; }
.cstep p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.cstep--results { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 var(--red); }
.cstep--results p { color: var(--cream); font-weight: 650; }
.cstep--results .step-n { background: var(--red-ui); border-color: var(--ink); }
.js .csteps:not(.is-in) .cstep { opacity: 0; transform: translateY(14px); }
.csteps.is-in .cstep { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.csteps.is-in .cstep:nth-child(2) { transition-delay: .08s; }
.csteps.is-in .cstep:nth-child(3) { transition-delay: .16s; }
.csteps.is-in .cstep:nth-child(4) { transition-delay: .24s; }
.csteps.is-in .cstep:nth-child(5) { transition-delay: .32s; }
@media (max-width: 899px) { .cstep { margin-top: .7rem; } }

.case-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) {
  .case-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .case-grid--noimg { grid-template-columns: minmax(0, 760px); }
}
.case-media { margin: 0; max-width: 470px; }
/* more than one post in the case: a picker swaps the post and its numbers */
.case-media-col { min-width: 0; }
.case-picker { flex-wrap: wrap; overflow: visible; margin-bottom: 1rem; }
html:not(.js) .case-media + .case-media { margin-top: 1.6rem; }
html:not(.js) .case-stats + .case-stats { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(243, 244, 219, .2); }
.case-stats.is-shown .cap { animation: cap-in .5s var(--ease) backwards; }
.case-stats.is-shown .cap:nth-child(2) { animation-delay: .08s; }
.case-stats.is-shown .cap:nth-child(3) { animation-delay: .16s; }
.case-stats.is-shown .cap:nth-child(n+4) { animation-delay: .24s; }
@keyframes cap-in { from { clip-path: inset(0 100% 0 0); } }
.case-media figcaption { margin-top: .7rem; font-size: .9rem; color: var(--ink-2); }
.case-media figcaption a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; }
.case-board { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.4rem); box-shadow: 8px 8px 0 var(--red); }
.cap-head { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 244, 219, .82); }
.cap-head--sub { margin: 1.4rem 0 .7rem; padding-top: 1rem; border-top: 1px solid rgba(243, 244, 219, .2); }
.cap-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--red); }
.case-board.is-in .cap-dot { animation: live 1.4s ease-in-out 3; }
@keyframes live { 50% { opacity: .2; } }
.caps { display: grid; gap: .5rem; }
.cap { display: grid; grid-template-columns: minmax(8.5rem, auto) 1fr; border-radius: 6px; overflow: hidden; background: #34342F; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease); }
.cap-lbl { display: flex; align-items: center; padding: .55rem .8rem; background: var(--red-ui); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cap-val { display: flex; align-items: center; justify-content: flex-end; padding: .35rem .9rem; font-weight: 880; font-stretch: 70%; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cap--primary .cap-lbl { background: var(--cream); color: var(--ink); }
.cap--primary .cap-val { font-size: clamp(2.6rem, 6vw, 4rem); padding-block: .5rem; }
.js .case-board:not(.is-in) .cap { clip-path: inset(0 100% 0 0); }
.case-board .cap:nth-child(2) { transition-delay: .1s; }
.case-board .cap:nth-child(3) { transition-delay: .2s; }
.case-board .cap:nth-child(4) { transition-delay: .3s; }
.case-board .cap:nth-child(5) { transition-delay: .4s; }
.case-board .cap:nth-child(n+6) { transition-delay: .5s; }
.extras { display: grid; gap: .6rem; }
.extra { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: .6rem; padding: .55rem .8rem; border: 1px solid rgba(243, 244, 219, .25); border-radius: 8px; }
.extra-lbl { font-size: .9rem; color: rgba(243, 244, 219, .85); }
.extra-val { font-weight: 880; font-stretch: 70%; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.extra-unit { font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 244, 219, .7); }
.extra--media { grid-template-columns: 84px minmax(0, 1fr) auto auto; align-items: center; }
.extra-media { grid-row: span 1; }
.extra-media .pm-frame img { border-radius: 6px; }
.extra-media .ann-label { display: none; }
.extra-media .pending-tag { display: none; }
.case-source { margin: 1rem 0 0; font-size: .8rem; color: rgba(243, 244, 219, .7); }
.case-cred { margin: clamp(1.8rem, 4vw, 2.4rem) 0 1.4rem; font-size: 1.1rem; font-weight: 600; max-width: 70ch; }
.case-cred strong { font-weight: 850; }
.case-grid + .btn { margin-top: clamp(1.8rem, 4vw, 2.4rem); }   /* with one client there is no credentials line: the same air */

/* ------------------------------------------------------------------ start */
.start { background: var(--red-ui); color: var(--cream); padding-block: clamp(4.5rem, 10vw, 8rem); }
.start .display em { color: var(--ink); }
.start-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .start-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); } }
.start-body { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 42ch; margin: 1.5rem 0 0; }
.sigma-hello { margin: 1.4rem 0 0; display: inline-block; padding: .6rem 1rem; border: 2px solid var(--cream); border-radius: 10px; font-weight: 750; background: rgba(32, 32, 32, .18); }
.start-card { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--ink); padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1.3rem; }
.start-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.start-items li { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 2px dashed var(--ink); border-radius: 10px; font-weight: 860; font-stretch: 78%; text-transform: uppercase; font-size: 1.15rem; }
.start-items span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: .8rem; flex: none; }
.start-card .btn { width: 100%; box-shadow: 5px 5px 0 var(--red); }
.start-card .btn:hover { box-shadow: 7px 7px 0 var(--red); }
.start-creators { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ profiles page */
.network-sec { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 9vw, 7rem); }
.ntypes { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 800px) { .ntypes { grid-template-columns: 1fr 1fr; } }
.ntype { padding: 1.1rem 1.3rem; border-left: 4px solid var(--red); background: var(--paper); border-radius: 0 12px 12px 0; }
.ntype p { margin: 0; color: var(--ink-2); }
.ntype .ntype-title { margin-bottom: .3rem; color: var(--ink); font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.ntype .lbl { margin: .9rem 0 .45rem; }
.ntype .ntype-empty { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-style: italic; font-size: .92rem; }
.profiles .ntypes { margin-bottom: 1.6rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
html:not(.js) .filters { display: none; }
.filter {
  min-height: 44px; padding: .45rem 1.1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background-color .18s, color .18s, transform .18s var(--ease);
}
.filter:hover { transform: translateY(-2px); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.filter span { opacity: .65; margin-left: .2em; }
.plist { display: grid; gap: 1.6rem; }
/* as the network grows: profiles without posts two by two, profiles with posts full width */
@media (min-width: 1000px) {
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .plist .profile:not(.profile--solo) { grid-column: 1 / -1; }
  .plist .profile--solo .profile-name { font-size: clamp(2.1rem, 3.4vw, 2.8rem); }
}
.plist .profile[hidden] { display: none; }
.network-empty { padding: 1.4rem; border: 2px dashed var(--ink); border-radius: var(--radius); font-weight: 650; }
.open-net {
  display: grid; gap: 1rem 2rem; align-items: center; margin-top: 2.4rem;
  padding: clamp(1.3rem, 3vw, 2rem); border: 2px dashed var(--ink); border-radius: var(--radius);
}
@media (min-width: 900px) { .open-net { grid-template-columns: auto minmax(0, 1fr) auto; } }
.open-net p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.open-net .open-title { color: var(--ink); font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin-bottom: .4rem; }
.more-plus { font-family: var(--serif); font-style: italic; font-size: 4rem; line-height: .8; color: var(--red); }
.sigma-note { margin: 1.2rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--red); background: var(--cream); font-weight: 650; }

/* preview build only: content waiting for authorisation */
.preview-bar { margin: 0; padding: .55rem var(--gutter); background: #FFE3DC; color: var(--red-text); border-bottom: 2px solid var(--red-text); font-size: .82rem; font-weight: 700; text-align: center; }
.pending-tag { display: flex; flex-wrap: wrap; gap: .35em; margin: .7rem 0 0; padding: .4rem .6rem; border: 2px dashed var(--red-text); border-radius: 8px; background: #FFF4F0; color: var(--red-text); font-size: .76rem; font-weight: 650; line-height: 1.35; }
.pending-tag strong { text-transform: uppercase; letter-spacing: .08em; }


.pending-tag--inline { display: inline-flex; margin: 0; padding: .1rem .45rem; font-size: .68rem; }

/* footer */
.ftr { background: var(--ink); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.ftr-top { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 2.4rem; border-bottom: 1px solid rgba(243, 244, 219, .2); }
.ftr-brand p { margin: 1.2rem 0 0; max-width: 30ch; color: rgba(243, 244, 219, .8); }
.ftr-h { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 244, 219, .7); }
.ftr-col li { margin: .2rem 0; }
.ftr-col a, .ftr-links a { display: inline-block; padding: .35rem 0; text-decoration: none; }
.ftr-col a:hover, .ftr-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.6rem; font-size: .82rem; color: rgba(243, 244, 219, .72); }
.ftr-bottom p { margin: 0; }

/* ------------------------------------------------------------------ inner pages */

.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 2px solid var(--ink); }
.page-hero--simple { border: 0; padding-block: clamp(5rem, 14vw, 10rem); }
.page-hero--simple .lede { margin-bottom: 2rem; }
.form-section { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 9vw, 7rem); }
.form-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .form-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); } }
.form-aside { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.4rem; background: var(--paper); position: sticky; top: 96px; }
.aside-h { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.form-aside li { padding: .8rem 0 .8rem 1.6rem; position: relative; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.form-aside li:last-child { border: 0; padding-bottom: 0; }
.form-aside li::before { content: "→"; position: absolute; left: 0; color: var(--red-text); font-weight: 800; }

/* forms */
.form { display: grid; gap: 1.3rem; }
.grid-2 { display: grid; gap: 1.3rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: .8rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; padding: 0; }
.req { color: var(--red-text); }
.opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.hint { margin: 0; font-size: .88rem; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
  transition: box-shadow .15s, border-color .15s;
}
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--ink); }
[aria-invalid="true"] { border-color: var(--red-text) !important; background-color: #FFF4F0; }
.err { margin: 0; font-size: .88rem; font-weight: 650; color: var(--red-text); min-height: 0; }
.err:empty { display: none; }
.err::before { content: "! "; font-weight: 900; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.field .chip {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem 1.05rem .45rem .85rem;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer;
  font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.field .chip:has(input:checked) { background: var(--ink); color: var(--cream); }
.chip input, .field--check input { accent-color: var(--red-ui); width: 18px; height: 18px; margin: 0; }
.chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .8rem; }
.field--check input { margin-top: .2rem; }
.field--check label { font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.field--check .err { grid-column: 2; }
.prefill { margin: 0; padding: .8rem 1rem .9rem; border-left: 4px solid var(--red); background: var(--paper); border-radius: 0 12px 12px 0; }
.prefill-l { display: block; margin-bottom: .45rem; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.prefill-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.prefill-row select { flex: 1 1 14rem; width: auto; font-weight: 750; }
.prefill-x {
  min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-size: .8rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.prefill-x:hover { background: var(--ink); color: var(--cream); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: 1rem 1.2rem; border: 2px solid var(--red-text); border-radius: 12px; color: var(--red-text); font-weight: 700; background: #FFF4F0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.form-status { margin: 0; font-weight: 650; }
.form-status.is-error { color: var(--red-text); }
.form-success { padding: clamp(1.6rem, 4vw, 2.6rem); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.form-success:focus { outline: none; }
.success-mark { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--red-ui); color: var(--cream); font-size: 1.5rem; font-weight: 900; margin-bottom: 1.2rem; }
.form-success p:last-child { margin: 1rem 0 0; color: var(--ink-2); }

/* legal */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 9vw, 7rem); }
.legal-body h2 { font-weight: 860; font-stretch: 78%; text-transform: uppercase; font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
.legal-body p { max-width: 70ch; color: var(--ink-2); }
.draft { padding: 1rem 1.2rem; border: 2px dashed var(--red-text); border-radius: 12px; color: var(--red-text); font-weight: 700; }
mark.pending { background: #FFE3DC; color: var(--red-text); padding: 0 .3em; border-radius: 4px; font-weight: 700; }


/* ------------------------------------------------------------------ motion */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .goal.reveal.in:hover { transform: translate(-3px, -3px); }
.hdr { transition: box-shadow .25s var(--ease); }
.hdr.is-scrolled { box-shadow: 0 6px 0 rgba(32, 32, 32, .06); }

/* page-to-page: a short cross-fade where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

@media (prefers-reduced-motion: reduce) {
  .marker path, .ann path, .strike path, .a-mark { stroke-dashoffset: 0 !important; }
  .strike { opacity: 1; }
  .inbox-stamp span, .js .inbox-stamp span { opacity: 1; }
  .ann-label { opacity: 1; }
  .js .case-board:not(.is-in) .cap { clip-path: none; }
  .js .goal:not(.is-in) .a-dot, .js .goal:not(.is-in) .a-sticker { transform: none; opacity: 1; }
  .js .goal:not(.is-in) .a-note, .js .goal:not(.is-in) .a-link, .js .goal:not(.is-in) .a-tally { opacity: 1; }
  .js .lanes:not(.is-in) .cell--you, .js .csteps:not(.is-in) .cstep { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticket { transform: rotate(-2.2deg); }
  @view-transition { navigation: none; }
}

@media (max-width: 899px) {
  .cell .sr { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; margin-bottom: .2rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
}

@media (max-width: 560px) {
  .ticket { transform: none; box-shadow: 6px 6px 0 var(--ink); grid-template-columns: 1fr; }
  .ticket-pile { padding-top: 2.8rem; }
  .ticket-back { transform: rotate(1.8deg) translate(4px, -2.6rem); box-shadow: 6px 6px 0 var(--ink); }
  .js .ticket { animation-name: fade-up; animation-duration: .7s; }
  .ticket-stub { width: auto; flex-direction: row; border-left: 0; border-top: 2px dashed var(--ink); border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px); padding: .7rem 1rem; }
  .ticket-stub span:first-child { writing-mode: horizontal-tb; transform: none; }
  .barcode { width: 64px; height: 26px; background: repeating-linear-gradient(90deg, var(--cream) 0 2px, transparent 2px 4px, var(--cream) 4px 5px, transparent 5px 8px); }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-stats > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .profile-name { font-size: 2.1rem; }
  /* labels never under 10px, and wide enough that "Reproducciones" or "Espectadores" don't break mid-word */
  .cap { grid-template-columns: 8.6rem minmax(0, 1fr); }
  .cap-lbl { padding: .5rem .55rem; font-size: .68rem; letter-spacing: .05em; overflow-wrap: break-word; }
  .cap-val { padding-inline: .6rem; font-size: 1.45rem; }
  .cap--primary .cap-val { font-size: 2.1rem; }
  .extra { grid-template-columns: minmax(0, 1fr) auto; }
  .extra-unit { grid-column: 2; text-align: right; }
  /* thumbnail on the left, the label above, the number and its unit side by side below */
  .extra--media { grid-template-columns: 64px auto minmax(0, 1fr); column-gap: .7rem; row-gap: .1rem; }
  .extra--media .extra-media { grid-row: 1 / 3; }
  .extra--media .extra-lbl { grid-column: 2 / 4; align-self: end; }
  .extra--media .extra-val { grid-column: 2; grid-row: 2; }
  .extra--media .extra-unit { grid-column: 3; grid-row: 2; text-align: left; }
  /* page by page on a narrow phone: a smaller avatar and type, so every message fits on one line */
  .chat { column-gap: .55rem; }
  .chat-av { width: 2rem; height: 2rem; }
  .bubble { max-width: 100%; font-size: .8rem; padding-inline: .6rem; }
  .start-items { grid-template-columns: 1fr 1fr; }
  .start-items li { font-size: 1rem; padding: .6rem; }
  .inbox-card { transform: none; }
  .inbox-stamp { bottom: -.8rem; right: .6rem; }   /* on the card's edge: no room beside "...and four more chats" */
  .proof-sep { display: none; }
  .proof { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .profile-cta { align-self: stretch; justify-content: space-between; }
}

/* ---- 29-oct: changes approved by Xabi (block B of the 28-oct round) ---- */

/* Profile cards without posts: on wide screens their real data uses the card's width, in four columns,
   and the last item of an unfinished row takes the rest of it. */
@media (min-width: 900px) {
  .pdetails .profile--solo .profile-info { max-width: none; }
  .pdetails .profile--solo .profile-desc { max-width: 70ch; }
  .pdetails .profile--solo .profile-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdetails .profile--solo .profile-stats > div:nth-child(n) { padding-left: .9rem; border-left: 1px dashed var(--line); }
  .pdetails .profile--solo .profile-stats > div:nth-child(4n+1) { padding-left: 0; border-left: 0; }
  .pdetails .profile--solo .profile-stats > div:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
  .pdetails .profile--solo .profile-stats > div:last-child:nth-child(4n+2) { grid-column: span 3; }
  .pdetails .profile--solo .profile-stats > div:last-child:nth-child(4n+3) { grid-column: span 2; }
}

/* A profile without a photo: its initial in the marker's red italic, on cream, with the photos' border. */
.mono { display: inline-grid; place-items: center; flex: none; background: var(--cream-2); color: var(--red);
  font-family: var(--serif); font-style: italic; font-weight: 700; line-height: 1; padding-right: .08em; user-select: none; }
.pick-logo.mono { border-color: var(--ink); font-size: 1.3rem; }
.pick[aria-pressed="true"] .pick-logo.mono { border-color: var(--cream); }
.profile-logo.mono { font-size: 2.6rem; }

/* The home page shows the featured profiles; the picker ends with a way to all of them. */
.pick--all { text-decoration: none; border-style: dashed; background: transparent; font-weight: 800; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; padding-left: 1rem; }
.pick--all:hover { background: var(--ink); color: var(--cream); border-style: solid; }

/* Phones and tablets: the brief one tap away in the header (not on the brief page itself). */
.hdr-cta { display: none; }
@media (max-width: 899px) {
  .hdr-cta { display: inline-flex; flex: none; width: auto; margin-left: auto; min-height: 40px; padding: .5em .95em; font-size: .74rem; box-shadow: 3px 3px 0 var(--ink); }
  .hdr-cta + .nav-toggle { margin-left: 0; }
  .page-contact .hdr-cta { display: none; }
  .page-contact .hdr-cta + .nav-toggle { margin-left: auto; }
}
@media (max-width: 374px) { .hdr-cta { padding-inline: .8em; } .nav-toggle { padding-inline: .8em; } }

/* The case on one-column screens: the post and its main number first, then the steps and the board. */
.case-hl { display: none; }
@media (max-width: 899px) {
  .case-sec .wrap { display: flex; flex-direction: column; }
  .case-sec .case-grid { display: contents; }
  .case-sec .sec-head { order: 1; } .case-sec .case-client { order: 2; }
  .case-sec .case-media, .case-sec .case-media-col { order: 3; margin-bottom: 1.6rem; }
  .case-sec .csteps { order: 4; margin-bottom: 1.6rem; }
  .case-sec .case-board { order: 5; }
  .case-sec .case-cred { order: 6; } .case-sec .wrap > .btn { order: 7; align-self: flex-start; margin-top: 1.6rem; }
  .case-hl { display: block; margin: .9rem 0 0; font-size: .95rem; color: var(--ink-2); }
  .case-hl strong { display: block; font-weight: 880; font-stretch: 70%; font-size: 2.4rem; line-height: 1; color: var(--ink); }
}

/* Wide but short screens (1280×720, 1366×768): less air around the same hero, so the buttons fit in the first screen. */
@media (min-width: 980px) and (max-height: 820px) {
  .hero { padding-top: clamp(1.6rem, 3.4vh, 2.4rem); }
  .hero-grid { padding-bottom: 1.4rem; }
  .hero .display--xl { font-size: clamp(2.5rem, min(5.2vw, 8.6vh), 5rem); }
  .hero-sub { margin: 1.1rem 0 1.4rem; max-width: 52ch; }
  .hero-eyebrow { margin-bottom: .8rem; }
}

/* ------------------------------------------------------------------ featured case (ENBAJA × Winamax, 29-oct) */
.spot { padding-block: clamp(4.5rem, 10vw, 8rem); background: var(--cream); border-block: 2px solid var(--ink); }
.spot-tags { margin: -1rem 0 clamp(1.6rem, 3vw, 2.2rem); }
.spot-grid { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); align-items: stretch; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
@media (min-width: 900px) { .spot-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); } }
.spot-promo { margin: 0; min-width: 0; }
.spot-frame { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.spot-frame img { display: block; width: 100%; height: auto; }
.spot-promo figcaption { margin-top: .9rem; font-size: .9rem; color: var(--ink-2); }
.spot-promo figcaption a { color: var(--ink); font-weight: 750; }
.spot-board { display: flex; flex-direction: column; justify-content: center; }
.spot-num { margin: 0; font-weight: 900; font-stretch: 68%; font-size: clamp(5.5rem, 13vw, 9.5rem); line-height: .82; color: var(--cream); font-variant-numeric: tabular-nums; }
.spot-unit { margin: .6rem 0 0; font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; color: var(--red); }
.spot-when { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(243, 244, 219, .2); font-weight: 880; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.1; color: var(--cream); }
/* the panel's funnel under the big number (30-oct): clicks, sign-ups and the sign-up to deposit rate */
.spot-funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem 1rem; margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(243, 244, 219, .2); }
.spot-funnel dt { margin: 0; font-weight: 880; font-stretch: 72%; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.spot-funnel dd { margin: .3rem 0 0; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; color: rgba(243, 244, 219, .72); }
.spot-notes { display: grid; gap: 1.1rem 2rem; margin: 0 0 clamp(2rem, 4vw, 2.6rem); padding-top: 1.2rem; border-top: 2px solid var(--ink); }
@media (min-width: 700px) { .spot-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spot-notes dt { margin: 0 0 .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.spot-notes dd { margin: 0; font-size: .98rem; color: var(--ink-2); }
.spot-stats { margin: 0 0 clamp(2rem, 4vw, 2.6rem); max-width: 831px; }
.spot-panel { display: block; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.spot-panel picture, .spot-panel img { display: block; width: 100%; height: auto; }
/* on a phone the panel is a narrower crop of the same screenshot (site.json > spotlight > stats_image > phone):
   brand and depositors side by side at a readable size, no sideways scrolling */
@media (max-width: 759px) { .spot-panel { max-width: 440px; } }
.spot-stats figcaption { margin-top: .7rem; font-size: .85rem; color: var(--ink-2); }
.spot .sec-head .display { max-width: 24ch; }

/* generated by build.py: annotation labels, size caps for small screenshots, page by page timing */
.al-posta-kalshi-cuti { left: 5.0%; top: 42.0%; }
.pm[data-post="posta-kalshi-cuti"], .case-media[data-case="posta-kalshi-cuti"] { max-width: 382px; }
.al-enbaja-kalshi-francia { left: 5.0%; top: 43.0%; }
.al-messismo-michelob { left: 10.0%; top: 10.5%; }
.al-messismo-kalshi-reel { left: 20.0%; top: 79.0%; }
.pm[data-post="messismo-kalshi-reel"], .case-media[data-case="messismo-kalshi-reel"] { max-width: 360px; }
.al-posta-story-postita { left: 17.0%; top: 70.0%; }
.chat:nth-child(1) .bubble:nth-child(2) { --d: 1.00s; }
.chat:nth-child(1) { --u: 1.28s; }
.chat:nth-child(2) .bubble:nth-child(2) { --d: 1.20s; }
.chat:nth-child(2) .bubble:nth-child(3) { --d: 1.40s; }
.chat:nth-child(2) { --u: 1.68s; }
.chat:nth-child(3) .bubble:nth-child(2) { --d: 1.60s; }
.chat:nth-child(3) { --u: 1.88s; }
.chat:nth-child(4) .bubble:nth-child(2) { --d: 1.80s; }
.chat:nth-child(4) { --u: 2.08s; }
.chat:nth-child(5) .bubble:nth-child(2) { --d: 2.00s; }
.chat:nth-child(5) .bubble:nth-child(3) { --d: 2.20s; }
.chat:nth-child(5) { --u: 2.48s; }
.chat:nth-child(6) .bubble:nth-child(2) { --d: 2.40s; }
.chat:nth-child(6) { --u: 2.68s; }
.inbox-card { --stamp-at: 2.85s; }
