/* SRIIO website — only what is the site's own. Everything else (tokens, type, layout, header, footer, buttons,
   labels, sections, themes, glass and motion) is SRIIO Design Engine, in assets/engine/, pinned in engine.lock.
   Colours and sizes only as engine tokens (var(--sde-…)); the build fails on a colour literal. No inline styles. */

/* ---------- reveal delays, for a page's opening lines ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sde-js .sde-reveal.d1 { transition-delay: .08s; } .sde-js .sde-reveal.d2 { transition-delay: .16s; } .sde-js .sde-reveal.d3 { transition-delay: .24s; }
}

/* ---------- header: the products menu has two columns and a foot; the foot's links sit in the same two
   columns, each a row of its own with its arrow at the end, so a longer label never crowds the next ---------- */
.sde-nav .sde-panel .foot { grid-column: 1 / -1; border-top: 1px solid var(--sde-hairline); margin-top: 6px; padding: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; font-size: 14px; }
.sde-nav .sde-panel.one .foot { grid-template-columns: minmax(0, 1fr); }
.sde-nav .sde-panel .foot a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-radius: var(--sde-radius-m); white-space: nowrap; }
.sde-nav .sde-panel .foot a:hover, .sde-nav .sde-panel .foot a:focus-visible { background: var(--sde-fill-strong); color: var(--sde-text); }
.sde-nav .sde-panel.one { grid-template-columns: 1fr; min-width: 320px; }
.sde-nav > li > a.contact-link { display: none; }
/* the open menu carries "Talk to us" whenever the bar has folded: below 760px, or wherever the engine folds it (.sde-nav-compact) */
@media (max-width: 760px) { .sde-menu-open .sde-nav > li > a.contact-link { display: inline-flex; } .sde-menu-open .sde-nav .sde-panel .foot { grid-template-columns: minmax(0, 1fr); padding: 8px 0 0; } .sde-menu-open .sde-nav .sde-panel .foot a { padding: 12px 16px; } }
.sde-nav-compact.sde-menu-open .sde-nav > li > a.contact-link { display: inline-flex; } .sde-nav-compact.sde-menu-open .sde-nav .sde-panel .foot { grid-template-columns: minmax(0, 1fr); padding: 8px 0 0; } .sde-nav-compact.sde-menu-open .sde-nav .sde-panel .foot a { padding: 12px 16px; }

/* ---------- sections ---------- */
.sde-section + .sde-section.flush { border-top: 0; }   /* flush: no dividing line above */
.sde-split .body { display: grid; gap: 24px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; max-width: 62ch; }
.sde-split .body p:first-child { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.4; letter-spacing: -0.015em; }
.doc-pad { padding-bottom: clamp(88px, 12vw, 160px); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font: 500 12px/1 var(--sde-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sde-text-muted); align-items: center; }

/* ---------- the diagram ---------- */
.hero-figure { position: relative; aspect-ratio: 560 / 480; }
@media (max-width: 900px) { .hero-figure { max-width: 520px; } }
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram .grid-dot { fill: var(--sde-line); }
.diagram .box { fill: var(--sde-surface); stroke: var(--sde-line); stroke-width: 1; transition: stroke .3s; }
.diagram .hub { fill: var(--sde-text); }
.diagram .wire { fill: none; stroke: var(--sde-line); stroke-width: 1.25; }
.diagram .flow { fill: none; stroke: var(--sde-accent); stroke-width: 1.25; stroke-dasharray: 2 10; opacity: .9; }
.diagram .t { font-family: var(--sde-font-sans); font-size: 15px; font-weight: 500; fill: var(--sde-text); }
.diagram .m { font-family: var(--sde-font-mono); font-size: 9.5px; letter-spacing: .14em; fill: var(--sde-text-muted); }
/* on a phone the hero's diagram is drawn at about 60%: its labels grow so they read at 11px or more */
@media (max-width: 600px) { .diagram .t { font-size: 17.5px; } .diagram .m { font-size: 12px; letter-spacing: .06em; } }
.diagram .live { fill: var(--sde-accent); }
.diagram .pulse { fill: var(--sde-accent); opacity: 0; }
.diagram .p1 { offset-path: path('M180 226 H95 V120'); }
.diagram .p2 { offset-path: path('M380 226 H465 V120'); }
.diagram .p3 { offset-path: path('M180 254 H95 V360'); }
.diagram .p4 { offset-path: path('M380 254 H465 V360'); }
.diagram .dots { fill: url(#dots); opacity: .9; }
.diagram text.hub-t { fill: var(--sde-surface); }
@media (prefers-reduced-motion: no-preference) {
  .diagram .flow { animation: flow 2.4s linear infinite; }
  .diagram .live { animation: breathe 2.8s ease-in-out infinite; }
  .diagram .pulse { offset-rotate: 0deg; animation: travel 3.6s var(--sde-motion-spring) infinite; }
  .diagram .p2 { animation-delay: .9s; } .diagram .p3 { animation-delay: 1.8s; } .diagram .p4 { animation-delay: 2.7s; }
}
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* ---------- the four products, on the home page ---------- */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--sde-line-strong); }
.product { position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 380px; padding: 28px 28px 32px 0; border-right: 1px solid var(--sde-line); }
.product + .product { padding-left: 28px; }
.product:last-child { border-right: 0; }
.product::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--sde-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--sde-motion-slower) var(--sde-motion-spring); }
.product:hover::before, .product:focus-visible::before { transform: scaleX(1); }
.product .top { display: flex; justify-content: space-between; align-items: center; }
.product h3 { font-size: clamp(22px, 1.8vw, 26px); margin-top: 28px; }
.kind { font-family: var(--sde-font-mono); font-size: 12px; letter-spacing: .08em; color: var(--sde-text-muted); }
.product .kind { margin-top: -8px; }
.product p { color: var(--sde-text-muted); max-width: 26ch; }
.product .go { margin-top: auto; display: inline-flex; gap: 8px; font-weight: 500; font-size: 15px; }
@media (max-width: 1040px) { .products { grid-template-columns: 1fr 1fr; } .product:nth-child(2) { border-right: 0; } .product:nth-child(3) { padding-left: 0; } .product:nth-child(n+3) { border-top: 1px solid var(--sde-line); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } .product, .product + .product { padding: 28px 0 32px; border-right: 0; min-height: 0; } .product + .product { border-top: 1px solid var(--sde-line); } .product h3 { margin-top: 8px; } }

/* ---------- principles, on the inverse band ---------- */
.principle h3 { font-size: clamp(30px, 3.2vw, 44px); margin: 28px 0 16px; }
.glyph { width: 44px; height: 44px; }
.glyph * { fill: none; stroke: var(--sde-text); stroke-width: 1.25; }
.glyph .a { stroke: var(--sde-accent); }

/* ---------- research rows ---------- */
.row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 160px 32px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--sde-line); transition: padding var(--sde-motion-slow) var(--sde-motion-spring); }
.row:hover { padding-left: 12px; }
.row h3 { font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.015em; }
.row .sde-mono { font-size: 13px; color: var(--sde-text-muted); }
.row .sde-arrow { justify-self: end; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr 24px; gap: 8px 16px; } .row .sde-mono { grid-column: 1; } .row h3 { grid-row: 2; } .row .sde-arrow { grid-row: 1 / 3; grid-column: 2; align-self: center; } .row .kind { display: none; } }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.person .photo, .leader .photo {
  aspect-ratio: 4 / 5; border-radius: var(--sde-radius-l); display: grid; place-items: center;
  font: 500 12px/1.4 var(--sde-font-mono); letter-spacing: .1em; color: var(--sde-text-muted); text-transform: uppercase; text-align: center;
  background-color: var(--sde-surface-soft); background-image: radial-gradient(var(--sde-line) 1px, transparent 1px); background-size: 16px 16px;
  box-shadow: var(--sde-rim), var(--sde-shadow-raised);
}
.person .photo.mono-init, .leader .photo.mono-init { font-size: clamp(28px, 3vw, 40px); letter-spacing: .08em; color: var(--sde-text); }
.person h3 { font-size: 22px; margin-top: 20px; letter-spacing: -0.015em; }
.person .role { color: var(--sde-text-muted); font-size: 15px; margin-top: 6px; }
img.photo { display: block; width: 100%; height: auto; object-fit: cover; }
.person .bio { font-size: 15px; line-height: 1.6; margin-top: 14px; color: var(--sde-text-muted); }
.person .links { margin-top: 14px; }
.person .links a { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 10px; color: var(--sde-text-muted); transition: color .2s, background-color .2s; }
.person .links a:hover { color: var(--sde-text); background: var(--sde-surface-soft); }
.person .links a:focus-visible { outline: 2px solid var(--sde-accent, currentColor); outline-offset: 2px; }
.person .links .in { width: 22px; height: 22px; }

/* ---------- what a product works with ---------- */
.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 32px; }
.integrations ul { list-style: none; padding: 0; margin: 10px 0 0; }
.integrations li { padding: 8px 0; border-top: 1px solid var(--sde-hairline); font-size: 16px; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* ---------- contact, research areas ---------- */
.contact-grid, .areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sde-line-strong); }
.contact-grid > div, .area { padding: 28px 28px 0 0; }
.contact-grid > div:nth-child(n+4) { margin-top: 28px; border-top: 1px solid var(--sde-line); }   /* a second row of three */
.contact-grid > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.contact-grid > div + div, .area + .area { padding-left: 28px; border-left: 1px solid var(--sde-line); }
.contact-grid h3 { font-size: 22px; margin: 16px 0 10px; }
.area h3 { font-size: clamp(22px, 2vw, 28px); margin: 18px 0 12px; }
.contact-grid p, .area p { color: var(--sde-text-muted); }
.contact-grid a.big { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 500; }
@media (max-width: 760px) {
  .contact-grid, .areas { grid-template-columns: 1fr; }
  .contact-grid > div, .contact-grid > div + div, .area, .area + .area { padding: 28px 0; border-left: 0; }
  .contact-grid > div:nth-child(n+4) { margin-top: 0; }
  .contact-grid > div + div, .area + .area { border-top: 1px solid var(--sde-line); }
}

/* ---------- the products, one band each, on the overview page ---------- */
.pband { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--sde-line); }
.pband:first-child { border-top: 1px solid var(--sde-line-strong); }
.pband h2 { font-size: clamp(30px, 3.4vw, 48px); margin-top: 18px; }
.pband .kind { font-size: 12px; line-height: 1.5; margin-top: 10px; }
.pband .one { font-size: clamp(22px, 2vw, 28px); line-height: 1.35; letter-spacing: -0.015em; }
.pband .body p + p { margin-top: 16px; }
.pband .body > p:not(.one) { color: var(--sde-text-muted); max-width: 60ch; }
.pband ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pband li { border-top: 1px solid var(--sde-line); padding-top: 14px; font-size: 15px; color: var(--sde-text-muted); }
.pband li b { display: block; color: var(--sde-text); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 760px) { .pband { grid-template-columns: 1fr; } .pband ul { grid-template-columns: 1fr; } }

/* ---------- brand assets, on the press page ---------- */
.assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.asset { border: 1px solid var(--sde-hairline); border-radius: var(--sde-radius-l); overflow: hidden; background-color: var(--sde-material); background-image: var(--sde-gloss); box-shadow: var(--sde-rim), var(--sde-shadow-raised); }
.asset .well { aspect-ratio: 16 / 7; display: grid; place-items: center; padding: 32px; background: var(--sde-color-white); }
.asset .well.dark { background: var(--sde-color-black); }
.asset .well img { max-height: 64px; width: auto; }
.asset .well img.sq { max-height: 96px; }
.asset .cap { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 14px; border-top: 1px solid var(--sde-hairline); }
.asset .cap a { font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; padding: 0 4px; }  /* a target a finger can hit */
@media (max-width: 760px) { .assets { grid-template-columns: 1fr; } }

/* ---------- the error page ---------- */
.err { min-height: 60vh; display: grid; align-content: center; }

/* ---------- footer: our accounts elsewhere, as plain links ---------- */
.sde-site-footer .social { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.sde-site-footer .social a { color: var(--sde-text-muted); }
.sde-site-footer .social a:hover { color: var(--sde-text); }

/* ---------- tables in documents (the service levels) ---------- */
.sde-prose table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 15px; }
.sde-prose th, .sde-prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--sde-line); }
.sde-prose th { font: 500 12px/1.4 var(--sde-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sde-text-muted); border-bottom-color: var(--sde-line-strong); }
@media (max-width: 600px) { .sde-prose table { font-size: 14px; } .sde-prose th, .sde-prose td { padding-right: 10px; } }
.contact-foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sde-line-strong); }
.contact-foot a:hover { color: var(--sde-text); text-decoration-color: currentColor; }

/* ---------- a product's pages: the header becomes the product's ---------- */
.sde-site-header .pn-name { display: inline-flex; gap: 8px; align-items: baseline; padding-left: 20px; margin-left: -16px; border-left: 1px solid var(--sde-line); font-weight: 500; white-space: nowrap; }
.sde-site-header .pn-name .sde-mono { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sde-text-muted); }
@media (max-width: 760px) { .sde-site-header .pn-name .sde-mono { display: none; } .sde-site-header .pn-name { padding-left: 14px; margin-left: -24px; } }
/* the smallest phones: the wordmark, the product's name and the menu button share 320px without running off it */
@media (max-width: 420px) {
  .in-product .sde-mark img { width: 88px; height: auto; }
  .sde-site-header .pn-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; padding-left: 10px; margin-left: -30px; }
}

/* ---------- a product's diagrams: boxes, wires, labels (the same parts as the home page's) ---------- */
.flowchart { width: 100%; height: auto; overflow: visible; }
.flowchart .box { fill: var(--sde-surface); stroke: var(--sde-line-strong); stroke-width: 1; }
.flowchart .hub { fill: var(--sde-text); }
.flowchart .wire { fill: none; stroke: var(--sde-line-strong); stroke-width: 1.25; }
.flowchart .wire.alt { stroke-dasharray: 4 5; stroke: var(--sde-line); }
.flowchart .flow { fill: none; stroke: var(--sde-accent); stroke-width: 1.5; stroke-dasharray: 2 10; }
.flowchart .t { font-family: var(--sde-font-sans); font-size: 15px; font-weight: 500; fill: var(--sde-text); }
.flowchart .m { font-family: var(--sde-font-mono); font-size: 9.5px; letter-spacing: .14em; fill: var(--sde-text-muted); }
/* on a phone the flowchart is drawn at about 60%: its labels grow as far as its boxes allow */
@media (max-width: 600px) { .flowchart .t { font-size: 16.5px; } .flowchart .m { font-size: 11.5px; letter-spacing: .06em; } }
.flowchart .on-hub { fill: var(--sde-surface); }
.flowchart .dot { fill: var(--sde-accent); }
@media (prefers-reduced-motion: no-preference) { .flowchart .flow { animation: flow 2.4s linear infinite; } }
.figure-caption { margin-top: 14px; font: 500 12px/1.5 var(--sde-font-mono); letter-spacing: .04em; color: var(--sde-text-muted); }

/* ---------- steps and comparisons ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--sde-line-strong); counter-reset: step; }
.steps > div { padding: 28px 28px 8px 0; border-right: 1px solid var(--sde-line); }
.steps > div + div { padding-left: 28px; }
.steps > div:last-child { border-right: 0; }
.steps h3 { font-size: clamp(20px, 1.8vw, 24px); margin-top: 14px; }
.steps p { color: var(--sde-text-muted); margin-top: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps > div, .steps > div + div { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--sde-line); } }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare > div { padding: var(--sde-card-pad); border: 1px solid var(--sde-card-line); border-radius: var(--sde-card-radius); background: var(--sde-card-bg); }
.compare > div.with { border-color: var(--sde-text); box-shadow: var(--sde-shadow-raised); }
.compare ol { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.compare li::marker { font-family: var(--sde-font-mono); color: var(--sde-text-muted); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.facts-list { list-style: none; padding: 0; border-top: 1px solid var(--sde-line-strong); }
.facts-list li { position: relative; padding: 22px 0 22px 23px; border-bottom: 1px solid var(--sde-line); font-size: clamp(18px, 1.6vw, 22px); }
.facts-list li .sde-dot { position: absolute; left: 0; top: calc(22px + 0.65em - 1.5px); }   /* beside the first line, so the sentence wraps as one */

/* ---------- the menu keeps its size at every width; where it does not fit with room to spare, the engine folds it ---------- */
.sde-nav > li > a, .sde-nav > li > button { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1360px) { .in-product .pn-name .sde-mono { display: none; } }
@media (min-width: 761px) { .in-product > .sde-wrap { gap: 22px; } html:not(.sde-menu-open) .in-product .sde-nav > li > a, html:not(.sde-menu-open) .in-product .sde-nav > li > button { padding: 0 10px; } }

/* Careers: the four hiring steps in one row, two on a tablet, one on a phone; a role's page */
.sde-points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .sde-points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sde-points.four { grid-template-columns: 1fr; } }
.sde-prose.role { padding-top: 8px; }

/* A leader's own page: the photo beside the profile, above it on a phone */
.person h3 a { color: inherit; text-decoration: none; }
.person h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.person .more { margin-top: 12px; font-size: 15px; }
.leader { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.leader .side { position: sticky; top: 96px; }
.sde-page-head .leader .main h1 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); max-width: none; }
.sde-page-head .leader .role { margin-top: 16px; }
.leader .links { margin-top: 16px; }
.leader .links a { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 10px; color: var(--sde-text-muted); }
.leader .links a:hover { color: var(--sde-text); background: var(--sde-fill); }
.leader .links .in { width: 22px; height: 22px; }
.leader .sde-prose { margin-top: clamp(32px, 4vw, 48px); }
.leader .sde-prose h2:first-child { margin-top: 0; }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } .leader .side { position: static; max-width: 280px; } }

/* Facts on the smallest phones: a long value ("SRIIO Wellness") fits its half (for the engine to take in) */
@media (max-width: 400px) { .sde-fact .sde-v { font-size: 20px; overflow-wrap: anywhere; } .sde-fact + .sde-fact { padding-left: 16px; } .sde-fact { padding-right: 12px; } }
