:root {
  --navy: #081627;
  --navy-2: #0d213a;
  --ink: #142238;
  --muted: #5d6b7e;
  --line: #d9e1ec;
  --soft: #f3f7fb;
  --paper: #ffffff;
  --teal: #25d0b1;
  --teal-dark: #087f70;
  --blue: #5c7cff;
  --blue-soft: #e9edff;
  --max: 1180px;
  --shadow: 0 20px 60px rgba(8, 22, 39, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
h3 { font-size: 1.55rem; }
.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 22, 39, .96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border: 1px solid rgba(37,208,177,.55); color: var(--teal); display: grid; place-items: center; border-radius: 9px; font-weight: 800; font-size: .78rem; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .95rem; line-height: 1.2; }
.brand small { color: #aebbd0; font-size: .76rem; margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { color: #cdd6e4; text-decoration: none; font-size: .9rem; }
.site-nav > a:hover, .site-nav > a:focus-visible { color: #fff; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 8px; padding: 9px 12px; font: inherit; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; background: var(--teal); color: var(--navy); text-decoration: none; font-weight: 750; border: 1px solid var(--teal); border-radius: 8px; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #52dcc4; }
.button-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.button-secondary:hover { background: rgba(255,255,255,.08); }
.button-small { min-height: 40px; padding: 0 15px; font-size: .83rem !important; }
.button-outline { background: transparent; color: #fff !important; border-color: rgba(37,208,177,.55); }

.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(76px, 10vw, 138px) 0 92px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to right, transparent 0%, #000 55%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -240px; top: -220px; border: 1px solid rgba(37,208,177,.22); border-radius: 50%; box-shadow: 0 0 0 80px rgba(92,124,255,.04), 0 0 0 160px rgba(37,208,177,.025); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .65fr); gap: clamp(50px, 8vw, 110px); align-items: end; }
.eyebrow { margin: 0 0 20px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.dark { color: var(--teal-dark); }
.hero h1 { max-width: 800px; margin-bottom: 18px; }
.hero-name { margin: 0 0 28px; font-size: 1.18rem; font-weight: 750; }
.hero-name span { color: #aebbd0; font-weight: 500; }
.hero-name span::before { content: " / "; color: var(--teal); padding: 0 7px; }
.hero-lede { max-width: 740px; color: #c5d0df; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.evidence-card { padding: 28px; background: rgba(13,33,58,.86); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: var(--shadow); }
.evidence-label { margin-bottom: 18px; color: #aebbd0; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.evidence-card ul { list-style: none; margin: 0; padding: 0; }
.evidence-card li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.08); color: #e9eef6; font-size: .92rem; line-height: 1.45; }
.evidence-card li span { color: var(--teal); font: 700 .72rem/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }

.proof-strip { background: var(--navy-2); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { min-height: 130px; padding: 26px 24px; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; justify-content: center; }
.proof-grid div:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.proof-grid strong { font-size: 1.9rem; color: var(--teal); line-height: 1; }
.proof-grid span { margin-top: 10px; color: #b8c4d4; font-size: .82rem; line-height: 1.35; }

.section { padding: 110px 0; }
.section-tint { background: var(--soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-heading { display: grid; grid-template-columns: 1.4fr .75fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 0; max-width: 760px; }
.section-heading > p { margin-bottom: 5px; color: var(--muted); font-size: 1.05rem; }
.section-heading.compact { grid-template-columns: 1fr; }
.project-grid { display: grid; gap: 22px; }
.featured-grid { grid-template-columns: repeat(3, 1fr); }
.additional-grid { grid-template-columns: repeat(2, 1fr); }
.project-card { position: relative; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(8,22,39,.035); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-5px); border-color: #a9b7cc; box-shadow: var(--shadow); }
.featured-card { min-height: 450px; }
.card-topline { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.card-topline span:first-child { color: var(--teal-dark); font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.project-card h3 { margin: 30px 0 6px; }
.card-subtitle { color: var(--teal-dark); font-weight: 720; font-size: .9rem; }
.project-card > p:not(.card-subtitle) { color: var(--muted); }
.tag-list, .skill-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 26px; padding: 0; }
.tag-list li, .skill-pills li { padding: 6px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; color: #40506a; font-size: .73rem; line-height: 1.2; }
.text-link { margin-top: auto; color: var(--navy); font-weight: 780; text-decoration: none; }
.text-link span { color: var(--teal-dark); padding-left: 4px; }

.split-section, .about-grid, .role-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 9vw, 130px); align-items: start; }
.large-copy { font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.55; }
.capability-list { border-top: 1px solid var(--line); }
.capability-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.capability-list p { margin: 0; color: var(--muted); }
.role-section { grid-template-columns: .75fr 1.25fr; }
.role-table { border-top: 1px solid rgba(255,255,255,.16); }
.role-row { display: grid; grid-template-columns: 210px 1fr; gap: 28px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.role-row strong { color: var(--teal); font-size: .88rem; text-transform: capitalize; }
.role-row span { color: #c6d0df; }
.disclosure { margin-top: 42px; padding: 26px 28px; background: var(--soft); border-left: 4px solid var(--teal-dark); }
.disclosure strong { display: block; margin-bottom: 8px; }
.disclosure p { margin: 0; color: var(--muted); }
.closing { padding: 76px 0; background: var(--blue-soft); border-top: 1px solid #d9dfff; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.closing h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.2rem); }

.case-hero { position: relative; overflow: hidden; padding: 80px 0 76px; background: var(--navy); color: #fff; }
.case-hero::after { content: ""; position: absolute; inset: auto -8% -190px auto; width: 480px; height: 480px; border: 1px solid rgba(37,208,177,.19); border-radius: 50%; }
.case-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr .45fr; gap: 70px; align-items: end; }
.back-link { display: inline-block; margin-bottom: 44px; color: #aebbd0; text-decoration: none; font-size: .88rem; }
.back-link:hover { color: #fff; }
.case-hero h1 { font-size: clamp(3rem, 6.2vw, 5.6rem); margin-bottom: 10px; }
.case-subtitle { color: var(--teal); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 740; }
.case-lede { max-width: 780px; color: #c6d0df; font-size: 1.1rem; }
.case-index { padding: 26px 0 2px 26px; border-left: 1px solid rgba(255,255,255,.18); }
.case-index span { display: block; color: var(--teal); font: 800 3.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.case-index p { margin: 20px 0 0; color: #aebbd0; font-size: .82rem; }
.scope-band { padding: 35px 0; background: var(--navy-2); color: #fff; }
.mini-label { margin: 0 0 16px; color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.scope-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.scope-grid div { min-height: 90px; padding: 10px 22px; border-left: 1px solid rgba(255,255,255,.13); }
.scope-grid div:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.scope-grid strong, .scope-grid span { display: block; }
.scope-grid strong { color: var(--teal); font-size: 1.75rem; line-height: 1.1; }
.scope-grid span { margin-top: 9px; color: #b8c4d4; font-size: .8rem; line-height: 1.35; }
.case-body { padding-top: 42px; padding-bottom: 100px; }
.case-section { display: grid; grid-template-columns: 260px 1fr; gap: clamp(50px, 8vw, 120px); padding: 66px 0; border-bottom: 1px solid var(--line); }
.case-section h2 { font-size: 2rem; }
.section-number { margin: 0 0 9px; color: var(--teal-dark); font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-note { color: var(--muted); font-size: .85rem; }
.case-section > div:last-child > p:last-child { margin-bottom: 0; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid #edf1f6; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 9px; height: 9px; background: var(--teal); border-radius: 2px; transform: rotate(45deg); }
.approach-list { border-top: 1px solid var(--line); }
.approach-list > div { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.approach-list span { color: var(--teal-dark); font: 800 .76rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.approach-list p { margin: 0; color: var(--muted); }
.approach-list strong { display: block; margin-bottom: 3px; color: var(--ink); }
.findings-list { display: grid; gap: 14px; }
.findings-list > div { padding: 24px 26px; background: var(--soft); border-left: 3px solid var(--blue); }
.findings-list h3 { margin-bottom: 8px; font-size: 1.05rem; letter-spacing: -.01em; }
.findings-list p { margin: 0; color: var(--muted); }
.skill-pills { margin: 0; gap: 10px; }
.skill-pills li { padding: 9px 13px; background: var(--blue-soft); border-color: #d8defe; color: #2a416f; font-size: .8rem; }
.why-panel { margin: 70px 0 0; padding: 40px; background: var(--navy); color: #fff; border-radius: 14px; }
.why-panel > p:last-child { margin: 0; max-width: 940px; color: #d5deea; font-size: 1.2rem; line-height: 1.6; }
.case-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.case-pagination a { padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 730; line-height: 1.35; }
.case-pagination a:hover { border-color: var(--blue); }
.case-pagination span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.case-pagination .next { text-align: right; }

.site-footer { padding: 44px 0; background: #06111f; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 35px; align-items: center; }
.footer-grid div span { display: block; color: #8fa0b8; font-size: .82rem; }
.footer-grid p { margin: 0; color: #8fa0b8; text-align: center; }
.footer-grid > a { color: var(--teal); text-align: right; font-size: .86rem; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 950px) {
  .hero-grid, .section-heading, .split-section, .about-grid, .role-section, .case-hero-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .additional-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { min-height: auto; }
  .proof-grid, .scope-grid { grid-template-columns: 1fr 1fr; }
  .case-index { max-width: 500px; }
  .case-section { grid-template-columns: 200px 1fr; gap: 45px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 30px, var(--max)); }
  .site-header { position: relative; }
  .nav-shell { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 18px 20px 24px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); flex-direction: column; align-items: stretch; gap: 10px; }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 8px 4px; }
  .hero { padding-top: 70px; }
  .hero-grid { gap: 50px; }
  .hero h1 { font-size: clamp(3.15rem, 15vw, 4.6rem); }
  .hero-name span { display: block; }
  .hero-name span::before { content: ""; padding: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .proof-grid, .scope-grid, .additional-grid { grid-template-columns: 1fr; }
  .proof-grid div, .proof-grid div:last-child, .scope-grid div, .scope-grid div:last-child { border-right: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .section { padding: 78px 0; }
  .section-heading { gap: 20px; }
  .capability-list > div, .role-row { grid-template-columns: 1fr; gap: 5px; }
  .closing-inner { align-items: stretch; flex-direction: column; }
  .case-hero { padding: 55px 0; }
  .back-link { margin-bottom: 30px; }
  .case-hero-grid { gap: 35px; }
  .case-index { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .case-section { grid-template-columns: 1fr; gap: 22px; padding: 48px 0; }
  .why-panel { padding: 28px; }
  .case-pagination { grid-template-columns: 1fr; }
  .case-pagination .next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-grid p, .footer-grid > a { text-align: left; }
}

@media print {
  .site-header, .site-footer, .case-pagination, .hero-actions, .closing { display: none !important; }
  body { color: #000; }
  .hero, .case-hero, .scope-band, .section-navy { background: #fff !important; color: #000 !important; }
  .hero *, .case-hero *, .scope-band *, .section-navy * { color: #000 !important; }
  .section, .case-section { padding: 28px 0; }
  .project-card, .findings-list > div, .why-panel { break-inside: avoid; box-shadow: none; }
}
