/* hvck labs landing v14: the enterprise builder's additions (v14/DIRECTION.md items 1, 2, 5, 8). Loaded after
   css/hero.css and css/film.css. Every rule is scoped to the enterprise ([data-for="teams"]); B2C is untouched.
   1. The tiles: no hostname chip; a quiet V mark top right (ink on paper, orange on hover and focus).
   2. The enterprise heroes, ?ehero=1|2|3 (<html data-ehero>, set before paint; 0 = the old hero under an explicit ?hero):
      1 "the console": B kept; the category line and the proof row inside the headline cell, the film top right.
      2 "the split" (the default): the text left, the film big top right with dc01 and the action under it, the other
         seven links a calm two-row index across the bottom. Runs on data-hero="e" (wire routes: js/v12.js HERO.e).
      3 "the index": C's calm rows on the right, the film as the first, big row; the text left.
   3. #clock, "Is your team ready?": CQURE's engagement numbers, the question, the CTA. */

/* ============================================================================================ 1. the tiles */
[data-for="teams"] .pc:not(.pc-film) > .pc-h { display: none; }
[data-for="teams"] .pc:not(.pc-film)::before { content: ''; position: absolute; top: 16px; right: 16px; z-index: 2; width: 18px; height: 18px;
  background: rgb(var(--rgb) / 30%); -webkit-mask: var(--vnode-u) center / contain no-repeat; mask: var(--vnode-u) center / contain no-repeat;
  transition: background-color .22s var(--ease); pointer-events: none; }
[data-for="teams"] .pc:not(.pc-film):is(:hover, :focus-visible, .hot)::before { background: var(--o); }
[data-for="teams"] .pc.p-dc:not(.pc-film)::before { background: rgb(var(--k-rgb) / 46%); }
[data-for="teams"] .pc.p-dc:not(.pc-film):is(:hover, :focus-visible, .hot)::before { background: var(--o); }
[data-for="teams"] .p-o::before { display: block !important; }
/* with the chip gone, dc01's toggle takes the chip's place, and the big tiles' drawings sit a little higher */
[data-for="teams"] .p-dc .dc-sw { top: 20px; }
[data-for="teams"]:not([data-hero="c"]) #domain > .pc-lt > .pc-rec { top: 44px; right: 48px; }
[data-for="teams"]:not([data-hero="c"]) #domain > .pc-lt > .pc-rt { top: 40px; }
@media (max-width: 900px) { [data-for="teams"] .p-dc .dc-sw { top: 14px; } [data-for="teams"] .pc:not(.pc-film)::before { top: 12px; right: 12px; width: 16px; height: 16px; } }
@media (prefers-reduced-motion: reduce) { [data-for="teams"] .pc::before { transition: none; } }

/* ============================================================================================ 2. shared by the three heroes */
/* the film takes fs01's slot (the FAQ stays in the overlay menu and the footer); the old one-line description goes */
[data-for="teams"]:not([data-ehero="0"]) #domain > .pc-lt.p-fs { display: none; }
[data-for="teams"][data-ehero="0"] #domain > .pc-ef, [data-for="teams"][data-ehero="0"] .hero .ecat, [data-for="teams"][data-ehero="0"] .hero .eproof { display: none; }
[data-for="teams"]:not([data-ehero="0"]) .hero-bot .lede { display: none; }
#domain > .pc-ef { background: #0E0E0E; box-shadow: inset 0 0 0 1px var(--tile-line); overflow: hidden; }
/* the preview is 4:3; a wider or taller tile letterboxes it on the film's own black instead of cropping the lab */
#domain > .pc-ef .hv-film-v, #domain > .pc-ef .ef-fb img { object-fit: contain; background: #0E0E0E; }
/* the film tile before js/film.js mounts it: the poster, a play key and the words */
.ef-fb { position: absolute; inset: 0; display: block; color: var(--ink); }
.ef-fb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ef-fb span { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 0 12px 0 0; height: 36px; background: var(--paper);
  font-size: 15px; font-weight: 580; font-stretch: 106%; }
.ef-fb span::before { content: ''; width: 36px; height: 36px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 2.5v9l7.5-4.5z' fill='%23F4F2EE'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* the category line, the sub-line, the proof row */
.ecat { font-size: var(--t-h4); font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
[data-for="teams"]:not([data-ehero="0"]) .hero-bot .lede-h { font-size: var(--t-lede); font-weight: 500; font-stretch: 100%; letter-spacing: 0; line-height: 1.45; color: var(--dim); max-width: none; margin: 0; }
[data-for="teams"]:not([data-ehero="0"]) .hero-bot .lede-h .grey { color: var(--dim); }
.eproof ul { display: flex; flex-wrap: wrap; }
.eproof li { display: flex; flex-direction: column; gap: 6px; padding: 12px 28px 0 0; margin-right: 28px; box-shadow: inset -1px 0 0 var(--tile-line); }
.eproof li:last-child { margin-right: 0; padding-right: 0; box-shadow: none; }
.eproof b { font-size: clamp(26px, 2.3vw, 34px); font-weight: 600; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.eproof li span { font-size: var(--t-label); line-height: 1.3; color: var(--dim); white-space: nowrap; }
.ep-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 14px; }
.ep-src .mono { color: var(--faint); white-space: nowrap; }
.etrust { font-size: var(--t-small); line-height: 1.4; color: var(--dim); }
.eproof { border-top: 1px solid var(--tile-line); }

/* ============================================================================================ 2.1 ehero 1, the console */
[data-ehero="1"] .etrust { display: none; }
@media (min-width: 901px) {
  [data-for="teams"][data-ehero="1"] .p-fs { grid-area: 1 / 5 / 2 / 7; }
  [data-for="teams"][data-ehero="1"] .p-cm { grid-area: 4 / 4 / 5 / 5; }
  [data-for="teams"][data-ehero="1"] #domain > .p-cm > .pc-art { display: none; }
  [data-for="teams"][data-ehero="1"] #domain > .p-cm .pc-t { font-size: clamp(14px, 1.1vw, 16px); font-weight: 580; font-stretch: 106%; letter-spacing: -0.01em; }
  [data-for="teams"][data-ehero="1"] .hero-bot { grid-template-columns: minmax(0, 1fr) auto; gap: 0 32px; }
  [data-for="teams"][data-ehero="1"] .hero-bot > * { grid-column: 1 / -1; }
  [data-for="teams"][data-ehero="1"] .hero-bot .ecat { grid-row: 1; margin: 0 0 4px; }
  [data-for="teams"][data-ehero="1"] .hero-bot .lede-h { grid-row: 2; margin: 0 0 18px; }
  [data-for="teams"][data-ehero="1"] .hero-bot .eproof { grid-row: 3; grid-column: 1; width: auto; }
  [data-for="teams"][data-ehero="1"] .hero-bot .acts[data-show="teams"] { grid-row: 1 / 3; grid-column: 2; align-self: end; margin: 0 0 18px; }
  [data-for="teams"][data-ehero="1"] .hero-bot .lede-h { grid-column: 1; }
  [data-for="teams"][data-ehero="1"] .hero-bot .ecat { grid-column: 1; }
}

/* ============================================================================================ 2.2 ehero 2, the split
   twelve columns: the text over columns 1-6 (rows 1-3), the film 7-12 (rows 1-2), dc01 | the action under it; a 4px
   spacer row makes the channel kali01 sits in; then the index, four columns by two rows:
     cm x fw sw / sql ca ws -                                                                                    */
@media (min-width: 901px) {
  [data-hero="e"] .hero { --b-l: max(var(--gut), (100% - var(--max)) / 2); --e-ix: clamp(48px, 6.4vh, 58px);
    --e-th: calc(var(--hg) - 2 * var(--e-ix) - 4px - 3 * var(--g)); }
  [data-hero="e"] .hero .domain { left: var(--b-l); right: var(--b-l); column-gap: var(--g); row-gap: var(--g);
    grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr 1fr minmax(0, .62fr) 4px var(--e-ix) var(--e-ix); }
  [data-hero="e"] .p-fs { grid-area: 1 / 7 / 3 / 13; }
  [data-hero="e"] .p-dc { grid-area: 3 / 7 / 4 / 10; }
  [data-hero="e"] .p-o { grid-area: 3 / 10 / 4 / 13; }
  [data-hero="e"] .p-cm { grid-area: 5 / 1 / 6 / 4; } [data-hero="e"] .p-x { grid-area: 5 / 4 / 6 / 7; }
  [data-hero="e"] .p-fw { grid-area: 5 / 7 / 6 / 10; } [data-hero="e"] .p-sw { grid-area: 5 / 10 / 6 / 13; }
  [data-hero="e"] .p-sql { grid-area: 6 / 1 / 7 / 4; } [data-hero="e"] .p-ca { grid-area: 6 / 4 / 7 / 7; } [data-hero="e"] .p-ws { grid-area: 6 / 7 / 7 / 10; }
  [data-hero="e"] .p-sql, [data-hero="e"] .p-ca, [data-hero="e"] .p-ws { margin-top: calc(var(--g) * -1); }
  /* kali01 where the text, dc01 and the index meet; its label one line, left of it in the channel */
  [data-hero="e"] .k01 { grid-area: 4 / 7 / 5 / 8; align-self: center; justify-self: start; margin: 0 0 0 calc(var(--g) * -.5 - 7px); }
  [data-hero="e"] .k01-say { left: auto; right: calc(100% + 12px); bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: row; align-items: baseline; gap: 8px; }
  /* the text column */
  [data-hero="e"] .hero-top, [data-hero="e"] .hero-bot { left: var(--b-l); right: auto; top: var(--ht); bottom: auto; margin: 0;
    width: calc((100% - 2 * var(--b-l) - 11 * var(--g)) / 2 + 4 * var(--g)); }
  [data-hero="e"] .hero-top { padding: 0; }
  [data-hero="e"] .giant { margin: -.06em 0 0 -.04em; }
  [data-hero="e"] .hero-bot { height: var(--e-th); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0; }
  [data-hero="e"] .hero-bot .ecat { order: 1; margin: 0 0 6px; max-width: 30ch; }
  [data-hero="e"] .hero-bot .lede-h { order: 2; margin: 0 0 clamp(18px, 3vh, 30px); }
  [data-hero="e"] .hero-bot .eproof { order: 3; margin: 0 0 clamp(18px, 3vh, 30px); width: 100%; }
  [data-hero="e"] .hero-bot .acts { order: 4; margin: 0; }
  [data-hero="e"] .hero-bot .etrust { display: block; flex-basis: 100%; }
  /* the index: hairline rows, the name a size up, the key on the right; no V, no chip, no hint */
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws) { background: transparent; box-shadow: inset 0 -1px 0 var(--tile-line); }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw) { box-shadow: inset 0 -1px 0 var(--tile-line), inset 0 1px 0 var(--tile-line); }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws):is(:hover, :focus-visible, .hot) { box-shadow: inset 0 -1px 0 var(--ink), inset 0 1px 0 var(--tile-line); }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws)::before,
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x) > .pc-art { display: none !important; }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws) .pc-l { left: 16px; right: 0; top: 0; bottom: 0; flex-direction: row; align-items: center; gap: 12px; }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws) .pc-t { order: 0; font-size: clamp(16px, 1.25vw, 18px); font-weight: 560; font-stretch: 108%; letter-spacing: -0.015em;
    transition: transform .28s var(--ease); }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws):is(:hover, :focus-visible, .hot) .pc-t { transform: translateX(4px); }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws) .pc-hint { order: 1; margin-left: auto; }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws) .pc-hint > span:not(.pc-a) { display: none; }
  [data-hero="e"] #domain > .pc:is(.p-cm, .p-x, .p-fw, .p-sw, .p-sql, .p-ca, .p-ws) .pc-a { width: 32px; height: 32px; align-self: center; }
  [data-hero="e"] #domain > .p-cm .pc-t { font-size: clamp(16px, 1.25vw, 18px); }
  /* the two tiles under the film: their names the size of B's */
  [data-hero="e"] #domain > .p-dc .pc-t, [data-hero="e"] #domain > .p-o .pc-t { font-size: clamp(20px, 1.6vw, 26px); }
}
@media (prefers-reduced-motion: reduce) { [data-hero="e"] #domain > .pc .pc-t { transition: none !important; transform: none !important; } }
/* tablets and phones: the split folds into B's arrangement (the text cell on top, then the menu) */
@media (min-width: 601px) and (max-width: 900px) {
  [data-hero="e"] .hero-top, [data-hero="e"] .hero-bot { z-index: 1; background: var(--raise); }
  [data-hero="e"] .hero-top { padding: 28px 28px 0; box-shadow: inset 1px 0 0 var(--tile-line), inset -1px 0 0 var(--tile-line), inset 0 1px 0 var(--tile-line); }
  [data-hero="e"] .hero-bot { padding: 22px 28px 30px; box-shadow: inset 1px 0 0 var(--tile-line), inset -1px 0 0 var(--tile-line), inset 0 -1px 0 var(--tile-line); }
  [data-hero="e"] .giant { margin-top: 0; }
  [data-hero="e"] .hero .domain { height: 780px; margin: var(--g) auto 0; width: min(var(--max), 100% - var(--gut) * 2);
    grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 300fr 150fr 150fr 140fr; }
  [data-hero="e"] .p-cm { grid-area: 1 / 1 / 2 / 3; } [data-hero="e"] .p-x { grid-area: 1 / 3 / 2 / 5; }
  [data-hero="e"] .p-sw { grid-area: 2 / 1 / 3 / 2; } [data-hero="e"] .p-sql { grid-area: 2 / 2 / 3 / 3; }
  [data-hero="e"] .p-dc { grid-area: 2 / 3 / 4 / 5; }
  [data-hero="e"] .p-fw { grid-area: 3 / 1 / 4 / 2; } [data-hero="e"] .p-ca { grid-area: 3 / 2 / 4 / 3; }
  [data-hero="e"] .p-ws { grid-area: 4 / 1 / 5 / 2; } [data-hero="e"] .p-fs { grid-area: 4 / 2 / 5 / 3; } [data-hero="e"] .p-o { grid-area: 4 / 3 / 5 / 5; }   /* B's tablet cells, so B's routes hold */
  [data-hero="e"] .k01 { grid-area: 1 / 4 / 2 / 5; align-self: start; justify-self: end; margin: calc(var(--g) * -.5 - 7px) 28px 0 0; }
  [data-hero="e"] .k01-say { left: auto; right: 0; top: auto; bottom: calc(100% + 10px); transform: none; align-items: flex-end; }
}
@media (max-width: 600px) {
  [data-hero="e"] .hero-top, [data-hero="e"] .hero-bot { background: var(--raise); }
  [data-hero="e"] .hero-top { padding: 22px 20px 0; box-shadow: inset 1px 0 0 var(--tile-line), inset -1px 0 0 var(--tile-line), inset 0 1px 0 var(--tile-line); }
  [data-hero="e"] .hero-bot { padding: 20px 20px 22px; box-shadow: inset 1px 0 0 var(--tile-line), inset -1px 0 0 var(--tile-line), inset 0 -1px 0 var(--tile-line); }
  [data-hero="e"] .giant { margin-top: 0; }
  [data-hero="e"] .hero .domain { margin-top: 8px; }
}
/* phones, every enterprise hero but the index: the text cell stacks, then the film full width at the menu's top */
@media (max-width: 600px) {
  [data-for="teams"]:not([data-ehero="0"]) .hero-bot { display: flex; flex-direction: column; align-items: flex-start; }
  [data-for="teams"]:not([data-ehero="0"]) .hero-bot .ecat { order: 1; margin: 0 0 6px; font-size: 20px; }
  [data-for="teams"]:not([data-ehero="0"]) .hero-bot .lede-h { order: 2; margin: 0 0 18px; font-size: var(--t-small); }
  [data-for="teams"]:not([data-ehero="0"]) .hero-bot .eproof { order: 3; margin: 0 0 20px; width: 100%; }
  [data-for="teams"]:not([data-ehero="0"]) .hero-bot .acts { order: 4; margin: 0; }
  .eproof li { padding-right: 14px; margin-right: 14px; }
  .eproof b { font-size: 24px; }
  .eproof li span { font-size: var(--t-mono); white-space: normal; }
  [data-for="teams"]:not([data-ehero="0"]):not([data-hero="c"]) .domain .pc-ef { order: 3; grid-column: 1 / -1; height: auto; aspect-ratio: 4 / 3; }
}

/* ============================================================================================ 2.3 ehero 3, the index
   C's enterprise index with the film as its first, big row; the chip gone, so each row's name moves to its left */
[data-ehero="3"] .etrust { display: block; }
[data-for="teams"][data-hero="c"] #domain > .pc:not(.pc-film):not(.p-dc)::before { display: none; }
[data-for="teams"][data-hero="c"] #domain > .pc:not(.pc-w):not(.p-dc):not(.p-o) .pc-l { left: 16px; }
[data-for="teams"][data-hero="c"] #domain > .p-o:not(.pc-w) .pc-l { left: 16px; }
[data-for="teams"][data-hero="c"] #domain > .p-dc .dc-sw { top: 50%; bottom: auto; transform: translateY(-50%); }
[data-for="teams"][data-hero="c"] #domain > .p-dc:not(.pc-w) .pc-l { left: 46%; }
[data-for="teams"][data-hero="c"] #domain > .p-dc::before { top: 12px; right: auto; left: calc(46% - 30px); display: none; }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .pc-ef { grid-area: 1 / 1 / 2 / 3; margin-bottom: 14px; }
@media (min-width: 901px) {
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero .domain { grid-template-rows: minmax(0, 4.4fr) repeat(7, minmax(0, 1fr)) 1.6fr 1.2fr; }
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero-bot > * { max-width: calc(57vw - max(var(--gut), (100vw - var(--max)) / 2) - 64px); }
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero-bot { display: flex; flex-direction: column; align-items: flex-start; }
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero-bot .ecat { order: 1; margin: 0 0 6px; max-width: 26ch; }
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero-bot .lede-h { order: 2; margin: 0 0 26px; }
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero-bot .eproof { order: 3; margin: 0 0 28px; }
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero-bot .acts { order: 4; margin: 0; }
}
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-fw { grid-area: 2 / 1 / 3 / 3; box-shadow: inset 0 -1px 0 var(--tile-line), inset 0 1px 0 var(--tile-line); }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-cm { grid-area: 3 / 1 / 4 / 3; }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-x { grid-area: 4 / 1 / 5 / 3; }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-sw { grid-area: 5 / 1 / 6 / 3; }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-sql { grid-area: 6 / 1 / 7 / 3; }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-ca { grid-area: 7 / 1 / 8 / 3; }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-ws { grid-area: 8 / 1 / 9 / 3; }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-dc { grid-area: 9 / 1 / 10 / 3; }
[data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-o { grid-area: 10 / 1 / 11 / 3; }
@media (max-width: 900px) {
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero .domain { grid-template-rows: minmax(240px, 46vw) repeat(7, 60px) 96px 72px; }
}
@media (max-width: 600px) {
  [data-for="teams"][data-hero="c"][data-ehero="3"] .hero .domain { grid-template-rows: 262px repeat(7, 58px) 104px 72px; }
  [data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .pc:not(.pc-w) .pc-l { left: 16px; }
  [data-for="teams"][data-hero="c"][data-ehero="3"] #domain > .p-dc .pc-l { left: 50%; }
}

/* ============================================================================================ 3. #clock, "Is your team ready?"
   Left: one quiet line, then CQURE's three engagement numbers as hairline rows (the number, what it counts, the
   source). Right: the question, the biggest line, one sentence and the CTA. Calm: ink only, no count-up. */
.eready .er-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g, 16px); align-items: end; }
.er-lead { grid-column: 1 / 7; grid-row: 1; font-size: var(--t-small); line-height: 1.5; color: var(--dim); margin-bottom: 20px; align-self: start; }
.er-nums { grid-column: 1 / 7; grid-row: 2; }
.er-nums li { display: grid; grid-template-columns: 7.2ch minmax(0, 1fr) auto; align-items: baseline; gap: 0 20px; padding: 18px 0 20px; border-top: 1px solid var(--tile-line); }
.er-nums li:last-child { border-bottom: 1px solid var(--tile-line); }
.er-nums b { font-size: clamp(36px, 3.2vw, 46px); font-weight: 600; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.er-nums span { font-size: var(--t-body); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.er-nums i { font-style: normal; color: var(--faint); }
.er-q { grid-column: 8 / 13; grid-row: 1 / 3; align-self: end; }
.er-h { font-size: clamp(44px, 5.2vw, 80px); font-weight: 620; font-stretch: 116%; letter-spacing: -0.04em; line-height: .98; text-wrap: balance; margin-bottom: 22px; }
.er-q .body { margin-bottom: 28px; max-width: 34ch; }
@media (max-width: 900px) {
  .er-lead, .er-nums, .er-q { grid-column: 1 / -1; grid-row: auto; }
  .er-q { margin-top: 56px; }
}
@media (max-width: 600px) {
  .er-nums li { grid-template-columns: 5.4ch minmax(0, 1fr); gap: 4px 16px; padding: 16px 0 18px; }
  .er-nums b { font-size: 32px; }
  .er-nums span { font-size: var(--t-small); }
  .er-nums i { grid-column: 2; }
  .er-q { margin-top: 44px; }
}

/* ============================================================================================ craft pass 1 */
/* dc01 on a short tile (under 150px): its toggle has the top, so the key steps aside and the name keeps the bottom */
@container (max-height: 150px) { [data-for="teams"] .p-dc .pc-hint { display: none; } }
/* the film: a caption bar under the picture on a tall tile, so the words never sit over the moving lab */
@container (min-height: 250px) {
  .pc-ef .hv-film-v { top: 1px; bottom: auto; height: calc(100% - 58px); }
  .pc-ef .ef-fb img { height: calc(100% - 57px); }
}
/* the proof row a little tighter, so the three cells keep one line down to 1024 */
.eproof li { padding-right: 22px; margin-right: 22px; }
.eproof b { font-size: clamp(24px, 2.2vw, 34px); }
@media (max-width: 600px) {
  .eproof ul { display: grid; grid-template-columns: auto auto auto; justify-content: start; }
  .eproof li { padding-right: 14px; margin-right: 14px; }
  .eproof b { font-size: 22px; }
}
/* ehero 1: the headline cell a little taller (B's rows 40:22:20:18), the proof one compact line with its source */
@media (min-width: 901px) {
  [data-for="teams"][data-ehero="1"] .hero .domain { grid-template-rows: 40fr 22fr 20fr 18fr; }
  [data-for="teams"][data-ehero="1"] .hero, [data-for="teams"][data-ehero="1"][data-hero="b"] .hero { --b-hh: calc((var(--hg) - 3 * var(--g)) * 62 / 100 + var(--g)); }
  [data-for="teams"][data-ehero="1"] .hero-bot .ecat { font-size: clamp(18px, 1.5vw, 22px); }
  [data-for="teams"][data-ehero="1"] .hero-bot .lede-h { font-size: var(--t-small); margin-bottom: 14px; }
  [data-for="teams"][data-ehero="1"] .eproof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; padding-top: 12px; }
  [data-for="teams"][data-ehero="1"] .eproof li { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
  [data-for="teams"][data-ehero="1"] .eproof b { font-size: clamp(20px, 1.7vw, 26px); }
  [data-for="teams"][data-ehero="1"] .ep-src { margin: 0; }
}
/* ehero 2: the sub-line keeps its air over the proof's hairline (it lost it to the shared reset above) */
@media (min-width: 901px) { [data-for="teams"][data-hero="e"] .hero-bot .lede-h { margin: 0 0 clamp(18px, 3vh, 28px); } }
/* #clock: the number column sized by the widest figure (200+), not by the caption's ch */
.er-nums li { grid-template-columns: clamp(118px, 9.4vw, 140px) minmax(0, 1fr) auto; }
@media (max-width: 600px) { .er-nums li { grid-template-columns: 92px minmax(0, 1fr); } }

/* ============================================================================================ fix round (CRITIC-v14)
   P2-3/P2-4/P2-8: #clock is merged into #gap. Left: the heading (the attacks, the gap) and one line, sticky as before.
   Right: three sourced figures (CQURE 60+, ISC2 95%, IBM +$1.57M) in the staggered pair, then the question, one
   sentence and the CTA on the same column edge, so the page wire runs down the column gutter without a break. */
.gap-q { grid-column: 7 / -1; margin-top: clamp(96px, 10vw, 144px); padding-top: 32px; border-top: 1px solid var(--tile-line); }
.gap-q .er-h { margin-bottom: 20px; }
.gap-q .body { max-width: 34ch; margin-bottom: 28px; }
.st .src { display: block; margin-top: 10px; color: var(--faint); }
@media (max-width: 900px) { .gap-q { margin-top: 72px; } }

/* P1-1 interim + the 16:10 re-render: the preview fills its picture area (cover), on both sites, whichever ratio
   lands; the estate sits a touch high in the frame, so the crop favours the top. The poster under it matches. */
#domain > .pc-ef .hv-film-v, #domain > .pc-ef .ef-fb img { object-fit: cover; object-position: 50% 40%; }

/* P2-5: the V mark on the dc01 tile clipped behind the "For teams" segment on narrow desktops (1024). The toggle
   keeps the top; below 1200px the V steps down to the bottom-right corner, level with the name. */
@media (min-width: 901px) and (max-width: 1199px) {
  [data-for="teams"] #domain > .pc.p-dc::before { top: auto; bottom: 18px; }
}

/* ============================================================================================ 4. ehero 4, the grid (2026-11-19)
   Kacper: "I don't like that we've decided to let go of the grid menu on the enterprise." The default again: B's console
   grid in the calm skin, with fewer, larger tiles. Six columns, rows 31:31:19:19:
     hd hd hd hd pf pf      the headline cell (calm: the line, the category, the sub-line, the CTA on one left edge) | proof
     hd hd hd hd pf pf
     fs fs fw cm dc dc      the film | The skills gap, How it works | the switch
     fs fs ca ws o  o                | Skills by person, Enterprise Tickets | Book a demo
   Menu only (the overlay): Block its way in (x), The rhythm (sw), Module map (sql), FAQ (fs01's link tile). The proof
   tile opens #experts. kali01 keeps B's place on the cell's bottom edge; routes in js/v12.js HERO.g. */
.p-pf { display: none; }
[data-for="teams"][data-ehero="4"] #domain > .p-pf { display: flex; }
[data-for="teams"][data-ehero="4"] #domain > :is(.p-x, .p-sw, .p-sql) { display: none; }
[data-for="teams"][data-ehero="4"] .hero-bot .eproof { display: none; }
[data-for="teams"][data-ehero="4"] #domain > .pc-lt > .pc-art { display: none !important; }
/* the proof tile: ink on paper, hairlines, no colour; the three figures at the top, numeral over caption, the trust
   sentence and the source at the foot. A link to #experts: the hairline turns ink on hover, as every tile's does. */
[data-for="teams"] #domain > .p-pf { --pf-p: clamp(22px, 2.2vw, 32px); flex-direction: column; justify-content: space-between; gap: 16px;
  padding: var(--pf-p); background: var(--raise); }
[data-for="teams"] #domain > .p-pf::before { display: none; }
.pf-ns { display: flex; flex-direction: column; }
.pf-n { display: flex; flex-direction: column; gap: 6px; padding: clamp(10px, 2.6cqh, 16px) 0; border-top: 1px solid var(--tile-line); }
.pf-n:first-child { padding-top: 0; border-top: 0; }
.pf-n b { font-size: clamp(26px, 7.6cqh, 40px); font-weight: 600; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.pf-n span { font-size: var(--t-small); line-height: 1.3; color: var(--dim); }
.pf-f { display: flex; flex-direction: column; gap: 8px; }
.pf-t { font-size: var(--t-small); line-height: 1.45; color: var(--dim); max-width: 34ch; text-wrap: pretty; }
.pf-s { font-size: var(--t-mono); line-height: 1; color: var(--faint); }

@media (min-width: 901px) {
  [data-for="teams"][data-ehero="4"][data-hero="b"] .hero .domain { grid-template-rows: 31fr 31fr 19fr 19fr; }
  [data-for="teams"][data-ehero="4"][data-hero="b"] .hero { --b-hh: calc((var(--hg) - 3 * var(--g)) * 62 / 100 + var(--g)); }
  [data-for="teams"][data-ehero="4"] #domain > .p-pf { grid-area: 1 / 5 / 3 / 7; }
  [data-for="teams"][data-ehero="4"] #domain > .p-fs { grid-area: 3 / 1 / 5 / 3; }
  [data-for="teams"][data-ehero="4"] #domain > .p-fw { grid-area: 3 / 3 / 4 / 4; }
  [data-for="teams"][data-ehero="4"] #domain > .p-cm { grid-area: 3 / 4 / 4 / 5; }
  [data-for="teams"][data-ehero="4"] #domain > .p-ca { grid-area: 4 / 3 / 5 / 4; }
  [data-for="teams"][data-ehero="4"] #domain > .p-ws { grid-area: 4 / 4 / 5 / 5; }
  [data-for="teams"][data-ehero="4"] #domain > .p-dc { grid-area: 3 / 5 / 4 / 7; }
  [data-for="teams"][data-ehero="4"] #domain > .p-o { grid-area: 4 / 5 / 5 / 7; }
  /* the headline cell, calm: one left edge, the line at the top, the text block at the foot */
  [data-for="teams"][data-ehero="4"] .hero-bot { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0; }
  [data-for="teams"][data-ehero="4"] .hero-bot .ecat { order: 1; margin: 0 0 8px; max-width: 40ch; font-size: clamp(19px, 1.5vw, 22px); }
  [data-for="teams"][data-ehero="4"] .hero-bot .lede-h { order: 2; margin: 0 0 clamp(22px, 3.2vh, 30px); max-width: none; }
  [data-for="teams"][data-ehero="4"] .hero-bot .acts { order: 3; margin: 0; }
  /* the four link tiles: the title only, one size, the V top right */
  [data-for="teams"][data-ehero="4"] #domain > .pc:is(.p-fw, .p-cm, .p-ca, .p-ws) .pc-t { font-size: clamp(17px, 1.35vw, 21px); font-weight: 600; font-stretch: 110%; letter-spacing: -0.015em; line-height: 1.15; white-space: normal; text-wrap: balance; }
}
/* tablets: the cell on top (B's), the grid under it in four columns: pf pf fs fs / fw cm dc dc / ca ws o o */
@media (min-width: 601px) and (max-width: 900px) {
  [data-for="teams"][data-ehero="4"][data-hero="b"] .hero .domain { height: 620px; grid-template-rows: 300fr 150fr 150fr; }
  [data-for="teams"][data-ehero="4"] #domain > .p-pf { grid-area: 1 / 1 / 2 / 3; }
  [data-for="teams"][data-ehero="4"] #domain > .p-fs { grid-area: 1 / 3 / 2 / 5; }
  [data-for="teams"][data-ehero="4"] #domain > .p-fw { grid-area: 2 / 1 / 3 / 2; }
  [data-for="teams"][data-ehero="4"] #domain > .p-cm { grid-area: 2 / 2 / 3 / 3; }
  [data-for="teams"][data-ehero="4"] #domain > .p-dc { grid-area: 2 / 3 / 3 / 5; }
  [data-for="teams"][data-ehero="4"] #domain > .p-ca { grid-area: 3 / 1 / 4 / 2; }
  [data-for="teams"][data-ehero="4"] #domain > .p-ws { grid-area: 3 / 2 / 4 / 3; }
  [data-for="teams"][data-ehero="4"] #domain > .p-o { grid-area: 3 / 3 / 4 / 5; }
  [data-for="teams"][data-ehero="4"] .hero-bot { display: flex; flex-direction: column; align-items: flex-start; }
  [data-for="teams"][data-ehero="4"] .hero-bot .ecat { order: 1; margin: 0 0 8px; font-size: 21px; }
  [data-for="teams"][data-ehero="4"] .hero-bot .lede-h { order: 2; margin: 0 0 24px; max-width: none; }
  [data-for="teams"][data-ehero="4"] .hero-bot .acts { order: 3; margin: 0; }
}
/* phones: the headline cell, then the proof, the film, kali01, the four links in two columns, the switch and the action */
@media (max-width: 600px) {
  [data-for="teams"][data-ehero="4"] .hero .domain .p-pf { order: 1; grid-column: 1 / -1; height: auto; }
  [data-for="teams"][data-ehero="4"] .hero .domain .pc-ef { order: 2; }
  [data-for="teams"][data-ehero="4"] .hero .domain .k01 { order: 3; }
  [data-for="teams"][data-ehero="4"] .domain .p-fw { order: 4; } [data-for="teams"][data-ehero="4"] .domain .p-cm { order: 5; }
  [data-for="teams"][data-ehero="4"] .domain .p-ca { order: 6; } [data-for="teams"][data-ehero="4"] .domain .p-ws { order: 7; }
  [data-for="teams"][data-ehero="4"] #domain > .p-pf { --pf-p: 20px; }
  [data-for="teams"][data-ehero="4"] #domain > .pc:is(.p-fw, .p-cm, .p-ca, .p-ws) .pc-t { font-size: 16px; font-weight: 600; font-stretch: 108%; white-space: normal; text-wrap: balance; }
}
@media (max-width: 600px) {
  [data-for="teams"][data-ehero="4"] #domain > .p-pf { container-type: normal; gap: 20px; }
  [data-for="teams"][data-ehero="4"] .pf-n { padding: 12px 0; }
  [data-for="teams"][data-ehero="4"] .pf-n:first-child { padding-top: 0; }
  [data-for="teams"][data-ehero="4"] .pf-n b { font-size: 30px; }
}
/* ehero 4, pass 2: the category on one line where it fits; the link tiles show the title alone (the V is the marker,
   the hairline and the wire answer hover); the proof's figures a size up, so the tile reads as one calm column */
@media (min-width: 901px) {
  [data-for="teams"][data-ehero="4"] .hero-bot .ecat { max-width: none; }
  [data-for="teams"][data-ehero="4"] #domain > .pc:is(.p-fw, .p-cm, .p-ca, .p-ws) .pc-t { font-size: clamp(17px, 1.3vw, 19px); }
}
[data-for="teams"][data-ehero="4"] #domain > .pc:is(.p-fw, .p-cm, .p-ca, .p-ws) .pc-hint { display: none; }
[data-for="teams"][data-ehero="4"] .pf-n b { font-size: clamp(26px, 8.6cqh, 46px); }
[data-for="teams"][data-ehero="4"] .pf-n { padding: clamp(10px, 3.4cqh, 20px) 0; }
/* phones: the three figures in one row (hairlines between), so the film follows soon; the sub-line's second sentence
   on its own line */
@media (max-width: 600px) {
  [data-for="teams"][data-ehero="4"] .pf-ns { display: grid; grid-template-columns: auto auto auto; justify-content: start; }
  [data-for="teams"][data-ehero="4"] .pf-n { padding: 0 14px 0 0; margin-right: 14px; border-top: 0; box-shadow: inset -1px 0 0 var(--tile-line); }
  [data-for="teams"][data-ehero="4"] .pf-n:last-child { padding-right: 0; margin-right: 0; box-shadow: none; }
  [data-for="teams"][data-ehero="4"] .pf-n b { font-size: 24px; }
  [data-for="teams"][data-ehero="4"] .pf-n span { font-size: var(--t-mono); }
  [data-for="teams"][data-ehero="4"] .hero-bot .lede-h .grey { display: block; }
}
/* the proof's three figures share the tile's height in equal bands (a calm table, no hole above the trust line) */
@media (min-width: 601px) {
  [data-for="teams"][data-ehero="4"] .pf-ns { flex: 1 1 auto; }
  [data-for="teams"][data-ehero="4"] .pf-n { flex: 1 1 auto; }
  [data-for="teams"][data-ehero="4"] .pf-f { padding-top: clamp(12px, 3.4cqh, 20px); border-top: 1px solid var(--tile-line); }
}
/* ehero 4, pass 3 (measured at 1024, 820 and 390) */
@media (min-width: 901px) {
  [data-for="teams"][data-ehero="4"] #domain > .pc:is(.p-fw, .p-cm, .p-ca, .p-ws) .pc-t { font-size: clamp(16px, 1.3vw, 19px); }
  /* the film keeps its caption bar at every desktop size, so the words never sit over the moving lab */
  [data-for="teams"][data-ehero="4"] #domain > .pc-ef .hv-film-v { top: 1px; bottom: auto; height: calc(100% - 58px); }
  [data-for="teams"][data-ehero="4"] #domain > .pc-ef .ef-fb img { height: calc(100% - 57px); }
}
@media (min-width: 601px) and (max-width: 900px) {
  [data-for="teams"][data-ehero="4"][data-hero="b"] .hero .domain { height: 700px; grid-template-rows: 380fr 150fr 150fr; }
  [data-for="teams"][data-ehero="4"] #domain > .pc:is(.p-fw, .p-cm, .p-ca, .p-ws) .pc-t { font-size: 18px; font-weight: 600; font-stretch: 110%; letter-spacing: -0.015em; line-height: 1.15; white-space: normal; text-wrap: balance; }
  [data-for="teams"][data-ehero="4"] .pf-n b { font-size: 32px; }
}
@media (max-width: 600px) {
  [data-for="teams"][data-ehero="4"] .pf-n { padding-right: 12px; margin-right: 12px; }
  [data-for="teams"][data-ehero="4"] .pf-n b { font-size: 22px; }
}
/* a short proof tile (1280x720, tablets): tighter bands, so the source keeps its padding */
@container (max-height: 390px) {
  [data-for="teams"][data-ehero="4"] .pf-n { padding: 9px 0; gap: 4px; }
  [data-for="teams"][data-ehero="4"] .pf-n:first-child { padding-top: 0; }
  [data-for="teams"][data-ehero="4"] .pf-n b { font-size: 28px; }
  [data-for="teams"][data-ehero="4"] .pf-f { padding-top: 12px; gap: 6px; }
}
/* tablets and phones: the line keeps a clear step above the category line */
@media (min-width: 601px) and (max-width: 900px) { [data-for="teams"][data-ehero="4"] .hero-bot { padding-top: 40px; } }
@media (max-width: 600px) { [data-for="teams"][data-ehero="4"] .hero-bot { padding-top: 30px; } }
/* craft pass 1 (2x close-ups at 1440): the first band starts at the tile's padding (the later band padding had
   overridden it), so the first numeral's cap lines up with the line's cap in the cell beside it; no extra gap above the
   trust hairline, so the three bands and the foot are spaced alike */
[data-for="teams"][data-ehero="4"] .pf-n:first-child { padding-top: 0; }
@media (min-width: 601px) {
  [data-for="teams"][data-ehero="4"] #domain > .p-pf { gap: 0; padding-top: calc(var(--pf-p) + 4px); }
}
/* craft pass 2 (390): on a phone the dc01 tile is 171px wide and its toggle reaches the V; the toggle already says
   "switch", so the V steps out there (every enterprise hero) */
@media (max-width: 600px) { [data-for="teams"] #domain > .pc.p-dc::before { display: none; } }
