/*
 * JF / Signal & Structure — Jekyll design refresh, November 2026
 * An additive stylesheet: original brand, content, URLs and historical evidence
 * remain untouched. Load AFTER assets/css/style.css.
 *
 * Palette: midnight / graphite, ice cyan and teal, restrained orchid magenta.
 * No remote font, icons, libraries, animations or tracking dependencies.
 */
:root {
  --jf-ink: #080d16;
  --jf-night: #0b1322;
  --jf-panel: #111d30;
  --jf-panel-high: #17263b;
  --jf-stroke: #34495f;
  --jf-text: #f4f8fd;
  --jf-muted: #b7c9d8;
  --jf-teal: #7edce3;
  --jf-cyan: #49c2c8;
  --jf-orchid: #b44ca5;
  --jf-radius: 20px;
  --jf-soft-shadow: 0 18px 55px rgba(0, 4, 12, .26);
  --max: 1280px;
  --bg: var(--jf-ink);
  --panel: var(--jf-panel);
  --card: var(--jf-panel-high);
  --line: var(--jf-stroke);
  --text: var(--jf-text);
  --muted: var(--jf-muted);
}
html { scroll-padding-top: 110px; }
body[data-page-kind="page"] {
  font-size: 17px;
  line-height: 1.72;
  background:
    radial-gradient(ellipse 65rem 43rem at 90% -6%, rgba(53, 155, 170, .105), transparent 67%),
    radial-gradient(ellipse 60rem 36rem at -14% 37%, rgba(180, 76, 165, .07), transparent 74%),
    #080d16;
  background-attachment: fixed;
}
body[data-page-kind="page"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(to right, rgba(89, 154, 182, .18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(89, 154, 182, .18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #0000, #000 22%, #000 72%, #0000);
}
.site-header, main#main, .site-footer { position: relative; z-index: 1; }
main#main { padding-bottom: 8px; }
.wrap { padding-inline: clamp(22px, 4vw, 58px); }
p, li { line-height: 1.78; }
p { color: #bed0dd; }
strong { color: #f6fbff; }
h1, h2, h3 { color: #f5faff; letter-spacing: -.045em; text-wrap: balance; }
a { text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #9de8e9;
  outline-offset: 4px;
}
::selection { background: #b44ca5; color: #fff; }

/* Navigation: compact identity lockup with a clear, keyboard-friendly active state. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(126, 220, 227, .19);
  background: rgba(8, 13, 22, .92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .17);
  backdrop-filter: saturate(135%) blur(18px);
  -webkit-backdrop-filter: saturate(135%) blur(18px);
}
.site-header::after {
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 220, 227, .65), transparent);
}
.nav { min-height: 86px; gap: clamp(14px, 2.5vw, 36px); }
.brand { gap: 14px; font-size: 15px; letter-spacing: -.01em; }
.brand img {
  width: 47px;
  height: 47px;
  border-radius: 15px;
  padding: 5px;
  border: 1px solid rgba(126, 220, 227, .4);
  background: #13253a;
  box-shadow: 0 0 0 4px rgba(126, 220, 227, .035);
}
.brand small { font-size: 11px; letter-spacing: .02em; }
.nav-links { gap: clamp(9px, 1.7vw, 24px); }
.nav-links a {
  position: relative;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .012em;
  color: #cbdbe8;
  text-decoration: none;
  padding-block: 12px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, #49c2c8, #b44ca5);
  transition: transform .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #a5f3f0; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Intro: a recognizably technical, editorial hero rather than a generic landing block. */
.hero { padding-block: clamp(62px, 6.5vw, 110px) clamp(66px, 7vw, 112px); }
.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(30px, 3.4vw, 52px);
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: #9de6e8;
}
.hero .eyebrow::before {
  content: "";
  width: 29px; height: 2px;
  flex: 0 0 29px;
  background: linear-gradient(90deg, #49c2c8, #b44ca5);
  border-radius: 5px;
}
.hero h1 {
  font-size: clamp(2.8rem, 3.55vw, 3.95rem);
  line-height: 1.075;
  max-width: none;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -.057em;
  text-wrap: pretty;
}
.hero h1 .accent {
  background: linear-gradient(102deg, #b8f5f0 0%, #77d8df 48%, #9db9f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .title-role {
  max-width: 55ch;
  color: #d6e9f2;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.65;
  font-weight: 550;
}
.hero .lead {
  max-width: 57ch;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.75;
  color: #c7d9e6;
}
.tech-strip { gap: 8px; margin-block: 22px; }
.tech-strip span {
  font-size: 11px;
  line-height: 1.4;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid #3f6075;
  color: #d8eef6;
  background: #122238d9;
}
.hero .actions { gap: 13px; margin-block: 29px 18px; }
.hero .text-link { font-size: 14px; }
.hero .portrait-orbit {
  width: min(100%, 430px);
  max-width: 430px;
  padding: 16px;
  margin: 14px auto 18px;
  border: 1px solid rgba(126, 220, 227, .48);
  box-shadow:
    0 0 0 16px rgba(73, 194, 200, .045),
    0 0 0 34px rgba(180, 76, 165, .035),
    0 27px 90px rgba(0, 0, 0, .42);
  background:
    conic-gradient(from 55deg, rgba(73, 194, 200, .09), rgba(180, 76, 165, .08), rgba(73, 194, 200, .09));
}
.portrait-orbit::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px dashed rgba(137, 213, 220, .24);
  border-radius: 50%;
  pointer-events: none;
}
.portrait-orbit img { border: 1px solid rgba(143, 224, 229, .3); }
.hero-caption {
  margin-top: 28px;
  color: #9dc5d6;
  font-size: 11px;
  letter-spacing: .18em;
}

/* Outcome strip: larger data, clearer labels, more deliberate editorial rhythm. */
.metrics {
  margin: 0 0 38px;
  border: 1px solid rgba(112, 164, 188, .36);
  border-radius: var(--jf-radius);
  background: linear-gradient(110deg, rgba(18, 34, 53, .98), rgba(12, 23, 39, .92));
  box-shadow: var(--jf-soft-shadow);
  overflow: hidden;
}
.metrics > div {
  position: relative;
  padding: clamp(24px, 2.9vw, 38px) !important;
  border-right: 1px solid rgba(117, 170, 196, .19);
}
.metrics > div::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 58px;
  height: 2px;
  background: #67d3d9;
}
.metrics > div:nth-child(2)::before { background: #b44ca5; }
.metrics > div:nth-child(3)::before { background: #9bbcef; }
.metrics strong { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.28; letter-spacing: -.04em; }
.metrics span { display: block; font-size: 13px; line-height: 1.55; margin-top: 7px; color: #aac4d4; }

/* Section titles and readable cards on every managed page. */
.section { padding-block: clamp(50px, 5vw, 76px); }
.section + .section { border-top-color: rgba(127, 174, 195, .16); }
.section-head { align-items: end; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2rem, 3.1vw, 3rem); line-height: 1.12; }
.eyebrow, .number {
  color: #91e3e8;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .15em;
}
.section-head .eyebrow { margin-bottom: 7px; }
.grid { gap: clamp(18px, 2vw, 26px); }
.panel, .project-card, .proof {
  border-radius: var(--jf-radius);
  border-color: #334b64;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(73, 194, 200, .075), transparent 55%),
    linear-gradient(148deg, #17263a 0%, #111d30 65%, #0f192a 100%);
  box-shadow: var(--jf-soft-shadow);
  padding: clamp(26px, 3vw, 38px);
}
.panel::before, .project-card::before {
  left: 32px;
  width: 64px;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, #4ecbd1, #b44ca5);
}
.project-card { min-height: 332px; gap: 0; }
.project-card .number { margin-bottom: 18px; }
.project-card h3 {
  font-size: clamp(1.4rem, 1.75vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.project-card h3 a, .panel h2 a {
  color: #f1f7fc;
  text-decoration: none;
}
.project-card h3 a:hover, .panel h2 a:hover { color: #a6f0ef; text-decoration: underline; }
.project-card > p:not(.number), .project-directory .panel > p:not(.number) {
  font-size: 15px;
  line-height: 1.75;
  color: #bdd0df;
}
.project-card .tags { margin-top: 16px; margin-bottom: 22px; }
.tags { gap: 9px; }
.tag {
  border-radius: 8px;
  border-color: #405b72;
  background: rgba(17, 38, 57, .8);
  color: #d6e7f0;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.45;
  padding: 5px 10px;
}
.project-card > .text-link {
  padding-top: 17px;
  border-top: 1px solid rgba(129, 177, 200, .14);
  font-size: 13px;
  font-weight: 650;
}
.project-card .note { margin: 6px 0 0; font-size: 13px; }
.panel:hover, .project-card:hover {
  transform: translateY(-4px);
  border-color: #66b8c4;
  box-shadow: 0 24px 65px rgba(0, 5, 12, .44), 0 0 0 1px rgba(73, 194, 200, .08);
}

/* Directory: consistent card hierarchy with a clear primary and proof action. */
.page-heading { padding-block: clamp(56px, 6vw, 86px) 34px; }
.page-heading h1 {
  font-size: clamp(2.7rem, 4.5vw, 4.35rem);
  line-height: 1.1;
  max-width: 21ch;
  margin-bottom: 23px;
}
.page-heading > p:last-child, .page-heading .lead { font-size: 17px; max-width: 69ch; }
.project-filters { gap: 10px; margin-block: 16px 18px; }
.filter-button {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 17px;
  min-height: 44px;
  background: #142338;
  border-color: #415d74;
  color: #d4e6f2;
}
.filter-button:hover { background: #1b3447; border-color: #7edce3; }
.filter-button[aria-pressed="true"] {
  background: #1b4754;
  border-color: #8be4e8;
  box-shadow: inset 0 0 0 1px rgba(139, 228, 232, .22);
}
.project-status { font-size: 14px; color: #b0cada; }
.project-directory .panel { gap: 8px; min-height: 300px; }
.project-directory .panel h2 { font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.25; }
.project-directory .panel .project-actions {
  gap: 12px 26px;
  border-top: 1px solid rgba(119, 178, 200, .16);
  padding-top: 22px;
}
.project-directory .panel .project-actions a { font-size: 13px; }
.project-directory .panel .project-actions a:first-child {
  color: #a4eff0;
  font-weight: 750;
}
/* Make the supporting narratives readable without altering original project wording. */
.project-directory .panel > p:not(.number) {
  font-size: 16px;
  line-height: 1.78;
  color: #c7d9e6;
}

/* Project 15 concludes the directory as a purposeful feature, not an orphaned card. */
/* The filtering script controls hidden on every card, including the full-width card. */
.project-directory .panel[hidden] { display: none !important; }
.project-directory .panel--featured {
  grid-column: 1 / -1;
  display: block;
  min-height: 0;
  padding: clamp(30px, 3.8vw, 48px);
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(111, 198, 210, .55);
  background:
    radial-gradient(ellipse at 92% 15%, rgba(180, 76, 165, .16), transparent 53%),
    radial-gradient(ellipse at 7% 100%, rgba(73, 194, 200, .09), transparent 48%),
    linear-gradient(130deg, #192c43 0%, #111f34 62%, #131b31 100%);
  box-shadow: 0 20px 60px rgba(0, 4, 13, .3);
}
.project-directory .panel--featured::before {
  left: clamp(30px, 3.8vw, 48px);
  width: 108px;
  height: 3px;
}
.featured-project-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 23px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(115, 172, 195, .23);
}
.featured-project-badge {
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  padding: 7px 13px;
  border: 1px solid rgba(212, 132, 199, .65);
  border-radius: 100px;
  background: rgba(180, 76, 165, .13);
  color: #f3c7eb;
  font: 700 11px/1.3 ui-monospace, Consolas, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.featured-project-counter {
  color: #a8dfe8;
  font: 650 11px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .12em;
}
.featured-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.featured-project-copy,
.featured-project-details { min-width: 0; }
.featured-project-copy .number { margin-bottom: 13px; }
.project-directory .panel--featured h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.65rem);
  line-height: 1.15;
  max-width: 21ch;
  margin-bottom: 17px;
}
.project-directory .panel--featured .featured-project-copy > p:not(.number) {
  font-size: 17px;
  line-height: 1.79;
  max-width: 67ch;
  color: #cfdee9;
  margin-bottom: 0;
}
.featured-project-details {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: center;
  padding: 24px 0 24px clamp(26px, 2.5vw, 38px);
  border-left: 1px solid rgba(111, 177, 202, .28);
}
.featured-project-label {
  margin: 0 0 6px;
  color: #a8dce5;
  font: 700 11px/1.6 ui-monospace, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.project-directory .panel--featured .tags { margin: 10px 0 23px; }
.project-directory .panel--featured .tag {
  border-color: #49687d;
  background: rgba(21, 51, 72, .8);
  font-size: 12px;
  padding: 7px 11px;
}
.project-directory .panel--featured .project-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  padding-top: 20px;
}
.project-directory .panel--featured .project-actions a {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(115, 175, 200, .32);
  background: rgba(12, 30, 48, .8);
  color: #a8ebef;
}
.project-directory .panel--featured .project-actions a:first-child {
  border-color: #77cbd4;
  background: rgba(45, 113, 132, .23);
  color: #d6fdff;
}
.project-directory .panel--featured .project-actions a:hover {
  border-color: #a8f2ef;
  background: rgba(52, 119, 137, .34);
  color: #fff;
}
@media (max-width: 800px) {
  .project-directory .panel--featured { grid-column: auto; padding: 28px 24px; }
  .featured-project-grid { grid-template-columns: 1fr; gap: 22px; }
  .featured-project-kicker { margin-bottom: 21px; padding-bottom: 18px; }
  .featured-project-details {
    padding: 21px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(111, 177, 202, .28);
  }
  .project-directory .panel--featured h2 { font-size: clamp(1.75rem, 5vw, 2.3rem); }
  .project-directory .panel--featured .featured-project-copy > p:not(.number) { font-size: 16px; }
}
@media (max-width: 380px) {
  .project-directory .panel--featured { padding-inline: 21px; }
  .featured-project-counter { font-size: 10px; }
}

/* Detailed case studies, evidence, timelines and ancillary pages. */
.contents {
  gap: 11px;
  padding: 18px 22px;
  border: 1px solid rgba(117, 176, 195, .28);
  border-radius: 14px;
  background: rgba(19, 37, 56, .75);
  margin-bottom: 34px;
}
.contents a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #b8e9eb;
  font-weight: 650;
  font-size: 13px;
}
.contents a:hover { background: rgba(116, 207, 213, .10); color: white; }
.section > h2, .reading h2 { font-size: clamp(1.65rem, 2.5vw, 2.3rem); }
.reading, .reading p, .reading li { font-size: 16px; line-height: 1.85; }
.scope { border-left-color: var(--jf-orchid); background: #16273a; border-radius: 0 16px 16px 0; }
.scope p { font-size: 15px; }
details { background: rgba(18, 33, 52, .72); border-color: #385470; border-radius: 12px; }
details summary { font-weight: 650; color: #e2f5fc; }
code, pre { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; }
img, video, iframe { max-width: 100%; }

/* The Graph case study has an existing sticky contents menu. Keep it visible below
   the new persistent desktop masthead rather than hiding underneath it. */
@media (min-width: 801px) {
  .graph-case-study .contents { top: 86px; }
}

/* Accessible, generous actions and clear opt-in interaction. */
.button {
  min-height: 51px;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .025em;
  background: #152235;
  border-color: #4d6b80;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
}
.button.primary {
  background: linear-gradient(120deg, #a34098, #bd58ac);
  border-color: #d37bbf;
  color: #fff;
  box-shadow: 0 10px 30px rgba(180, 76, 165, .2);
}
.button.primary:hover {
  background: linear-gradient(120deg, #b04daa, #c466ba);
  box-shadow: 0 12px 34px rgba(180, 76, 165, .32);
}
.text-link { font-weight: 650; color: #9bdee4; }
.text-link:hover { color: #d0fbff; }
.back-to-top-float {
  width: 56px;
  height: 56px;
  border: 1px solid #65aab9;
  border-radius: 16px;
  background: rgba(14, 40, 58, .94);
  box-shadow: 0 16px 40px rgba(0,0,0,.34);
}

/* Rich but controlled footer: larger text and a stronger closing statement. */
.site-footer {
  margin-top: 90px;
  background:
    radial-gradient(ellipse at 89% 12%, rgba(180, 76, 165, .075), transparent 48%),
    linear-gradient(145deg, #111f31, #080e18 75%);
}
.site-footer::before { height: 3px; }
.footer-lead { padding-block: 64px 48px; gap: 44px; }
.footer-lead h2 { font-size: clamp(2.25rem, 4vw, 3.6rem); line-height: 1.08; }
.footer-lead p { font-size: 15px; color: #b9d1de; }
.footer-directory { gap: clamp(18px, 2.7vw, 46px); padding-block: 43px 52px; }
.footer-directory nav h3 { font-size: 11px; }
.footer-directory nav a { font-size: 13px; line-height: 1.7; }
.footer-signature > span { font-size: 15px; }
.footer-signature small { font-size: 12px; }
.footer-bottom { padding-block: 25px; }
.footer-bottom p { font-size: 12px; }

/* Keep the redesigned proportions on laptop and tablet without clipping. */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: 30px; }
  .hero h1 { font-size: clamp(2.75rem, 4.25vw, 3.65rem); max-width: none; }
  .hero .portrait-orbit { width: min(100%, 390px); max-width: 390px; }
  .grid { gap: 20px; }
  .panel, .project-card { padding: 29px; }
  .footer-directory { grid-template-columns: 1.6fr 1fr 1fr .8fr; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 85px; }
  body[data-page-kind="page"] { font-size: 16px; background-attachment: scroll; }
  .wrap { padding-inline: 22px; }
  .site-header { position: relative; }
  .nav { min-height: 74px; padding-block: 16px; }
  .nav-links { width: 100%; gap: 12px 22px; }
  .nav-links a { font-size: 14px; padding-block: 9px; }
  .hero { padding-block: 55px 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(2.75rem, 8.4vw, 4.25rem); max-width: 18ch; }
  .hero .portrait-orbit { width: min(100%, 340px); max-width: 340px; }
  .hero-caption { margin-top: 23px; }
  .metrics { margin-bottom: 16px; }
  .metrics > div { padding: 23px !important; }
  .section { padding-block: 49px; }
  .section-head h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .page-heading { padding-top: 50px; }
  .footer-lead { padding-block: 46px 35px; }
  .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .footer-signature { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .brand { font-size: 13px; }
  .brand small { font-size: 10px; }
  .brand img { width: 42px; height: 42px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 3.25rem); line-height: 1.1; max-width: 18ch; }
  .hero .lead { font-size: 16px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .10em; }
  .hero .actions { align-items: stretch; }
  .hero .actions .button { width: 100%; }
  .tech-strip { gap: 7px; }
  .tech-strip span { font-size: 10px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div { border-right: 0; border-bottom: 1px solid #34495f; }
  .metrics > div:last-child { border-bottom: 0; }
  .panel, .project-card, .proof { padding: 25px 23px; }
  .project-card h3 { font-size: 1.5rem; }
  .page-heading h1 { font-size: clamp(2.5rem, 9vw, 3.3rem); }
  .page-heading > p:last-child, .page-heading .lead { font-size: 16px; }
  .section { padding-block: 40px; }
  .footer-directory { grid-template-columns: 1fr 1fr; }
  .footer-directory nav a { font-size: 12px; }
  .footer-bottom { align-items: flex-start; }
}

/* ================================================================
   JF / Case study design system: shared Jekyll layout for all 15
   Source narrative, supporting links, and evidence are unchanged.
   ================================================================ */
.case-study-shell {
  --case-accent: #81dbe3;
  padding-top: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(36px, 5vw, 72px);
}
.case-study-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 13px;
  padding: 12px 0 24px;
  border-bottom: 1px solid rgba(122, 178, 200, .2);
  color: #acc9dc;
  font: 650 11px/1.6 ui-monospace, Consolas, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.case-study-breadcrumb a {
  color: #c9f8fa;
  text-decoration: none;
  border: 1px solid #416d79;
  border-radius: 99px;
  padding: 6px 13px;
  background: rgba(22, 57, 73, .62);
  transition: border-color .2s ease, background .2s ease;
}
.case-study-breadcrumb a:hover { border-color: #a3f0f0; background: #1c4a5d; }
.case-study-breadcrumb > span[aria-hidden] { color: #657b91; }
.case-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(285px, .76fr);
  gap: clamp(24px, 3vw, 47px);
  align-items: start;
}
.case-study-document { min-width: 0; }
.case-study-shell--standard .page-heading {
  position: relative;
  margin: 0 0 22px;
  padding: clamp(38px, 4vw, 57px) clamp(26px, 3.2vw, 45px);
  border: 1px solid rgba(102, 169, 196, .29);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 96% 8%, rgba(126, 220, 227, .1), transparent 63%),
    linear-gradient(132deg, #17283c, #0f1b2e 75%);
  box-shadow: 0 18px 48px rgba(0, 5, 13, .21);
}
.case-study-shell--standard .page-heading::before {
  content: "";
  position: absolute;
  left: clamp(26px, 3.2vw, 45px);
  top: 0;
  width: 90px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #72e0e8, #b44ca5);
}
.case-study-shell--standard .page-heading .eyebrow {
  margin-bottom: 17px;
  font-size: 11px;
  letter-spacing: .13em;
}
.case-study-shell--standard .page-heading h1 {
  font-size: clamp(2.45rem, 3.4vw, 3.5rem);
  line-height: 1.11;
  max-width: 22ch;
  margin-bottom: 22px;
  letter-spacing: -.048em;
}
.case-study-shell--standard .page-heading > p:last-child {
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.7;
  color: #bdcede;
}
.case-study-shell--standard .contents {
  /* In the multi-row case-study grid, sticky navigation overlaps scope and
     evidence while scrolling. Keep it in normal document flow. */
  position: static;
  top: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0 0 35px;
  padding: 14px 17px;
  border: 1px solid #3b5a73;
  border-radius: 14px;
  background: rgba(13, 29, 46, .96);
  box-shadow: 0 9px 35px rgba(0, 0, 0, .21);
  backdrop-filter: blur(12px);
}
.case-study-shell--standard .contents a {
  color: #c3e3ea;
  border: 1px solid transparent;
  min-height: 39px;
  padding: 8px 12px;
  line-height: 1.45;
  font-size: 12px;
  font-weight: 700;
}
.case-study-shell--standard .contents a:hover,
.case-study-shell--standard .contents a:focus-visible {
  border-color: #5b9eb0;
  background: rgba(76, 155, 174, .16);
}
.case-study-shell--standard section#implementation {
  padding-top: 3px;
  padding-bottom: 14px;
}
.case-study-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  align-items: stretch;
}
.case-study-process-step {
  min-width: 0;
  padding: clamp(24px, 2.3vw, 32px);
  border: 1px solid rgba(107, 170, 190, .36);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(23, 42, 63, .98), rgba(14, 28, 46, .96));
  box-shadow: 0 14px 40px rgba(0, 3, 14, .19);
}
.case-study-process-step::before {
  display: inline-flex;
  align-items: center;
  margin-bottom: 17px;
  border: 1px solid rgba(112, 216, 222, .37);
  border-radius: 50px;
  padding: 5px 11px;
  background: rgba(50, 111, 124, .14);
  color: #9ce8e8;
  font: 700 10px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  content: "01 / Implementation";
}
.case-study-process-step--diagnostic {
  border-color: rgba(174, 119, 181, .35);
  background: linear-gradient(140deg, rgba(31, 39, 63, .98), rgba(18, 30, 47, .96));
}
.case-study-process-step--diagnostic::before {
  content: "02 / Control checks";
  border-color: rgba(193, 128, 190, .4);
  color: #ebbbdf;
  background: rgba(180, 76, 165, .12);
}
.case-study-process-step h2 {
  margin: 0 0 15px;
  font-size: clamp(1.4rem, 1.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.04em;
}
.case-study-process-step p,
.case-study-process-step li {
  color: #ccdce6;
  font-size: 15.5px;
  line-height: 1.85;
}
.case-study-process-step p:last-child { margin-bottom: 0; }
.case-study-process-step img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 11px;
  margin: 14px auto;
  border: 1px solid rgba(127, 180, 196, .32);
}
.case-study-shell--standard .scope {
  margin: 25px 0 43px;
  padding: 27px 31px;
  border: 1px solid rgba(157, 111, 170, .31);
  border-left: 4px solid #b44ca5;
  border-radius: 0 17px 17px 0;
  background: linear-gradient(120deg, #1b2d41, #172339);
}
.case-study-shell--standard .scope h2 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  margin-bottom: 11px;
}
.case-study-shell--standard .scope p { font-size: 15px; line-height: 1.8; }
.case-study-shell--standard #validation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 305px), 1fr));
  gap: 18px;
  padding-top: 10px;
  scroll-margin-top: 160px;
}
.case-study-shell--standard #validation > h2 {
  grid-column: 1 / -1;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  margin-bottom: 7px;
}
.case-study-shell--standard #validation > p { grid-column: 1 / -1; }
.case-study-shell--standard #validation .proof {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 12px;
  padding: clamp(23px, 2.6vw, 30px);
  border: 1px solid rgba(118, 177, 205, .43);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(90, 190, 199, .08), transparent 60%),
    linear-gradient(140deg, #182a41, #102036);
  box-shadow: 0 14px 38px rgba(0, 5, 13, .19);
}
.case-study-shell--standard .proof h3 {
  margin: 0 0 5px;
  color: #f8fbff;
  font-size: 1.35rem;
}
.case-study-shell--standard .proof h3::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border: 2px solid #70d5df;
  border-radius: 50%;
}
.case-study-shell--standard .proof p {
  color: #d2e2ed;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.case-study-shell--standard .proof > .text-link {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 12px 14px;
  margin-top: 5px;
  border-radius: 10px;
  border: 1px solid #588d9f;
  background: rgba(28, 72, 86, .35);
  color: #c4f8f7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.case-study-shell--standard .proof > .text-link:hover {
  background: rgba(38, 102, 115, .45);
  border-color: #98e7ed;
  color: #fff;
}
.case-study-shell--standard .proof > small {
  display: block;
  font-size: 12px;
  line-height: 1.65;
  color: #b8cfe0;
  overflow-wrap: anywhere;
}
.case-study-shell--standard .proof details {
  width: 100%;
  margin-top: auto;
  padding: 0;
  border: 1px solid rgba(108, 166, 191, .37);
  border-radius: 10px;
  background: rgba(8, 22, 37, .24);
}
.case-study-shell--standard .proof details[open] { background: rgba(12, 29, 47, .65); }
.case-study-shell--standard .proof summary {
  display: block;
  padding: 11px 14px;
  color: #c3e7ee;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.case-study-shell--standard .proof summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.case-study-shell--standard .proof summary::after {
  content: "+";
  font: 800 18px/1 ui-monospace, Consolas, monospace;
  color: #8de3e8;
}
.case-study-shell--standard .proof details[open] summary::after {
  content: "−";
}
.case-study-shell--standard .proof details p {
  font-size: 12px;
  line-height: 1.65;
  color: #b6cadb;
  overflow-wrap: anywhere;
  padding: 0 13px 10px;
}
.case-study-aside {
  /* The briefing spans several CSS grid rows; sticky would float over the
     full-width evidence gallery. Normal flow keeps its column unobstructed. */
  position: static;
  top: auto;
  align-self: start;
  min-width: 0;
  padding-top: 38px;
}
.case-study-overview {
  position: relative;
  padding: clamp(26px, 2.5vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(118, 196, 204, .53);
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(180, 76, 165, .14), transparent 62%),
    linear-gradient(153deg, #1a3044, #101c2e 78%);
  box-shadow: 0 23px 65px rgba(0, 3, 13, .28);
}
.case-study-overview::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 3px;
  width: 90px;
  background: linear-gradient(90deg, #76dae1, #b44ca5);
}
.case-study-overview-topline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid rgba(133, 191, 210, .24);
  margin-bottom: 25px;
  padding-bottom: 18px;
  color: #9ed9e5;
  font: 700 10px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .09em;
}
.case-study-aside-eyebrow {
  margin: 0 0 9px;
  color: #a7e9ed;
  font: 700 11px/1.65 ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.case-study-overview h2 {
  margin: 0 0 15px;
  max-width: 14ch;
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  line-height: 1.16;
}
.case-study-abstract {
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.78;
  color: #d0e2eb;
}
.case-study-skills { margin: 9px 0 26px; }
.case-study-skills .tag {
  font-size: 11px;
  border-color: #53728a;
  background: #1a3749;
  padding: 7px 10px;
}
.case-study-overview-actions { display: grid; gap: 10px; }
.case-study-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  padding: 14px 16px;
  border: 1px solid #4b758c;
  border-radius: 11px;
  background: rgba(13, 34, 55, .72);
  color: #c8ecf2;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  min-height: 52px;
}
.case-study-action:hover { border-color: #9ae8ec; background: #1f4962; color: #fff; }
.case-study-action--primary { border-color: #72d1da; background: rgba(48, 106, 124, .35); color: #e5fbff; }
.case-study-overview-note {
  margin: 21px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(135, 194, 211, .23);
  color: #b2c9da;
  font-size: 12px;
  line-height: 1.7;
}
/* On desktop, the introductory story and sticky briefing share the upper
   columns; supporting evidence then spans the complete page width. This makes
   every evidence card inspectable without an unused right-hand gutter. */
@media (min-width: 1001px) {
  .case-study-shell--standard .case-study-layout {
    grid-template-areas:
      "hero brief"
      "sections brief"
      "workflow brief"
      "limits brief"
      "proof proof";
    row-gap: 0;
  }
  .case-study-shell--standard .case-study-document { display: contents; }
  .case-study-shell--standard .page-heading { grid-area: hero; }
  .case-study-shell--standard .contents { grid-area: sections; }
  .case-study-shell--standard section#implementation { grid-area: workflow; }
  .case-study-shell--standard .scope { grid-area: limits; }
  .case-study-shell--standard .case-study-aside { grid-area: brief; }
  .case-study-shell--standard section#validation {
    grid-area: proof;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 12px;
    margin-top: 15px;
  }
  .case-study-shell--standard #validation > .proof:only-of-type {
    grid-column: 1 / -1;
  }
  .case-study-shell--standard #validation > .proof:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
  }
}
/* Signature case studies retain their dedicated, proven Graph/Grafana/Dashboard
   layouts. They also receive consistent project breadcrumbs and discovery. */
.case-study-document--signature { padding-top: 15px; }
.case-study-signature-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(215px, 260px);
  align-items: center;
  gap: clamp(20px, 4vw, 50px);
  padding: clamp(24px, 3.5vw, 44px);
  margin: 42px 0 0;
  border: 1px solid #47667b;
  border-radius: 20px;
  background: linear-gradient(120deg, #182c43, #151d31 90%);
}
.case-study-signature-context p:not(.case-study-aside-eyebrow) {
  margin-bottom: 19px;
  color: #d5e2ed;
  font-size: 16px;
  line-height: 1.75;
}
.case-study-signature-context .tags { margin-top: 6px; }
.case-study-signature-context .case-study-action { align-self: center; }
/* Cross-project trail keeps the 15 case studies connected without dead ends. */
.case-study-neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(48px, 5vw, 80px);
  padding-top: 29px;
  border-top: 1px solid rgba(124, 186, 199, .28);
}
.case-study-neighbor {
  display: flex;
  flex: 1 1 210px;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 19px 22px;
  border: 1px solid #37536d;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(150deg, #17283a, #111d30);
  transition: transform .2s ease, border-color .2s ease;
}
.case-study-neighbor:hover { transform: translateY(-3px); border-color: #78c9d1; }
.case-study-neighbor span {
  color: #9dd5df;
  font: 700 11px/1.55 ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.case-study-neighbor strong {
  color: #eaf8ff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.case-study-neighbor--all { border-color: #588ba0; background: #1b3546; }
@media (max-width: 1250px) {
  .case-study-layout { grid-template-columns: minmax(0, 1.65fr) minmax(265px, .74fr); gap: 22px; }
  .case-study-process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .case-study-layout { grid-template-columns: 1fr; }
  .case-study-aside { position: static; padding-top: 0; }
  .case-study-overview { max-width: none; }
  .case-study-overview h2 { max-width: none; }
  .case-study-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-study-shell--standard .contents { top: 16px; }
}
@media (max-width: 800px) {
  .case-study-shell { padding-top: 17px; }
  .case-study-breadcrumb { padding-bottom: 16px; font-size: 10px; gap: 8px; }
  .case-study-process-grid { grid-template-columns: 1fr; }
  .case-study-shell--standard .contents { position: static; }
  .case-study-shell--standard .page-heading { padding: 30px 25px; }
  .case-study-shell--standard .page-heading h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
  .case-study-shell--standard .scope { padding: 22px 23px; }
  .case-study-signature-context { grid-template-columns: 1fr; }
  .case-study-neighbors { gap: 11px; }
}
@media (max-width: 520px) {
  .case-study-breadcrumb { align-items: baseline; }
  .case-study-shell--standard .page-heading { padding: 27px 21px; }
  .case-study-shell--standard .page-heading::before { left: 21px; }
  .case-study-shell--standard .page-heading h1 { font-size: clamp(2rem, 8.2vw, 2.55rem); }
  .case-study-process-step { padding: 22px 21px; }
  .case-study-shell--standard #validation { gap: 13px; }
  .case-study-shell--standard #validation .proof { padding: 22px 20px; }
  .case-study-overview { padding: 23px 21px; }
  .case-study-neighbor { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .panel:hover, .project-card:hover, .button:hover { transform: none; }
}
@media print {
  body[data-page-kind="page"] { background: #fff; color: #111; }
  body[data-page-kind="page"]::before { display: none; }
  .site-header, .site-footer, .back-to-top-float { display: none !important; }
  .panel, .project-card, .proof { background: #fff; border-color: #bbb; box-shadow: none; }
  .project-card h3 a, .panel h2 a { color: #111; }
}
