/* ==========================================================================
   THRILLA LITE — the web prototype's design system
   --------------------------------------------------------------------------
   Ported from design/lite-prototype/ds/thrilla/, which stays the source of
   truth for token VALUES. What is new here is the COLOUR ROLE SYSTEM below,
   which the fourteen static boards did not have and which is the reason this
   file exists as one stylesheet instead of fourteen inline copies.

   THE PROBLEM THIS FIXES, measured across the boards on 2026-10-18:
   orange carried six unrelated jobs (primary action, two full-width money
   blocks, four project tiles, the "Our pick" badge, step numerals, portfolio
   counts) and mint carried three (brand copy, active status, the machine's
   voice). A colour that means six things means nothing, which is exactly how
   it read.

   FOUR ROLES. Nothing outside them gets a hue.

     1  ACTION      Fresh Rizzz         ONLY things you press
                                       (was Burning Caviar until 2026-10-18;
                                        see ROLE 1 below for why it reversed)
     2  THE MACHINE Fresh Rizzz         its voice AND its judgement
                                       (shares the gradient with ACTION: they are
                                        separated by TEMPERATURE, not by hue)
     3  STATUS      the semantic set    operational state only, never copy
     4  EVERYTHING  neutral + type      money, people, numerals, decoration

   The rule that makes it checkable: if an element is not a control, not the
   machine speaking, and not an operational state, it has no hue. Money is the
   loudest case — it is the most important FACT on the plan, so it gets scale,
   weight and tabular figures, not a coloured block that impersonates a button.

   DARK ONLY, deliberately. All fourteen boards commit to the near-black
   ground, the brand's own artwork is built on it, and Fresh Rizzz measures
   1.11:1 on the light surface — invisible, not weak. So there is no light
   theme to design; every colour is painted explicitly instead.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* ---- Brand values. Same hexes as the repo design system. ---- */
  --set-black: #0b0b0c;
  --spotlight-white: #f2eee7;
  --cavir: #e95400;
  --cavir-bright: #f86624;
  --teal: #07ffa9;
  --tonight: #131c4d;
  --wine: #852837;

  --grey-900: #0b0b0c;
  --grey-800: #16161a;
  --grey-700: #313133;
  --grey-600: #646466;
  --grey-400: #999999;
  --grey-300: #cecac6;
  --grey-100: #f2eee7;

  --grad-caviar: linear-gradient(-55deg, #e95400 0%, #ff9500 57.4%, #ffcb6b 100%);
  --grad-rizzz: linear-gradient(-55deg, #33ffaa 0%, #19ffd9 44%, #ddabf5 100%);
  /* The ambience aurora. Tokenised 2026-10-22 because the dashboard needs the
     same stops .surface-ambience uses, and a second copy of a four-stop
     double conic gradient is a thing that drifts. */
  --grad-ambience:
    conic-gradient(from 180deg at 50% 100%, rgba(102,51,102,0) 0%, rgba(133,40,55,1) 31%, rgba(255,149,0,0) 78%),
    conic-gradient(from 180deg at 50% 100%, rgba(102,51,102,1) 0%, rgba(133,40,55,0) 15%, rgba(255,149,0,0) 70%, rgba(255,203,107,0) 100%);

  /* ---- Surfaces. The ground is near-black; cards lift by 6% of nothing,
          so the separation is carried by the border, not the fill. The two
          fills are 1.09:1 apart and a state swapped between them is
          invisible — that is a finding from the boards, not a guess. ---- */
  --page: var(--set-black);
  --card: #16161a;
  --card-lift: #1c1c21;
  --sunken: #232328;

  --text: var(--spotlight-white);
  --text-2: var(--grey-300);
  --text-3: var(--grey-400);
  --on-action: var(--set-black);

  /* 3.06:1 on card, 3.33:1 on page — clears WCAG 1.4.11 for a control edge.
     --grey-700 #313133 is 1.39:1 and is for non-functional separators only. */
  --line: var(--grey-600);
  --line-soft: #27272b;

  /* ---- ROLE 1 · ACTION — Fresh Rizzz, as of 2026-10-18 ----
     Jack: "orange isn't right, i think it should be fresh rizz."

     This reverses a decision I made hours earlier, and the reversal is better.
     I had been trying to hold orange as the action colour while Fresh Rizzz
     marked the machine, and the two kept colliding — the invite card, the
     submit control beside a mint headline. Each time I moved the symptom.

     The cause was that BOTH were competing to be the loudest thing on screen.
     Separating them by TEMPERATURE instead of by meaning resolves it:

       Fresh Rizzz  = everything the client presses. This is what distinguishes
                      the client product, AT THE CONTROL LAYER. The sentence
                      that used to sit here — "a client surface that is
                      visibly not orange is a feature" — went too far and was
                      caught in review: it forbids the Burning Caviar hero
                      band Jack asked for. Burning Caviar is a BRAND surface
                      on both products; the two products differ in what you
                      press, not in whether the brand appears
       Burning Caviar / Kashmiri Saffron / Dark Ambience
                    = brand SURFACES. Hero bands, card grounds, oversized
                      marks. Never a control, so it can never compete with one

     It also gains contrast. Dark on #19ffd9 is 15.31:1 against orange's
     5.76:1, and the focus ring goes from 6.48:1 to 15.31:1. */
  --action: var(--grad-rizzz);
  --action-flat: #19ffd9;            /* solid, for focus rings and tints only */
  --action-fg: var(--set-black);     /* 15.31:1 */

  /* ---- ROLE 2 · THE MACHINE ----
     A gradient, never a flat fill: the first stop #33ffaa is 4.2 degrees of
     hue from --st-active #07ffa9 at the same saturation, so a flat mint chip
     IS the active status tag to the eye. The gradient sweeps 125 degrees to
     lilac, which a flat chip cannot. */
  --machine: var(--grad-rizzz);
  --machine-flat: #19ffd9;           /* text fallback only, 15.31:1. Never a fill. */

  /* ---- ROLE 3 · STATUS. Operational state only. ---- */
  --st-active: #07ffa9;      --st-active-fg: #131c4d;
  --st-progress: #05c882;    --st-progress-fg: #131c4d;
  --st-pending: #cecac6;     --st-pending-fg: #131c4d;
  --st-warning: #f7a23b;     --st-warning-fg: #131c4d;
  --st-cancelled: #e03131;   --st-cancelled-fg: #ffffff;

  --focus: var(--action-flat);       /* 15.31:1 on the page, up from orange's 6.48:1 */
  --focus-w: 3px;

  /* ---- Type. Scale and leading from the repo design system. ---- */
  --font: 'Work Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-display: clamp(2.25rem, 6vw, 4rem);      /* 36→64. Rule 4: six sizes, 64/42/24/17/14/12 */
  --t-h1: clamp(1.75rem, 4vw, 2.625rem);   /* was 2–3.25rem; Jack, 2026-10-19: "if the headings are too big reduce the size, across all pages" */
  --t-h2: clamp(1.75rem, 3.6vw, 2.625rem);     /* 28→42, level with h1's top */
  --t-h3: clamp(1.25rem, 2.4vw, 1.5rem);       /* 20→24 */
  --t-h4: 1.25rem;
  --t-lg: 1.125rem;
  --t-body: 1rem;
  --t-sm: 0.875rem;
  --t-xs: 0.75rem;

  --lh-tight: 1.05;
  --lh-snug: 1.18;
  --lh-head: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;
  --ls-display: -0.03em;  /* the same headline tracking; the design's pass gives one value for every page and section title */
  --ls-tight: -0.03em;   /* headline tracking. Design's type pass, 2026-10-22 */
  --ls-caps: 0.22em;     /* eyebrows, "across every LITE file" (same pass) */

  --fw-light: 300; --fw-reg: 400; --fw-med: 500; --fw-semi: 600; --fw-bold: 700;

  /* ---- Space, radius, motion ---- */
  /* RULE 3 of the layout redesign (Claude Design, 2026-10-20): SPACE MEANS
     ONE THING PER STEP, and the same relationship never gets two gaps.
     Six steps carry every relationship BETWEEN things — margins and layout
     gaps:

       --s2   8  inside a cluster      name ↔ tag, label ↔ value, chip ↔ chip
       --s3   12 a heading or eyebrow  → its own content
       --s5   24 between items         list rows, and blocks in the rail
       --s8   48 between groups        role ↔ role, history ↔ current question
       --s10  64 between zones         title band ↔ work area
       --s12  96 between page sections landing only

     --s1, --s4, --s6, --s7, --s9 and --s11 are for INSIDE a component only —
     its padding, and the gaps within one row. They are not a relationship
     between two things, so they never appear on a margin. Before this,
     role ↔ role was 40 on some screens and 56 on others, and an eyebrow sat
     4px from its own paragraph. */
  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 2.5rem;  --s8: 3rem;
  --s9: 3.5rem;  --s10: 4rem;   --s11: 5rem;   --s12: 6rem;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --dur-fast: 140ms; --dur: 240ms; --dur-slow: 420ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* RULE 1 of the layout redesign (Claude Design, 2026-10-20): one grid.
     1440 of shell, 64 of gutter, twelve columns 24 apart — 1312 of content
     and 87.3px columns at 1440. Was 1240/56, which split the working screens
     580/480 and left ~560px empty down the right of every page after the
     first screen. Width goes to STRUCTURE; prose still stops at 64ch. */
  --shell: 1440px;
  --gutter: 64px;   /* 24 at a container ≤820, 16 at ≤520 — see .shell below */
  --col-gap: 24px;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 { text-wrap: balance; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Type roles
   ========================================================================== */
.display { font-size: var(--t-display); line-height: var(--lh-tight); font-weight: var(--fw-med); letter-spacing: var(--ls-display); }
.h1 { font-size: var(--t-h1); line-height: var(--lh-snug); font-weight: var(--fw-med); letter-spacing: var(--ls-display); }
.h2 { font-size: var(--t-h2); line-height: var(--lh-snug); font-weight: var(--fw-med); letter-spacing: var(--ls-tight); }
.h3 { font-size: var(--t-h3); line-height: var(--lh-head); font-weight: var(--fw-semi); }
.h4 { font-size: var(--t-h4); line-height: var(--lh-head); font-weight: var(--fw-semi); }
.lead { font-size: var(--t-lg); line-height: var(--lh-normal); color: var(--text-2); }
.body { font-size: var(--t-body); line-height: var(--lh-relaxed); }
.sm { font-size: var(--t-sm); line-height: var(--lh-normal); }
.xs { font-size: var(--t-xs); line-height: var(--lh-normal); }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.measure { max-width: 64ch; }   /* rule 1: prose never runs wider, whatever the column */

.eyebrow {
  font-size: var(--t-xs); font-weight: var(--fw-semi);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-3); line-height: var(--lh-head);
}

/* ==========================================================================
   ROLE 4 · MONEY — neutral, and the loudest thing on the card anyway.
   Scale and weight carry it. Tabular figures so a column of rates lines up
   and a range reads as one object rather than two numbers.
   ========================================================================== */
.money {
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-tight);
  white-space: nowrap;
}
.money--total {
  font-size: var(--t-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}
.money--row { font-size: var(--t-h4); }

/* The total block. A hairline and a lift, not a colour — this used to be a
   full-bleed orange gradient that out-shouted the actual CTA beneath it. */
.total {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  align-items: baseline; justify-content: space-between;
  padding: var(--s6);
  background: var(--card-lift);
  border: 1px solid var(--line);
  border-top: 2px solid var(--text);
  border-radius: var(--r-lg);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
@container (max-width: 820px) { .shell { padding-inline: 24px; } }
@container (max-width: 520px) { .shell { padding-inline: 16px; } }
/* Two columns on the wider screens: the words on the left, the cards on the
   right, the same split as the brief. Jack, 2026-10-19: "I thought we were
   using the width appropriately." */
/* RULE 2 — MAIN + RAIL. Every working screen (brief, crew, project, booked)
   uses one split: main is columns 1–8, the rail columns 9–12. The rail is a
   HAIRLINE, not a card — it holds state (totals, who is booked, what posts)
   and the long rules copy, while main holds the one thing you are doing now.
   It is sticky, so it no longer runs out after the first screenful. */
.two { display: grid; gap: var(--s7); align-items: start; }
@container (min-width: 900px) {
  .two { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s8); }
  .two > :first-child { grid-column: 1 / span 8; min-width: 0; }
  .two > :nth-child(2) { grid-column: 9 / span 4; min-width: 0;
    position: sticky; top: var(--s5);
    border-inline-start: 1px solid var(--line); padding-inline-start: var(--s6); }
}
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, var(--s4)); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.between { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--s5);
}
.card--pad { padding: var(--s6); }
.card--flat { background: transparent; }

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ==========================================================================
   ROLE 1 · ACTION — and nothing else is this colour.
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0.78rem 1.5rem;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: var(--fw-semi); line-height: 1;
  /* THE THRILLA BUTTON SIGNATURE. Uppercase and tracked — BOOK, MORE DETAILS —
     which the design system has always carried and this prototype had dropped.
     It is the most recognisable detail in the product and it costs nothing.
     .btn--text opts out, for the few labels long enough that uppercase turns
     them into shouting. */
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  text-decoration: none; cursor: pointer; background: transparent; color: var(--text);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.985); }

.btn--primary {
  background: var(--action); color: var(--action-fg);
  background-size: 160% 160%; background-position: 0% 50%;
  transition: background-position var(--dur-slow) var(--ease), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.btn--primary:hover { background-position: 100% 50%; box-shadow: 0 0 0 4px rgba(25, 255, 217, 0.16); }

.btn--secondary { border-color: var(--line); color: var(--text); }
.btn--secondary:hover { border-color: var(--text); background: rgba(242, 238, 231, 0.06); }

.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { color: var(--text); background: rgba(242, 238, 231, 0.06); }

.btn--lg { min-height: 52px; padding: 1rem 2rem; font-size: var(--t-body); }
.btn--xl { min-height: 56px; padding: 1rem 2.5rem; font-size: var(--t-h4); }
.btn--block { width: 100%; }
.btn--text { text-transform: none; letter-spacing: 0; }

.btn[aria-disabled="true"], .btn:disabled {
  background: transparent; border-color: var(--line); color: var(--text-3);
  cursor: not-allowed; pointer-events: none;
}
/* The UNAVAILABLE tier: still readable, state carried by a dashed edge rather
   than by dimming something that is meant to stay legible. */
.btn--off {
  background: transparent; border: 1px dashed var(--line);
  color: var(--text-3); cursor: not-allowed;
}

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease-out);
}
.iconbtn--filled { background: var(--action); color: var(--action-fg); background-size: 160% 160%; }
.iconbtn--filled:hover { box-shadow: 0 0 0 4px rgba(25, 255, 217, 0.16); }
.iconbtn:active { transform: scale(0.92); }

/* ==========================================================================
   ROLE 2 · THE MACHINE — gradient only, dark surfaces only.
   ========================================================================== */
.ai-edge { position: relative; }
.ai-edge::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--machine); border-radius: var(--r-pill);
}
.ai-rule {
  display: block; width: 56px; height: 2px; border: 0; margin: 0;
  background: var(--machine); border-radius: var(--r-pill);
}
.ai-text { color: var(--machine-flat); }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .ai-text {
    background: var(--machine);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
/* The machine's judgement, not a status: "Our pick". A spine plus a gradient
   label, deliberately NOT a pill — a pill beside a status pill is the exact
   confusion this system exists to remove. */
.ai-mark {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--t-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
}
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--machine); flex: none; }

/* .btn--ai is RETIRED, not merely unused. It painted a primary button in the
   machine's gradient, so the flow had two different-looking primary actions —
   "See my plan" in mint, "Create my project" in orange — and a client cannot
   learn an action colour that changes.

   The role system is stricter for losing it: THE MACHINE SPEAKS, IT DOES NOT
   GET A BUTTON. Fresh Rizzz marks what the machine said or judged — the
   question spine, the plan rule, "Our pick". Every control the client presses
   is Burning Caviar, every time. Kept as a definition only so the forced-
   colors and print blocks below have something to override if it returns;
   nothing references it and nothing should. */
.btn--ai { background: var(--machine); color: var(--set-black); border-color: transparent; }

/* ==========================================================================
   ROLE 3 · STATUS — pills, and only operational state.
   ========================================================================== */
.tag {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 0.3rem 0.65rem; border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: var(--fw-bold); line-height: 1.4;
  white-space: nowrap;
}
.tag--active    { background: var(--st-active);    color: var(--st-active-fg); }
.tag--progress  { background: var(--st-progress);  color: var(--st-progress-fg); }
.tag--pending   { background: var(--st-pending);   color: var(--st-pending-fg); }
.tag--warning   { background: var(--st-warning);   color: var(--st-warning-fg); }
.tag--cancelled { background: var(--st-cancelled); color: var(--st-cancelled-fg); }
.tag--quiet     { background: transparent; border: 1px solid var(--line); color: var(--text-2); font-weight: var(--fw-semi); }

/* ==========================================================================
   People — neutral. The person is not a brand colour.
   ========================================================================== */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; flex: none;
  width: 40px; height: 40px; font-size: var(--t-sm);
  background: var(--sunken); color: var(--text-2);
  border: 1px solid var(--line-soft);
  font-weight: var(--fw-semi);
}
/* With a real photo the initials stay underneath, so an expired or failed
   signature degrades to them instead of an empty circle. */
.avatar--photo { position: relative; overflow: hidden; }
.avatar--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-orientation: none; object-position: 50% 35%; }
.avatar--sm { width: 32px; height: 32px; font-size: var(--t-xs); }
.avatar--lg { width: 56px; height: 56px; font-size: var(--t-body); }

/* The project mark. Neutral tile, brand monogram — brand presence that does
   not spend the action colour on decoration. */
.mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-md);
  background: var(--sunken); border: 1px solid var(--line-soft);
  color: var(--text-2);
}
.mark--sm { width: 32px; height: 32px; border-radius: var(--r-sm); }

/* ==========================================================================
   Fields and chips
   ========================================================================== */
.field {
  width: 100%; min-height: 48px;
  padding: var(--s3) var(--s4);
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field::placeholder { color: var(--text-3); }
.field:focus { outline: none; border-color: var(--action-flat); box-shadow: 0 0 0 3px rgba(25, 255, 217, 0.18); }

.search {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--card); border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--s1) var(--s2) var(--s1) var(--s5);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-radius var(--dur-fast) var(--ease-out);
}
.search:focus-within { border-color: var(--action-flat); box-shadow: 0 0 0 4px rgba(25, 255, 217, 0.16); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none; padding: var(--s3) 0; font-size: var(--t-body); }

/* Chips are controls, so they take the action colour — outline and label,
   not a fill, because five filled gradients in a row is a fairground. Jack:
   "quick layout prompts below should have some colour, even if just outline
   and text." */
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 40px; padding: 0.5rem 1rem;
  border: 1px solid rgba(25, 255, 217, 0.35); border-radius: var(--r-pill);
  background: transparent; color: var(--action-flat); cursor: pointer;
  font-size: var(--t-sm); font-weight: var(--fw-med);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--action-flat); background: rgba(25, 255, 217, 0.10); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"] { border-color: var(--action-flat); color: var(--action-flat); }

/* ==========================================================================
   Motion — restrained, and all of it switchable off.
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dotpulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.rise { animation: rise var(--dur) var(--ease-out) both; }
.drop { animation: drop var(--dur) var(--ease-out) both; }
.spin { animation: spin 900ms linear infinite; transform-origin: 50% 50%; }

.dots { display: inline-flex; gap: var(--s1); }
.dots > span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: dotpulse 1400ms var(--ease) infinite; }
.dots > span:nth-child(2) { animation-delay: 160ms; }
.dots > span:nth-child(3) { animation-delay: 320ms; }

/* The machine working. A gradient bar, because this IS the machine. */
.progress { position: relative; height: 3px; width: 100%; overflow: hidden; background: var(--sunken); border-radius: var(--r-pill); }
.progress::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--machine); border-radius: var(--r-pill); animation: sweep 1600ms var(--ease) infinite; }

.skeleton {
  background: linear-gradient(90deg, var(--sunken) 0%, var(--card-lift) 50%, var(--sunken) 100%);
  background-size: 200% 100%; border-radius: var(--r-md);
  animation: shimmer 1400ms var(--ease) infinite;
}

/* Screen transition. The router sets .is-leaving then .is-entering. */
.screen { animation: rise var(--dur-slow) var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .dots > span { opacity: 0.6; }
  .progress::after { width: 100%; animation: none; opacity: 0.5; }
  .btn:active, .chip:active, .iconbtn:active { transform: none; }
}

/* Touch devices: a hover that latches on tap reads as a stuck state. */
@media (hover: none) {
  .btn--secondary:hover { border-color: var(--line); background: transparent; }
  .btn--ghost:hover { background: transparent; color: var(--text-2); }
  .chip:hover { border-color: rgba(25, 255, 217, 0.35); background: transparent; }
  .iconbtn--filled:hover { background: var(--action); }
}

/* Forced colours: a gradient carries no meaning a high-contrast user can act on. */
@media (forced-colors: active) {
  .ai-text { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
  .ai-edge::before, .ai-rule, .ai-dot, .progress::after { background: CanvasText; }
  .btn--ai { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
}

/* ==========================================================================
   Suggestion panel — MOVED, not deleted. It lived here as a bare `.suggest` /
   `.sugg` pair AND again in agentic.css as `.agentic .suggest` / `.agentic
   .sugg` with headers, icons and a meta column. Two complete definitions of
   one component, and which one you got was decided by whether your screen sat
   inside `.agentic` — rule 2.7b, third variant on this component alone.

   The landing got this one. So its dropdown drew a heavy 2px --action-flat
   border (Jack, 2026-10-29: "blue outline is too heavy"), had no `.sugg__h`
   rule so the "Projects" and "Book one person" headers rendered as body text,
   and no `.sugg__tx` so "Actor" ran into "Hire one, for a day or a night".

   One definition now, in agentic.css, unscoped, used by both screens.
   ========================================================================== */

/* An answered turn. One row, not a question/answer/echo stack — five answers
   used to push the live question most of a screen down the page. */
.turn {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: nowrap;
  min-height: 44px; padding: var(--s2) var(--s3);
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: var(--card);
}
.turn .eyebrow { flex: 0 0 7.5em; }
@container (max-width: 520px) {
  .turn { flex-wrap: wrap; }
  .turn .eyebrow { flex-basis: 100%; }
}

/* ==========================================================================
   SELECTED is not ACTION — and this is why the orange looked wrong
   --------------------------------------------------------------------------
   Jack, 2026-10-18, on the invite cards: "i don't think the orange works with
   the rest of the colours." He is right, and the cause is a role error rather
   than a palette one.

   A card's "Will invite" is a SELECTION STATE. The action on that screen is
   "Send N invites" in the dock, once, at the bottom. Painting a selection with
   the action colour put Burning Caviar on the same 280px card as the Fresh
   Rizzz spine marking the machine's pick — a hot gradient and a cool one,
   touching, which no palette survives. It also meant four or five orange
   blocks shouting at once on a screen with a single real commit.

   A selection reads as INVERTED: the card's own foreground becomes its fill.
   15.6:1, unmistakably chosen, no hue to clash with anything, and the one
   orange control on the screen keeps all of its meaning because it is now the
   only one.

   The rule generalises. Orange answers "press this to make something happen".
   It does not answer "this one is picked".
   ========================================================================== */
.btn--selected {
  background: var(--text);
  color: var(--page);
  border-color: var(--text);
}
.btn--selected:hover { background: var(--spotlight-white); }
@media (hover: none) { .btn--selected:hover { background: var(--text); } }
@media (forced-colors: active) {
  .btn--selected { background: Highlight; color: HighlightText; }
}

/* ==========================================================================
   CALENDAR — because <input type="date"> reads as a text field
   --------------------------------------------------------------------------
   Jack, 2026-10-18: "it should be a calendar dropdown that they select the
   date from, not asking them to put this in."

   He is right and the native control is the reason. On desktop it renders as
   "dd/mm/yyyy" with a small icon you have to find, which looks like something
   to TYPE INTO — on the one question in the flow that sets how long talent can
   see the job. A client who mistypes a month here posts a listing nobody sees.

   Inline rather than a dropdown, deliberately: this step asks exactly one
   thing, so a dropdown adds a click and hides the answer behind it. The
   calendar IS the question.
   ========================================================================== */
.cal { max-width: 21rem; }
.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s3);
}
.cal__month { font-size: var(--t-body); font-weight: var(--fw-semi); }
.cal__nav {
  width: 36px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cal__nav:hover { background: var(--sunken); }
.cal__nav[aria-disabled="true"] { color: var(--text-3); border-color: var(--line-soft); cursor: not-allowed; pointer-events: none; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow {
  text-align: center; font-size: var(--t-xs); color: var(--text-2);
  font-weight: var(--fw-semi);
  padding-bottom: var(--s2); letter-spacing: 0.04em;
}
.cal__day {
  aspect-ratio: 1; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--r-md);
  background: transparent; color: var(--text); cursor: pointer;
  font-size: var(--t-sm); font-variant-numeric: tabular-nums;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cal__day:hover { background: var(--sunken); }
.cal__day[aria-disabled="true"] { color: var(--text-3); opacity: 1; cursor: not-allowed; pointer-events: none; }
/* Selected is INVERTED, the same rule as .btn--selected: a selection is not
   an action, so it does not borrow the action colour. */
.cal__day[aria-pressed="true"] { background: var(--text); color: var(--page); font-weight: var(--fw-semi); }
/* The run of days the booking covers, when more than one. */
.cal__day--span { background: var(--sunken); border-color: var(--line-soft); }
.cal__day--empty { pointer-events: none; }
@media (hover: none) { .cal__day:hover, .cal__nav:hover { background: transparent; } }

/* ==========================================================================
   THE HEADLINE TYPES ITSELF
   --------------------------------------------------------------------------
   Jack: "What do you need? should be animated like text been typed."

   Per character, not a clip-path wipe: a wipe reveals both lines of a wrapped
   headline at once and reads as a transition, not as typing. Characters keep
   their layout position throughout, so nothing reflows and the phone's
   two-line wrap is unaffected.

   The gradient word is NOT split. background-clip: text clips a background to
   the text inside it, and wrapping each character in a span that sets its own
   opacity is the reliable way to break that. It lands as one unit, last —
   which is the better effect anyway: the machine's word arrives after the
   question.

   The full text is in the DOM from first paint. The animation only changes
   when characters become VISIBLE, so a screen reader, a thumbnail and a
   reduced-motion viewer all get the finished headline.
   ========================================================================== */
@keyframes tchar { from { opacity: 0; } to { opacity: 1; } }
@keyframes tword { from { opacity: 0; transform: translateY(0.12em); } to { opacity: 1; transform: none; } }

.typing .tchar { animation: tchar 1ms linear both; }
.typing .ai-text { animation: tword var(--dur) var(--ease-out) both; }

/* The caret, which is what makes it read as typing rather than as a fade. */
.typing::after {
  content: ""; display: inline-block;
  width: 0.06em; height: 0.78em; margin-left: 0.04em;
  background: var(--action-flat); vertical-align: -0.06em;
  animation: caret 640ms steps(1) infinite, caretout 1ms linear forwards;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes caretout { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .typing .tchar, .typing .ai-text { animation: none; opacity: 1; transform: none; }
  .typing::after { display: none; }
}

/* ==========================================================================
   PORTFOLIO TILES — placeholders that are still brand
   --------------------------------------------------------------------------
   Talent appeared as initials in a circle and the words "24 pieces of work".
   For a booking product, the work IS the persuasion, and showing none of it is
   the largest gap in the whole prototype.

   Real images are blocked on the portfolio image-rights decision (D2), so
   these are branded gradient tiles: varied angle and stop per index so a strip
   reads as four distinct pieces rather than four copies of one swatch. They
   are deliberately NOT photographs-with-a-blur — a placeholder that pretends
   to be an image invites nobody to replace it.
   ========================================================================== */
.folio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.folio__tile {
  aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
  background: var(--grad-caviar); background-size: 220% 220%;
}
.folio__tile:nth-child(2) { background-image: linear-gradient(-120deg, #663366 0%, #852837 30%, #ff9500 85%); background-position: 60% 20%; }
.folio__tile:nth-child(3) { background-image: linear-gradient(20deg, #852837 0%, #e95400 55%, #ffcb6b 100%); background-position: 20% 80%; }
.folio__tile:nth-child(4) { background-image: linear-gradient(-55deg, #272729 10%, #5c5c66 50%, #c2bab3 100%); }
.folio__more {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: var(--r-sm);
  border: 1px solid var(--line); color: var(--text-2);
  font-size: var(--t-xs); font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   BRAND SURFACES — warm gradients and the ambience, never on a control
   ========================================================================== */
.surface-caviar { background: var(--grad-caviar); color: var(--set-black); }
.surface-saffron { background: linear-gradient(-55deg, #663366 0%, #852837 14%, #ff9500 70%, #ffcb6b 100%); color: var(--set-black); }
.surface-ambience {
  background: var(--grad-ambience), var(--set-black);
  color: var(--text);
}
