:root {
  --midnight: #0b1a2b;
  --navy: #13283d;
  --ink: #17202b;
  --slate: #566270;
  --paper: #fffdf9;
  --ivory: #f4efe6;
  --teal: #155f5d;
  --teal-dark: #0d4547;
  --brass: #c3914f;
  --brass-light: #dfbd87;
  --line: #d8d4cc;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --dock-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: calc(var(--dock-height) + 24px); }
body { margin: 0; padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.62; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { overflow: clip; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
.section-pad { padding-inline: clamp(1.25rem, 6vw, 6.5rem); }

.contact-dock { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; min-height: var(--dock-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: .85rem clamp(1.25rem, 6vw, 6.5rem) calc(.85rem + env(safe-area-inset-bottom)); border-top: 3px solid var(--brass); background: var(--midnight); color: white; box-shadow: 0 -12px 30px rgba(11,26,43,.16); }
.wordmark { display: flex; flex-direction: column; width: fit-content; line-height: 1.15; }
.wordmark strong { font-size: 1rem; letter-spacing: -.025em; }
.wordmark span { margin-top: .2rem; color: #aeb9c5; font-size: .75rem; }
.contact-dock nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); color: #c7d0d8; font-size: .82rem; font-weight: 500; }
.contact-dock nav a, .contact-link, .footer a, .text-link { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.contact-dock nav a:hover { color: var(--brass-light); }
.contact-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: .55rem .85rem; border: 1px solid var(--brass); color: #fff8ed; font-size: .82rem; font-weight: 600; }
.contact-link:hover { background: var(--brass); color: var(--midnight); }

.hero { min-height: calc(100svh - var(--dock-height)); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .62fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; padding-top: clamp(4rem, 8vw, 7.5rem); padding-bottom: clamp(5rem, 9vw, 8rem); background: var(--paper); }
.hero-copy { position: relative; animation: hero-in .72s cubic-bezier(.2,.75,.25,1) both; }
.hero-copy::before { content: ''; position: absolute; top: .15rem; left: -1.35rem; width: 3px; height: 52px; background: var(--brass); }
.role-line { margin: 0 0 1.6rem; color: var(--teal); font-size: .94rem; font-weight: 600; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 1.7rem; color: var(--midnight); font-size: clamp(4.4rem, 9.2vw, 8.8rem); line-height: .78; letter-spacing: -.078em; font-weight: 700; }
.hero-positioning { max-width: 800px; margin-bottom: 1.4rem; color: var(--midnight); font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.45rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; }
.hero-summary { max-width: 680px; margin-bottom: 2rem; color: var(--slate); font-size: 1.06rem; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: 1px; font-size: .86rem; font-weight: 600; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button-primary { background: var(--midnight); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.text-link { border-bottom: 1px solid currentColor; font-size: .87rem; font-weight: 600; }
.availability { max-width: 700px; margin: 2.5rem 0 0; padding: 1.2rem 0 0 1.15rem; border-top: 1px solid var(--line); border-left: 3px solid var(--brass); color: var(--slate); font-size: .84rem; }
.availability strong { display: inline-block; margin-right: .3rem; color: var(--ink); font-weight: 600; }
.hero-visual { position: relative; width: min(100%, 430px); justify-self: end; animation: hero-in .72s .12s cubic-bezier(.2,.75,.25,1) both; }
.hero-visual::before { content: ''; position: absolute; top: -18px; right: -18px; width: 42%; height: 58%; border-top: 2px solid var(--brass); border-right: 2px solid var(--brass); z-index: 0; }
.portrait { position: relative; margin: 0; z-index: 1; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 36%; filter: saturate(.82) contrast(1.03); }
.portrait figcaption { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .75rem .9rem; background: var(--midnight); color: #d8e0e7; font-size: .76rem; line-height: 1.35; }
.portrait figcaption span:last-child { color: var(--brass-light); text-align: right; }
.systems-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 1rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.systems-index span { padding: .7rem .75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--slate); font-size: .74rem; font-weight: 500; }
.systems-index span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: .5rem; background: var(--brass); vertical-align: .08em; }

.section-name { display: flex; align-items: center; gap: .7rem; margin: 0; color: var(--teal); font-size: .86rem; font-weight: 600; }
.section-name::before { content: ''; width: 28px; height: 2px; background: currentColor; }
h2 { margin-bottom: 0; color: var(--midnight); font-family: var(--serif); font-size: clamp(2.7rem, 5.3vw, 5.45rem); line-height: .98; letter-spacing: -.05em; font-weight: 500; }
.positioning { display: grid; grid-template-columns: .38fr 1.62fr; gap: clamp(2rem, 7vw, 7rem); padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); background: var(--teal-dark); color: white; }
.positioning .section-name { color: var(--brass-light); }
.positioning-copy { max-width: 1020px; }
.positioning-copy h2 { color: #fffaf1; }
.positioning-copy p { max-width: 650px; margin: 2rem 0 0; color: #c1d4d3; font-size: 1.03rem; }

.work { padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); }
.section-intro { display: grid; grid-template-columns: .38fr 1.62fr; gap: clamp(2rem, 7vw, 7rem); margin-bottom: clamp(4rem, 8vw, 8rem); }
.section-intro h2 { max-width: 980px; }
.case { position: relative; margin-bottom: clamp(4rem, 8vw, 8rem); padding: clamp(1.5rem, 4vw, 4rem); overflow: hidden; }
.case:last-child { margin-bottom: 0; }
.case-dark { background: var(--midnight); color: white; box-shadow: 0 24px 60px rgba(11,26,43,.12); }
.case-dark::after { content: ''; position: absolute; right: -80px; bottom: -100px; width: 220px; height: 220px; border: 1px solid rgba(195,145,79,.36); transform: rotate(18deg); pointer-events: none; }
.case-light { background: var(--ivory); color: var(--ink); border-left: 5px solid var(--brass); }
.case-header { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.22); }
.case-light .case-header { border-color: var(--line); }
.case-index { margin: 0 0 2.2rem; color: var(--brass-light); font-size: .78rem; font-weight: 600; }
.case-light .case-index { color: #8f652d; }
.company-type { margin: 0 0 .8rem; color: #a7c7c5; font-size: .82rem; font-weight: 500; }
.case-light .company-type { color: var(--teal); }
.case-header h3 { margin: 0; font-size: clamp(3.2rem, 6.4vw, 6.4rem); line-height: .86; letter-spacing: -.072em; font-weight: 650; }
.role-meta { display: flex; flex-direction: column; gap: .45rem; padding-bottom: .25rem; }
.role-meta strong { font-size: .98rem; font-weight: 600; }
.role-meta span { color: #aeb9c4; font-size: .8rem; }
.case-light .role-meta span { color: var(--slate); }
.case-context { position: relative; z-index: 1; max-width: 1020px; padding: clamp(2.8rem, 5vw, 5rem) 0; }
.case-context p { margin: 0; color: #e0e5ea; font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.4; letter-spacing: -.025em; }
.case-light .case-context p { color: #364454; }
.case-narrative { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); }
.case-light .case-narrative { border-color: var(--line); }
.case-narrative section { padding: 2rem 2rem 2.7rem 0; }
.case-narrative section + section { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.2); }
.case-light .case-narrative section + section { border-color: var(--line); }
.case-narrative h4 { margin: 0 0 1rem; color: var(--brass-light); font-size: 1.02rem; font-weight: 600; }
.case-light .case-narrative h4 { color: #805b2a; }
.case-narrative p { margin: 0; color: #aeb9c4; font-size: .9rem; line-height: 1.74; }
.case-light .case-narrative p { color: var(--slate); }
.evidence { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); margin-top: 1.2rem; border-top: 1px solid rgba(195,145,79,.55); border-bottom: 1px solid rgba(195,145,79,.55); }
.evidence > div { min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem 1rem; }
.evidence > div + div { border-left: 1px solid rgba(255,255,255,.18); }
.evidence .evidence-lead { justify-content: space-between; padding-left: 0; }
.evidence-lead > span { color: var(--brass-light); font-size: .82rem; font-weight: 600; }
.evidence-lead p { margin: 0; color: #aeb9c4; font-size: .76rem; }
.evidence strong { color: white; font-size: clamp(1.9rem, 3vw, 3.1rem); line-height: 1; letter-spacing: -.055em; }
.evidence div > span:last-child { margin-top: .5rem; color: #aeb9c4; font-size: .72rem; line-height: 1.35; }
.supporting-proof { position: relative; z-index: 1; margin: 1.5rem 0 0; color: #aeb9c4; font-size: .82rem; line-height: 1.68; }
.scope-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.scope-row span { padding: .55rem .72rem; border: 1px solid #c9c0b3; background: rgba(255,255,255,.45); color: #4f5c68; font-size: .76rem; font-weight: 500; }

.impact { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 8rem); padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); background: var(--teal-dark); color: white; }
.impact .section-name { color: var(--brass-light); }
.impact h2 { margin-top: 1.5rem; color: #fffaf1; }
.impact-heading > p:last-child { max-width: 450px; margin: 2rem 0 0; color: #bfd1d0; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; }
.metric { min-height: 198px; padding: 1.5rem; border-top: 1px solid rgba(255,255,255,.25); }
.metric:nth-child(even) { border-left: 1px solid rgba(255,255,255,.25); }
.metric strong { display: block; margin-bottom: 1.8rem; color: #fffaf1; font-size: clamp(3rem, 5.2vw, 5.4rem); line-height: 1; letter-spacing: -.07em; }
.metric span { display: block; max-width: 250px; color: #bfd1d0; font-size: .82rem; }

.operating-model { padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); background: var(--ivory); }
.model-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 9rem); }
.model-copy h2 { position: sticky; top: 4rem; margin-top: 1.4rem; }
.model-steps { margin: 0; padding: 0; list-style: none; }
.model-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 1.85rem 0; border-top: 1px solid var(--line); }
.model-steps li:last-child { border-bottom: 1px solid var(--line); }
.model-steps > li > span { color: #8f652d; font-size: .74rem; font-weight: 600; }
.model-steps h3 { margin-bottom: .45rem; color: var(--midnight); font-size: 1.4rem; letter-spacing: -.035em; font-weight: 600; }
.model-steps p { max-width: 470px; margin: 0; color: var(--slate); font-size: .92rem; }

.experience { padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); }
.timeline { border-top: 2px solid var(--midnight); }
.timeline article { display: grid; grid-template-columns: 150px .45fr .8fr 1.2fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline time { color: #8f652d; font-size: .78rem; font-weight: 600; }
.timeline h3 { margin: 0; color: var(--midnight); font-size: 1.3rem; letter-spacing: -.035em; font-weight: 650; }
.timeline strong { font-size: .86rem; line-height: 1.5; font-weight: 600; }
.timeline p { margin: 0; color: var(--slate); font-size: .86rem; }

.closing { padding-top: clamp(5rem, 8vw, 8rem); padding-bottom: clamp(6rem, 9vw, 9rem); background: var(--midnight); color: white; border-top: 6px solid var(--brass); }
.closing-inner { max-width: 1020px; }
.closing .section-name { color: var(--brass-light); }
.closing h2 { margin: 1.5rem 0; color: #fffaf1; }
.closing p:not(.section-name):not(.closing-location) { max-width: 680px; color: #b8c3cd; }
.closing .hero-actions { margin-top: 2rem; }
.button-light { background: #fffaf1; color: var(--midnight); }
.button-light:hover { background: var(--brass-light); }
.text-link-light { color: white; }
.closing-location { margin: 2.5rem 0 0; color: #8f9ead; font-size: .78rem; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; background: var(--paper); color: var(--slate); font-size: .74rem; }
.footer a:hover { color: var(--teal); }
.reading-progress { position: fixed; right: 0; bottom: calc(var(--dock-height) + env(safe-area-inset-bottom)); left: 0; z-index: 31; height: 3px; pointer-events: none; background: rgba(11,26,43,.08); }
.reading-progress span { display: block; width: var(--progress, 0%); height: 100%; background: var(--brass); }

@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  :root { --dock-height: 76px; }
  .contact-dock { grid-template-columns: 1fr auto; }
  .contact-dock nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { width: min(100%, 520px); justify-self: start; }
  .positioning, .section-intro, .impact, .model-layout { grid-template-columns: 1fr; gap: 2.3rem; }
  .case-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .evidence { grid-template-columns: repeat(3, 1fr); }
  .evidence .evidence-lead { grid-column: 1 / 4; min-height: 110px; padding-left: 0; }
  .evidence > div:nth-child(5) { border-left: 0; }
  .model-copy h2 { position: static; }
  .timeline article { grid-template-columns: 120px .55fr 1fr; }
  .timeline article p { grid-column: 2 / 4; }
}

@media (max-width: 680px) {
  :root { --dock-height: 68px; }
  html { scroll-padding-bottom: calc(var(--dock-height) + 18px); }
  body { padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom)); }
  .contact-dock { min-height: var(--dock-height); padding-top: .62rem; padding-bottom: calc(.62rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 22px rgba(11,26,43,.22); }
  .wordmark span { display: none; }
  .contact-link { min-height: 40px; padding: .45rem .66rem; }
  .reading-progress { bottom: calc(var(--dock-height) + env(safe-area-inset-bottom)); }
  .hero { padding-top: 3.5rem; padding-bottom: 4.8rem; gap: 3.3rem; }
  .hero-copy::before { left: -.7rem; width: 2px; }
  h1 { font-size: clamp(4.1rem, 22vw, 6.5rem); }
  .hero-positioning { font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero-actions { align-items: stretch; }
  .button { flex: 1 1 100%; }
  .text-link { width: fit-content; margin-block: .4rem; }
  .hero-visual { width: calc(100% - 12px); }
  .hero-visual::before { top: -12px; right: -12px; }
  .positioning, .section-intro { gap: 1.4rem; }
  .case { margin-inline: -1.25rem; padding: 1.6rem 1.25rem 2rem; }
  .case-light { border-left: 0; border-top: 5px solid var(--brass); }
  .case-index { margin-bottom: 1.5rem; }
  .case-narrative { grid-template-columns: 1fr; }
  .case-narrative section, .case-narrative section + section { padding: 1.65rem 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .case-light .case-narrative section, .case-light .case-narrative section + section { border-color: var(--line); }
  .evidence { grid-template-columns: 1fr 1fr; }
  .evidence .evidence-lead { grid-column: 1 / 3; }
  .evidence > div { min-height: 120px; padding: 1rem; }
  .evidence > div:nth-child(even) { border-left: 0; }
  .evidence > div:nth-child(odd):not(.evidence-lead) { border-left: 1px solid rgba(255,255,255,.18); }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: auto; padding: 1.55rem 0; }
  .metric:nth-child(even) { border-left: 0; }
  .metric strong { margin-bottom: .8rem; }
  .timeline article { grid-template-columns: 1fr; gap: .58rem; }
  .timeline article p { grid-column: 1; }
  .closing { padding-bottom: 5.5rem; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-visual { animation: none; }
}
