/* companies.css — DESIGN-VISION-MP flagship rework: swipe deck + collection.

   Presentation-layer elevation on the Cerebro DS. Function, data and
   behaviour unchanged — every JS hook (.is-dragging / .is-dismissing /
   data-swipe / --swipe-intensity / hidden / aria-*) is preserved verbatim.

   Proposed DS amendments implemented app-side (see LANE-REPORT-VISION.md §4):
   --c-type-display (36px display step beyond --c-type-metric 28px) and
   --c-shadow-card (deeper hero-surface elevation). They ride on page-scoped
   --v-* vars so nothing silently forks the token file. */

.companies-page {
  /* Proposed --c-type-display: 36px — the deck's headline step (company name,
     intro statement). One step above --c-type-metric so display moments stay
     distinct from data numerals. */
  --v-type-display: 36px;
  /* Proposed --c-shadow-card: three-layer hero elevation — top hairline
     highlight + deep ambient shadow + contact shadow. Composed in the DS's
     own idiom (alpha-black + white hairline), deeper than --c-shadow-panel. */
  --v-shadow-card: inset 0 1px 0 rgb(255 255 255 / .05), 0 24px 64px rgb(0 0 0 / .5), 0 6px 18px rgb(0 0 0 / .34);
  /* Shared card face: token-colour vertical light gradient over the .c-surface
     panel colour (background-image layers above the shorthand-set colour). */
  --v-card-face: linear-gradient(180deg, rgb(255 255 255 / .03), transparent 38%);
  overflow-x:clip;
}

/* Ambient canvas: cool top glow + faint lower-right info tint + edge vignette.
   All stops derive from token RGBs via color-mix; the vignette is the only
   literal (neutral black, same idiom as --c-backdrop). */
body {
  margin:0;
  background-color:var(--c-surface-canvas);
  background-image:
    radial-gradient(980px 470px at 50% -12%, color-mix(in srgb, var(--c-accent-base) 8%, transparent), transparent 72%),
    radial-gradient(880px 640px at 90% 112%, color-mix(in srgb, var(--c-status-info) 6%, transparent), transparent 74%),
    radial-gradient(132% 106% at 50% 42%, transparent 56%, rgb(0 0 0 / .4) 100%);
  background-attachment:fixed;
  font-synthesis:none;
}
.icon-library { position:absolute; width:0; height:0; overflow:hidden; }
.c-theme button { touch-action:manipulation; }
/* shared/shell.js still emits legacy class="icon" SVGs into .shell-header and
   .shell-dialog; styles.css used to paint them. Restated here on DS values —
   shell.css owns their sizes and loads after this file. */
.shell-header .icon, .shell-dialog .icon { fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.shell-dialog .icon { width:var(--c-size-icon); height:var(--c-size-icon); }

/* ---------- page header / surface tabs ---------- */
.company-navigation { display:flex; align-items:center; gap:var(--c-space-28); padding-block:var(--c-space-24) var(--c-space-28); }
/* Chrome title stays on the DS scale (metric 28, up from detail 21): content —
   the card's company name — owns the display step, not the chrome. */
.company-navigation h1 { font-size:var(--c-type-metric); letter-spacing:var(--c-track-title); font-weight:var(--c-weight-medium); text-wrap:balance; }
.company-navigation .surface-tabs { margin:0; }
#collection-toggle { margin-left:auto; }
#collection-toggle:disabled { opacity:.45; cursor:default; }

/* Surface tabs: cross-route nav pills — no DS primitive (these are links to
   other routes, not a tablist); page-owned on tokens, same as index.css.
   The well gets an inset shadow so the pill track reads as a recessed channel. */
.surface-tabs { display:flex; gap:var(--c-space-6); width:fit-content; padding:var(--c-space-4); margin-bottom:var(--c-space-20); background:var(--c-surface-well); border:1px solid var(--c-border-default); border-radius:var(--c-radius-round); box-shadow:inset 0 1px 3px rgb(0 0 0 / .35), inset 0 -1px 0 rgb(255 255 255 / .03); }
.surface-tabs a { min-width:72px; min-height:var(--c-size-control-large); display:grid; place-items:center; padding:0 var(--c-space-24); border-radius:var(--c-radius-round); text-decoration:none; color:var(--c-text-secondary); font-size:var(--c-type-body); transition:color var(--c-motion-fast) var(--c-motion-ease), background-color var(--c-motion-fast) var(--c-motion-ease), transform var(--c-motion-press) var(--c-motion-ease); }
.surface-tabs a[aria-current="page"] { background:var(--c-material-selected-face); color:var(--c-accent-text); box-shadow:inset 0 0 0 1px var(--c-accent-border); font-weight:var(--c-weight-semibold); }
@media (hover:hover) {
  .surface-tabs a:not([aria-current="page"]):hover { color:var(--c-text-primary); background:var(--c-surface-hover); }
  .surface-tabs a[aria-current="page"]:hover { color:var(--c-accent-text); }
}
@media (pointer:coarse) { .surface-tabs a { min-height:var(--c-size-touch); } }
/* Press dips the pill — ungated so touch gets feedback too. */
.surface-tabs a:active { transform:scale(.96); }

/* ---------- workspace layout (column geometry stays literal — page-owned) ---------- */
.company-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,468px); gap:70px; padding-top:var(--c-space-12); align-items:start; }

/* Discovery intro — the manifesto column. Display statement + ledger-style
   gesture guide + quiet footnote. */
.discovery-intro { padding-top:90px; }
.discovery-intro h2 { font-size:var(--v-type-display); letter-spacing:var(--c-track-title); font-weight:var(--c-weight-medium); line-height:var(--c-lh-tight); text-wrap:balance; }
.discovery-intro > p { font-size:var(--c-type-body); line-height:var(--c-lh-loose); color:var(--c-text-secondary); margin-top:var(--c-space-20); }
.gesture-guide { max-width:265px; margin-top:var(--c-space-40); border-top:1px solid var(--c-border-subtle); }
.gesture-guide p { display:flex; align-items:center; gap:var(--c-space-12); padding:var(--c-space-14) 0; border-bottom:1px solid var(--c-border-default); font-size:var(--c-type-meta); color:var(--c-text-secondary); }
.gesture-guide .c-icon { width:17px; height:17px; color:var(--c-text-muted); }
.gesture-guide strong { margin-left:auto; font-size:var(--c-type-label); color:var(--c-text-primary); font-weight:var(--c-weight-medium); letter-spacing:var(--c-track-title); }
.discovery-intro .intro-footnote { font-size:var(--c-type-meta); color:var(--c-text-muted); margin-top:var(--c-space-24); line-height:var(--c-lh-loose); }

/* ---------- deck ---------- */
.company-deck { min-width:0; }
.deck-meta { display:flex; justify-content:space-between; align-items:baseline; gap:var(--c-space-12); padding:0 var(--c-space-4) var(--c-space-14); }
#deck-heading { font-size:var(--c-type-meta); letter-spacing:var(--c-track-eyebrow); color:var(--c-text-muted); }
#deck-position { font-variant-numeric:tabular-nums; color:var(--c-text-primary); font-size:var(--c-type-body); letter-spacing:var(--c-track-eyebrow); }
#deck-position span { color:var(--c-text-muted); }
/* Deck progress: a 2px silver-edged rule that fills with decisions made —
   scaleX transform only, token-driven, dies with reduced-motion. */
.deck-progress { height:2px; margin:0 var(--c-space-4) var(--c-space-16); background:var(--c-border-subtle); border-radius:var(--c-radius-small); overflow:hidden; }
.deck-progress span { display:block; height:100%; background:var(--c-material-silver-edge); border-radius:inherit; transform:scaleX(0); transform-origin:0 50%; transition:transform var(--c-motion-switch) var(--c-motion-ease); }
.deck-stage { position:relative; isolation:isolate; }
/* Initial-load skeleton: mirrors the card's 16:9 photo + text lines AND its
   elevation, so the 400ms minimum display + crossfade swaps without the
   shadow popping in late. */
.deck-skel { position:absolute; inset:0; z-index:1; border:1px solid var(--c-border-default); border-radius:var(--c-radius-panel); background:var(--c-surface-panel); box-shadow:var(--v-shadow-card); background-image:var(--v-card-face); overflow:hidden; }
.deck-skel-content { padding:var(--c-space-20) var(--c-space-24); display:grid; gap:var(--c-space-12); }
.deck-skel-content .c-skeleton { height:12px; }
.stack-sheet { position:absolute; inset:0; border:1px solid var(--c-border-default); background:var(--c-surface-raised); border-radius:var(--c-radius-panel); pointer-events:none; transform-origin:center top; box-shadow:0 -10px 26px rgb(0 0 0 / .4); }
.stack-sheet-back { transform:translateY(-13px) scale(.93); z-index:-2; }
.stack-sheet-front { transform:translateY(-7px) scale(.966); z-index:-1; background:var(--c-surface-overlay); }
.deck-stage[data-remaining="1"] .stack-sheet, .deck-stage[data-remaining="0"] .stack-sheet { display:none; }
.deck-stage[data-remaining="2"] .stack-sheet-back { display:none; }

/* Deck card: .c-surface supplies panel bg/border/radius; overflow:hidden clips
   the photo frame and footer link to the panel radius. Elevation comes from
   --v-shadow-card + the shared card-face gradient. */
.company-card { padding:0; position:relative; overflow:hidden; touch-action:pan-y pinch-zoom; transform-origin:50% 80%; transition:transform var(--c-motion-switch) var(--c-motion-ease), opacity var(--c-motion-fast) var(--c-motion-ease); box-shadow:var(--v-shadow-card); background-image:var(--v-card-face); }
.company-card.is-dragging { transition:none; cursor:grabbing; -webkit-user-select:none; user-select:none; }
.company-card.is-dismissing { pointer-events:none; }

/* Canonical company photo: .c-skel-frame + .c-ratio-16x9 reserves the box
   (source images are 1672×941 ≈ 16:9 — cover crops almost nothing),
   .c-skeleton shimmer holds until .c-skel-content.is-loaded fades in.
   Art direction: a two-zone scrim — a top zone that quietly supports the
   chips, a clear middle that lets the photograph breathe, and a bottom
   zone that carries the name. */
.company-photo { isolation:isolate; }
.company-photo::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgb(0 0 0 / .4) 0%, rgb(0 0 0 / .1) 15%, transparent 30%), linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .38) 71%, rgb(0 0 0 / .93) 100%); pointer-events:none; }
.company-photo .c-skel-content { object-position:center 46%; }
/* Media "develops": the image fades in while settling from a slight scale —
   opacity transition is preserved from skeleton.css, transform added here. */
.company-photo .c-skel-content, .collected-photo .c-skel-content { transform:scale(1.05); transition:opacity var(--c-motion-fast) ease, transform .8s var(--c-motion-ease); }
.company-photo .c-skel-content.is-loaded, .collected-photo .c-skel-content.is-loaded { transform:scale(1); }
.photo-labels { position:absolute; z-index:1; inset:var(--c-space-14) var(--c-space-16) auto; display:flex; justify-content:space-between; align-items:start; gap:var(--c-space-12); }
.photo-labels span { padding:5px 9px; background:rgb(0 0 0 / .4); -webkit-backdrop-filter:blur(10px) saturate(1.15); backdrop-filter:blur(10px) saturate(1.15); border:1px solid rgb(255 255 255 / .13); border-radius:var(--c-radius-control); color:var(--c-text-primary); font-size:var(--c-type-meta); letter-spacing:var(--c-track-title); }
.company-photo-heading { position:absolute; z-index:1; inset:auto var(--c-space-24) var(--c-space-20); color:var(--c-text-primary); }
.company-location { font-size:var(--c-type-meta); color:var(--c-text-primary); margin-bottom:var(--c-space-6); letter-spacing:var(--c-track-eyebrow); }
/* The card's name is the deck's display moment — proposed 36px step. */
.company-card h2 { font-size:var(--v-type-display); font-weight:var(--c-weight-medium); letter-spacing:var(--c-track-title); line-height:var(--c-lh-tight); text-wrap:balance; }
.company-tagline { font-size:var(--c-type-body); color:var(--c-text-primary); margin-top:var(--c-space-8); line-height:var(--c-lh-base); }
.company-card-content { padding:var(--c-space-16) var(--c-space-24) 0; }
.company-route { margin-top:0; padding-top:0; }
.route-caption, .facts-caption { color:var(--c-text-muted); font-size:var(--c-type-meta); letter-spacing:var(--c-track-eyebrow); margin-bottom:var(--c-space-8); }
.region-names { display:flex; justify-content:space-between; gap:var(--c-space-12); align-items:center; }
.region-names strong { font-size:var(--c-type-metric); font-weight:var(--c-weight-medium); letter-spacing:var(--c-track-title); }
.region-names .c-icon { width:24px; height:24px; color:var(--c-text-secondary); }
.company-route-line { display:block; width:100%; height:var(--c-space-12); margin-block:3px 5px; overflow:visible; }
.company-route-line path { stroke:var(--c-text-secondary); stroke-width:1; fill:none; }
.company-route-line .route-tick { stroke:var(--c-text-muted); }
.region-detail { display:flex; justify-content:space-between; gap:var(--c-space-14); color:var(--c-text-secondary); font-size:var(--c-type-meta); }
.company-facts { margin-top:var(--c-space-12); padding-block:var(--c-space-14); border-block:1px solid var(--c-border-subtle); }
.fact-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--c-space-16); margin:0; }
.fact-columns > div { min-width:0; }
.fact-columns dt { font-size:var(--c-type-meta); color:var(--c-text-secondary); margin-bottom:var(--c-space-6); line-height:var(--c-lh-tight); }
/* Fleet numbers are the decision data — promoted to the metric step with
   tabular figures so the three columns align like instruments. */
.fact-columns dd { margin:0; font-size:var(--c-type-metric); line-height:1.25; font-weight:var(--c-weight-medium); font-variant-numeric:tabular-nums; letter-spacing:var(--c-track-title); }
.fact-columns dd span { font-size:var(--c-type-meta); color:var(--c-text-secondary); margin-left:3px; font-weight:var(--c-weight-regular); }
.fact-columns.text-facts dd { font-size:var(--c-type-panel); font-weight:var(--c-weight-regular); }
/* "What they want" is the card's emotional hook — set apart as a quiet inset
   panel so it reads as a considered statement, not another spec row. */
.company-seeking { margin-top:var(--c-space-12); padding:var(--c-space-14) var(--c-space-16); background:var(--c-surface-well); border:1px solid var(--c-border-subtle); border-radius:var(--c-radius-group); }
.company-seeking > span { display:block; color:var(--c-text-muted); font-size:var(--c-type-meta); letter-spacing:var(--c-track-eyebrow); margin-bottom:var(--c-space-6); }
.company-seeking p { font-size:var(--c-type-body); line-height:var(--c-lh-loose); text-wrap:pretty; }

/* Card details: .c-disclosure owns chrome/behavior (ds.js toggles
   aria-expanded/data-open/inert); page rule softens the well box so it sits
   inside the card without a second heavy frame. */
.company-details { margin-top:var(--c-space-12); }
.company-details .c-disclosure { background:transparent; border-color:var(--c-border-subtle); }
.company-details-inner { padding:0 var(--c-space-12) var(--c-space-12); }
.company-details-inner dl { margin:0; }
.company-details-inner dl > div { padding-block:var(--c-space-12); display:grid; grid-template-columns:5em 1fr; gap:var(--c-space-16); border-top:1px solid var(--c-border-subtle); font-size:var(--c-type-label); line-height:var(--c-lh-loose); }
.company-details-inner dt { color:var(--c-text-secondary); }
.company-details-inner dd { margin:0; }
.company-message { padding-top:var(--c-space-16); color:var(--c-text-secondary); font-size:var(--c-type-label); line-height:var(--c-lh-loose); }
.company-chat-link { margin-top:var(--c-space-8); }

/* Card footer link: bleeds to the card edges (negative inline margins track
   the content padding), clipped to the panel radius by .company-card overflow.
   The chevron nudges on hover — same grammar as .c-link's icon nudge. */
.company-profile-link { display:flex; align-items:center; justify-content:space-between; gap:var(--c-space-12); min-height:var(--c-size-touch); margin:var(--c-space-8) calc(-1 * var(--c-space-24)) 0; padding:var(--c-space-14) var(--c-space-24); border-top:1px solid var(--c-border-subtle); color:var(--c-text-primary); text-decoration:none; font-size:var(--c-type-label); transition:background-color var(--c-motion-fast) var(--c-motion-ease), color var(--c-motion-fast) var(--c-motion-ease); }
.company-profile-link .c-icon { width:var(--c-size-icon-small); height:var(--c-size-icon-small); transition:transform var(--c-motion-fast) var(--c-motion-ease); }
.collected-company .company-profile-link { margin-inline:calc(-1 * var(--c-space-24)); padding-inline:var(--c-space-24); }
/* Inset focus ring: the link bleeds to the card edges inside the
   overflow:hidden panels, so the DS +3px-offset ring clips on three sides.
   -3px mirrors the .c-list-row inset; ID-scoped because the generic
   :focus-visible rule in components.css outranks a bare class selector. */
#company-card .company-profile-link:focus-visible,
#company-collection .company-profile-link:focus-visible { outline-offset:-3px; }
/* R5: .collection-return is the last child of .collected-company, whose
   padding-bottom is 0 — the button's bottom edge sits flush on the card's
   clip boundary, so the +3px ring lost its lower segment. Same inset fix;
   ID-scoped for the same specificity reason. */
#company-collection .collection-return:focus-visible { outline-offset:-3px; }

/* Swipe stamps — gesture affordance. Opacity tracks --swipe-intensity; scale
   and rotation now answer the drag too, so the stamp "charges" physically. */
.swipe-stamp { position:absolute; top:var(--c-space-16); z-index:2; padding:8px 13px; color:var(--c-text-on-silver); background:var(--c-text-primary); border-radius:var(--c-radius-group); font-size:var(--c-type-panel); font-weight:var(--c-weight-semibold); letter-spacing:var(--c-track-title); opacity:0; pointer-events:none; box-shadow:0 6px 22px rgb(0 0 0 / .45); }
.stamp-like { left:var(--c-space-20); rotate:-8deg; }
.stamp-pass { right:var(--c-space-20); rotate:8deg; }
.company-card[data-swipe="like"] .stamp-like, .company-card[data-swipe="pass"] .stamp-pass { opacity:var(--swipe-intensity,0); }
.company-card[data-swipe="like"] .stamp-like { scale:calc(.88 + var(--swipe-intensity,0) * .14); }
.company-card[data-swipe="pass"] .stamp-pass { scale:calc(.88 + var(--swipe-intensity,0) * .14); }

/* Deck action buttons — bespoke gesture controls (circle + label), page-owned.
   Focus ring stays on the circle via the DS --c-accent-focus token. Circles get
   a lit top edge + contact shadow so they read as physical keys, not outlines. */
.deck-actions { display:flex; justify-content:center; align-items:flex-start; gap:var(--c-space-32); margin-top:var(--c-space-24); }
/* border/background reset: the visible control is .action-circle — without
   it the UA buttonface box + outset border renders around circle + label. */
.deck-action { display:flex; flex-direction:column; align-items:center; gap:var(--c-space-10); padding:0; border:0; background:none; font-size:var(--c-type-label); color:var(--c-text-secondary); transition:color var(--c-motion-fast) var(--c-motion-ease); }
.action-circle { display:grid; place-items:center; width:62px; height:62px; border:1px solid var(--c-border-strong); border-radius:50%; background:linear-gradient(180deg, var(--c-surface-overlay), var(--c-surface-raised)); color:var(--c-text-primary); box-shadow:inset 0 1px 0 rgb(255 255 255 / .06), 0 8px 20px rgb(0 0 0 / .4); transition:transform var(--c-motion-press) var(--c-motion-ease), background-color var(--c-motion-fast) var(--c-motion-ease), border-color var(--c-motion-fast) var(--c-motion-ease), box-shadow var(--c-motion-fast) var(--c-motion-ease); }
.action-circle .c-icon { width:25px; height:25px; }
/* Like = the deck's commitment action → DS silver material stack (same
   layers as .c-btn[data-variant=primary]). */
.like-action .action-circle { border-color:transparent; color:var(--c-text-on-silver); background-color:var(--c-accent-base); background-image:var(--c-material-silver-brush),var(--c-material-silver-face),var(--c-material-silver-edge); background-origin:padding-box,padding-box,border-box; background-clip:padding-box,padding-box,border-box; box-shadow:var(--c-shadow-silver); }
.undo-action { margin-top:var(--c-space-8); }
.undo-action .action-circle { width:var(--c-size-touch); height:var(--c-size-touch); background:transparent; border-color:var(--c-border-strong); box-shadow:none; }
.undo-action .c-icon { width:19px; height:19px; }
#discover-view .deck-action:focus-visible { outline:none; }
.deck-action:focus-visible .action-circle { outline:2px solid var(--c-accent-focus); outline-offset:3px; }
.deck-action:disabled { cursor:default; opacity:.35; }
/* Press feedback is ungated so touch pointers feel the key going down too. */
.deck-action:not(:disabled):active .action-circle { transform:translateY(1px) scale(.94); }
.swipe-hint { text-align:center; color:var(--c-text-muted); font-size:var(--c-type-meta); line-height:var(--c-lh-loose); margin-top:var(--c-space-16); }
.keyboard-hint { display:block; font-size:var(--c-type-meta); margin-top:var(--c-space-2); }
.action-status { min-height:22px; margin-top:var(--c-space-16); color:var(--c-text-secondary); font-size:var(--c-type-label); text-align:center; line-height:var(--c-lh-loose); }
.storage-notice { color:var(--c-text-secondary); font-size:var(--c-type-label); padding-top:var(--c-space-10); text-align:center; }

/* deck-complete: replaces the card, so it inherits the card's elevation.
   The check mark pops with a soft overshoot — a small ceremony for a
   finished pass through the deck. */
.deck-complete { padding:var(--c-space-48) var(--c-space-24); min-height:450px; text-align:center; animation:c-enter var(--c-motion-switch) var(--c-motion-ease) both; box-shadow:var(--v-shadow-card); background-image:var(--v-card-face); }
@keyframes v-pop { 0% { transform:scale(.4); opacity:0; } 62% { transform:scale(1.09); opacity:1; } 100% { transform:scale(1); opacity:1; } }
.complete-mark { display:grid; place-items:center; width:var(--c-space-48); height:var(--c-space-48); border:1px solid var(--c-border-strong); border-radius:50%; margin:0 auto var(--c-space-24); background:var(--c-surface-well); color:var(--c-accent-text); animation:v-pop var(--c-motion-switch) var(--c-motion-ease) both; }
.complete-mark .c-icon { width:20px; height:20px; }
.deck-complete h2 { font-size:var(--v-type-display); font-weight:var(--c-weight-medium); letter-spacing:var(--c-track-title); }
.deck-complete > p { color:var(--c-text-secondary); font-size:var(--c-type-body); line-height:var(--c-lh-loose); margin-top:var(--c-space-16); }
#view-collection { margin-top:var(--c-space-32); }
#revisit-skipped { display:flex; width:fit-content; margin:var(--c-space-10) auto 0; }

/* ---------- collection view ---------- */
.collection-view { padding-block:var(--c-space-14); }
.collection-heading { display:flex; justify-content:space-between; align-items:center; gap:var(--c-space-16); }
.collection-heading h2 { font-size:var(--c-type-metric); font-weight:var(--c-weight-medium); letter-spacing:var(--c-track-title); }
.collection-description { color:var(--c-text-secondary); font-size:var(--c-type-label); margin-block:var(--c-space-8) var(--c-space-24); }
.company-collection { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--c-space-16); align-items:start; }
/* .c-stagger (motion.css M-2) replaces the hand-rolled nth-child delays:
   same c-enter keyframes, ≤48ms/item, capped at 8. */
/* Collected cards now carry real chrome (c-surface class added in markup +
   the same elevation language as the deck card). */
.collected-company { padding:var(--c-space-24) var(--c-space-24) 0; overflow:hidden; box-shadow:var(--v-shadow-card); background-image:var(--v-card-face); }
/* Canonical photo frame — same .c-skel-frame/.c-ratio-16x9 spec as the deck;
   bleeds to the card edges like the legacy cover strip. */
.collected-photo { width:calc(100% + var(--c-space-48)); margin:calc(-1 * var(--c-space-24)) calc(-1 * var(--c-space-24)) var(--c-space-20); }
.collected-topline { display:flex; justify-content:space-between; gap:var(--c-space-12); margin-bottom:var(--c-space-16); font-size:var(--c-type-meta); color:var(--c-text-secondary); letter-spacing:var(--c-track-title); }
.collected-company h3 { font-size:var(--c-type-metric); font-weight:var(--c-weight-medium); letter-spacing:var(--c-track-title); margin:0 0 var(--c-space-10); }
.collected-route { color:var(--c-text-secondary); font-size:var(--c-type-label); }
.collected-company > p { font-size:var(--c-type-body); line-height:var(--c-lh-loose); margin-block:var(--c-space-20); }
.collected-company > .collected-facts { color:var(--c-text-secondary); font-size:var(--c-type-meta); margin-block:var(--c-space-14); }
.collection-return { display:flex; align-items:center; gap:var(--c-space-8); padding-block:var(--c-space-14); margin-top:var(--c-space-8); width:100%; min-height:var(--c-size-touch); border-top:1px solid var(--c-border-subtle); background:none; border-left:0; border-right:0; border-bottom:0; color:var(--c-text-secondary); font-size:var(--c-type-meta); text-align:left; transition:background-color var(--c-motion-fast) var(--c-motion-ease), color var(--c-motion-fast) var(--c-motion-ease); }
.collection-return .c-icon { width:var(--c-size-icon); height:var(--c-size-icon); transition:transform var(--c-motion-fast) var(--c-motion-ease); }
#discover-view, #collection-view { animation:c-enter var(--c-motion-switch) var(--c-motion-ease) both; }
#decision-error { margin-block:var(--c-space-14); }

/* ---------- hover affordances (pointer-gated per DS A4) ---------- */
@media (hover:hover) {
  .company-card { cursor:grab; }
  .deck-action:not(:disabled):hover { color:var(--c-text-primary); }
  .deck-action:not(:disabled):hover .action-circle { border-color:var(--c-text-primary); transform:translateY(-2px); box-shadow:inset 0 1px 0 rgb(255 255 255 / .08), 0 12px 26px rgb(0 0 0 / .48); }
  .like-action:not(:disabled):hover .action-circle { background-image:var(--c-material-silver-brush),var(--c-material-silver-hover),var(--c-material-silver-edge); }
  .undo-action:not(:disabled):hover .action-circle { background:var(--c-surface-hover); }
  .collection-return:hover { color:var(--c-text-primary); background:var(--c-surface-hover); }
  .collection-return:hover .c-icon { transform:translateX(-2px); }
  .company-profile-link:hover { background:var(--c-surface-hover); }
  .company-profile-link:hover .c-icon { transform:translateX(3px); }
}

/* ---------- responsive ---------- */
@media (max-width:820px) {
  .company-workspace { display:block; padding-top:0; }
  .discovery-intro { display:none; }
  .company-deck { width:min(100%,468px); margin-inline:auto; }
  .company-collection { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .company-navigation { padding-block:var(--c-space-16) var(--c-space-20); gap:var(--c-space-12); }
  .company-navigation h1 { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .deck-meta { padding-bottom:var(--c-space-12); }
  .deck-progress { margin-bottom:var(--c-space-16); }
  .deck-skel-content { padding:var(--c-space-14) var(--c-space-20); }
  .company-photo-heading { inset:auto var(--c-space-20) var(--c-space-16); }
  .company-card h2 { font-size:32px; }
  .company-card-content { padding:var(--c-space-14) var(--c-space-20) 0; }
  .company-tagline { font-size:var(--c-type-meta); }
  .fact-columns { gap:var(--c-space-10); }
  .fact-columns dd { font-size:var(--c-type-detail); }
  .deck-actions { margin-top:var(--c-space-20); gap:var(--c-space-24); }
  .action-circle { width:58px; height:58px; }
  .swipe-hint { margin-top:var(--c-space-14); }
  .keyboard-hint { display:none; }
  .action-status { margin-top:var(--c-space-12); font-size:var(--c-type-meta); }
  .companies-page .shell-footer { padding-top:var(--c-space-20); }
}
@media (max-width:360px) {
  .company-card h2 { font-size:30px; }
}

/* ============================ R2 brush-up ============================
   The deck card's route line drifts — the same dash grammar index,
   company detail, case and home already use. Round 1 unified the grammar
   on the detail surfaces but missed the deck, the flagship's front door;
   tracing "arrive → decide" shows the card's route is the first ambient
   detail the eye lands on after the photo. Deck grammar otherwise held
   under interaction tracing (see LANE-REPORT-VISION-R2 §3). */
@keyframes v-route-drift { to { stroke-dashoffset:-16; } }
.company-route-line path:first-of-type { stroke-dasharray:2 6; animation:v-route-drift 9s linear infinite; }
