/* Shared layout for the ensline.com marketing pages (index, cra, legal, due-diligence, industries, platform, services, careers).
   Tokens, fonts, buttons, band and footer are in brand.css; this file builds on it. */

:root { --plum: #393136; }  /* brand Plum, used by the journey; not in brand.css */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 88px; }  /* clears the sticky header */

/* Hero: Forest 20 with the topographic map in one colour. A mask lets the single file take any colour. */
.hero { position: relative; overflow: hidden; background: var(--forest-20); padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--forest-60); -webkit-mask: url("topographic.svg") center / cover no-repeat; mask: url("topographic.svg") center / cover no-repeat; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(48px, 6.2vw, 90px); line-height: 1.03; letter-spacing: -.045em; color: var(--slate); margin-bottom: 32px; }
.hero h1 span { display: block; }
.hero .kicker { margin-bottom: 16px; color: var(--forest); }
.intro { max-width: 650px; color: var(--slate); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.pictogram { display: block; width: 310px; height: auto; }
/* Inner pages: a lower hero, so the content starts sooner. */
.hero.page-hero { padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(44px, 5.4vw, 72px); margin-bottom: 24px; }
.page-hero .pictogram { width: 200px; }

/* Sections */
.section { padding: 88px 0; }
.section h2 { font-size: clamp(32px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.01em; font-weight: 400; color: var(--forest); margin: 12px 0 16px; }
.section .lede { max-width: 720px; }
.tinted-section { background: var(--forest-10); }
.number { display: block; font: 400 16px/24px var(--font-mono); color: var(--forest-80); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 22px; }
.features li { position: relative; padding-left: 18px; }
.features li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--forest-60); }

/* Capability tags and "Why Ensline" */
.caps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.caps .tag { font-size: 12px; padding: 6px 12px; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 56px; }
.why h3 { font-weight: 400; font-size: 24px; line-height: 30px; color: var(--forest); margin: 16px 0 12px; }
.why p { color: var(--forest-80); max-width: 380px; margin: 0; }

/* Home page: one card each for the platform and the services: why it matters, then a link to its page */
.teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.teaser { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--white); border: 1px solid var(--slate-20); border-radius: var(--radius-l); }
.teaser h2 { margin: 0; }
.teaser h3 { margin: 0; font-size: clamp(28px, 3vw, 34px); line-height: 1.15; letter-spacing: -.01em; font-weight: 400; color: var(--forest); }
.teaser > p { margin: 0; color: var(--forest-80); }
.teaser-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Platform tiers */
.tiers { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tier { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; background: var(--white); border: 1px solid var(--slate-20); border-radius: var(--radius-l); }
.tier h3 { font-size: 22px; line-height: 28px; font-weight: 600; color: var(--forest); }
.tier .question { margin: -8px 0 0; color: var(--forest-80); font-size: 15px; line-height: 22px; min-height: 66px; }
.price { margin: 0; padding-top: 16px; border-top: 2px solid var(--forest-60); }
.price b { display: block; font-size: 32px; line-height: 38px; font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
.price span { display: block; font-size: 14px; line-height: 22px; color: var(--forest-80); }
.allowance { margin: 0; font: 500 11px/16px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--forest-80); }
.tier .for { margin: -8px 0 0; font-size: 14px; line-height: 20px; color: var(--forest-80); min-height: 40px; }
/* A list item with its own page: plain text with a small arrow after it, underlined only on hover. */
.features a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.features a::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -2px; background: var(--forest-80); mask: url("icons/arrow--right.svg") center / contain no-repeat; -webkit-mask: url("icons/arrow--right.svg") center / contain no-repeat; }
.features a:hover { text-decoration: underline; }
.features a:hover::after { background: var(--forest); }
.tier-actions { margin-top: auto; padding-top: 8px; display: grid; gap: 8px; }
.tier-actions .btn { width: 100%; min-height: 48px; padding: 10px 16px; gap: 12px; }
.tier-note { margin: 24px 0 0; font-size: 14px; line-height: 22px; color: var(--forest-80); }

/* Three or four columns of short items: deployment options, services */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.cols.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols article { padding-top: 16px; border-top: 2px solid var(--forest-60); }
.cols.no-rule article { padding-top: 0; border-top: 0; }
.cols.thin article { padding-top: 24px; border-top: 1px solid var(--forest-20); }
.cols .number { margin-bottom: 4px; }
.cols h3 { margin: 0 0 12px; font-size: 20px; line-height: 26px; font-weight: 400; color: var(--forest); }
.cols p { margin: 0 0 12px; color: var(--forest-80); }
/* A line of copy with a button to its right, after a section's cards. Wraps to copy above button on narrow screens. */
.section-actions { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--slate-20); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.section-actions p { margin: 0; max-width: 560px; color: var(--forest-80); }

/* The open source journey, from the v3 deck. Colours follow the slide: chaos in Plum, assessing in sage,
   controlled stages in Forest, leading still ahead (dashed). */
.journey { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 20px; min-height: 200px; font-size: 14px; line-height: 20px; border-radius: var(--radius-s); }
.step b { font: 600 15px/20px var(--font-mono); }
.step.chaos { background: var(--plum); color: var(--white); }
.step.chaos b, .step.control b { color: var(--signal); }
.step.early { background: var(--forest-60); color: var(--forest); }
.step.control { background: var(--forest); color: var(--white); }
.step.lead { border: 1px dashed var(--forest-80); color: var(--ink); }
/* Services under the journey: each bar spans the steps it covers (columns 1–7 = Chaos … Lead).
   The training bar has no link. On narrow screens the steps wrap, so the bars stack and name their steps. */
.journey-map { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.journey-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 10px 14px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--white); background: var(--forest-80); border-radius: var(--radius-s); text-decoration: none; }
/* Service bars are outlines, so they read as ours, not as part of the journey (the training bar stays solid). */
a.journey-bar { color: var(--forest); background: var(--white); border: 1px solid var(--forest-80); padding: 9px 13px; }
a.journey-bar:hover { background: var(--forest-10); border-color: var(--forest); }
.journey-bar.base { justify-content: center; font-weight: 400; }
.journey-bar .steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.journey-bar .steps::before { content: ": "; }
.span-all { grid-column: 1 / -1; }
.span-assess-align { grid-column: 2 / 4; }
.span-align-create { grid-column: 3 / 7; }
.span-use-create { grid-column: 4 / 7; }
.cols article[id] { scroll-margin-top: 104px; }
/* The card(s) a journey bar points to light up, so the link's target is obvious. */
.cols article:target, .section:target .cols article { background: var(--forest-20); box-shadow: 0 0 0 12px var(--forest-20); border-radius: 2px; }
/* A light divider between what the journey needs (the training bar) and our services. */
.journey-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; font: 500 12px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--forest-80); }
.journey-divider::after { content: ""; flex: 1; border-top: 1px solid var(--slate-20); }
/* The same label above the journey steps, spaced like "Our services" above the bars. */
.journey-head { margin: 48px 0 12px; }
.journey-head + .journey { margin-top: 0; }

/* Hovering a step fades the other steps and the bars that don't cover it; hovering or focusing a bar fades
   the steps it doesn't cover. data-steps on each bar names its steps (1 = Chaos … 7 = Lead). Mouse only, so a
   tap on a touch screen doesn't leave the page half faded. */
@media (hover: hover) {
  .journey .step, .journey-bar { transition: opacity .2s, background .2s, border-color .2s; }
  #journey:has(.step:hover) .step:not(:hover),
  #journey:has(.step:hover) .journey-bar,
  #journey:has(.journey-bar:is(:hover, :focus-visible)) .journey-bar:not(:is(:hover, :focus-visible)),
  #journey:has(.journey-bar:is(:hover, :focus-visible)) .step { opacity: .3; }
  #journey:has(.step:nth-child(1):hover) [data-steps~="1"], #journey:has([data-steps~="1"]:is(:hover, :focus-visible)) .step:nth-child(1),
  #journey:has(.step:nth-child(2):hover) [data-steps~="2"], #journey:has([data-steps~="2"]:is(:hover, :focus-visible)) .step:nth-child(2),
  #journey:has(.step:nth-child(3):hover) [data-steps~="3"], #journey:has([data-steps~="3"]:is(:hover, :focus-visible)) .step:nth-child(3),
  #journey:has(.step:nth-child(4):hover) [data-steps~="4"], #journey:has([data-steps~="4"]:is(:hover, :focus-visible)) .step:nth-child(4),
  #journey:has(.step:nth-child(5):hover) [data-steps~="5"], #journey:has([data-steps~="5"]:is(:hover, :focus-visible)) .step:nth-child(5),
  #journey:has(.step:nth-child(6):hover) [data-steps~="6"], #journey:has([data-steps~="6"]:is(:hover, :focus-visible)) .step:nth-child(6),
  #journey:has(.step:nth-child(7):hover) [data-steps~="7"], #journey:has([data-steps~="7"]:is(:hover, :focus-visible)) .step:nth-child(7) { opacity: 1; }
  /* The training bar belongs to its steps: it stays lit whenever a hovered service lights any of them. */
  #journey:has(a[data-steps~="1"]:is(:hover, :focus-visible)) .journey-bar.base[data-steps~="1"],
  #journey:has(a[data-steps~="2"]:is(:hover, :focus-visible)) .journey-bar.base[data-steps~="2"],
  #journey:has(a[data-steps~="3"]:is(:hover, :focus-visible)) .journey-bar.base[data-steps~="3"],
  #journey:has(a[data-steps~="4"]:is(:hover, :focus-visible)) .journey-bar.base[data-steps~="4"],
  #journey:has(a[data-steps~="5"]:is(:hover, :focus-visible)) .journey-bar.base[data-steps~="5"],
  #journey:has(a[data-steps~="6"]:is(:hover, :focus-visible)) .journey-bar.base[data-steps~="6"],
  #journey:has(a[data-steps~="7"]:is(:hover, :focus-visible)) .journey-bar.base[data-steps~="7"] { opacity: 1; }
  #journey:has(.step:nth-child(1):hover) a[data-steps~="1"], #journey:has(.step:nth-child(2):hover) a[data-steps~="2"],
  #journey:has(.step:nth-child(3):hover) a[data-steps~="3"], #journey:has(.step:nth-child(4):hover) a[data-steps~="4"],
  #journey:has(.step:nth-child(5):hover) a[data-steps~="5"], #journey:has(.step:nth-child(6):hover) a[data-steps~="6"],
  #journey:has(.step:nth-child(7):hover) a[data-steps~="7"] { background: var(--forest-20); border-color: var(--forest); }
}

/* Narrow screens, once the script has run (.picking): the steps become tabs joined like the flow on the home
   page, with the chosen step's panel below. One row of seven; below 760 px, four then three with a line back. */
.journey-picker, .journey-hint, .journey-panels { display: none; }
@media (max-width: 980px) {
  .picking .journey, .picking .journey-map { display: none; }
  .picking .journey-picker { --gap: 16px; --rg: 24px; --h: 40px; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--rg) var(--gap); }
  /* A nudge between the chips and the panel, with an arrow pointing up at the chips. */
  .picking .journey-hint { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 14px; line-height: 20px; color: var(--forest-80); }
  .journey-hint::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; mask: url("icons/arrow--right.svg") center / contain no-repeat; -webkit-mask: url("icons/arrow--right.svg") center / contain no-repeat; transform: rotate(-90deg); }
  .picking .journey-panels { display: block; margin-top: 12px; }
  .step-tab { position: relative; height: var(--h); padding: 0 2px; font: 600 13px/16px var(--font-mono); border: 0; border-radius: var(--radius-s); cursor: pointer; }
  .step-tab.chaos { background: var(--plum); color: var(--signal); }
  .step-tab.early { background: var(--forest-60); color: var(--forest); }
  .step-tab.control { background: var(--forest); color: var(--signal); }
  .step-tab.lead { background: var(--white); color: var(--ink); border: 1px dashed var(--forest-80); }
  .step-tab[aria-selected="true"] { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--forest); }
  .step-tab + .step-tab::before { content: ""; position: absolute; top: calc(50% - 1px); right: 100%; width: var(--gap); height: 2px; background: repeating-linear-gradient(90deg, var(--forest) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: dash 1s linear infinite; }
  .journey-panel { display: grid; gap: 12px; padding: 20px; background: var(--forest-10); border-radius: var(--radius-m); }
  .journey-panel h3 { margin: 0; font: 600 18px/24px var(--font-mono); color: var(--forest); }
  .journey-panel p { margin: 0; font-size: 15px; line-height: 22px; color: var(--forest-80); }
  .journey-panel .journey-divider { margin: 4px 0 0; font-size: 12px; line-height: 16px; }
  .journey-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .tinted-section .journey-panel { background: var(--white); }
}
@media (max-width: 760px) {
  .picking .journey-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-tab { font-size: 12px; }
  /* The line back: down from Use, across, and down into Contribute. The columns are equal, so the centres are known. */
  .journey-picker::before { content: ""; position: absolute; top: calc(var(--h) + var(--rg) / 2 - 1px); left: calc((100% - 3 * var(--gap)) / 8 - 1px); right: calc((100% - 3 * var(--gap)) / 8 - 1px); height: 2px; background: repeating-linear-gradient(90deg, var(--forest) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: dash 1s linear infinite reverse; }
  .step-tab:nth-child(5)::before { content: none; }
  .step-tab:nth-child(4)::after, .step-tab:nth-child(5)::after { content: ""; position: absolute; left: calc(50% - 1px); width: 2px; height: calc(var(--rg) / 2); background: repeating-linear-gradient(180deg, var(--forest) 0 5px, transparent 5px 9px); background-size: 2px 18px; animation: dash-down 1s linear infinite; }
  .step-tab:nth-child(4)::after { top: 100%; }
  .step-tab:nth-child(5)::after { bottom: 100%; }
}
@media (max-width: 360px) {
  .picking .journey-picker { --gap: 12px; }
  .step-tab { font-size: 11px; }
}
@media (max-width: 340px) {
  .picking .journey-picker { --gap: 10px; }
  .step-tab { padding: 0; font-size: 10px; }
}

/* Closing call to action on inner pages: a dark moment, so the accent is Signal. */
.cta-band { background: var(--forest); color: var(--white); padding: 72px 0; }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(32px, 3.6vw, 40px); line-height: 1.15; font-weight: 400; color: var(--white); }
.cta-band p { margin: 0; max-width: 640px; color: var(--forest-20); }
.cta-band :focus-visible { outline-color: var(--signal); }
.btn.on-dark { color: var(--white); border-color: var(--white); }
.btn.on-dark:hover { background: var(--white); color: var(--forest); }

/* Contact sales form (home page): the closing dark moment */
.contact { background: var(--forest); color: var(--white); }
.contact h2 { color: var(--white); }
.contact .kicker { color: var(--forest-60); }
.contact .lede { color: var(--forest-20); }
.contact :focus-visible { outline-color: var(--signal); }
.contact a { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.contact-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; color: var(--forest-20); }
.contact-points li { padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .18); }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--forest-60); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--forest-60); border-radius: var(--radius-s); background: var(--white); color: var(--ink); width: 100%; min-width: 0; }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--forest-20); }
.consent input { accent-color: var(--signal); margin-top: 4px; }
.form-note { margin: 0; font-size: 14px; line-height: 22px; color: var(--forest-20); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }

/* Also from Ensline */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 32px; }
.more article { display: flex; flex-direction: column; align-items: flex-start; }
.more h3 { font-weight: 400; font-size: 24px; color: var(--forest); margin: 0 0 12px; }
.more p { color: var(--forest-80); max-width: 460px; margin: 0 0 24px; }
.more .btn { margin-top: auto; }
.more.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }

.footer-details a { color: inherit; }

/* "Why now": dated obligations in a row. The ones already in force get the Signal marker. */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 24px; }
.timeline li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--forest-60); }
.timeline li.now { border-top-color: var(--forest); }
.timeline .when { font: 500 12px/16px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--forest-80); }
.timeline li.now .when::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1px var(--forest); vertical-align: 1px; }
.timeline h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--forest); }
.timeline p { margin: 0; font-size: 15px; line-height: 22px; color: var(--forest-80); }
.timeline a { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--forest); }

/* Cards for the entry doors: by role and by industry. A quote in the visitor's words, then what we do. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; background: var(--white); border: 1px solid var(--slate-20); border-radius: var(--radius-l); }
.card h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--forest); }
.card .quote { margin: 0; font-size: 17px; line-height: 25px; color: var(--ink); }
.card p { margin: 0; color: var(--forest-80); }
.card .card-link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--forest); }
.card.plain { background: transparent; border-style: dashed; border-color: var(--forest-60); }

/* Two halves side by side: what the reader has, and what we add (the legal section). */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.split > div { padding: 32px; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--slate-20); }
.split > div.ours { background: var(--forest); border-color: var(--forest); color: var(--white); }
.split h3 { margin: 0 0 16px; font-size: 22px; line-height: 28px; font-weight: 400; color: var(--forest); }
.split .ours h3 { color: var(--white); }
.split .ours .features li::before { background: var(--signal); }

/* Where our help stops: the regulations we give evidence for, but do not advise on. */
.scope-note { margin: 40px 0 0; padding: 16px 20px; max-width: 760px; border-left: 4px solid var(--forest-60); background: var(--forest-10); font-size: 15px; line-height: 23px; color: var(--forest); }
.tinted-section .scope-note { background: var(--white); }

/* An industry on the industries page: what drives it on the left, where to start on the right. */
.industry { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.industry .start { padding: 28px 24px; background: var(--white); border: 1px solid var(--slate-20); border-radius: var(--radius-l); display: grid; gap: 16px; }
.industry .start h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--forest); }
.industry .start .btn { justify-self: start; }
.industry h3.sub { margin: 32px 0 12px; font-size: 20px; line-height: 26px; font-weight: 400; color: var(--forest); }
.industry p { color: var(--forest-80); }
.tinted-section .industry .start { background: var(--white); }

/* Inner page in-page navigation (industries) */
.jump { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--forest); background: var(--white); border: 1px solid var(--forest-60); border-radius: var(--radius-pill); text-decoration: none; }
.jump a:hover { background: var(--forest-10); }

@media (max-width: 980px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .timeline, .cards, .split { grid-template-columns: minmax(0, 1fr); }
  .split > div { padding: 24px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .pictogram { display: none; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { min-height: 0; }
  .journey-map { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .journey-map > * { grid-column: 1 / -1; }
  .journey-bar, .journey-bar.base { justify-content: space-between; }
  .journey-bar .steps { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: block; font: 400 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--forest-80); margin-top: 2px; }
  .journey-bar.base .steps { color: var(--forest-20); }
  .journey-bar .steps::before { content: none; }
  .cols, .cols.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teasers { grid-template-columns: minmax(0, 1fr); }
  .more.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero, .hero.page-hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 56px 0; }
  .why, .cols, .cols.four, .cols.two, .more, .more.three { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .why p { max-width: none; }
  .journey { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .teaser { padding: 24px; }
}
@media (max-width: 640px) {
  .tiers, .field-row { grid-template-columns: minmax(0, 1fr); }
  .tier .question { min-height: 0; }
}

/* ===== Home page (index.html) ===== */

/* A link with an arrow, used in the home page's cards and rows. */
.more-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--forest); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.more-link::after { content: "→"; transition: transform .2s; }
.more-link:hover::after { transform: translateX(4px); }

/* Why: the pipeline from commit to evidence, and the benefits. */
.flow { list-style: none; margin: 40px 0 0; padding: 0; display: flex; align-items: center; }
.flow li { display: flex; align-items: center; flex: 1; }
.flow li:first-child { flex: none; }
.flow li + li::before { content: ""; flex: 1; min-width: 16px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--forest) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: dash 1s linear infinite; }
.flow span { padding: 9px 14px; font: 500 13px/16px var(--font-mono); color: var(--forest); background: var(--forest-10); border: 1px solid var(--forest-20); border-radius: var(--radius-pill); white-space: nowrap; }
.flow .end span { background: var(--forest); border-color: var(--forest); color: var(--signal); }
@keyframes dash { to { background-position: 18px 0; } }
@keyframes dash-down { to { background-position: 0 18px; } }
.why.benefits { margin-top: 48px; row-gap: 40px; }
/* A thin rule above each benefit, like the industry rows. */
.why.benefits article { padding-top: 24px; border-top: 1px solid var(--forest-20); }
.why.benefits h3 { font-size: 22px; line-height: 28px; margin: 0 0 8px; }

/* Why now: numbers, the dated track with "You are here", and what already applies every day. */
.stats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgb(44 64 53 / .15); border-bottom: 1px solid rgb(44 64 53 / .15); }
.stats li { padding: 24px 24px 28px; border-left: 1px solid rgb(44 64 53 / .15); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--forest); }
.stats span { display: block; margin-top: 8px; max-width: 24ch; font-size: 14px; line-height: 20px; color: var(--forest-80); }
.track { position: relative; margin-top: 88px; }
.track-line { position: absolute; top: 10px; left: 0; right: 0; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--forest-60) 0 8px, transparent 8px 14px); }
.track-line i { display: block; width: calc((100% - (var(--steps, 3) - 1) * 28px) / var(--steps, 3) * var(--at, 1) + var(--at, 1) * 28px); height: 100%; border-radius: 2px; background: var(--forest); }
.track-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: 0 28px; }
.track-points li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 44px; }
.track-points li::before { content: ""; position: absolute; top: 2px; left: 0; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; background: var(--forest-10); border: 4px solid var(--forest-60); }
.track-points li.past::before { background: var(--forest); border-color: var(--forest); }
.track-points li.today::before { background: var(--signal); border-color: var(--forest); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(233 239 72 / .8); } 70%, 100% { box-shadow: 0 0 0 16px rgb(233 239 72 / 0); } }
.track .here { position: absolute; top: -40px; left: -6px; padding: 4px 10px; font: 500 11px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); background: var(--forest); border-radius: var(--radius-s); }
.track .here::after { content: ""; position: absolute; left: 14px; bottom: -5px; border: 5px solid transparent; border-top-color: var(--forest); border-bottom: 0; }
.track .when { font: 500 12px/16px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--forest-80); }
.track .countdown { padding: 3px 10px; font: 500 12px/16px var(--font-mono); color: var(--forest); background: var(--forest-20); border-radius: var(--radius-pill); }
.track .countdown:empty { display: none; }
.track h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--forest); }
.track li.today h3 { font-size: 24px; line-height: 30px; }
.track p { margin: 0; font-size: 15px; line-height: 22px; color: var(--forest-80); }
.track .more-link { margin-top: 4px; font-size: 14px; }
.ongoing { margin-top: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); background: var(--forest); color: var(--white); border-radius: var(--radius-l); overflow: hidden; }
.ongoing .lead { display: flex; flex-direction: column; justify-content: center; gap: 10px; max-width: 280px; padding: 32px; background: rgb(255 255 255 / .06); }
.ongoing .lead .kicker { color: var(--signal); }
.ongoing .lead p { font-size: 20px; line-height: 27px; color: var(--white); }
.ongoing .item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; border-left: 1px solid rgb(255 255 255 / .1); }
.ongoing .kicker { color: var(--forest-60); }
.ongoing h3 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 400; color: var(--white); }
.ongoing p { margin: 0; font-size: 15px; line-height: 22px; color: var(--forest-20); }
.ongoing .more-link { margin-top: auto; color: var(--white); }
.ongoing :focus-visible { outline-color: var(--signal); }

/* Who we help: six roles around the question. Tabs once the script runs (.ready); a list without it. */
.who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 48px; }
.hub { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines circle { fill: none; stroke: var(--forest-20); stroke-width: .4; }
.hub-lines line { stroke: var(--forest-60); stroke-width: .3; stroke-dasharray: 1 1.6; transition: stroke .3s; }
.hub-lines line.on { stroke: var(--forest); stroke-width: .5; stroke-dasharray: none; }
.hub-core { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; margin: 0; padding: 9%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; text-align: center; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.3; font-weight: 500; color: var(--white); background: var(--forest); border-radius: 50%; box-shadow: 0 0 0 14px rgb(44 64 53 / .08), 0 0 0 30px rgb(44 64 53 / .04); }
.hub-core::before { content: "\201C"; position: absolute; top: 8%; font-size: 56px; line-height: 1; color: var(--signal); }
.hub-nodes { display: none; }
.ready .hub-nodes { display: block; }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 10px 16px; font: 600 14px/18px var(--font-sans); color: var(--ink); white-space: nowrap; background: var(--white); border: 1.5px solid var(--forest-60); border-radius: var(--radius-pill); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.node:hover { border-color: var(--forest); }
.node[aria-selected="true"] { background: var(--signal); border-color: var(--signal); transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 12px 24px -14px rgb(44 64 53 / .7); }
.role-panels { display: grid; gap: 40px; }
.ready .role-panels { min-height: 300px; align-content: center; }
.role-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.role-panel[hidden] { display: none; }
.role-panel blockquote { margin: 0; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: var(--forest); }
.role-panel p:not(.kicker) { margin: 0; max-width: 46ch; color: var(--forest-80); }
.ready .role-panel:not([hidden]) { animation: rise .45s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Legal: each question beside what answers it. */
.qa { margin-top: 48px; }
.qa-head, .qa-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; }
.qa-head { margin-bottom: 16px; font-size: 18px; font-weight: 600; color: var(--forest); }
.qa-head span { display: flex; align-items: center; gap: 12px; }
.qa-head b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 500 15px/1 var(--font-mono); background: var(--white); color: var(--forest); }
.qa-head span:last-child b { background: var(--signal); }
.qa dl { margin: 0; display: grid; gap: 12px; }
.qa-row dt, .qa-row dd { margin: 0; padding: 16px 20px; border-radius: var(--radius-m); font-size: 16px; line-height: 23px; transition: background .25s; }
.qa-row dt { grid-column: 1; background: var(--white); border: 1px solid var(--slate-20); color: var(--ink); }
.qa-row dd { grid-column: 3; background: var(--forest); color: var(--white); }
.qa-row::after { content: ""; grid-column: 2; grid-row: 1; align-self: center; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--forest-60) 0 5px, transparent 5px 10px); }
.qa-row:hover dt { background: var(--forest-20); }
.qa-row:hover dd { background: var(--slate); }
.qa-row:hover::after { background: var(--forest); }

/* Industries: icon rows, then the assessment. */
.ind-list { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.ind-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; padding: 28px 0; border-top: 1px solid var(--forest-20); }
.ind-row svg { width: 64px; height: 64px; }
.ind-row h3 { margin: 0 0 8px; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--forest); }
.ind-row p { margin: 0 0 12px; font-size: 15px; line-height: 22px; color: var(--forest-80); }
.ind-row .more-link { font-size: 14px; }
/* The scope check row: a highlighted card among the industries. The negative margin lets the card
   bleed into the gutter, so its icon and text line up with the rows around it. */
.ind-row.highlight { margin-inline: -24px; padding: 28px 24px; border-top-color: transparent; background: var(--forest-20); border-radius: var(--radius-l); }
.ind-row.highlight p, .ind-row.highlight .more-link { color: var(--forest); }
.assess { margin-top: 40px; display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 32px 44px; color: var(--white); background: var(--forest); border-radius: var(--radius-l); }
.assess :focus-visible { outline-color: var(--signal); }
.assess svg { width: 180px; height: auto; }
.assess h3 { margin: 0 0 8px; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--white); }
.assess p { margin: 0; max-width: 48ch; color: var(--forest-20); }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 28px; font: 400 13px/18px var(--font-mono); color: var(--forest-60); }
.facts b { display: block; font: 600 22px/28px var(--font-sans); color: var(--signal); }

/* How we deliver: platform + people. */
.deliver { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: stretch; }
.dpanel { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; background: var(--white); border: 1px solid var(--slate-20); border-radius: var(--radius-l); }
.dpanel h3 { margin: 0; font-size: clamp(28px, 3vw, 34px); line-height: 1.15; font-weight: 400; color: var(--forest); }
.dpanel > p:not(.kicker) { margin: 0; color: var(--forest-80); }
.dpanel .btn { margin-top: auto; }
.plus { display: flex; align-items: center; justify-content: center; }
.plus span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 28px; font-weight: 500; color: var(--forest); background: var(--signal); }
.spec-tags { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tags li { display: flex; align-items: center; gap: 7px; padding: 6px 10px; font: 400 12px/16px var(--font-mono); color: var(--forest); border: 1px solid var(--forest-20); border-radius: var(--radius-s); }
.spec-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--forest-60); }

/* Also from Ensline: a small picture above each. */
.more .vis { display: grid; place-items: center; width: 100%; height: 150px; margin-bottom: 24px; background: var(--forest-10); border-radius: var(--radius-l); overflow: hidden; }
.more .vis svg { max-width: 100%; height: auto; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgb(44 64 53 / .15); }
  .ongoing { grid-template-columns: minmax(0, 1fr); }
  .ongoing .lead { max-width: none; padding: 24px 32px; }
  .ongoing .item { border-left: 0; border-top: 1px solid rgb(255 255 255 / .1); }
  .who-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hub { margin: 0 auto; max-width: 440px; }
  .ind-list { grid-template-columns: minmax(0, 1fr); }
  .assess { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; }
  .assess svg { width: 140px; }
  .assess .btn { justify-self: start; }
  .deliver { grid-template-columns: minmax(0, 1fr); }
  .plus { padding: 16px 0; }
}
@media (max-width: 760px) {
  /* Legal: the column heads go; each question and its answer become one card, marked ? and ✓ like the heads. */
  .qa-head { display: none; }
  .qa dl { gap: 16px; }
  .qa-row { grid-template-columns: minmax(0, 1fr); }
  .qa-row dd { grid-column: 1; }
  .qa-row::after { display: none; }
  .qa-row dt, .qa-row dd { position: relative; padding: 16px 18px 16px 52px; }
  .qa-row dt { border-bottom: 0; border-radius: var(--radius-m) var(--radius-m) 0 0; }
  .qa-row dd { border-radius: 0 0 var(--radius-m) var(--radius-m); }
  .qa-row dt::before, .qa-row dd::before { position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 500 12px/1 var(--font-mono); }
  .qa-row dt::before { content: "?"; content: "?" / ""; background: var(--forest-20); color: var(--forest); }
  .qa-row dd::before { content: "✓"; content: "✓" / ""; background: var(--signal); color: var(--forest); }
  /* The track turns vertical: the dots stay on a line at the left, solid up to today and dashed after it,
     and "You are here" points at today's dot from beside it. */
  .track { margin-top: 48px; }
  .track-line { display: none; }
  .track-points { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .track-points li { padding: 0 0 0 40px; }
  .track-points li::before { top: 0; }
  .track-points li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 24px; bottom: -36px; width: 4px; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--forest-60) 0 8px, transparent 8px 14px); }
  .track-points li.past::after { background: var(--forest); }
  .track .here { position: relative; top: auto; left: auto; margin: -2px 0 4px; }
  .track .here::after { left: -5px; top: 7px; bottom: auto; border: 5px solid transparent; border-right-color: var(--forest); border-left: 0; }
  /* From commit to evidence in two rows of three. The line runs from SBOM down, back across and down into checks.
     .flow::before is the row break and carries the line across; the pills are monospace, so their centres are
     found in ch: SBOM is 4 characters wide, checks 6, each pill adds --pad on both sides and a 1px border. */
  .flow { --pad: 14px; --size: 13px; flex-wrap: wrap; }
  .flow span { padding-inline: var(--pad); font-size: var(--size); }
  .flow li:nth-child(-n+3) { order: 1; }
  .flow li:nth-child(n+4) { order: 3; }
  .flow li:nth-child(3), .flow li:nth-child(4) { position: relative; }
  .flow::before { content: ""; order: 2; flex: none; width: calc(100% - 5ch - 2 * var(--pad)); height: 2px; margin: 11px calc(2ch + var(--pad)) 11px calc(3ch + var(--pad)); font: var(--size)/1 var(--font-mono); background: repeating-linear-gradient(90deg, var(--forest) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: dash 1s linear infinite reverse; }
  .flow li:nth-child(4) { flex: none; }
  .flow li:nth-child(3)::after, .flow li:nth-child(4)::before { content: ""; position: absolute; width: 2px; min-width: 0; height: 12px; margin: 0; font: var(--size)/1 var(--font-mono); background: repeating-linear-gradient(180deg, var(--forest) 0 5px, transparent 5px 9px); background-size: 2px 18px; animation: dash-down 1s linear infinite; }
  .flow li:nth-child(3)::after { top: 100%; right: calc(2ch + var(--pad)); }
  .flow li:nth-child(4)::before { bottom: 100%; left: calc(3ch + var(--pad)); }
  .ind-row.highlight { margin-inline: -12px; padding-inline: 12px; }
  .why.benefits { row-gap: 24px; }
}
@media (max-width: 640px) {
  /* The stats stay two by two, with smaller figures, rather than one long column. */
  .stats li { padding: 20px 0 24px 16px; }
  .stats li:nth-child(odd) { padding-left: 0; padding-right: 16px; }
  .stats b { font-size: 32px; }
  .node { padding: 8px 11px; font-size: 12px; }
}
@media (max-width: 400px) {
  /* Smaller pills, so the second row (checks, decision, evidence) still fits on one line at 320 px. */
  .flow { --pad: 10px; --size: 12px; }
  .flow li + li::before { min-width: 12px; margin: 0 4px; }
}
