/* ---------------------------------------------------------------------------
   Catalyst Labs — Catalysis brand system
   Type: Satoshi (headlines) · General Sans (body)
   Palette: Blue #CFEBFF / #6586EA · Yellow #FFEBCE / #FDB42B
            Purple #F9E1FF / #B417D7 · Red #FFE5E5 / #E46F67 · Green #EBFFC9
            Ink #1C1C1A
--------------------------------------------------------------------------- */
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #1C1C1A;
  --ink-2: #4a4a48;
  --ink-3: #7a7a77;
  --white: #ffffff;
  --bg: #ffffff;
  --fg: #1C1C1A;
  --fg-2: #4a4a48;
  --fg-3: #7a7a77;
  --card: #ffffff;
  --card-soft: rgba(255,255,255,.6);
  --nav-bg: rgba(255,255,255,.72);
  --nav-line: rgba(255,255,255,.7);
  --bars: #6586EA;
  --bars-dim: rgba(101,134,234,.5);
  --hero-bg: #CFEBFF;
  --tint-blue: #CFEBFF;
  --tint-yellow: #FFEBCE;
  --tint-purple: #F9E1FF;
  --tint-green: #EBFFC9;
  --tint-red: #FFE5E5;
  --tint-green-soft: #F4FFE3;
  --cta-h: #4f6b00;
  --blue-50: #CFEBFF;
  --blue: #6586EA;
  --yellow-50: #FFEBCE;
  --yellow: #FDB42B;
  --purple-50: #F9E1FF;
  --purple: #B417D7;
  --red-50: #FFE5E5;
  --red: #E46F67;
  --green-50: #EBFFC9;
  --green: #7FA61A;
  --line: rgba(28,28,26,.1);
  --sans: "Satoshi", system-ui, -apple-system, sans-serif;
  --body: "General Sans", system-ui, -apple-system, sans-serif;
  --gutter: clamp(18px, 5vw, 64px);
  --max: 1160px;
  --r: 20px;
  --gap: 18px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  /* tokens lifted from catalysis.network dark mode */
  --bg: #1c1c1a;
  --fg: #ffffff;
  --fg-2: #d9d9d9;
  --fg-3: #969696;
  --ink-2: #d9d9d9;
  --ink-3: #969696;
  --line: rgba(255,255,255,.14);
  --card: #262623;
  --card-soft: rgba(255,255,255,.08);
  --nav-bg: rgba(0,0,0,.41);
  --nav-line: rgba(255,255,255,.06);
  --bars: #609af8;
  --bars-dim: rgba(96,154,248,.55);
  --hero-bg: #031b62;
  --tint-blue: #031b62;
  --tint-yellow: rgba(82,54,11,.2);
  --tint-purple: rgba(102,13,122,.2);
  --tint-green: #31450e;
  --tint-red: #2a1a19;
  --tint-green-soft: #232a17;
  --cta-h: #ffffff;
  --blue-50: #031b62;
  --yellow-50: #3b2607;
  --purple-50: #3a0b47;
  --green-50: #31450e;
  --red-50: #3e0d0a;
  --blue: #609af8;
  --yellow: #f4ab3e;
  --purple: #da5afa;
  --green: #8fc23a;
}
:root[data-theme="dark"] .duo-card, :root[data-theme="dark"] .app, :root[data-theme="dark"] .net, :root[data-theme="dark"] .tile { color: var(--fg); }
:root[data-theme="dark"] .pill { background: rgba(255,255,255,.12); color: var(--fg); }
:root[data-theme="dark"] .duo-card .link-arrow { color: var(--fg); }
:root[data-theme="dark"] .chip { background: rgba(255,255,255,.1); color: var(--fg); }
:root[data-theme="dark"] .facts { background: var(--bg); }
:root[data-theme="dark"] .footer { background: var(--bg); }
:root[data-theme="dark"] .cta .btn, :root[data-theme="dark"] .naas-teaser .btn { background: #fff; color: #1c1c1a; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; font-weight: 500; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .theme-toggle:focus-visible, .nav-toggle:focus-visible, .pill:focus-visible { border-radius: 999px; }
.app:focus-visible, .net:focus-visible, .chain:focus-visible { border-radius: var(--r); }

h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.03em; }
h1 strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: .02em; color: var(--blue); margin-bottom: 14px; }
.section-blue .eyebrow, .section-purple .eyebrow, .section-yellow .eyebrow { color: var(--ink-2); }
.section .section-head .eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg) !important; margin-bottom: 18px; }
.section-head .eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--blue); flex-shrink: 0; }
.section-green .section-head .eyebrow::before { background: var(--green); }
.section-red .section-head .eyebrow::before { background: var(--red); }
.section-yellow .section-head .eyebrow::before { background: var(--yellow); }
.section-purple .section-head .eyebrow::before { background: var(--purple); }
:root[data-theme="dark"] .section .section-head .eyebrow { color: var(--fg); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--fg-2); max-width: 560px; margin-top: 16px; }

/* --- buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1; transition: transform .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { background: #000; transform: translateY(-1px); }
:root[data-theme="dark"] .btn { background: #fff; color: #1c1c1a; }
:root[data-theme="dark"] .btn:hover { background: #e9e9e6; }
.btn-nav { padding: 11px 20px; font-size: 15px; }
.btn-arrow { gap: 8px; }
.btn-arrow::after { content: "→"; transition: transform .2s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-outline:hover { background: var(--card-soft); }
:root[data-theme="dark"] .btn-outline { background: transparent; color: var(--fg); }
:root[data-theme="dark"] .btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.link-arrow { font-weight: 600; font-size: 16px; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- nav ------------------------------------------------------------------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; pointer-events: none; }
.nav { pointer-events: auto; max-width: var(--max); margin: 0 auto; height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 0 12px 0 20px; border-radius: 999px; background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--nav-line); box-shadow: 0 1px 0 rgba(28,28,26,.04), 0 10px 30px -18px rgba(28,28,26,.25); color: var(--fg); }
.brand { display: flex; align-items: center; gap: 6px; color: var(--fg); justify-self: start; }
.brand-mark { height: 22px; width: auto; position: relative; top: 0.08em; }
.brand-name { font-family: var(--sans); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.brand-name em { font-style: normal; font-weight: 500; color: var(--fg-2); }
.nav-links { display: flex; gap: 28px; justify-self: center; }
.nav-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-soft); color: var(--fg); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .2s; }
.theme-toggle:hover { background: var(--line); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--fg-2); transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; border-radius: 50%; }
.nav-toggle span { display: block; height: 2px; background: var(--fg); margin: 6px 0; transition: transform .2s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { pointer-events: auto; display: none; flex-direction: column; position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); max-width: var(--max); margin: 0 auto; background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 24px; padding: 8px 22px; border: 1px solid var(--nav-line); color: var(--fg); box-shadow: 0 10px 30px -18px rgba(28,28,26,.3); }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: flex; }
.mobile-menu { background: rgba(244,250,255,.96); }
:root[data-theme="dark"] .mobile-menu { background: rgba(2,12,46,.96); border-color: rgba(255,255,255,.1); }

/* --- hero ------------------------------------------------------------------ */
.hero { position: relative; background: var(--hero-bg); color: var(--fg); margin-top: -76px; padding: 76px 0 0; overflow: hidden; }
.hero { --hero-text: 600px; --hero-gap: 56px; --stats-h: 75px; --art-top: 0px; --art-gap: 28px; }
.hero-grid { position: static; display: block; padding-top: clamp(72px, 10vh, 120px); padding-bottom: clamp(56px, 8vh, 96px); }
.hero-copy { position: relative; z-index: 1; max-width: var(--hero-text); }
.hero-stats { position: relative; z-index: 1; }
.hero h1 { max-width: 620px; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.0; letter-spacing: -0.035em; }
.hero h1 strong { font-weight: 700; color: var(--blue); }
:root[data-theme="dark"] .hero h1 strong { color: #609af8; }
.hero .eyebrow { color: var(--fg-2); }
:root[data-theme="dark"] .hero .eyebrow { color: var(--fg-2); }
.hero-sub { margin-top: 22px; max-width: 580px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--fg-2); }
.hero-cta { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-art { position: absolute; top: var(--art-top); right: 0; bottom: calc(var(--stats-h) + var(--art-gap)); left: auto; width: min(35vw, calc(100vw - (max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) + var(--hero-text) + var(--hero-gap)))); }
.hero-art canvas { width: 100%; height: 100%; display: block; transform: scaleX(-1); }

.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .28s; }
.hero-copy > :nth-child(4) { animation-delay: .4s; }
.nav { animation: fade .6s ease both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --- hero stats ------------------------------------------------------------ */
.hero-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(28,28,26,.12); padding: 20px 0 26px; }
.hero-stats > div { display: flex; align-items: baseline; gap: 10px; padding-left: 22px; border-left: 1px solid rgba(28,28,26,.12); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-family: var(--sans); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1; color: var(--fg); }
.hero-stats dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--fg-2); }
:root[data-theme="dark"] .hero-stats, :root[data-theme="dark"] .hero-stats > div { border-color: rgba(255,255,255,.14); }
/* --- facts strip (unused) --------------------------------------------------- */
.facts { background: var(--bg); border-bottom: 1px solid var(--line); }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 22px; padding-bottom: 22px; }
.facts-inner > div { display: flex; flex-direction: column; gap: 2px; padding: 4px 24px 4px 0; border-left: 1px solid var(--line); padding-left: 22px; }
.facts-inner > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-family: var(--sans); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--fg-3); }

/* --- sections -------------------------------------------------------------- */
.section { padding: clamp(48px, 5.5vw, 80px) 0; scroll-margin-top: 20px; }
.section-blue { background: var(--tint-blue); }
.section-purple { background: var(--tint-purple); }
.section-yellow { background: var(--tint-yellow); }
.section-green { background: var(--tint-green-soft); }
.section-red { background: var(--tint-red); }
:root[data-theme="dark"] .section-blue .eyebrow, :root[data-theme="dark"] .section-purple .eyebrow, :root[data-theme="dark"] .section-yellow .eyebrow { color: var(--fg-2); }
.section-head { margin-bottom: clamp(24px, 3vw, 36px); max-width: 720px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head.row p { max-width: 680px; color: var(--fg-2); font-size: clamp(17px, 1.5vw, 19px); }

/* --- what we do ------------------------------------------------------------ */
.duo { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); column-gap: var(--gap); row-gap: 0; }
.duo-card { --c: var(--yellow); color: var(--ink); position: relative; border-radius: var(--r); padding: 30px 30px 0; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; overflow: hidden; background: var(--yellow-50); }
.duo-card.purple { background: var(--purple-50); --c: var(--purple); }
.duo-card .eyebrow { color: var(--ink-2); margin-bottom: 10px; }
.duo-card h3 { font-size: clamp(26px, 2.6vw, 32px); }
.duo-card p { margin-top: 12px; font-size: 16px; color: var(--ink-2); max-width: 440px; }
.duo-card .link-arrow { margin-top: 20px; color: var(--ink); justify-self: start; align-self: start; }
.duo-card .stripes { margin-top: 28px; height: 60px; align-self: end; justify-self: stretch; width: 100%; background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 14px); mask-image: linear-gradient(to bottom, transparent, #000 34%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-self: start; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink-2); }

/* --- apps ------------------------------------------------------------------ */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.app { --bg: var(--blue-50); --c: var(--blue); color: var(--ink); position: relative; display: flex; flex-direction: column; gap: 22px; background: var(--bg); border-radius: var(--r); padding: 26px 26px 48px; min-height: 250px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.app::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 12px); opacity: .35; }
.app:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(28,28,26,.35); }
.c-blue { --bg: var(--blue-50); --c: var(--blue); }
.c-yellow { --bg: var(--yellow-50); --c: var(--yellow); }
.c-purple { --bg: var(--purple-50); --c: var(--purple); }
.c-green { --bg: var(--green-50); --c: var(--green); }
.c-red { --bg: var(--red-50); --c: var(--red); }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--white); display: grid; place-items: center; color: var(--ink); box-shadow: 0 1px 0 rgba(28,28,26,.06); }
.app-logo img, .app-logo svg { height: 26px; width: auto; }
.app-logo img.lg { height: 38px; }
.app-logo-tile { background: none; box-shadow: none; overflow: hidden; }
.app-logo-tile img { width: 56px; height: 56px; border-radius: 16px; }
.app-body { margin-top: auto; }
.app h3 { font-size: 26px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.app h3 small { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--ink-3); letter-spacing: 0; }
.app p { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.45; max-width: 460px; }
.app .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--ink-2); white-space: nowrap; }
.pill.live { color: #3f5a00; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pill.soon { color: #7a4e00; }
.pill.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.pill.build { color: #5b2a99; }
.pill.build::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }

/* --- chains ---------------------------------------------------------------- */
#chains h2 { text-wrap: balance; }
.chains { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.chain { background: var(--card-soft); color: var(--fg); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chain-logo { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--white); color: var(--fg); }
.chain-logo img { display: block; width: auto; height: 26px; filter: brightness(0); opacity: .9; }
.chain-logo img.eth { height: 30px; }
.chain-logo img.rh { height: 27px; }
.chain-logo svg { width: 30px; height: 30px; opacity: .9; }
:root[data-theme="dark"] .chain-logo { background: rgba(255,255,255,.1); }
:root[data-theme="dark"] .chain-logo img { filter: brightness(0) invert(1); opacity: 1; }
:root[data-theme="dark"] .chain-logo svg { opacity: 1; }
.chain-body { flex: 1; display: flex; flex-direction: column; }
.chain h3 { font-size: 22px; }
.chain p { margin-top: 5px; font-size: 15px; color: var(--fg-2); line-height: 1.45; text-wrap: pretty; }
.chain .pill { align-self: flex-start; margin-top: auto; }
.chain p { margin-bottom: 16px; }


/* --- naas teaser ----------------------------------------------------------- */
.naas-teaser { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.naas-teaser .section-head { margin-bottom: 0; }
.naas-teaser h2 { text-wrap: balance; }
.naas-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.naas-list li:last-child { border-bottom: 1px solid var(--line); }
.naas-list h3 { font-size: 19px; }
.naas-list p { text-wrap: pretty; margin-top: 4px; font-size: 15px; color: var(--fg-2); line-height: 1.45; }
.naas-teaser .btn { margin-top: 26px; }

/* --- cta ------------------------------------------------------------------- */
.cta { position: relative; background: var(--tint-green); overflow: hidden; }
.cta { --cta-pad: clamp(44px, 5vw, 72px); --cta-stripes: 36px; }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 28px 32px; flex-wrap: wrap; padding-top: var(--cta-pad); padding-bottom: calc(var(--cta-pad) + var(--cta-stripes)); }
.cta h2 { color: var(--cta-h); }
.cta p { margin-top: 14px; font-size: 18px; color: var(--fg-2); max-width: 480px; }
.cta-stripes { position: absolute; left: 0; right: 0; bottom: 0; height: var(--cta-stripes); background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 12px); opacity: .55; }

/* --- footer ---------------------------------------------------------------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.footer .brand-mark { height: 18px; }
.footer .brand-name { font-size: 18px; }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 14px; font-size: 15px; color: var(--fg-2); }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--fg); }
.footer-legal { font-size: 14px; color: var(--fg-2); line-height: 1.6; text-align: right; max-width: 460px; }
.footer-legal p:last-child { color: var(--fg-3); }
.footer-legal strong { color: var(--fg); font-weight: 600; }
.footer-legal a { color: var(--fg); }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta .btn:focus-visible, .footer a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ===========================================================================
   NaaS page
   =========================================================================== */
.hero-naas { min-height: 78vh; display: flex; align-items: center; }
.hero-bars { position: absolute; left: 0; top: 100px; bottom: 0; width: 44%; }
.hero-bars canvas { width: 100%; height: 100%; display: block; }
.hero-naas .hero-inner { position: relative; width: 100%; padding: clamp(72px, 11vh, 128px) var(--gutter); padding-left: calc(44% + 64px); display: flex; flex-direction: column; align-items: flex-start; }
.hero-naas h1 { max-width: 760px; }
.hero-inner > * { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .15s; }
.hero-inner > :nth-child(3) { animation-delay: .28s; }
.hero-inner > :nth-child(4) { animation-delay: .4s; }
.crumb { display: block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--fg-2); margin-bottom: 14px; }
.crumb span { color: var(--fg-3); margin: 0 6px; }
.hero-naas .hero-sub { text-wrap: pretty; }

.clouds { background: var(--bg); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .marquee-track .l-aws, :root[data-theme="dark"] .marquee-track .l-cw { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .marquee-track .l-gcp { filter: brightness(1.45); }
.clouds-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); padding-top: 28px; padding-bottom: 28px; }
.clouds-label { font-size: 14px; font-weight: 600; color: var(--fg-3); white-space: nowrap; flex-shrink: 0; }
.marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); width: max-content; padding-right: clamp(48px, 6vw, 96px); animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.marquee-track img { height: 28px; width: auto; display: block; }
.marquee-track .l-aws { height: 34px; }
.marquee-track .l-gcp { height: 30px; }
.marquee-track .l-azure { height: 30px; }
.marquee-track .l-cw { height: 22px; }
.marquee-track .l-oci img { height: 20px; }
.marquee-track .l-oci span { font-family: var(--body); font-weight: 500; font-size: 17px; color: #C74634; letter-spacing: -0.01em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.net { color: var(--ink); position: relative; background: var(--bg); border-radius: var(--r); padding: 24px 24px 44px; display: flex; flex-direction: column; gap: 22px; min-height: 216px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.net::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 12px); opacity: .35; }
.net:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(28,28,26,.35); }
.net-logo { width: 58px; height: 58px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(28,28,26,.06); }
.net-logo img { height: 28px; width: auto; display: block; }
.net-logo img.sm { height: 22px; }
.net-body { margin-top: auto; }
.net h3 { font-size: 22px; }
.net p { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.45; min-height: 2.9em; text-wrap: pretty; }
.net .pill { position: absolute; top: 24px; right: 24px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.stat { background: var(--card-soft); border-radius: var(--r); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--sans); font-weight: 600; font-size: clamp(38px, 4.2vw, 54px); line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 15px; color: var(--fg-2); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.tile { --c: var(--blue); color: var(--ink); position: relative; border-radius: var(--r); padding: 26px 24px 0; min-height: 270px; display: flex; flex-direction: column; overflow: hidden; background: var(--white); }
.tile h3 { font-size: 22px; }
.tile p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 260px; }
.tile .stripes { margin-top: auto; height: 56px; background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 14px); mask-image: linear-gradient(to bottom, transparent, #000 34%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); opacity: .9; }
.tile-blue, .tile-white { background: var(--card); color: var(--fg); --c: var(--blue); }
.tile-blue p, .tile-white p { color: var(--fg-2); }
.tile-yellow { background: var(--yellow-50); --c: var(--yellow); }
.tile-purple { background: var(--purple-50); --c: var(--purple); }
.tile-green { background: var(--green-50); --c: var(--green); }
/* tiles: share title / description / stripe rows across siblings so copy lines up */
@supports (grid-template-rows: subgrid) {
  .tile { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  .tile .stripes { margin-top: 28px; align-self: end; }
  .tile p { min-height: 6em; } /* 4 lines: keeps 2×2 / stacked tiles equal height */
}
.tile { padding-top: 24px; }
:root[data-theme="dark"] .tile-white { background: #0d2a7e; }
:root[data-theme="dark"] .tile-white p { color: var(--fg-2); }

.ops-wrap, .faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ops-wrap .section-head, .faq-wrap .section-head { margin-bottom: 0; }
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.ops li { padding: 20px 0; border-top: 1px solid var(--line); }
.ops h3 { font-size: 19px; }
.ops p { margin-top: 6px; font-size: 15px; color: var(--fg-2); line-height: 1.45; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; text-wrap: balance; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%231C1C1A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { box-shadow: 0 0 0 1px var(--line); }
.faq summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 6px; }
.ops-wrap .section-head { padding-top: 15px; }
.faq-wrap .section-head { padding-top: 22px; }
.faq details p { padding: 0 60px 22px 0; font-size: 16px; line-height: 1.55; color: var(--fg-2); max-width: 640px; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .chains, .stats, .tiles { grid-template-columns: 1fr 1fr; }
  .net-grid { grid-template-columns: 1fr 1fr; }
  .net { min-height: 200px; }
  .ops-wrap, .faq-wrap, .naas-teaser { grid-template-columns: 1fr; }
  .ops-wrap .section-head, .faq-wrap .section-head, .naas-teaser .section-head { margin-bottom: 8px; }
  .ops-wrap .section-head, .faq-wrap .section-head { padding-top: 0; }
  .hero { --hero-text: 500px; --hero-gap: 40px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-right .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav { display: flex; justify-content: space-between; gap: 12px; padding-right: 8px; }
  .nav-right { gap: 2px; }
  .hero-grid { padding-top: 56px; padding-bottom: 28px; }
  .hero-copy { max-width: none; }
  .hero-art { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; height: 210px; margin: 28px calc(-1 * var(--gutter)) 0; }
  .hero-cta { gap: 20px; }
  .facts-inner { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .hero-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-inner > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-naas { min-height: 0; }
  .hero-bars { width: 100%; height: 150px; bottom: auto; top: 100px; opacity: .9; }
  .hero-naas .hero-inner { padding: 190px var(--gutter) 64px; }
  .clouds-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .ops { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app h3 { font-size: 22px; }
}
@media (max-width: 720px) {
  .duo, .apps { grid-template-columns: 1fr; }
  .duo { grid-template-rows: none; row-gap: var(--gap); }
  .duo-card { min-height: 0; display: flex; flex-direction: column; grid-row: auto; }
  .duo-card .stripes { margin-top: 24px; }
  .duo-card p, .app p { max-width: none; }
}
@media (max-width: 960px) {
  .footer-inner { flex-direction: column; }
  .footer-legal { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .chains, .net-grid, .tiles { grid-template-columns: 1fr; }
  .chain { min-height: 0; gap: 14px; flex-direction: row; align-items: flex-start; padding: 24px; }
  .chain-logo { width: 48px; height: 48px; border-radius: 13px; }
  .chain-body { min-width: 0; }
  .chain h3 { line-height: 48px; margin-top: -2px; margin-bottom: -10px; }
  .stats { gap: 10px; }
  .stat { padding: 18px 16px 14px; }
  .stat strong { font-size: 34px; }
  .net { min-height: 0; gap: 20px; }
  .net p { min-height: 0; }
  .hero-naas .hero-cta { align-self: stretch; }
  .hero-naas .hero-cta .btn { flex: 1 1 auto; }
  .tile { min-height: 230px; }
  .app { padding: 22px 22px 44px; min-height: 0; gap: 18px; }
  .app h3 { font-size: 22px; }
  .duo-card { padding: 24px 22px 0; }
  .faq details p { padding-right: 0; }
  .brand-name { font-size: 18px; }
  .btn-lg { padding: 16px 22px; font-size: 16px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 14px 18px; font-size: 15px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
  .cta .btn-lg { width: 100%; }
  .footer-links { display: grid; grid-template-columns: repeat(3, max-content); gap: 0 28px; margin-top: 4px; }
  .footer-links:not(:has(> :nth-child(5))) { grid-template-columns: repeat(4, max-content); }
  .footer-links a { padding: 10px 0; }
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .facts strong { font-size: 22px; }
  .hero-stats > div { flex-direction: column; gap: 4px; }
  .hero-stats dt { font-size: 22px; }
}
@media (max-width: 360px) {
  .hero-naas h1 { font-size: 36px; }
  .crumb { font-size: 13px; }
}
/* What we do + Portfolio: shared rhythm, aligned rows, consistent marks */
#what h2, #apps h2, .duo-card h3 { text-wrap: balance; }
.duo-card p, .app p { text-wrap: pretty; }
.duo-card { padding: 28px 28px 0; }
.duo-card p.eyebrow { margin-top: 0; }
.app { padding: 28px 28px 50px; }
.app-top { align-items: center; }
.app-body { margin-top: 0; flex: 1; display: flex; flex-direction: column; }
.app .meta { margin-top: auto; padding-top: 16px; }
.app-logo img[src*="catalysis"] { height: 28px; }
.app-logo img[src*="ashridge"] { height: 34px; }
:root[data-theme="dark"] .app-logo { box-shadow: none; }
:root[data-theme="dark"] .app-logo-tile img { outline: 1px solid rgba(255,255,255,.16); outline-offset: -1px; }
:root[data-theme="dark"] .app::after { opacity: .6; }
@media (max-width: 560px) {
  .duo-card { padding: 24px 24px 0; }
  .app { padding: 24px 24px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app, .net, .link-arrow::after, .faq summary::after { transition: none; }
  .hero-copy > *, .hero-inner > *, .nav { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}
/* NaaS page: final pass — pill centred on logo, Aptos edge on lime, closing rules, no orphans */
.net .pill { top: calc(24px + 29px); transform: translateY(-50%); }
.net { box-shadow: inset 0 0 0 1px rgba(28,28,26,.06); }
.net:hover { box-shadow: inset 0 0 0 1px rgba(28,28,26,.06), 0 24px 40px -28px rgba(28,28,26,.35); }
:root[data-theme="dark"] .net { box-shadow: none; }
:root[data-theme="dark"] .net:hover { box-shadow: 0 24px 40px -28px rgba(0,0,0,.6); }
.ops { border-bottom: 1px solid var(--line); }
.ops p, .faq details p { text-wrap: pretty; }
.faq summary { text-wrap: balance; }
@media (max-width: 560px) {
  .tile { min-height: 0; }
  .tile p { min-height: 0; }
}
/* final pass: whole stripes only (no clipped sliver at the edge); short tile titles sit on their text */
.tile .stripes, .duo-card .stripes { background: linear-gradient(90deg, var(--c) 0 5px, transparent 5px) left / 14px 100% round; }
@supports (grid-template-rows: subgrid) { .tile h3 { align-self: end; } }
