/* Self-hosted IBM Plex (SIL Open Font License), Latin subset */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-sans-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-sans-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/plex-sans-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/plex-serif-600.woff2) format("woff2"); }

/* Torusline site stylesheet. Tokens from the brand sheet. */
:root {
  --ink: #0B1F33; --accent: #0E7C86; --accent-dark: #0A5F67; --paper: #F3F4F6; --white: #FFFFFF;
  --text: #1F2937; --muted: #5B6471; --rule: #E5E7EB;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 68ch; --wrap: 1120px; --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.brand img { display: block; height: 30px; width: auto; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Prose */
main.prose { padding-block: clamp(32px, 6vw, 72px); }
.prose > * { max-width: var(--measure); }
.prose h1, .prose h2, .prose h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; }
.prose h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 20px; max-width: 24ch; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--rule); }
.prose h3 { font-size: 20px; margin: 28px 0 8px; font-family: var(--sans); }
.prose h1 + p { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 56ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; max-width: 100%; font-size: 15px; margin: 16px 0 24px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--paper); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.prose strong { color: var(--ink); }

/* Buttons and markers */
.cta { margin: 24px 0 8px; }
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; padding: 12px 20px; border-radius: 6px; font-size: 16px; }
.button:hover { background: var(--accent-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.button.secondary:hover { background: var(--paper); }
mark.confirm { background: #FFF3C4; color: #7A5A00; padding: 0 4px; border-radius: 3px; font-size: 0.9em; }

/* Home: lists directly under an h2 render as cards */
.page-home .prose h2 + ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: none; }
.page-home .prose h2 + ul > li { border: 1px solid var(--rule); border-radius: 8px; padding: 20px; margin: 0; background: var(--white); }
.page-home .prose h2 + ul > li strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.page-home .prose h2 + ul > li a { font-weight: 500; }
.page-home .prose h1 { max-width: 20ch; }

/* Projects: h3 entries */
.page-projects .prose h3 { margin-top: 32px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.page-projects .prose h3 + p em { color: var(--muted); font-style: normal; font-size: 15px; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D1DB; margin-top: 64px; padding: 48px 0 24px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer img { height: 56px; width: auto; display: block; margin-bottom: 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer strong { color: #fff; }
.fine { margin-top: 32px; color: #8A96A5; font-size: 13px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header nav ul { gap: 2px 14px; }
  .site-header nav a { font-size: 14px; }
}
@media print {
  .site-header, .site-footer, .cta { display: none; }
  body { font-size: 11pt; color: #000; }
}

/* Contact form */
.contact-form { display: grid; gap: 14px; max-width: 560px; margin: 8px 0 24px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; color: var(--ink); font-size: 15px; }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1px solid #C7CCD3; border-radius: 6px; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form button { justify-self: start; border: 0; cursor: pointer; }
.fine { color: var(--muted); font-size: 13px; }

/* ---------- Design pass 2 ---------- */
.brand img { height: 34px; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; margin: 0 0 14px; }
.section-title { font-family: var(--serif); color: var(--ink); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; margin: 0 0 24px; letter-spacing: -0.01em; }
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band-paper { background: var(--paper); border-top: 0 !important; }
.band-ink { background: var(--ink); color: #D5DCE5; border-top: 0 !important; }
.band-ink .section-title, .band-ink strong { color: #fff; }
.band-ink a { color: #fff; }
.band-ink p { max-width: 48ch; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.hero h1 { font-family: var(--serif); color: var(--ink); font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 20px; max-width: 16ch; font-weight: 600; }
.hero .lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.facts { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 24px 26px; box-shadow: 0 1px 2px rgba(11,31,51,.04); position: relative; }
.facts::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; background: var(--accent); border-radius: 0 4px 4px 0; }
.facts dl { margin: 0; display: grid; gap: 16px; }
.facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; font-size: 16px; line-height: 1.4; }

/* Capability cards on home */
.home .band ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.home .band ul > li { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 24px 22px 22px; margin: 0; position: relative; }
.home .band ul > li::before { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 18px; }
.home .band ul > li strong { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 8px; line-height: 1.2; }
.home .band ul > li { font-size: 15.5px; color: var(--text); }

/* Projects band */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.band-ink ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.band-ink ul > li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); margin: 0; font-size: 16px; }
.band-ink ul > li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.band-ink ul > li::before { content: none; }
.band-ink ul > li { background: none; border-radius: 0; }
.band-ink ul > li strong { font-family: var(--sans); font-size: 16px; margin: 0; display: inline; }

/* Pathways */
.pathways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.pathway { display: grid; gap: 10px; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 28px; transition: border-color .15s, box-shadow .15s; }
.pathway:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(11,31,51,.08); color: var(--text); }
.pathway .eyebrow { margin: 0; }
.pathway strong { font-family: var(--serif); font-size: 26px; color: var(--ink); line-height: 1.15; }
.pathway .more { color: var(--accent-dark); font-weight: 500; margin-top: 6px; }
.pathway .more::after { content: " \2192"; }

/* Founder band */
.founder { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; }
.founder p { max-width: 56ch; }
.mark-deco { display: flex; justify-content: center; opacity: .9; }
.mark-deco img { width: 140px; height: 140px; }

/* Inner pages: content + sticky aside */
.inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: clamp(32px, 6vw, 72px); row-gap: 0; align-items: start; }
.inner > * { grid-column: 1; }
.inner h1 { grid-column: 1; }
.page-aside { grid-column: 2; grid-row: 1 / span 200; position: sticky; top: 88px; align-self: start; }
.page-aside .card { background: var(--paper); border-radius: 10px; padding: 22px 22px 8px; font-size: 15px; }
.page-aside h3 { margin: 0 0 12px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.page-aside p { margin: 0 0 14px; }
.page-aside .button { width: 100%; text-align: center; box-sizing: border-box; margin-bottom: 12px; font-size: 15px; padding: 11px 8px; white-space: nowrap; }
.page-aside .button.secondary { background: #fff; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); }
.prose h1 { font-size: clamp(36px, 5vw, 54px); }

@media (max-width: 900px) {
  .hero-grid, .split, .founder, .inner { grid-template-columns: 1fr; }
  .page-aside { grid-column: 1; grid-row: auto; position: static; }
  .mark-deco { display: flex; justify-content: center; opacity: .9; }
}

/* ---------- Visual devices (pass 3) ---------- */
.hero { position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; background: url(/img/wm-ink.svg) no-repeat center / contain; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.band-ink { position: relative; overflow: hidden; }
.band-ink::before { content: none; }
.band-ink .wrap { position: relative; z-index: 1; }
.site-footer { position: relative; overflow: hidden; }
.site-footer::after { content: none; }
.site-footer .wrap { position: relative; z-index: 1; }
.section-title::before { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 18px; }

.page-aside .card::before { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 14px; }
.prose h1::before { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 20px; }
/* Country tiles in the projects band */
.band-ink ul > li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 18px 18px 16px; color: #D5DCE5; }
.band-ink ul { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.band-ink ul > li::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 12px; }
.band-ink ul > li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 900px) { .hero::after { width: 320px; height: 320px; right: -120px; bottom: -120px; } .band-ink::before, .site-footer::after { display: none; } }


/* ---------- Mobile pass ---------- */
.nav-button { display: none; }
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: nowrap; min-height: 60px; padding-block: 8px; }
  .nav-button { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
  .nav-button .bars { width: 18px; height: 2px; background: var(--ink); position: relative; display: block; }
  .nav-button .bars::before, .nav-button .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
  .nav-button .bars::before { top: -6px; } .nav-button .bars::after { top: 6px; }
  .js .site-header nav { display: none; }
  .js .site-header.nav-open nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(11,31,51,.08); }
  .site-header nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 12px; }
  .site-header nav li { border-top: 1px solid var(--rule); }
  .site-header nav a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 0; }
  .site-header nav a[aria-current="page"] { color: var(--accent-dark); }
  .site-header { position: sticky; }

  .hero { padding: 36px 0 40px; }
  .hero::after { display: none; }
  .hero h1 { font-size: 34px; margin-bottom: 14px; }
  .hero .lede { font-size: 17px; margin-bottom: 20px; }
  .hero .eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  .cta-row .button { width: 100%; text-align: center; box-sizing: border-box; }
  .facts { padding: 18px 20px; }
  .facts dl { gap: 12px; }
  .band { padding: 40px 0; }
  .section-title { font-size: 26px; margin-bottom: 18px; }
  .section-title::before { margin-bottom: 12px; }
  .home .band ul { gap: 12px; }
  .home .band ul > li { padding: 18px 18px 16px; }
  .home .band ul > li::before { margin-bottom: 12px; }
  .pathway { padding: 22px; }
  .pathway strong { font-size: 22px; }
  .founder .mark-deco { display: flex; justify-content: center; opacity: .9; }
  main.prose { padding-block: 32px; }
  .prose h1 { font-size: 32px; }
  .prose h2 { font-size: 24px; margin-top: 36px; padding-top: 18px; }
  .page-aside { margin-top: 32px; }
  .site-footer { padding: 36px 0 20px; }
  .site-footer img { height: 44px; }
  .site-footer::after { content: none; }
}
@media (max-width: 420px) { .hero h1 { font-size: 30px; } }

.founder-wrap p { max-width: 60ch; }

.engagement svg { width: 100%; height: auto; max-width: 440px; display: block; }
.engagement .eyebrow { margin-bottom: 8px; }
@media (max-width: 900px) { .engagement { margin-top: 8px; } }
