/* Industries: big numbered parts (uses the tone variables only) */
.ind-num { display: block; font: 800 clamp(5.5rem, 13vw, 11rem)/.78 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--fg); margin: 0 0 .22em 0; user-select: none; }
.tone-ink .ind-num { -webkit-text-stroke-color: var(--sun); }
.section-head.center .ind-num { margin-inline: auto; }
@media (max-width: 700px) { .ind-num { -webkit-text-stroke-width: 1.5px; } }

/* Stand-apart ideas: ink tiles with a mono counter, on the orange section */
.tone-orange .grid { counter-reset: idea; }
.tone-orange .grid > .card { counter-increment: idea; --fg: var(--paper); --fg-2: #d3d9e1; --rule: rgba(251, 248, 243, .3); --rule-2: rgba(251, 248, 243, .4); background: var(--ink); color: var(--paper); border-color: var(--ink); padding-top: clamp(22px, 2.4vw, 32px); }
.tone-orange .grid > .card::before { content: '0' counter(idea); display: block; margin-bottom: 18px; font: 500 .74rem/1 var(--mono); letter-spacing: .08em; color: var(--sun); }
.tone-orange .grid > .card h3 { color: var(--paper); }
.tone-orange .grid > .card:hover { box-shadow: 8px 8px 0 var(--paper); }

/* First project: a lead paragraph, set big */
.split.top > .reveal > h2 + p { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; max-width: 44ch; }

/* Closing link strip */
.section-tight .wrap > p:first-child { font: 500 .8rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ───────── Worth calculator (data-worth; behaviour in site.js) ─────────
   What a problem costs today, from the visitor's own numbers. The sliders sit on the section's own tone, the figure on
   an inverted card (ink on paper or orange, paper on ink), so it works on all three tones. The two halves sit side by
   side when there is room for both and stack otherwise, whatever column the calculator is placed in. */
.worth { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; gap: clamp(18px, 2.4vw, 32px); margin: clamp(28px, 4vw, 48px) 0; }
.worth:first-child { margin-top: 0; }
.worth:last-child { margin-bottom: 0; }
.worth-in { flex: 1.3 1 340px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 2.4vw, 28px); padding: clamp(22px, 2.8vw, 34px); border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--surface); }
.tone-ink .worth-in { background: rgba(14, 27, 42, .6); }
.tone-orange .worth-in { background: transparent; border-color: var(--ink); }
.worth-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 1rem; }
.worth-label { grid-area: 1 / 1; font: 650 1rem/1.35 var(--body); color: var(--fg); }
.worth-val { grid-area: 1 / 2; padding: 6px 8px 5px; border-radius: 3px; background: var(--fg); color: var(--bg); font: 500 .86rem/1.1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center; }
.tone-orange .worth-val { color: var(--paper); }
/* The slider: the site's square thumb, with a fill and track that read on every tone */
.worth-field input[type="range"] { --worth-fill: var(--sun); --worth-track: rgba(14, 27, 42, .15); --worth-ring: var(--paper); grid-area: 2 / 1 / 3 / 3; margin-block: 12px 4px; background: linear-gradient(90deg, var(--worth-fill) var(--pct, 50%), var(--worth-track) var(--pct, 50%)); }
.tone-ink .worth-field input[type="range"] { --worth-track: rgba(251, 248, 243, .22); --worth-ring: var(--ink); }
.tone-orange .worth-field input[type="range"] { --worth-fill: var(--ink); --worth-track: rgba(14, 27, 42, .2); }
.worth-field input[type="range"]:focus { box-shadow: none; } /* the form fields' offset shadow; the focus-visible outline stays */
.worth-field input[type="range"]::-webkit-slider-thumb { background: var(--fg); border-color: var(--worth-ring); box-shadow: 0 0 0 1px var(--fg); }
.worth-field input[type="range"]::-moz-range-thumb { background: var(--fg); border-color: var(--worth-ring); box-shadow: 0 0 0 1px var(--fg); }
/* The figure */
.worth-out { --bg: var(--ink); --fg: var(--paper); --fg-2: #d9dee6; --mut: #9eabbd; --rule: rgba(251, 248, 243, .18); --accent: var(--amber); --focus: var(--amber);
  flex: 1 1 280px; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--bg); color: var(--fg); box-shadow: 10px 10px 0 var(--sun); }
.tone-ink .worth-out { --bg: var(--paper); --fg: var(--ink); --fg-2: #39424e; --mut: #59626e; --rule: rgba(14, 27, 42, .2); --accent: #b4470a; --focus: var(--ink); }
.tone-orange .worth-out { box-shadow: 10px 10px 0 var(--paper); }
.worth-out > * { margin: 0; }
.worth-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .4em; color: var(--fg); }
/* --worth-chars (site.js) is the length of the largest possible total, so that figure always fits the card */
.worth-big b { font: 700 clamp(2rem, min(16cqi, calc(175cqi / var(--worth-chars, 9))), 4.6rem)/.95 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--fg); }
.worth-unit { font: italic 400 clamp(1.35rem, 6.5cqi, 2rem)/1 var(--serif); letter-spacing: -.01em; color: var(--accent); }
.worth-sum { padding-top: 14px; border-top: 1px solid var(--rule); font: 500 .86rem/1.55 var(--mono); letter-spacing: .02em; color: var(--fg-2); }
.worth-note { margin-top: auto; font-size: .88rem; line-height: 1.5; color: var(--mut); }
@media (max-width: 600px) {
  .worth-out { box-shadow: 6px 6px 0 var(--sun); }
  .tone-orange .worth-out { box-shadow: 6px 6px 0 var(--paper); }
}
