:root {
  color-scheme: light;
  --paper: #f7f6ee;
  --paper-deep: #efeee3;
  --ink: #192a25;
  --muted: #4d5a51;
  --line: #d5d8ca;
  --rust: #9c402b;
  --lime: #deeea8;
  --shell: min(calc(100% - 96px), 1200px);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }
[id] { scroll-margin-top: 40px; }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; transform: translateY(-200%); padding: 10px; background: white; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 77px; }
.brand { display: grid; gap: 3px; width: fit-content; text-decoration: none; white-space: nowrap; }
.brand-name { font-size: 20px; line-height: 1.1; font-weight: 750; letter-spacing: -.045em; }
.brand-role { color: var(--muted); font-size: 11px; line-height: 1.2; font-weight: 650; }
.header-inner nav { display: flex; gap: clamp(18px, 3.4vw, 42px); }
.header-inner nav a { padding-block: 9px; text-decoration: none; font-size: 14px; font-weight: 650; color: var(--muted); }
.header-inner nav a:hover, .header-inner nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--rust); }

.hero { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: clamp(35px, 6vw, 100px); padding-block: clamp(56px, 7vw, 112px); }
.eyebrow { font: 650 12px/1.5 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .115em; color: var(--muted); }
.nowrap { white-space: nowrap; }
.status-dot { display: inline-block; vertical-align: 1px; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--rust); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; font-weight: 740; text-wrap: balance; }
h1 { font-size: clamp(53px, 6.4vw, 100px); line-height: .98; letter-spacing: -.072em; margin: 22px 0; }
.hero h1 { font-size: clamp(53px, 5.65vw, 82px); }
h1 em { color: var(--rust); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.081em; }
h2 { font-size: clamp(36px, 4vw, 59px); }
h3 { font-size: 23px; }
.intro { max-width: 590px; color: var(--muted); font-size: clamp(18px, 1.65vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.button { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; gap: 14px; padding: 10px 15px; border-radius: 4px; font-weight: 700; font-size: 14px; text-decoration: none; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #344d41; }
.button-text:hover, .text-link:hover, .work-card a:hover { color: var(--rust); }

.hero-portrait { padding: 13px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 4px; }
.portrait-frame { position: relative; overflow: hidden; background: #e7e6de; aspect-ratio: .98; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.hero-portrait figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; align-items: baseline; padding: 12px 1px 0; font-size: 13px; }
.hero-portrait figcaption span { color: var(--muted); }

.impact { background: var(--ink); color: var(--paper); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 26px; }
.metric { display: grid; align-content: start; gap: 6px; padding: 4px clamp(17px, 4vw, 56px); }
.metric:first-child { padding-left: 0; }
.metric + .metric { border-left: 1px solid #526357; }
.metric strong { color: var(--lime); font-size: clamp(30px, 5.4vw, 68px); line-height: 1.12; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.metric span { color: #e3e9da; font-size: 14px; }

.section { padding-block: clamp(56px, 7vw, 98px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(230px, .65fr); align-items: end; gap: 18px 42px; margin-bottom: 34px; }
.section-heading .eyebrow, .band .eyebrow, .case-heading .eyebrow { margin-bottom: 10px; }
.section-heading > p, .band p, .work-card > p, .case-body p, .credential p { color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: clamp(18px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: 4px; }
.work-card .card-metric { margin: 8px 0; color: var(--rust); font-size: clamp(38px, 4vw, 56px); font-weight: 750; letter-spacing: -.065em; line-height: 1; }
.card-metric span { color: var(--muted); font-size: 14px; letter-spacing: 0; white-space: nowrap; }
.work-card a, .text-link { font-weight: 720; font-size: 14px; text-underline-offset: 4px; }
.work-card a { margin-top: auto; padding-top: 10px; }
.band { background: var(--paper-deep); border-block: 1px solid var(--line); }
.band-inner { display: grid; grid-template-columns: 1fr minmax(230px, .65fr); gap: 18px 42px; align-items: center; padding-block: 50px; }
.band a { display: inline-block; margin-top: 14px; }

.page-intro { padding-block: clamp(53px, 7.5vw, 104px) clamp(38px, 5.5vw, 80px); }
.page-intro h1 { max-width: 1000px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump-links a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; text-decoration: none; }
.jump-links a:hover { background: var(--paper-deep); border-color: var(--muted); }
.case-study { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 30px clamp(26px, 7vw, 110px); padding-block: 42px; border-top: 1px solid var(--line); }
.case-heading h2 { font-size: clamp(31px, 4.2vw, 50px); }
.case-heading .stack { margin-top: 15px; font: 13px/1.6 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; color: var(--muted); }
.case-body { display: grid; align-content: start; gap: 16px; max-width: 68ch; font-size: 17px; }
.case-body .outcome { padding: 14px 16px; border-left: 3px solid var(--rust); background: var(--paper-deep); }
.outcome strong { color: var(--ink); display: block; }
.case-body h3 { font-size: 21px; }
.operations h3 { margin-bottom: 5px; }
.credentials { border-top: 1px solid var(--line); }
.credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.credential { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; }
.credential-symbol { display: grid; flex: 0 0 54px; place-items: center; height: 54px; border-radius: 4px; background: var(--ink); color: var(--paper); font: 700 14px/1 monospace; }
.symbol-flow { background: var(--lime); color: var(--ink); font-size: 26px; }
.credential h3 { font-size: 20px; margin-bottom: 4px; }
.site-footer { padding-block: 25px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--muted); text-underline-offset: 4px; }

.preview-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding: 10px max(18px, calc((100% - 1200px) / 2)); color: var(--paper); background: #354c3f; font-size: 13px; }
.preview-bar a { text-underline-offset: 3px; }
.preview-bar :focus-visible { outline-color: var(--lime); }
.preview-choice { display: inline-block; width: fit-content; margin: 4px 0; padding: .3rem .5rem; border: 1px solid #a8b490; border-radius: 4px; background: #e8efd6; color: var(--ink); font: 700 11px/1.2 Inter, sans-serif; cursor: pointer; }
.preview-choice:hover, .preview-choice[aria-expanded="true"] { background: var(--lime); }
.reviewable-passage { cursor: pointer; overflow-wrap: anywhere; }
.reviewable-passage:hover { text-decoration: underline dotted #a8b490; text-underline-offset: .13em; }
.copy-review-open { --review-width: min(36vw, 410px); padding-right: var(--review-width); }
.copy-panel { position: fixed; z-index: 10; inset: 0 0 0 auto; width: var(--review-width); padding: 21px; overflow: auto; background: #fbfaf3; border-left: 1px solid var(--line); box-shadow: -8px 0 24px #192a2514; }
.copy-panel-heading, .copy-editor-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.copy-panel h2 { font-size: 28px; }
.copy-candidates { display: grid; gap: 8px; margin-block: 16px 10px; }
.copy-panel button { cursor: pointer; }
.copy-panel button:not(.copy-option, .button) { padding: 5px 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.copy-option { padding: 10px; text-align: left; overflow-wrap: anywhere; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.copy-option[aria-pressed="true"] { background: #e8efd6; border-color: #829063; }
.copy-option strong { display: block; font-size: 12px; color: var(--muted); }
.copy-editor { display: grid; gap: 8px; margin-top: 18px; }
.copy-editor label { font-size: 14px; font-weight: 700; }
.copy-editor textarea { width: 100%; min-height: 100px; padding: 8px; resize: vertical; font: inherit; color: var(--ink); background: white; border: 1px solid #9ba497; border-radius: 4px; }
.copy-editor .button { min-height: 40px; border: 0; }
.copy-status { min-height: 1.55em; margin-top: 8px; color: var(--muted); font-size: 13px; }

@media (min-width: 901px) and (max-width: 1200px) {
  .copy-review-open .hero, .copy-review-open .work-grid,
  .copy-review-open .section-heading, .copy-review-open .case-study,
  .copy-review-open .band-inner { grid-template-columns: 1fr; }
  .copy-review-open .hero-portrait { width: min(100%, 420px); }
}

@media (max-width: 900px) {
  .copy-review-open { padding-right: 0; padding-bottom: 46dvh; }
  .copy-review-open [data-copy] { scroll-margin-bottom: 47dvh; }
  .copy-panel { inset: auto 0 0; width: 100%; max-height: 46dvh; padding: 16px 18px; border-top: 1px solid var(--line); border-left: 0; box-shadow: 0 -8px 24px #192a251c; }
}

@media (max-width: 850px) {
  :root { --shell: calc(100% - 48px); }
  .hero { gap: 30px; }
  .work-grid { gap: 10px; }
  .work-card { padding: 15px; }
}

@media (max-width: 660px) {
  :root { --shell: calc(100% - 36px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .brand-name { font-size: 16px; }
  .brand-role { font-size: 10px; }
  .header-inner nav { gap: clamp(9px, 3vw, 20px); }
  .header-inner nav a { font-size: 13px; }
  .hero, .section-heading, .work-grid, .band-inner, .case-study, .credential-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 45px 30px; }
  h1, .hero h1 { font-size: clamp(47px, 10.6vw, 70px); }
  .portrait-frame { aspect-ratio: 1.2; }
  .metrics { padding-block: 18px; }
  .metric { padding: 4px 8px; }
  .metric span { font-size: 12px; }
  .case-study { gap: 18px; padding-block: 29px; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.metric .metric-value { color: inherit; font-size: inherit; }

.hero-portrait { width: 100%; justify-self: center; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 42%, #fff8e735 50%, transparent 58%); transform: translateX(-115%); }
@media (prefers-reduced-motion: no-preference) {
  .portrait-revealed .portrait-frame::after { animation: portrait-light 1.2s .25s ease-out both; }
  @keyframes portrait-light { to { transform: translateX(115%); } }
}
@media (max-width: 660px) {
  .hero-portrait { width: min(100%, 430px); }
  .metric strong { font-size: clamp(18px, 5.4vw, 36px); }
}
.contact-options { position: relative; }
.contact-options summary { cursor: pointer; list-style: none; }
.contact-options summary::-webkit-details-marker { display: none; }
.contact-options[open] summary { background: var(--paper-deep); }
.contact-links { position: absolute; z-index: 2; top: calc(100% + 5px); left: 0; display: grid; gap: 4px; min-width: max-content; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px #192a251c; }
.contact-links a { padding: 5px 9px; font-size: 14px; font-weight: 700; text-decoration: none; }
.contact-links a:hover { background: var(--paper-deep); }
.all-work { display: inline-block; margin-top: 22px; }

.credential-badge { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
