@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
  --abyss: #001a41;
  --deep: #002959;
  --mid: #044d7a;
  --upper: #3a8ca7;
  --cream: #f1e7c6;
  --paper: #f2ead9;
  --ink: #08243d;
  --coral: #ef6a4c;
  --aqua: #83c9c3;
  --line: rgba(241, 231, 198, .22);
  --muted: rgba(241, 231, 198, .74);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); background: var(--abyss); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body::after { content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .12; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E"); }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.serif { font-family: 'Newsreader', serif; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: .65rem .9rem; color: var(--ink); background: var(--cream); transform: translateY(-150%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 1rem; color: var(--aqua); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.site-head { position: absolute; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(241, 231, 198, .12); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav a { text-decoration: none; }
.back { display: inline-flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .88rem; }
.back::before { content: '←'; color: var(--cream); }
.name { font-weight: 600; }
.case-nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: .86rem; }
.case-nav-links a:not(.name) { color: var(--muted); }
.case-nav-links a:hover { color: var(--cream); }

.case-hero { position: relative; min-height: 82vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: linear-gradient(148deg, #0b3846, var(--abyss) 58%, #000d23); }
.case-hero::before { content: ''; position: absolute; z-index: -1; width: 27vw; height: 105vh; top: -28vh; right: 12vw; transform: rotate(17deg) skewX(-18deg); background: linear-gradient(180deg, rgba(241, 231, 198, .3), rgba(131, 201, 195, .04) 72%, transparent); }
.case-hero::after { content: ''; position: absolute; z-index: -1; width: 48vw; height: 33vw; left: -11vw; bottom: -19vw; transform: rotate(-8deg); background: rgba(4, 77, 122, .48); clip-path: polygon(0 18%, 84% 0, 100% 68%, 43% 100%, 0 76%); }
.hero-grid { padding: 150px 0 90px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; align-items: center; }
.case-hero h1 { margin: 0 0 1.4rem; font-family: 'Newsreader', serif; font-size: clamp(4rem, 8vw, 7.8rem); line-height: .85; font-weight: 400; letter-spacing: -.045em; }
.lead { max-width: 590px; margin: 0 0 2rem; color: var(--muted); font-family: 'Newsreader', serif; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.45; }
.case-meta { display: flex; flex-wrap: wrap; gap: .55rem; }
.case-meta span { padding: .42rem .72rem; border: 1px solid var(--line); color: var(--muted); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-image { position: relative; margin: 0; transform: rotate(2deg); }
.hero-image::before { content: ''; position: absolute; width: 42%; aspect-ratio: 1; border-radius: 50%; right: -8%; top: -16%; background: var(--coral); z-index: -1; }
.hero-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 36px 90px rgba(0, 0, 0, .46); }

.narrative, .outcome { padding: 110px 0; background: var(--paper); color: var(--ink); }
.outcome { background: #e7dfcc; }
.outcome-dark { color: var(--cream); background: linear-gradient(160deg, #0b3846, #001a41); }
.narrative-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 7vw; }
.narrative h2, .outcome h2, .gallery h2, .gallery-head h2 { margin: 0; font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1; letter-spacing: -.035em; }
.story { max-width: 700px; }
.story p { margin: 0 0 1.3rem; font-family: 'Newsreader', serif; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.55; }
.story .plain { font-family: 'DM Sans', sans-serif; font-size: 1rem; color: rgba(8, 36, 61, .76); }
.outcome-dark .story .plain { color: rgba(241, 231, 198, .76); }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; border-top: 1px solid rgba(8, 36, 61, .2); }
.outcome-dark .fact-row { border-color: rgba(241, 231, 198, .2); }
.fact { padding: 1.4rem 1rem 0 0; }
.fact strong { display: block; font-family: 'Newsreader', serif; font-size: 2rem; font-weight: 400; }
.fact span { display: block; color: rgba(8, 36, 61, .72); font-size: .86rem; }
.outcome-dark .fact span { color: rgba(241, 231, 198, .72); }
.feedback-quotes { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin: 2rem 0; }
.feedback-quotes blockquote { margin: 0; padding: 20px; border-top: 2px solid var(--coral); background: rgba(255, 255, 255, .24); }
.feedback-quotes blockquote:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.feedback-quotes p { margin: 0 0 1.5rem; font-family: 'Newsreader', serif; font-size: 1.25rem; line-height: 1.35; }
.feedback-quotes blockquote:first-child p { font-size: 1.65rem; }
.feedback-quotes cite { color: rgba(8, 36, 61, .62); font-size: .74rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

.gallery { padding: 110px 0; background: #082632; }
.gallery-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 7vw; align-items: end; margin-bottom: 56px; }
.gallery-head p { max-width: 600px; margin: 0; color: var(--muted); }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot-grid figure { margin: 0; }
.shot-grid figure.wide { grid-column: 1 / -1; }
.shot-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.shot-grid figcaption { padding: .75rem 0 1.4rem; color: var(--muted); font-size: .86rem; }
.next-case { padding: 70px 0; background: var(--cream); color: var(--ink); }
.next-case a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none; font-family: 'Newsreader', serif; font-size: clamp(1.8rem, 4vw, 3.5rem); }

/* Kanban Board Steward */
.steward-case-hero { background: linear-gradient(148deg, #0b3846, #001a41 58%, #000d23); }
.steward-console { position: relative; overflow: hidden; padding: 26px; border: 1px solid rgba(241, 231, 198, .28); background: linear-gradient(145deg, rgba(241, 231, 198, .12), rgba(0, 16, 48, .66)); box-shadow: 0 36px 80px rgba(0, 0, 0, .42); transform: rotate(-2deg); }
.steward-console::before { content: ''; position: absolute; width: 46%; height: 140%; top: -25%; right: 16%; transform: rotate(18deg) skewX(-16deg); background: linear-gradient(180deg, rgba(131, 201, 195, .16), transparent 72%); pointer-events: none; }
.console-top, .console-footer, .report-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: rgba(241, 231, 198, .7); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.console-mark { display: inline-block; width: 9px; height: 9px; margin-right: .45rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(239, 106, 76, .16); vertical-align: middle; }
.console-date, .console-signal { color: var(--aqua); }
.console-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.console-stat { padding: 18px 14px; border: 1px solid rgba(241, 231, 198, .16); background: rgba(0, 16, 48, .35); }
.console-stat strong { display: block; color: var(--cream); font-family: 'Newsreader', serif; font-size: 2.5rem; font-weight: 400; line-height: 1; }
.console-stat span { display: block; margin-top: .45rem; color: rgba(241, 231, 198, .62); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.console-stat.alert { border-color: rgba(239, 106, 76, .52); }
.console-section { position: relative; z-index: 1; margin-top: 12px; padding: 15px 0; border-top: 1px solid rgba(241, 231, 198, .15); }
.console-label, .report-label { color: var(--aqua); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.console-section p { margin: .4rem 0 0; color: rgba(241, 231, 198, .8); font-family: 'Newsreader', serif; font-size: 1.14rem; line-height: 1.35; }
.console-section b { color: var(--cream); font-family: 'DM Sans', sans-serif; font-size: .82rem; font-weight: 500; }
.console-footer { margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(241, 231, 198, .15); font-size: .68rem; }
.steward-method, .steward-rhythm { padding: 110px 0; background: #082632; }
.steward-method .gallery-head p { color: var(--muted); }
.steward-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.steward-flow article { min-height: 250px; padding: 24px 20px 24px 0; border-top: 1px solid rgba(241, 231, 198, .28); border-right: 1px solid rgba(241, 231, 198, .13); }
.steward-flow article:last-child { border-right: 0; }
.steward-flow span { color: var(--coral); font-size: .75rem; letter-spacing: .14em; }
.steward-flow h3, .rhythm-grid h3 { margin: 2.2rem 0 .6rem; color: var(--cream); font-family: 'Newsreader', serif; font-size: 2rem; font-weight: 400; line-height: 1; }
.steward-flow p, .rhythm-grid p { max-width: 520px; margin: 0; color: rgba(241, 231, 198, .7); font-size: .92rem; line-height: 1.5; }
.steward-report-section { padding: 110px 0; background: var(--paper); color: var(--ink); }
.steward-report-section .gallery-head p { color: rgba(8, 36, 61, .7); }
.steward-report { padding: 28px; border: 1px solid rgba(8, 36, 61, .24); background: rgba(255, 255, 255, .2); }
.report-head { color: rgba(8, 36, 61, .64); }
.report-head strong { color: var(--ink); font-size: .78rem; font-weight: 600; }
.report-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.report-columns > div { min-height: 230px; padding: 22px 20px; border-top: 3px solid var(--ink); background: rgba(255, 255, 255, .22); }
.report-columns > div:nth-child(2) { border-top-color: var(--coral); }
.report-columns > div:nth-child(3) { border-top-color: #5e9c98; }
.report-columns h3 { margin: 1.4rem 0 .65rem; color: var(--ink); font-family: 'Newsreader', serif; font-size: 2rem; font-weight: 400; line-height: 1; }
.report-columns p:not(.report-label) { margin: 0; color: rgba(8, 36, 61, .74); font-size: .92rem; line-height: 1.5; }
.report-note { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; margin-top: 18px; padding: 16px 0 0; border-top: 1px solid rgba(8, 36, 61, .22); }
.report-note span { color: #8b4d3d; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.report-note p { margin: 0; color: rgba(8, 36, 61, .72); font-family: 'Newsreader', serif; font-size: 1.15rem; line-height: 1.35; }
.steward-rhythm { background: linear-gradient(180deg, #002959, #001a41); }
.rhythm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rhythm-grid article { min-height: 250px; padding: 28px; border: 1px solid rgba(241, 231, 198, .2); background: rgba(241, 231, 198, .05); }
.rhythm-grid article > span { color: var(--aqua); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; }
.rhythm-grid h3 { margin-top: 1.8rem; font-size: 2.25rem; }

/* Web CV */
.cv-page { background: var(--paper); color: var(--ink); }
.cv-page::after { opacity: .07; }
.cv-page .site-head { position: absolute; border-color: rgba(241, 231, 198, .16); }
.cv-hero { padding: 155px 0 100px; color: var(--cream); background: linear-gradient(145deg, #0b3846, #001a41 65%, #000d23); }
.cv-hero-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 7vw; }
.cv-hero h1 { margin: 0; font-family: 'Newsreader', serif; font-size: clamp(4.2rem, 9vw, 8rem); font-weight: 400; line-height: .86; letter-spacing: -.05em; }
.cv-role { margin: 1.25rem 0 0; color: var(--aqua); font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; }
.cv-intro { max-width: 720px; }
.cv-intro > p { margin: 0 0 1.25rem; color: var(--muted); font-family: 'Newsreader', serif; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.45; }
.cv-contact { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 2rem; color: var(--aqua); font-size: .88rem; }
.cv-section { padding: 90px 0; }
.cv-section:nth-of-type(even) { background: #e7dfcc; }
.cv-section-head { max-width: 840px; margin-bottom: 48px; }
.cv-section-head h2, .cv-qualifications h2 { margin: 0; font-family: 'Newsreader', serif; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.impact-grid article { padding: 26px; border-top: 3px solid var(--ink); background: rgba(255, 255, 255, .22); }
.impact-grid article:nth-child(1), .impact-grid article:nth-child(4) { border-color: var(--coral); }
.impact-grid article > span { color: #8b4d3d; font-size: .74rem; letter-spacing: .14em; }
.impact-grid h3 { margin: 1.8rem 0 .6rem; font-family: 'Newsreader', serif; font-size: 2rem; font-weight: 400; }
.impact-grid p { margin: 0; color: rgba(8, 36, 61, .76); }
.cv-layout { display: grid; grid-template-columns: .32fr 1.68fr; gap: 7vw; }
.cv-jobs { display: grid; }
.cv-job { padding: 0 0 46px; margin-bottom: 46px; border-bottom: 1px solid rgba(8, 36, 61, .2); }
.cv-job:last-child { margin-bottom: 0; border-bottom: 0; }
.cv-job-head { display: flex; justify-content: space-between; gap: 2rem; }
.cv-job-head h2 { margin: 0; font-family: 'Newsreader', serif; font-size: 2.3rem; font-weight: 400; line-height: 1.1; }
.cv-job-head p { margin: .35rem 0 0; color: #8b4d3d; }
.cv-job-head > span { flex: 0 0 auto; color: rgba(8, 36, 61, .65); font-size: .84rem; }
.cv-job ul { margin: 1.5rem 0 0; padding-left: 1.1rem; }
.cv-job li { margin: 0 0 .85rem; padding-left: .25rem; }
.cv-job-compact > p { max-width: 780px; margin: 1.25rem 0 0; color: rgba(8, 36, 61, .76); }
.cv-tool-line { max-width: 880px; margin: 0; font-family: 'Newsreader', serif; font-size: 1.35rem; line-height: 1.6; }
.cv-qualifications > .shell > div:last-child > p { color: rgba(8, 36, 61, .7); }
.qualification-list { margin-top: 1.5rem; font-size: 1rem; }
footer { padding: 36px 0; color: var(--muted); background: #061922; font-size: .82rem; }
footer .shell { display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 850px) {
  .case-nav-links { gap: .9rem; }
  .hero-grid, .narrative-grid, .gallery-head, .cv-hero-grid, .cv-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 130px; }
  .hero-image { max-width: 720px; }
  .fact-row { grid-template-columns: 1fr; }
  .fact { border-bottom: 1px solid rgba(8, 36, 61, .14); padding-bottom: 1rem; }
  .outcome-dark .fact { border-color: rgba(241, 231, 198, .14); }
  .steward-flow { grid-template-columns: repeat(2, 1fr); }
  .steward-flow article:nth-child(2) { border-right: 0; }
  .report-columns { grid-template-columns: 1fr; }
  .report-columns > div { min-height: auto; }
  .cv-layout { gap: 2.5rem; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .case-nav-links .name { display: none; }
  .case-nav-links { gap: .72rem; font-size: .78rem; }
  .case-nav-links a:nth-child(4), .case-nav-links a:nth-child(5) { display: none; }
  .case-hero h1 { font-size: 4rem; }
  .shot-grid, .impact-grid, .steward-flow, .rhythm-grid { grid-template-columns: 1fr; }
  .shot-grid figure.wide { grid-column: auto; }
  .gallery, .narrative, .outcome, .steward-method, .steward-report-section, .steward-rhythm, .cv-section { padding: 76px 0; }
  .steward-console { padding: 20px; transform: none; }
  .console-top, .report-head { align-items: flex-start; }
  .console-grid { gap: 6px; }
  .console-stat { padding: 14px 10px; }
  .console-stat strong { font-size: 2rem; }
  .steward-flow article, .rhythm-grid article { min-height: auto; border-right: 0; }
  .report-note { grid-template-columns: 1fr; gap: .45rem; }
  .cv-hero { padding: 130px 0 78px; }
  .cv-job-head { display: grid; gap: .55rem; }
  .cv-job-head > span { order: -1; }
  .feedback-quotes { grid-template-columns: 1fr; }
  .feedback-quotes blockquote:first-child { grid-row: auto; }
  .feedback-quotes blockquote:first-child p { font-size: 1.35rem; }
  footer .shell { flex-direction: column; }
}

@media print {
  body.cv-page { color: #111; background: #fff; font-size: 10.5pt; }
  .cv-page::after, .cv-page .site-head, .cv-page footer { display: none; }
  .cv-hero { padding: 0 0 28px; color: #111; background: #fff; }
  .cv-hero-grid, .cv-layout { grid-template-columns: 1fr 2.2fr; gap: 30px; }
  .cv-hero h1 { font-size: 48pt; }
  .cv-intro > p { color: #222; font-size: 12pt; }
  .cv-role, .cv-contact, .cv-page .eyebrow { color: #164b58; }
  .cv-section { padding: 28px 0; background: #fff !important; break-inside: avoid; }
  .impact-grid { gap: 8px; }
  .impact-grid article { padding: 14px; }
  .cv-job { break-inside: avoid; padding-bottom: 20px; margin-bottom: 20px; }
  .cv-job-head h2 { font-size: 18pt; }
  a { text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
