/* Customer Cycle · polish (D9 A6) — hand-kept, loaded after the generated customer-cycle.css.
   Brings Espen's figures into the site's register: hairline strokes, light glass bands, quiet mono
   labels, small lit nodes (cf. the /workstreams ring and the GOS-03 answer figure). Paint only: no
   copy, no geometry, no timing (the --t / --dur / SMIL rules stay Espen's), no text below its size. */

/* The prototype's `.ring` (the SVG circle) also matches `section.ring` and `figure.ccf.ring`, so every
   label in units 2–3 and the GOS section inherited a 1.8px outline. Stop the inheritance there. */
.cc section.ring,
.cc figure.ring {
  stroke: none;
}

/* ── Type inside the figures: one step lighter, as the site's pills ── */
.cc .ccf .tn,
.cc .ccf .tws,
.cc .ccf .trec {
  font-weight: 500;
}
.cc .ccf .tn {
  fill: rgb(243 246 251 / 0.9);
}
.cc .ccf .tn.dim {
  fill: var(--faint);
}
.cc .ccf .tl,
.cc .ccf .tlane,
.cc .ccf .ttag {
  font-weight: 400;
}
.cc .ccf .tl {
  letter-spacing: 0.18em;
}
.cc .ccf .tl.u3 {
  letter-spacing: 0.1em;
}
.cc .ccf .tl.ice,
.cc .ccf .tl.sky {
  opacity: 0.88;
}
.cc .ccf .tlane {
  fill: rgb(243 246 251 / 0.4);
}

/* ── Lines: hairlines, the glow carries the weight ── */
.cc .ccf .ring {
  stroke: rgb(185 224 255 / 0.24);
  stroke-width: 1.4;
}
.cc .ccf .sline {
  stroke: rgb(185 224 255 / 0.28);
  stroke-width: 1.4;
}
.cc .ccf .bar {
  stroke-width: 3.5;
}
.cc .ccf .bar.n {
  stroke-width: 3;
}
.cc .ccf .loop {
  stroke-width: 1.6;
}
.cc .ccf .arcb {
  stroke-width: 4;
  opacity: 0.9;
}
.cc .ccf .arcb.n {
  stroke-width: 3;
}
.cc .ccf .u2line {
  stroke-width: 2.2;
}
.cc .ccf .u2line.n {
  stroke-width: 1.8;
}
.cc .ccf .u2glow {
  stroke: rgb(255 209 102 / 0.09);
  stroke-width: 10;
}
.cc .ccf .gcyc {
  stroke-width: 3;
}
.cc .ccf .gcyc.n {
  stroke-width: 2.4;
}
.cc .ccf .gglow {
  stroke: rgb(255 209 102 / 0.1);
  stroke-width: 12;
}
.cc .ccf .closer {
  stroke-width: 2.2;
}
.cc .ccf .tail {
  stroke-width: 2.2;
}
.cc .ccf .nextc {
  stroke-width: 1.8;
}
.cc .ccf .chev {
  stroke: rgb(185 224 255 / 0.32);
  stroke-width: 1.3;
}
.cc .ccf .link {
  stroke: rgb(185 224 255 / 0.36);
  stroke-width: 1.2;
}
.cc .ccf .drop {
  stroke: rgb(85 180 250 / 0.45);
}

/* ── Nodes: fine rings; the lit one is the only bright thing ── */
.cc .ccf .node,
.cc .ccf .rnode,
.cc .ccf .cnode {
  fill: var(--night);
  stroke: rgb(185 224 255 / 0.55);
  stroke-width: 1.5;
}
.cc .ccf .node.gapn {
  stroke: var(--faint);
}
.cc .ccf .rnode.lit {
  fill: var(--gold);
  stroke: var(--gold-hot);
  filter: drop-shadow(0 0 5px rgb(255 209 102 / 0.6));
}
.cc .ccf .rnode.next {
  stroke: var(--gold-hot);
}
.cc .ccf .u2dot {
  fill: var(--night);
  stroke-width: 1.2;
}

/* ── Unit 4: the workstreams are glass bands, not slabs ── */
.cc .ccf .wseg {
  stroke: rgb(85 180 250 / 0.2);
}
.cc .ccf .wlit {
  stroke: rgb(85 180 250 / 0.42);
}
.cc .ccf .tws.onb {
  fill: var(--paper);
  font-weight: 500;
}

/* ── Unit 5: records and workstreams as the site's cards ── */
.cc .ccf .rec rect,
.cc .ccf .wsb rect {
  fill: rgb(13 33 66 / 0.72);
  stroke-width: 1;
}
.cc .ccf .rec.grp rect {
  stroke: rgb(185 224 255 / 0.34);
}
.cc .ccf .rec.stg rect {
  stroke: rgb(255 209 102 / 0.72);
}
.cc .ccf .rec.plan rect {
  stroke: rgb(255 209 102 / 0.55);
}
.cc .ccf .wsb rect {
  stroke: rgb(85 180 250 / 0.4);
}
.cc .ccf .intent rect {
  fill: rgb(85 180 250 / 0.06);
  stroke: rgb(85 180 250 / 0.42);
  stroke-width: 1;
}
.cc .ccf .colhl {
  fill: rgb(85 180 250 / 0.07);
  stroke: rgb(185 224 255 / 0.14);
}
.cc .ccf .gapbox {
  fill: rgb(255 227 154 / 0.025);
  stroke: rgb(255 227 154 / 0.4);
  stroke-width: 1;
}

/* ── Replay: the site's control chip, under the figure's centre ── */
.cc .ccf .ctl {
  margin-top: 14px;
}
.cc .ring .ccf .ctl,
.cc .ws .ccf .ctl,
.cc .whole .ccf .ctl {
  justify-content: center;
}
.cc .ccf .ctl button,
.cc .ctl button.replay {
  min-height: 36px;
  padding: 0 14px;
  font: 500 12px / 1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--line-strong);
}
.cc .ccf .ctl button:hover {
  color: var(--paper);
  border-color: var(--ice);
}

/* ── The Growth OS section's button matches the site's secondary link weight ── */
.cc #customer-cycle .cc-go .btn {
  margin-top: 4px;
}

/* ── Fit · one unit, one screen (Espen, 29 Oct) ──────────────────────────────────────────────
   A unit fills the viewport and no more. Padding follows the screen height and clears the fixed masthead, the heading moves into
   the story column wherever the unit is two columns wide (the same widths as the stacking rules in
   customer-cycle.css), and the figure is capped at 88% of the screen height (Replay row included): about 17% below its
   old size on a 1440x800 screen, untouched on a tall one. The drawing scales down inside its box, so no
   geometry or timing changes. Phones and narrow windows keep the stacked layout, which scrolls. */
@media (min-width: 960px) and (min-height: 560px) {
  .cc {
    --pad: clamp(16px, 3svh, 36px);
    --figh: min(88svh, calc(100svh - var(--mast-h) - 2 * var(--pad)));
  }
  .cc .unit {
    box-sizing: border-box;
    min-height: 100svh;
    padding-block: calc(var(--mast-h) + var(--pad)) var(--pad);
    display: flex;
    align-items: center;
  }
  .cc .unit > .wrap { width: 100%; }
  .cc .ccf svg { max-height: calc(var(--figh) - 56px); } /* 56px = the Replay row under the drawing */
  .cc .whole .ccf svg { max-height: calc(100svh - var(--mast-h) - 2 * var(--pad) - 300px); }
}
@media (min-width: 960px) and (min-height: 560px) {
  .cc .u-figure.whole .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
    column-gap: clamp(32px, 4.4vw, 60px);
    row-gap: 24px;
    align-items: end;
  }
  .cc .u-figure.whole .row { display: contents; }
  .cc .u-figure.whole .u-head { grid-column: 1; grid-row: 1; }
  .cc .u-figure.whole .story { grid-column: 2; grid-row: 1; max-width: none; }
  .cc .u-figure.whole .obj { grid-column: 1 / -1; grid-row: 2; }
  .cc .u-figure.whole .u-title { font-size: clamp(1.9rem, 3vw, 2.6rem); }
}
@media (min-width: 1060px) and (min-height: 560px) {
  .cc .unit.ring:not(.whole) .wrap,
  .cc .unit.ws:not(.whole) .wrap { display: grid; column-gap: clamp(32px, 4.4vw, 60px); row-gap: 22px; align-items: center; }
  .cc .unit.ring:not(.whole) .row { display: contents; }
  .cc .unit.ring:not(.whole) .u-head { grid-row: 1; align-self: end; }
  .cc .unit.ring:not(.whole) .story { grid-row: 2; align-self: start; }
  .cc .unit.ring:not(.whole) .obj { grid-row: 1 / span 2; }
  .cc .unit.ring.u-split .wrap { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  .cc .unit.ring.u-split .u-head, .cc .unit.ring.u-split .story { grid-column: 1; }
  .cc .unit.ring.u-split .obj { grid-column: 2; }
  .cc .unit.ring.u-figure .wrap { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
  .cc .unit.ring.u-figure .u-head, .cc .unit.ring.u-figure .story { grid-column: 2; }
  .cc .unit.ring.u-figure .obj { grid-column: 1; }
  .cc .unit.ring .u-title { font-size: clamp(1.75rem, 2.6vw, 2.4rem); max-width: none; }
  .cc .unit.ring .u-title br { display: none; }
}
@media (min-width: 1200px) and (min-height: 560px) {
  .cc .unit.ws .row { display: contents; }
  .cc .unit.ws .wrap { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  .cc .unit.ws .u-head { grid-column: 1; grid-row: 1; align-self: end; }
  .cc .unit.ws .story { grid-column: 1; grid-row: 2; align-self: start; }
  .cc .unit.ws .obj { grid-column: 2; grid-row: 1 / span 2; }
  .cc .unit.ws .u-title { font-size: clamp(1.75rem, 2.6vw, 2.4rem); max-width: none; }
  .cc .unit.ws .u-title br { display: none; }
}
@media (min-width: 1330px) and (min-height: 560px) {
  .cc .unit.flow .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); column-gap: clamp(32px, 4.4vw, 60px); row-gap: 22px; align-items: center; }
  .cc .unit.flow .row { display: contents; }
  .cc .unit.flow .u-head { grid-column: 2; grid-row: 1; align-self: end; }
  .cc .unit.flow .story { grid-column: 2; grid-row: 2; align-self: start; max-width: none; }
  .cc .unit.flow .obj { grid-column: 1; grid-row: 1 / span 2; }
  .cc .unit.flow .u-title { font-size: clamp(1.75rem, 2.6vw, 2.4rem); max-width: none; }
  .cc .unit.flow .u-title br { display: none; }
}
/* Widths where a unit is still stacked (heading, story, then figure): the figure takes what is left of
   the screen, never below 240px, so a 1280x720 window shows one unit without a long scroll. */
@media (min-width: 960px) and (max-width: 1329px) and (min-height: 560px) {
  .cc .unit.flow .ccf svg { max-height: max(240px, calc(100svh - var(--mast-h) - 2 * var(--pad) - 380px)); }
}
@media (min-width: 960px) and (max-width: 1199px) and (min-height: 560px) {
  .cc .unit.ws .ccf svg { max-height: max(240px, calc(100svh - var(--mast-h) - 2 * var(--pad) - 440px)); }
}
@media (min-width: 960px) and (max-width: 1059px) and (min-height: 560px) {
  .cc .unit.ring .ccf svg { max-height: max(240px, calc(100svh - var(--mast-h) - 2 * var(--pad) - 350px)); }
}

/* ── Pause / Play (D9 OQ-A6-2, 8 Nov): one keyboard control per moving figure (WCAG 2.2.2) ──
   The figures' chip shares the Replay chip's rule above. The hero's is an icon in the beats bar,
   sized like Replay's; the script sets data-mode, and only the matching glyph shows. */
.cc .beats button.pause {
  color: var(--gold);
  padding: 0 12px;
}
.cc .beats button.pause svg {
  width: 16px;
  height: 16px;
  display: block;
}
.cc .beats button.pause .i-play,
.cc .beats button.pause[data-mode="play"] .i-pause {
  display: none;
}
.cc .beats button.pause[data-mode="play"] .i-play {
  display: inline;
}
