:root {
  --paper: #f6f3ed;
  --surface: #fffdfa;
  --ink: #172431;
  --body: #384850;
  --muted: #5c6870;
  --line: #d9d8d1;
  --navy: #203b55;
  --navy-dark: #132b40;
  --accent: #a85f3f;
  --soft-accent: #efe4da;
  --chip: #ece8e0;
  --max: 74rem;
  --radius: .8rem;
  --shadow: 0 14px 32px rgba(23, 36, 49, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.2rem; color: var(--navy); font-size: clamp(2.3rem, 4.4vw, 3.7rem); font-weight: 750; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h2 { color: var(--navy); font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
h3 { color: var(--navy); font-size: 1.15rem; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 20; padding: .5rem .8rem; border-radius: .4rem; background: var(--navy); color: #fff; }
.skip-link:focus { top: 1rem; }
.shell { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(246,243,237,.94); backdrop-filter: blur(10px); }
.nav { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--navy); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: .4rem; background: var(--navy); color: var(--surface); font-size: .66rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.4rem; }
.nav-links a { position: relative; padding: .35rem 0; color: var(--muted); font-size: .94rem; font-weight: 550; text-decoration: none; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .18s ease; }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--navy); }

/* Labels */
.eyebrow, .kicker { margin-bottom: .7rem; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lede { max-width: 40rem; color: #344653; font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; text-wrap: pretty; }
.org { margin-bottom: .8rem; color: var(--muted); font-size: .92rem; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .22rem .6rem; border-radius: 999px; background: var(--chip); color: #3f4e57; font-size: .78rem; font-weight: 600; line-height: 1.4; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; padding: clamp(3.5rem, 6.5vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem); }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 17ch; }
.portrait-wrap { position: relative; max-width: 26rem; justify-self: end; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 1.25rem; box-shadow: var(--shadow); }
.experience { position: absolute; left: -1.5rem; bottom: 1.25rem; padding: .9rem 1.1rem; border-left: 3px solid var(--accent); border-radius: .5rem; background: var(--surface); box-shadow: var(--shadow); color: var(--navy); }
.experience strong { display: block; font-size: 1.4rem; line-height: 1.1; }
.experience span { font-size: .84rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.1rem; border: 1px solid var(--navy); border-radius: .45rem; font-size: .95rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: var(--navy-dark); }
.button.secondary { color: var(--navy); }
.button.secondary:hover { background: #eae6dd; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.section-tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section-flush { padding-bottom: clamp(4rem, 8vw, 6rem); }
.section-intro { max-width: 44rem; margin-bottom: 2rem; }
.section-intro p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head .section-intro { margin-bottom: 2rem; }
.section-head > a { margin-bottom: 2rem; flex: 0 0 auto; }
.inline-link { color: var(--navy); font-weight: 650; }

/* Tiles */
.tile-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile, .card, .planned-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tile { padding: 1.5rem; }
.tile-num { display: block; margin-bottom: 1rem; color: var(--accent); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile p, .planned-card p { margin-bottom: 0; color: var(--muted); }

/* Cards */
.card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: #b9a797; box-shadow: var(--shadow); }
.card-visual { padding: 1.2rem .9rem .6rem; border-bottom: 1px solid var(--line); background: var(--soft-accent); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; }
.card-body h3 { margin-bottom: .35rem; }
.card-body > p:not(.kicker):not(.org) { margin-bottom: 1.1rem; color: var(--muted); }
.card .kicker { margin-bottom: .5rem; font-size: .74rem; }
.card-link { margin-top: auto; padding-top: 1.3rem; color: var(--navy); font-weight: 650; }
.card-link span { display: inline-block; transition: transform .18s ease; }
.card:hover .card-link span { transform: translateX(4px); }

/* Diagrams */
.diagram { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; }
.diagram .track { stroke: #cdbfb2; stroke-width: 2; stroke-dasharray: 4 5; }
.diagram .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.diagram .dot.end { fill: var(--navy); stroke: var(--navy); }
.diagram .dot-num { fill: var(--accent); font-size: 12px; font-weight: 700; }
.diagram .check { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.diagram .step { fill: var(--body); font-size: 14px; font-weight: 550; }
.diagram .step.end { fill: var(--navy); font-weight: 700; }
.decision-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.decision-map-label { grid-column: 1 / -1; margin: 0 0 .1rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .07em; line-height: 1.3; text-align: center; text-transform: uppercase; }
.decision-map > div { display: flex; min-width: 0; min-height: 6.6rem; flex-direction: column; align-items: center; justify-content: center; padding: .75rem .6rem; border: 1px solid #d7c8bb; border-radius: .55rem; background: rgba(255, 253, 250, .72); text-align: center; }
.decision-map span, .decision-map strong, .decision-map small { display: block; }
.decision-map span { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.decision-map strong { margin-top: .25rem; color: var(--navy); font-size: .96rem; line-height: 1.25; }
.decision-map small { margin-top: .3rem; color: var(--muted); font-size: .74rem; line-height: 1.35; }

/* Split / quote */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.quote-block { margin: 0; padding-left: 1.4rem; border-left: 3px solid var(--accent); color: var(--navy); font-size: clamp(1.3rem, 2.3vw, 1.7rem); font-weight: 500; line-height: 1.4; letter-spacing: -.015em; }
.split-body { margin: 0; color: var(--body); }

/* Ideas band */
.ideas-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.ideas-band h2 { margin-bottom: .5rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.ideas-band p:not(.eyebrow) { max-width: 40rem; margin-bottom: 0; color: var(--muted); }

/* Contact panel */
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4.5vw, 3.5rem); border-radius: 1rem; background: var(--navy); color: #f9f5ef; }
.contact-panel > div { min-width: 0; flex: 1 1 auto; }
.contact-panel .eyebrow { color: #e8b89f; }
.contact-panel h2 { margin-bottom: .7rem; color: #fff; }
.contact-panel p { max-width: 40rem; margin-bottom: 0; color: #dce3e7; }
.contact-panel .button { flex: 0 0 auto; border-color: #e8b89f; background: #e8b89f; color: var(--navy-dark); }
.contact-panel .button:hover { border-color: #f0cab5; background: #f0cab5; color: var(--navy-dark); }

/* Inner pages */
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-hero > * { max-width: 48rem; }
.page-hero .lede { margin-bottom: 0; }
.jump ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.jump a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--navy); font-size: .88rem; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: #b9a797; }
.story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.story-aside { align-self: start; position: sticky; top: 6rem; }
.story-aside h2 { margin-bottom: .6rem; }
.story-visual { margin-top: 1.6rem; padding: 1.3rem 1rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft-accent); }
.story-content h3 { margin: 1.9rem 0 .45rem; }
.story-content h3:first-child { margin-top: 0; }
.story-content p { color: var(--body); }
.story-content p:last-child { margin-bottom: 0; }
.takeaway { padding: 1rem 1.2rem; border-left: 3px solid var(--accent); border-radius: 0 .5rem .5rem 0; background: var(--surface); color: var(--navy) !important; font-weight: 550; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(15rem, .7fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; padding-bottom: clamp(3.5rem, 7vw, 5rem); }
.about-grid p { color: var(--body); font-size: 1.05rem; line-height: 1.6; }
.about-grid .portrait { max-width: 24rem; }
.future-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.future-section h2 { max-width: 19ch; margin-bottom: 0; }
.future-section > p { max-width: 42rem; margin: 0; color: var(--body); font-size: 1.05rem; line-height: 1.6; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .8rem; bottom: .8rem; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: 2.2rem; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 1rem; height: 1rem; border: 2px solid var(--accent); border-radius: 50%; background: var(--paper); }
.tl-item:first-child::before { background: var(--accent); }
.tl-item details { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease; }
.tl-item details:hover { border-color: #b9a797; }
.tl-item details[open] { box-shadow: var(--shadow); }
.tl-item summary { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: .25rem 1.25rem; align-items: baseline; padding: 1.1rem 3rem 1.1rem 1.3rem; cursor: pointer; list-style: none; position: relative; }
.tl-item summary::-webkit-details-marker { display: none; }
.tl-item summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .18s ease; }
.tl-item details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.tl-when { color: var(--muted); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-role { color: var(--navy); font-size: 1.08rem; font-weight: 650; }
.tl-org { color: var(--accent); font-size: .9rem; font-weight: 650; }
.tl-detail { margin: 0; padding: 0 1.3rem 1.2rem 12.55rem; color: var(--body); }
.tl-detail li { margin-bottom: .45rem; }
.tl-detail li:last-child { margin-bottom: 0; }
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.edu { margin: 0; }
.edu div { padding: 1rem 0; border-top: 1px solid var(--line); }
.edu dt { color: var(--navy); font-weight: 650; }
.edu dd { margin: .2rem 0 0; color: var(--muted); }
.edu-date { display: block; margin-top: .2rem; }
.edu-grid .chips li { padding: .4rem .75rem; font-size: .84rem; border-radius: .5rem; }

/* Insights */
.insights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.insight-card { display: flex; min-height: 14rem; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.insight-card:hover, .insight-card:focus-visible { transform: translateY(-3px); border-color: #b9a797; box-shadow: var(--shadow); }
.insight-card h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.insight-card p { margin-bottom: 0; color: var(--muted); }
.insight-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: 1rem; }
.insight-card .status { margin-bottom: 0; }
.read-time { color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.insight-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.insight-tags > span { padding: .18rem .55rem; border-radius: 999px; background: var(--chip); color: #3f4e57; font-size: .76rem; font-weight: 600; line-height: 1.4; }
.card-action { margin-top: auto; padding-top: 1.2rem; color: var(--navy); font-size: .9rem; font-weight: 650; }
.article-page { max-width: 55rem; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.article-back { display: inline-block; margin-bottom: 2.2rem; color: var(--navy); font-size: .9rem; font-weight: 650; }
.article-header { max-width: 48rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-bottom: 0; }
.article-body { max-width: 47rem; padding-top: .6rem; color: var(--body); font-size: 1.04rem; line-height: 1.83; }
.article-body p { margin: 1.55rem 0; }
.article-body h2 { margin: 3.5rem 0 1rem; font-size: 1.55rem; }
.article-body a { color: var(--navy); text-decoration-thickness: 1px; }
.article-sources { padding-left: 1.35rem; overflow-wrap: anywhere; font-size: .93rem; line-height: 1.6; }
.article-sources li { margin-bottom: .7rem; }
.article-end { margin: 2.5rem 0 0; }
.status { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.2rem; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Contact page */
.contact-page { padding-bottom: clamp(5rem, 10vw, 8rem); }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.contact-card { display: block; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.contact-card:hover { transform: translateY(-3px); border-color: #b9a797; box-shadow: var(--shadow); }
.contact-card strong { display: block; color: var(--navy); font-size: 1.02rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.25rem 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-brand { margin-right: .75rem; color: var(--navy); font-weight: 700; }
.footer-links { display: flex; gap: .75rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }

@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { display: grid; }
  .story { grid-template-columns: 1fr; gap: 1.5rem; }
  .story-aside { position: static; }
  .story-visual { max-width: 36rem; }
  .tl-item summary { grid-template-columns: 1fr; }
  .tl-detail { padding-left: 2.6rem; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .card-grid .card:last-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card-grid .card:last-child .card-visual { display: flex; align-items: center; border-right: 1px solid var(--line); border-bottom: 0; }
}
@media (max-width: 760px) {
  .shell { width: min(calc(100% - 2rem), var(--max)); }
  .nav { flex-direction: column; align-items: flex-start; gap: .2rem; padding: .85rem 0; }
  .nav-links { justify-content: flex-start; gap: .1rem 1.1rem; }
  .hero, .about-grid, .split, .edu-grid, .future-section { grid-template-columns: 1fr; }
  .hero { padding-top: 2.75rem; }
  .portrait-wrap { width: 100%; max-width: 22rem; justify-self: start; }
  .experience { left: -.4rem; bottom: 1rem; }
  .tile-grid, .card-grid, .insights-grid, .contact-cards { grid-template-columns: 1fr; }
  .card-grid { max-width: 36rem; }
  .section-head, .ideas-band, .contact-panel, .footer-inner { flex-direction: column; align-items: flex-start; }
  .section-head > a { margin-bottom: 0; margin-top: -1rem; margin-bottom: 1.5rem; }
  .footer-links { justify-content: flex-start; }
  .tl-detail { padding-left: 1.3rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Article metadata and responsive case-study diagrams */
.article-reading-time { margin: .8rem 0 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.diagram-mobile { display: none; }
@media (max-width: 760px) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: static; }
  .story-visual .diagram, .card-visual .diagram { display: none; }
  .story-visual .diagram-mobile, .card-visual .diagram-mobile { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: diagram-step; }
  .diagram-mobile li { display: flex; align-items: center; gap: .7rem; color: var(--body); font-size: .95rem; line-height: 1.4; }
  .diagram-mobile li::before { counter-increment: diagram-step; content: counter(diagram-step); display: grid; flex: 0 0 1.65rem; height: 1.65rem; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: .8rem; font-weight: 700; }
}
