:root {
  color-scheme: light;
  --ink: #102832;
  --deep: #102a34;
  --text: #233d45;
  --muted: #486169;
  --rule: #cdd8d8;
  --pale: #f3f6f5;
  --gold: #f5b33d;
  --service: #12646b;
  --product: #875107;
  --research: #3d5674;
  --display: "Barlow", "Bahnschrift", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--text); background: #fff; font: 1rem/1.6 var(--body); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: 3px solid #b86400; outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; }
.container { width: min(89%, 81rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; left: 1rem; top: -10rem; padding: .6rem 1rem; background: white; color: var(--ink); }
.skip:focus { top: .6rem; }
.site-header { border-bottom: 1px solid var(--rule); background: #fff; }
.header-inner { min-height: 5.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-block; flex: none; }
.brand img { width: 10rem; height: auto; }
.top-nav { display: flex; align-items: stretch; align-self: stretch; gap: clamp(1rem, 2.75vw, 2.55rem); }
.top-nav a { display: flex; align-items: center; position: relative; color: var(--ink); font-size: .96rem; font-weight: 600; text-decoration: none; }
.top-nav a:hover, .top-nav .selected { color: #07595d; }
.top-nav a:hover::after, .top-nav .selected::after { position: absolute; content: ""; bottom: 0; inset-inline: 0; height: 3px; background: #14717a; }

.hero { background: var(--deep); color: #fff; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.3fr); gap: clamp(2.5rem, 4vw, 4.75rem); align-items: center; padding-block: clamp(2.5rem, 4vw, 4.5rem); }
.hero-copy { padding-block: .35rem; }
.hero-copy::before { display: block; content: ""; height: .3rem; width: 3.15rem; background: var(--gold); margin-bottom: 1.35rem; }
.hero h1 { color: white; font-size: clamp(2.7rem, 4.15vw, 4.5rem); font-weight: 650; line-height: 1.035; letter-spacing: -.038em; text-wrap: balance; }
.hero-copy p { max-width: 39ch; color: #dfebeb; margin-top: 1.18rem; font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.52; }
.cta { display: inline-block; margin-top: 1.5rem; padding: .7rem 1.2rem; background: var(--gold); color: #182a31; font-weight: 700; text-decoration: none; border-radius: .17rem; }
.cta:hover { background: #ffcd77; text-decoration: underline; }
.hero figure { margin: 0; min-width: 0; }
.hero figure img, .article-figure img { width: 100%; height: auto; border-radius: .18rem; }
.hero figcaption, .article-figure figcaption { margin-top: .65rem; padding-left: .7rem; border-left: 2px solid var(--gold); font: .88rem/1.45 var(--body); }
.hero figcaption { color: #e3ebec; }

.directory { padding-block: clamp(2.6rem, 5vw, 4.6rem); }
.directory-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.75fr); gap: 2rem; align-items: start; margin-bottom: 2.55rem; }
.directory-intro h2 { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.035em; font-weight: 620; }
.directory-intro p { max-width: 65ch; color: var(--muted); font-size: 1.08rem; }
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3.2rem); }
.service { --accent: var(--service); --tint: #e8f2f1; }
.product { --accent: var(--product); --tint: #faf0dd; }
.research { --accent: var(--research); --tint: #ebeff5; }
.work-group { padding-top: 1rem; border-top: 3px solid var(--accent); }
.work-group h3 { color: var(--accent); font-size: 1.3rem; font-weight: 650; margin-bottom: 1.3rem; }
.work-group ul, .rail ul, .related ul { list-style: none; padding: 0; margin: 0; }
.work-group li + li { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1rem; }
.work-group a { font-family: var(--display); font-size: 1.35rem; line-height: 1.25; font-weight: 600; color: var(--ink); }
.work-group p { font-size: 1rem; line-height: 1.5; margin-top: .55rem; color: var(--muted); }

.breadcrumbs { color: var(--muted); font-size: .9rem; padding-block: 1.25rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .55rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; color: #75888c; margin-right: .55rem; }
.article-band { background: var(--pale); border-bottom: 1px solid var(--rule); }
.article-head { padding-block: .7rem clamp(2.1rem, 4vw, 3.65rem); }
.status { display: inline-block; margin-bottom: 1rem; border-left: 3px solid var(--accent); background: var(--tint); color: var(--accent); padding: .28rem .75rem; font-size: .92rem; font-weight: 700; }
.article-head h1 { font-size: clamp(2.45rem, 4.8vw, 4.25rem); letter-spacing: -.035em; max-width: 26ch; font-weight: 640; text-wrap: balance; }
.article-head .lead { max-width: 70ch; font-size: clamp(1.08rem, 1.65vw, 1.32rem); line-height: 1.55; margin-top: 1.25rem; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 48rem) minmax(14rem, 21rem); gap: clamp(2.5rem, 7vw, 7.3rem); align-items: start; justify-content: space-between; padding-block: clamp(2.25rem, 4.3vw, 4.75rem); }
.prose { min-width: 0; font-size: 1.08rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -.025em; font-weight: 640; margin: 2rem 0 .8rem; }
.prose > :first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose p a { color: #155d65; overflow-wrap: anywhere; }
.prose ul { padding-left: 1.35rem; }
.prose li + li { margin-top: .7rem; }
.prose li::marker { color: var(--accent); }
.article-figure { margin-bottom: 1.5rem; }
.article-figure figcaption { color: var(--muted); }
.related { border-top: 1px solid var(--rule); margin-top: 2.1rem; padding-top: 1.3rem; }
.related h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
.related ul { padding: 0; font-size: 1rem; }
.related li + li { margin-top: .45rem; }
.rail { border-top: 3px solid var(--ink); padding: 1.2rem 1.25rem 1rem; background: var(--pale); }
.rail h2 { font-size: 1.4rem; }
.rail h3 { font: 700 .93rem/1.4 var(--body); color: var(--accent); margin: 1.25rem 0 .35rem; }
.rail a { display: block; padding: .38rem 0; font-size: 1rem; line-height: 1.35; }
.rail [aria-current="page"] { border-left: 3px solid var(--accent); padding-left: .65rem; text-decoration: none; font-weight: 700; }
.site-footer { background: var(--pale); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.footer-inner .brand img { width: 6.8rem; }
.footer-inner { flex-wrap: wrap; }
.footer-email { margin-inline-start: auto; color: var(--service); font-weight: 650; }
.contact-email { display: inline-block; margin-top: 1.35rem; color: #fff; text-decoration-color: var(--gold); text-underline-offset: .22em; font: 650 clamp(1.45rem, 3vw, 2.7rem)/1.4 var(--display); }
.contact-email:hover { color: #ffda8a; }
.contact-details { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; padding-block: clamp(2rem, 5vw, 4.5rem); }
.contact-details h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); max-width: 17ch; }
.contact-details p { max-width: 60ch; margin: 0; }
@media (max-width: 42rem) {
  .contact-details { grid-template-columns: 1fr; gap: .75rem; }
  .contact-details h2 { max-width: none; }
  .footer-inner { gap: .55rem 1rem; }
}
@media (max-width: 26rem) {
  .footer-inner { display: grid; grid-template-columns: auto 1fr; }
  .footer-inner .brand { grid-column: 1 / -1; justify-self: start; }
  .footer-email { margin-inline-start: 0; }
  .footer-inner > a:last-child { justify-self: end; }
}
.footer-inner > a:last-child { color: var(--muted); font-size: .94rem; }

@media (max-width: 52rem) {
  .container { width: 92%; }
  .header-inner { gap: 1rem; }
  .brand img { width: 8rem; }
  .top-nav { gap: 1rem; }
  .top-nav a { font-size: .9rem; }
  .hero-inner { gap: 1.5rem; grid-template-columns: 1fr 1.05fr; }
  .hero h1 { font-size: 2.65rem; }
  .reading-layout { grid-template-columns: minmax(0, 1fr) minmax(12rem, .48fr); gap: 2rem; }
}
@media (max-width: 42rem) {
  .container { width: 90%; }
  .header-inner { display: block; padding-top: .5rem; }
  .top-nav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; padding-top: .15rem; }
  .top-nav a { padding: .55rem 0; min-height: 2.6rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2rem; }
  .hero h1 { font-size: clamp(2.55rem, 9vw, 3.55rem); }
  .hero-copy p { max-width: 45ch; }
  .cta { margin-top: 1rem; }
  .directory-intro, .group-grid, .reading-layout { grid-template-columns: 1fr; }
  .directory-intro { gap: .7rem; margin-bottom: 1.7rem; }
  .group-grid { gap: 2rem; }
  .work-group h3 { margin-bottom: .85rem; }
  .article-head { padding-top: .35rem; }
  .reading-layout { gap: 2rem; }
}
@media print {
  .top-nav, .cta, .rail, .related, .site-footer, .skip { display: none; }
  .container { width: 100%; }
  .hero, .hero h1, .hero-copy p, .hero figcaption { color: #102832; background: white; }
  .hero-inner, .reading-layout { display: block; }
  .hero figure { max-width: 28rem; margin-top: 1rem; }
  a { color: inherit; }
}

.sr-only, .scene-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.scene { min-width: 0; margin: 0; }
.scene img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; border-radius: .2rem; }
.scene figcaption { margin: .6rem 0 0; padding: 0; border: 0; color: var(--muted); font: .88rem/1.42 var(--body); }
.scene-picker { min-width: 0; position: relative; border: 0; padding: 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .4rem; }
.scene-picker label { border: 1px solid #6a848b; border-radius: .2rem; color: #fff; padding: .35rem .7rem; font: 600 .93rem/1.5 var(--body); cursor: pointer; }
.scene-picker label:hover { border-color: #ffc568; }
.scene-input:checked + label { background: #f3be5c; color: #172f36; border-color: #f3be5c; }
.scene-input:focus-visible + label { outline: 3px solid white; outline-offset: 3px; }
.scene-panels { flex-basis: 100%; order: -1; padding-bottom: .55rem; }
.scene-panels .scene { display: none; }
#gor-saha:checked ~ .scene-panels .panel-saha,
#gor-atolye:checked ~ .scene-panels .panel-atolye,
#gor-vagon:checked ~ .scene-panels .panel-vagon { display: block; }
.hero .scene figcaption { color: #e2eeee; }
.editorial-section, .split-spread { padding-block: clamp(2.75rem, 5.4vw, 5rem); }
.section-heading, .split-spread { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(1.5rem, 4vw, 4rem); }
.section-heading { margin-bottom: 1.85rem; }
.section-heading h2, .split-spread h2 { font-size: clamp(2rem, 3.2vw, 3.2rem); letter-spacing: -.035em; text-wrap: balance; }
.section-kind { margin: 0 0 .55rem; color: var(--accent); font-size: .92rem; font-weight: 700; }
.section-heading > p, .split-spread h2 + p { color: var(--muted); font-size: 1.09rem; max-width: 60ch; }
.story-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.4rem, 3vw, 3rem); }
.story h3 { font-size: clamp(1.5rem, 2.3vw, 2.25rem); margin: 1.05rem 0 .55rem; letter-spacing: -.02em; }
.story h3 a, .split-spread h2 a { text-decoration-color: #a5b7b9; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.story h3 a:hover, .split-spread h2 a:hover { text-decoration-color: currentColor; }
.story > p { max-width: 61ch; color: var(--muted); }
.research .sequence { color: var(--accent); font-weight: 650; }
.secondary-view { display: grid; grid-template-columns: minmax(7rem, 37%) 1fr; align-items: center; column-gap: 1rem; margin-top: 1.15rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.secondary-view figcaption { margin: 0; }
.secondary-view figcaption a { display: block; width: fit-content; margin-top: .35rem; text-underline-offset: .15em; }
.product-spread { background: #f4f1eb; border-block: 1px solid #ded9ce; }
.split-spread { align-items: center; }
.split-spread h2 + p { margin: 1rem 0; }
.reading-link { font-weight: 700; color: var(--ink); }
.article-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(1.8rem, 4.2vw, 5rem); }
.article-hero h1 { font-size: clamp(2.35rem, 3.65vw, 3.7rem); }
.article-hero .lead { font-size: clamp(1.05rem, 1.22vw, 1.2rem); }
.prose .method { list-style: decimal; padding-left: 1.7rem; margin: 1.1rem 0 1.65rem; }
.method li { padding-left: .45rem; }
.method li::marker { font: 700 1.12rem var(--display); color: var(--accent); }
.method li + li { margin-top: 1.1rem; }
.method h3 { margin-bottom: .25rem; font-size: 1.22rem; }
.evidence { border-collapse: collapse; width: 100%; margin: 1.35rem 0; line-height: 1.45; font-size: .98rem; }
.evidence caption { text-align: left; font-weight: 650; color: var(--ink); margin: 0 0 .55rem; }
.evidence th, .evidence td { text-align: left; vertical-align: top; padding: .67rem .65rem; border-bottom: 1px solid #cbd9d8; overflow-wrap: anywhere; }
.evidence thead { color: #fff; background: var(--deep); }
.evidence tbody th { font-weight: 600; }
.evidence tbody tr:nth-child(even) { background: var(--pale); }
.worked-example, .deliverable { margin-block: 1.8rem; padding: 1.25rem 1.4rem; border-left: 3px solid var(--accent); background: var(--tint); }
.prose .worked-example h2, .prose .deliverable h2 { margin: 0 0 .75rem; }
.worked-example .evidence { background: #fff; }
.prose .source-note { margin-top: 1.3rem; color: var(--muted); font-size: .98rem; }
@media(max-width: 55rem) {
  .article-hero { gap: 1.35rem; }
  .article-hero h1 { font-size: 2.55rem; }
}
@media(max-width: 42rem) {
  .hero-inner { row-gap: .95rem; }
  .hero-copy { display: contents; }
  .hero-copy::before { display: none; }
  .hero-copy h1 { grid-row: 1; border-left: .25rem solid var(--gold); padding-left: .75rem; }
  .hero .scene-picker { grid-row: 2; }
  .hero-copy p { grid-row: 3; margin-top: .2rem; }
  .hero-copy .cta { grid-row: 4; justify-self: start; margin-top: 0; }
  .story-pair, .section-heading, .split-spread, .article-hero { grid-template-columns: minmax(0,1fr); }
  .section-heading, .split-spread, .article-hero { gap: 1rem; }
  .story-pair { gap: 2.15rem; }
  .split-spread > .scene { order: 1; }
  .scene-picker label { padding: .34rem .58rem; }
  .scene-panels { padding-bottom: .2rem; }
  .article-hero h1 { font-size: clamp(2.15rem, 7vw, 2.9rem); }
  .worked-example, .deliverable { padding: 1rem .8rem; }
  .evidence td, .evidence th { padding: .48rem .25rem; }
}
@media print {
  .scene-picker label { display: none; }
  .article-hero, .split-spread { display: block; }
  .scene { break-inside: avoid; }
  .scene figcaption { color: #24373b; }
}
.footer-note { border-top: 1px solid var(--rule); padding-block: .75rem 1rem; font-size: .9rem; color: var(--muted); }
.prose .case-section { margin-block: 2rem; }
.case-image { margin-top: 1rem; }
.case-choices { margin: 1.15rem 0 0; }
.case-choices > div { padding: .8rem 0; border-top: 1px solid var(--rule); }
.case-choices dt { color: var(--ink); font-weight: 700; }
.case-choices dd { margin: .25rem 0 0; }
@media print {
  .site-footer { display: block; background: none; }
  .site-footer .footer-inner { display: none; }
  .footer-note { border: 0; }
}
.story-link { display: inline-block; margin-top: .65rem; color: var(--ink); font-weight: 650; text-underline-offset: .18em; }
.terminal-head { padding-bottom: 1.3rem; }
.terminal-comparison { padding-block: 0 clamp(2rem, 4vw, 3rem); }
.terminal-comparison h2 { margin: 0 0 1rem; font-size: clamp(1.3rem, 2vw, 1.75rem); }
.terminal-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.terminal-views figcaption { max-width: 65ch; }
.terminal-views figcaption strong { display: block; margin-bottom: .22rem; color: var(--ink); font-size: 1.02rem; }
.terminal-views figcaption a { display: inline-block; text-underline-offset: .15em; }
.article-jumps { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: baseline; padding-block: .9rem 1.1rem; border-top: 1px solid var(--rule); font-size: .96rem; }
.article-jumps span { color: var(--muted); font-weight: 600; }
.article-jumps ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.article-jumps a { color: var(--ink); text-underline-offset: .2em; }
.terminal-head + .article-jumps { margin-bottom: 1rem; }
@media (max-width: 42rem) {
  .terminal-views { grid-template-columns: 1fr; }
}
@media print {
  .article-jumps, .story-link { display: none; }
}
.hub-entry { display: block; width: fit-content; margin-top: .5rem; font-weight: 650; color: var(--ink); }
.hub-layout { display: grid; grid-template-columns: minmax(0, 48rem) minmax(14rem, 22rem); align-items: start; justify-content: space-between; gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(2.25rem, 4.5vw, 4.75rem); }
.hub-prose section + section { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.7rem; }
.hub-prose h2 { margin-top: 0; }
.hub-details { min-width: 0; border-top: 3px solid var(--accent); background: var(--pale); padding: 1.2rem 1.35rem; }
.hub-details h2 { font-size: 1.4rem; }
.hub-details ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.hub-details li + li { border-top: 1px solid var(--rule); margin-top: .85rem; padding-top: .85rem; }
.hub-details a { font-weight: 650; color: var(--ink); }
.hub-details p { margin-top: .25rem; font-size: .95rem; color: var(--muted); }
.footer-note a { display: inline-block; margin-inline-start: .4em; }
@media (max-width: 42rem) {
  .hub-layout { grid-template-columns: minmax(0, 1fr); }
  .hub-details { grid-row: 1; }
}

.legacy-anchor { position: absolute; width: 0; height: 0; pointer-events: none; }
