/* RID1435 (Raj): the public pages as a calling card. One idea, one visual, few
   words a section; the MERLIN colours (home.css sets them); the phone first
   in mind. home.css keeps the frame (the header, the cards, the admin, the
   maps); this file dresses the home page, The MERLIN Way and Contact us.
   Loaded after home.css, so a rule here wins. Nothing from the network. */

html { scroll-behavior: smooth; }
/* The bands reach the screen's edges from inside main; nothing beyond them scrolls sideways. */
body { overflow-x: clip; }

/* ---- the header (RID1456: no ask here; the one ask is at the end of the page) ---- */
.bar { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); background: rgba(11, 16, 32, 0.72); border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
/* A hidden menu link stays hidden on every screen (home.css's phone rule gave every .nav a a display). */
.nav a[hidden] { display: none; }
/* The name beside the mark from 1240px: the menu, the ask and Sign in fit on the row from there. */
@media (min-width: 1240px) { .brand-name { display: inline; } }
/* RID1474 (Raj): the green line opens every section, a couple of points larger; MERLIN at work and the Way's phases title wear it too. */
.eyebrow { color: var(--good); font-size: 0.9rem; letter-spacing: 0.14em; }
.section-title { color: var(--good); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.14em; }
.section .eyebrow, .final .eyebrow { margin-bottom: 10px; }
.final .eyebrow { color: var(--good); font-size: 0.9rem; max-width: none; }
.way-eyebrow { margin: 0 0 12px; }
/* RID1460 (Raj): the opening: agentic AI in the enterprise, the words beside a decision network drawn in the page. */
.opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 64px 0 52px; }
.opening[hidden], .why[hidden] { display: none; }
.opening-h { margin: 0 0 18px; font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.018em; color: var(--ink); }
.opening-lede { margin: 0; max-width: 32em; color: var(--muted); font-size: 1.12rem; line-height: 1.55; }
.opening-lede span { display: block; }
/* RID1469 (Raj): the question in italics, centred under the three lines. */
.opening-lede span:last-child { color: var(--ink); font-style: italic; text-align: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.net-svg { display: block; width: 100%; height: auto; max-width: 40rem; margin-left: auto; }
.net .links path { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.3; }
.net .links .to-gate { stroke: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.net .links .to-person, .net .links .to-act { stroke: color-mix(in srgb, var(--good) 70%, transparent); stroke-width: 1.6; }
.net .links .among { stroke: color-mix(in srgb, var(--accent-2) 60%, transparent); stroke-dasharray: 3 4; }
.net .sys rect { fill: color-mix(in srgb, var(--accent) 8%, transparent); stroke: var(--accent); stroke-width: 1.3; }
.net .sys path { stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 2; stroke-linecap: round; }
.net .agent circle { fill: color-mix(in srgb, var(--accent-2) 12%, transparent); stroke: var(--accent-2); stroke-width: 1.4; }
.net .agent .core { fill: var(--accent-2); stroke: none; opacity: 0.85; }
.net .gate rect { fill: color-mix(in srgb, var(--good) 12%, transparent); stroke: var(--good); stroke-width: 1.4; }
.net .gate path { stroke: var(--good); stroke-width: 2; stroke-linecap: round; opacity: 0.8; }
.net .person circle { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 1.6; }
.net .person .head { fill: var(--accent); stroke: none; }
.net .person .body { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.net .act rect { fill: color-mix(in srgb, var(--good) 14%, transparent); stroke: var(--good); stroke-width: 1.6; }
.net .act .go { fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.net .p-blue { fill: var(--accent); } .net .p-violet { fill: var(--accent-2); } .net .p-green { fill: var(--good); }
@media (prefers-reduced-motion: reduce) { .net .pulses { display: none; } }
.why .eyebrow { margin-bottom: 10px; }
.section.why h2 { margin-bottom: 22px; }
/* RID1463 (Raj): why treasury in four points: a row of four on a laptop, two by two on a phone. */
.why-points { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.why-points li { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 16, 32, 0.45); }
.why-points li::before { content: ""; display: block; width: 2.25rem; height: 3px; margin-bottom: 6px; border-radius: 2px; background: linear-gradient(90deg, var(--good), var(--accent)); }
.why-points b { font-size: 1.05rem; }
.why-points span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.why-close { margin: 20px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.hero-side { margin: 16px 0 0; }

/* ---- the hero: the line on the left, the four steps on the right ---- */
.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 56px 0 36px; }
.hero h1 { margin: 0 0 14px; padding: 0; font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.018em; background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-style: normal; font-size: 1.1rem; line-height: 1.55; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions .cta { padding: 12px 20px; border-radius: 12px; font-size: 0.95rem; }
.actions .cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.actions .cta.ghost:hover { background: var(--card-hover); filter: none; }
.hero-side { max-width: 34rem; }
.hero-side[hidden] { display: none; }

.flow { margin: 0; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.03); box-shadow: var(--shadow); }
.flow[hidden] { display: none; }
.flow .t { margin: 0 0 14px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.steps4 { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 8px; }
.step { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 8px; border: 1px solid var(--line-strong); border-radius: 12px; text-align: center; background: rgba(0, 0, 0, 0.25); animation: lit 8s infinite; }
.step b { display: block; font-size: 0.9rem; }
.step small { display: block; color: var(--muted); font-size: 0.74rem; line-height: 1.3; }
.step:nth-child(3) { animation-delay: 2s; } .step:nth-child(5) { animation-delay: 4s; } .step:nth-child(7) { animation-delay: 6s; }
.step.prep { --c: var(--good); } .step.ai { --c: var(--accent-2); } .step.code { --c: var(--good); } .step.person { --c: var(--accent); }
@keyframes lit { 0%, 22% { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); } 30%, 100% { border-color: var(--line-strong); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; border-color: var(--c); } }
.steps4 .arrow { align-self: center; color: var(--muted); font-size: 1.25rem; }
.flow .note { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); }

/* ---- the tiles: the bench in four figures ---- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 8px 0 0; padding: 0; }
.tile { position: relative; overflow: hidden; padding: 20px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--good); }
.tile .s { display: inline-block; margin-bottom: 10px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.7rem; }
.tile .n { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.tile .l { margin-top: 8px; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }

/* ---- the sections; every second one a band the width of the screen, a shade lighter, a hairline above and below (RID1452) ---- */
.home-only[hidden], .section[hidden] { display: none; }
.section { padding: 52px 0 4px; }
.band { position: relative; }
.band::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: color-mix(in srgb, var(--accent) 12%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.band { padding: 52px 0 52px; margin: 8px 0; }
.section.band + .section { padding-top: 44px; }
.section h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.012em; }
.section .sub { margin: 0 0 26px; max-width: 46em; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.section .sub strong { color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards .card { padding: 20px; border-radius: 16px; box-shadow: none; transition: transform 0.2s, border-color 0.2s; }
.cards .card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
/* RID1465 (Raj): the icon in MERLIN green, the title beside it on one line. */
.cards .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cards .ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); font-size: 1.1rem; }
.cards h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.cards p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.cards .punch { color: var(--ink); font-weight: 600; }
.cards .eyebrow { display: block; margin: 0 0 8px; }
.page-info .cards { margin: 0 0 28px; }

/* RID1472 (Raj): the four phases as cards, like the other cards (a border, the dark card ground), the coloured rule inside at the top. */
.phase-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: ph; }
.phase { position: relative; counter-increment: ph; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: transform 0.2s, border-color 0.2s; }
.phase:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.phase::before { content: ""; display: block; height: 3px; width: 2.25rem; margin-bottom: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--good), var(--accent)); opacity: 0.9; }
.phase .k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--good); }
.phase .k::before { content: "0" counter(ph) " · "; color: var(--muted); }
.phase h3 { margin: 6px 0; font-size: 1.15rem; }
.phase p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.case { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255, 255, 255, 0.03)); }
.case:nth-child(2) { background: linear-gradient(160deg, color-mix(in srgb, var(--good) 14%, transparent), rgba(255, 255, 255, 0.03)); }
.case:nth-child(3) { background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 14%, transparent), rgba(255, 255, 255, 0.03)); }
.case .big { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.case .what { margin-top: 10px; font-weight: 600; }
.case p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.col { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.col h3 { margin: 0 0 10px; font-size: 1rem; }
.col h3 span { color: var(--accent); }
/* RID1481 (Raj): four points a side, one under the other. */
.col ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.col li { padding-left: 1.1em; text-indent: -1.1em; }
.col li::before { content: "· "; color: var(--good); font-weight: 700; }
.neutral { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }
/* RID1471 (Raj): inside a band the cards are dark blue, so their words stand out against the band. */
.band .cards .card, .band .col, .band .phase { background: rgba(11, 16, 32, 0.72); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.band .cards .card:hover, .band .phase:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---- MERLIN at work: the cards for the admin (the home page), the desk for the visitor (the Treasury Pilot) ---- */
.work { padding: 52px 0 0; }
.work[hidden] { display: none; }

/* ---- the closing ask ---- */
.final { padding: 64px 0 56px; text-align: center; }
.final h2 { margin: 0 0 10px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.012em; }
.final p { max-width: 38em; margin: 0 auto 24px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.final .cta { padding: 13px 24px; border-radius: 12px; font-size: 1rem; }

/* ---- the foot ---- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 22px; padding-bottom: 30px; }
.foot p { margin: 0; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot .foot-note { flex-basis: 100%; }
/* RID2045: the copyright line, the last line of every page */
.foot .foot-rights { flex-basis: 100%; text-align: center; margin-top: 8px; color: var(--muted); font-size: 0.8rem; }

/* ---- The MERLIN Way and Contact us ---- */
.page-hero h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ink); }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lede { font-style: normal; font-size: 1.1rem; }
.principles .card { border-radius: 14px; box-shadow: none; }
.principles .card b { color: var(--good); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.way-phases { margin: 0 0 36px; }
.way-phases.band { padding: 36px 0 40px; margin: 0 0 40px; }
.way-phases .phase-row { margin: 10px 0 0; }
.page-cta { flex-direction: column; align-items: flex-start; padding: 24px 0 48px; }
.page-cta p { font-size: 1.15rem; max-width: 38em; }
.page-cta .cta { padding: 12px 22px; }

/* ---- a page under the home page hides the home's own sections ---- */
body.sub-page .hero { grid-template-columns: minmax(0, 1fr); }
body.sub-page .hero .hero-text { max-width: 62rem; }
body.sub-page .hero { padding-bottom: 8px; }
body.sub-page .work { padding-top: 24px; }

/* ---- RID1470 (Raj): on a laptop the second-level text a couple of points larger; a phone keeps its sizes ---- */
@media (min-width: 861px) {
  .opening-lede { font-size: 1.25rem; }
  .hero .lede { font-size: 1.22rem; }
  .flow .note { font-size: 0.9rem; }
  .step small { font-size: 0.82rem; }
  .tile .l { font-size: 0.95rem; }
  .section .sub { font-size: 1.18rem; }
  .cards p { font-size: 1.02rem; }
  .why-points span { font-size: 1.02rem; }
  .why-close { font-size: 1.15rem; }
  .phase p { font-size: 1.02rem; }
  .col ul { font-size: 0.98rem; }
  .neutral { font-size: 1.05rem; }
  .final p { font-size: 1.18rem; }
  .page-hero .lede { font-size: 1.22rem; }
  .principles .card { font-size: 1.05rem; }
  .page-cta p { font-size: 1.22rem; }
}

/* ---- a tablet or a phone (the desktop above 860px does not change) ---- */
@media (max-width: 860px) {
  .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .why-points li { padding: 14px; }
  .why-points span { font-size: 0.85rem; }
  .opening { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0 32px; }
  .opening-h { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .opening-lede { font-size: 1.02rem; }
  .opening-lede span { display: block; margin-bottom: 4px; }
  .net-svg { max-width: 100%; margin: 0 auto; }
  .bar { position: static; backdrop-filter: none; background: transparent; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0 20px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .steps4 { grid-template-columns: minmax(0, 1fr); }
  .steps4 .arrow { transform: rotate(90deg); text-align: center; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .n { font-size: 2rem; }
  .section { padding: 36px 0 4px; }
  .section.band { padding: 36px 0 36px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .phase-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .phase-row::-webkit-scrollbar { display: none; }
  .phase { flex: 0 0 78%; scroll-snap-align: start; }
  .cases, .split, .col ul { grid-template-columns: minmax(0, 1fr); }
  .final { padding: 44px 0 36px; }
  .page-cta { padding-bottom: 36px; }
}

/* RID1983 (Raj: GO A): the whole picture on the home page: four cards in a row, the loop marked green; two by two on a tablet, one column on a phone */
.whole-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; }
.whole-row li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 14px; background: rgba(11, 16, 32, 0.72); }
.whole-row li::before { content: ""; display: block; width: 2.25rem; height: 3px; margin-bottom: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--good), var(--accent)); }
.whole-row li:not(:last-child)::after { content: "→"; position: absolute; right: -23px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }
.whole-row li.loop { border-color: color-mix(in srgb, var(--good) 55%, transparent); background: color-mix(in srgb, var(--good) 8%, rgba(11, 16, 32, 0.72)); }
.whole-row li.loop::before { background: var(--good); }
.whole-row b { font-size: 1.15rem; }
.whole-row li.loop b::after { content: " ↻"; color: var(--good); }
.whole-row em { font-style: normal; color: var(--ink); font-size: 0.95rem; font-weight: 600; opacity: 0.85; }
.whole-row span { margin-top: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.whole-close { margin: 22px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.whole-close a { margin-left: 8px; color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.whole-close a:hover { text-decoration: underline; }
@media (max-width: 900px) { .whole-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .whole-row li::after { display: none; } }
@media (max-width: 520px) { .whole-row { grid-template-columns: 1fr; } .whole-close a { display: block; margin: 8px 0 0; } }

/* RID1983 (Raj: GO B): the highlight on The MERLIN Way: the four views in words beside the loop drawn; one column on a phone */
.way-whole { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; margin: 0 0 40px; padding: 28px 32px; border: 1px solid color-mix(in srgb, var(--good) 45%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--good) 6%, transparent); }
.way-whole h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.15; }
.way-whole-lede { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.way-whole-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.way-whole-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); line-height: 1.5; }
.way-whole-list b { color: var(--ink); }
.way-whole-list li.loop b { color: var(--good); }
.way-whole-list span { color: var(--muted); font-size: 0.95rem; }
.way-whole-list i { font-style: normal; color: var(--ink); font-weight: 600; }
.way-whole-fig { margin: 0; }
.way-whole-fig svg { display: block; width: 100%; height: auto; }
.way-whole-fig .wb rect { fill: rgba(11, 16, 32, 0.75); stroke: var(--line-strong); stroke-width: 1.4; }
.way-whole-fig .wb.run rect { stroke: var(--accent); }
.way-whole-fig .wb.ctx rect, .way-whole-fig .wb.ev rect { stroke: var(--good); fill: color-mix(in srgb, var(--good) 10%, rgba(11, 16, 32, 0.75)); }
.way-whole-fig .wl path { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.way-whole-fig .wl.loop path { stroke: var(--good); stroke-width: 2; }
.way-whole-fig marker path { fill: var(--muted); }
.way-whole-fig marker.g path { fill: var(--good); }
.way-whole-fig .wn text.e { text-anchor: end; }
.way-whole-fig .wk text { fill: var(--good); font-size: 15px; font-weight: 700; }
.way-whole-fig .wk text.k2 { fill: var(--muted); font-size: 12.5px; font-weight: 400; }
.way-whole-fig text { text-anchor: middle; font-family: inherit; }
.way-whole-fig .wt text { fill: var(--ink); font-size: 19px; font-weight: 700; }
.way-whole-fig .ws text { fill: var(--muted); font-size: 12.5px; }
.way-whole-fig .wn text { fill: var(--good); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .way-whole { grid-template-columns: 1fr; gap: 20px; padding: 20px 18px; } .way-whole-list li { grid-template-columns: 1fr; gap: 2px; } }

/* RID1989 (Raj): a card of a product's page is also classed .section, and the home page's .section padding (52px 0 4px) reached it: MERLIN Runtime's words stood at the card's left edge. The card keeps its own padding. */
.card.product.section { padding: 22px; }

/* RID1989 (Raj): a few words after a card's title (MERLIN Designer), smaller and in italics; under the title on a phone */
.product h3 .tagline { margin-left: 0.6em; font-size: 0.72em; font-weight: 500; font-style: italic; letter-spacing: 0; color: var(--muted); }
@media (max-width: 640px) { .product h3 .tagline { display: block; margin: 6px 0 0; } }

/* RID2029 (Raj: GO B): the Admin pull-down beside the signed-in name, and Sign out as a plain form on a page that runs no script */
.who .nav-menu-list a { display: block; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 7px 12px; border-radius: 10px; }
.who .nav-menu-list a:hover { color: var(--ink); background: var(--card-hover); }
.who .nav-menu-list a[hidden] { display: none; }
.who .who-out { display: inline; margin: 0; }
/* RID2029: an admin's header holds more (Verticals, AI Unboxed, Resources, the name, Admin, Sign out) than fits on one line of a
   laptop screen: there the menu takes a line of its own, as it already does on a narrower screen. A menu's name never breaks. */
.nav-menu summary { white-space: nowrap; }
@media (min-width: 1080px) and (max-width: 1439px) {
  body.wide-bar .bar { flex-wrap: wrap; }
  body.wide-bar .nav { order: 3; flex-basis: 100%; margin: 6px 0 0; }
  body.wide-bar .nav + .who { margin-left: auto; padding-left: 0; border-left: 0; }
}

/* RID2031 (Raj: GO): Home is the calling card for every vertical. The treasury headline is the Treasury page's, so the hero is
   not on Home; under the opening, two quiet buttons, one at each end, lead down to the two verticals. */
body:not(.sub-page) .hero { display: none; }
.treasury-only[hidden] { display: none; }
.opening-jump { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 0; }
.jump { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.jump:hover { background: var(--card-hover); border-color: var(--accent); }
.jump:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jump-i { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#why, #why-telecom { scroll-margin-top: 84px; }
/* a vertical a person may not open: there, greyed, not a link */
.nav-menu-list .off { display: block; padding: 7px 12px; color: var(--muted); opacity: 0.45; font-weight: 600; font-size: 0.95rem; white-space: nowrap; cursor: not-allowed; }

/* RID2033 (Raj: GO): the one Get in touch block, the foot of every page, in smaller type; the place and the foot links stay under it */
.foot .touch { flex-basis: 100%; text-align: center; padding: 6px 0 24px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.touch .eyebrow { margin: 0 0 6px; color: var(--good); font-size: 0.8rem; max-width: none; }
.touch h2 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.2; } /* RID2071 (Raj): a little smaller (was 1.3rem) */
.touch h2 a { color: var(--ink); text-decoration: none; }
.touch h2 a:hover { text-decoration: underline; }
.foot .touch p { margin: 0 auto 14px; max-width: 40em; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.touch .touch-mark { display: block; margin: 2px auto 8px; width: auto; height: 22px; } /* RID2071: the M under GET IN TOUCH */
.foot .touch p { margin-bottom: 12px; }
.touch .touch-li { display: inline-block; line-height: 0; border-radius: 4px; } .touch .touch-li img { display: block; width: 26px; height: 26px; border-radius: 4px; } .touch .touch-li:hover img { opacity: .85; } .touch .touch-li:focus-visible { outline: 2px solid var(--accent, #7aa7ff); outline-offset: 3px; } /* RID2071: LinkedIn's icon, the link to the profile */

/* RID2040 (Raj: GO): the Telecom page's sample: fault to fix as an agentic flow, drawn as a picture (an inline SVG). Violet: an AI agent;
   blue: code; green: a person; dashed: the operator's systems. On a narrow screen the frame scrolls sideways. RID2043: 'Where AI
   autonomy is earned' on the heading's line, right aligned, smaller, in italics; 'under development' set a little apart. */
.tf { margin: 0 0 40px; }
.tf-frame { border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.03); box-shadow: var(--shadow); padding: 14px 14px 8px; overflow-x: auto; }
.tf-svg { display: block; width: 100%; min-width: 900px; height: auto; font-family: inherit; }
.tf-lane { stroke: var(--line); stroke-width: 1; }
.tf-lane.ent { fill: color-mix(in srgb, var(--accent) 5%, transparent); }
.tf-lane.agent { fill: color-mix(in srgb, var(--accent-2) 6%, transparent); }
.tf-lane-name { fill: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; }
.tf-lane-sub { fill: var(--muted); font-size: 11px; font-style: italic; }
.tf-bridge { fill: color-mix(in srgb, var(--good) 12%, var(--bg-2)); stroke: color-mix(in srgb, var(--good) 55%, transparent); stroke-width: 1; }
.tf-bridge-name { fill: var(--good); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-anchor: middle; }
.tf-b rect { stroke-width: 1.5; }
.tf-b .tf-n { fill: var(--ink); font-size: 13px; font-weight: 700; text-anchor: middle; }
.tf-b .tf-s { fill: var(--muted); font-size: 10.2px; text-anchor: middle; }
.tf-b.code > rect:first-child, .tf-b.trig > rect:first-child, .tf-b.end > rect:first-child { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.tf-b.trig > rect:first-child, .tf-b.end > rect:first-child { rx: 33px; }
.tf-b.end > rect:first-child { stroke: var(--good); fill: color-mix(in srgb, var(--good) 9%, var(--bg)); }
.tf-b.llm > rect:first-child { stroke: var(--accent-2); fill: color-mix(in srgb, var(--accent-2) 13%, var(--bg)); }
.tf-b.people > rect:first-child { stroke: var(--good); fill: color-mix(in srgb, var(--good) 10%, var(--bg)); }
.tf-b.sys > rect:first-child { stroke: var(--line-strong); stroke-dasharray: 5 4; fill: rgba(255, 255, 255, 0.03); }
.tf-b.warn > rect:first-child { stroke: #f0b35a; fill: color-mix(in srgb, #f0b35a 10%, var(--bg)); }
.tf-tagbox { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: 1; }
.tf-b.llm .tf-tagbox { stroke: var(--accent-2); }
.tf-b.people .tf-tagbox { stroke: var(--good); }
.tf-b.code .tf-tagbox { stroke: var(--accent); }
.tf-tag { font-size: 8.6px; font-weight: 800; letter-spacing: 0.08em; text-anchor: middle; fill: var(--muted); }
.tf-b.llm .tf-tag { fill: var(--accent-2); }
.tf-b.people .tf-tag { fill: var(--good); }
.tf-b.code .tf-tag { fill: var(--accent); }
.tf-edge { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.tf-edge.back { stroke-dasharray: 6 4; }
.tf-edge.warn { stroke: #f0b35a; }
.tf-ah { fill: var(--line-strong); }
.tf-wh { fill: #f0b35a; }
.tf-info { stroke: color-mix(in srgb, var(--accent-2) 75%, var(--line-strong)); stroke-width: 1.3; stroke-dasharray: 2 4; stroke-linecap: round; fill: none; }
.tf-ih { fill: color-mix(in srgb, var(--accent-2) 75%, var(--line-strong)); }
.tf-lbl { fill: var(--muted); font-size: 10.6px; font-style: italic; text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.tf-lbl.warn { fill: #f0b35a; }
.tf-lbl.start { text-anchor: start; }
.tf-chip rect { fill: rgba(255, 255, 255, 0.04); stroke: var(--line); }
.tf-chip text { font-size: 11.5px; }
.tf-chip .k { fill: var(--ink); font-weight: 700; }
.tf-chip .t { fill: var(--muted); }
.tf-made rect { fill: color-mix(in srgb, var(--good) 9%, transparent); stroke: color-mix(in srgb, var(--good) 60%, transparent); stroke-width: 1.2; }
.tf-made text { fill: var(--good); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
.tf-legend text { fill: var(--muted); font-size: 10.8px; }
.tf-key { stroke-width: 1.4; }
.tf-key.llm { stroke: var(--accent-2); fill: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.tf-key.code { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.tf-key.people { stroke: var(--good); fill: color-mix(in srgb, var(--good) 12%, transparent); }
.tf-key.sys { stroke: var(--line-strong); stroke-dasharray: 3 2.5; fill: transparent; }
.tf-note { margin: 12px 4px 0; color: var(--muted); font-size: 0.85rem; }
.tf-swipe { display: none; }
.tf-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1000px) { .tf-swipe { display: inline; color: var(--ink); } }
.tf-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; margin: 4px 0 16px; }
.tf-h { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.tf-earned { margin: 0; color: var(--good); font-style: italic; font-weight: 400; font-size: clamp(0.95rem, 1.5vw, 1.1rem); }
.quote .stands-now { margin-left: 1.1em; font-style: italic; }
