:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --band: #f1eee7;
  --ink: #1b1d21;
  --muted: #5b616b;
  --rule: #e2ddd3;
  --navy: #143252;
  --navy-ink: #f3f1ec;
  --accent: #1f5c99;
  --gold: #c98a2b;
  --gold-text: #8f5e14;
  --c1: #143252;
  --c2: #2f5f4f;
  --c3: #8a4b2a;
  --c4: #4a3f73;
  --need-bg: #fff1b8;
  --need-ink: #5a4500;
  --shadow: 0 1px 2px rgb(20 30 45 / .06), 0 8px 24px rgb(20 30 45 / .08);
  --serif: "Iowan Old Style", "Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wide: 70rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1b1e24;
    --band: #171a1f;
    --ink: #e8e6e1;
    --muted: #a3a8b0;
    --rule: #2b2f37;
    --navy: #0e2238;
    --accent: #8db8e6;
    --gold: #e0a84f;
    --gold-text: #e0a84f;
    --c1: #1b3f66;
    --c2: #2b5a4b;
    --c3: #7a432a;
    --c4: #43396a;
    --need-bg: #4a3d0a;
    --need-ink: #ffe58a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--serif); font-kerning: normal; }
img { max-width: 100%; height: auto; }
.sprite { display: none; }
.wrap { margin-inline: auto; padding-inline: 1rem; }
.wide { max-width: var(--wide); }
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.masthead :focus-visible, .hero :focus-visible, .contact :focus-visible { outline-color: var(--gold); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--bg); padding: .5rem .75rem; z-index: 20; }
.skip:focus { left: .5rem; }

h1, h2, h3 { line-height: 1.2; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
h2 {
  font: 600 .8125rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 2rem; display: flex; align-items: center; gap: .75rem;
}
h2::before { content: ""; width: 2rem; height: 3px; background: var(--gold); border-radius: 2px; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--sans); color: var(--navy-ink); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .85rem; }
.name { color: var(--navy-ink); font-weight: 650; text-decoration: none; letter-spacing: .01em; }
.masthead ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.masthead nav a { color: color-mix(in srgb, var(--navy-ink) 75%, transparent); text-decoration: none; }
.masthead nav a:hover { color: var(--navy-ink); }

@media (max-width: 47.99rem) { .masthead { position: static; } html { scroll-padding-top: 1rem; } }
@media (prefers-color-scheme: dark) { .logo .icon { color: #1f5c99; } }

/* Hero */
.hero { background: var(--navy); color: var(--navy-ink); padding-block: 3rem 5.5rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgb(201 138 43 / .18), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: 2rem; align-items: center; position: relative; z-index: 1; }
.hero-photo { order: -1; }
.portrait { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--gold); background: #d9d6f2; }
.eyebrow { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e0a84f; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); letter-spacing: -.015em; margin: 0 0 1.5rem; max-width: 22ch; }
/* No cap: the text column already ends where the portrait column begins (about 80 characters at 70rem) */
.hero p:not(.eyebrow) { font-size: 1.125rem; color: color-mix(in srgb, var(--navy-ink) 88%, transparent); }
@media (min-width: 48rem) {
  .hero { padding-block: 4.5rem 7rem; }
  .hero-grid { grid-template-columns: 1fr auto; gap: 4rem; }
  .hero-photo { order: 0; }
  .portrait { width: 240px; height: 240px; }
}

/* Stats */
.stats { margin-top: -3.5rem; position: relative; z-index: 2; }
.stat-grid { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.stat-grid li { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; border-top: 3px solid var(--gold); }
.stat-grid strong { font: 700 clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem)/1.1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.stat-grid span { font: .875rem/1.35 var(--sans); color: var(--muted); }
@media (prefers-color-scheme: dark) { .stat-grid strong { color: var(--ink); } }
@media (min-width: 60rem) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

/* Sections */
main > section:not(.hero):not(.stats) { padding-block: 3rem; }
@media (min-width: 48rem) { main > section:not(.hero):not(.stats) { padding-block: 4.5rem; } }
.band { background: var(--band); }
/* The stat cards overlap the hero; fill the strip below them with the next band so no stray stripe shows */
.stats { background: linear-gradient(to bottom, transparent 3.5rem, var(--band) 3.5rem); padding-bottom: 1rem; }
#work { margin-top: 0; }
.notfound { padding-block: 4rem; }

/* Case cards */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
.case { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.case-figure { color: #fff; padding: 1.75rem 1.5rem 1.5rem; position: relative; }
.case-figure::after { content: ""; position: absolute; right: -2rem; top: -2rem; width: 9rem; height: 9rem; border-radius: 50%; border: 18px solid rgb(255 255 255 / .07); }
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); } .c4 { background: var(--c4); }
.big { font: 700 clamp(2rem, 1.4rem + 2.2vw, 2.6rem)/1 var(--serif); margin: 0 0 .5rem; font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.big-label { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0; color: rgb(255 255 255 / .8); }
.case-body { padding: 1.5rem; }
.case-meta { font: .8125rem/1.3 var(--sans); color: var(--muted); margin: 0 0 .35rem; }
.case h3 { font-size: 1.25rem; margin: 0 0 1rem; }
.case dl { margin: 0; }
.case dt { font: 700 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 1rem 0 .35rem; }
.case dd { margin: 0; }
.results { margin: 0; padding: 0; list-style: none; }
.results li { padding-left: 1.1rem; position: relative; margin-bottom: .2rem; }
.results li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); }
.results strong { font-variant-numeric: lining-nums tabular-nums; }

/* Experience */
.timeline .results { margin-top: .25rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.timeline > li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; align-items: start; }
.logo { width: 4.5rem; height: 4.5rem; border-radius: 12px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; padding: .5rem; overflow: hidden; }
.logo img { max-height: 100%; width: auto; object-fit: contain; }
.logo-text { font: 700 1rem/1 var(--sans); color: var(--navy); letter-spacing: .05em; }
.when { font: 600 .8125rem/1.2 var(--sans); color: var(--gold-text); letter-spacing: .04em; margin: .15rem 0 .25rem; font-variant-numeric: tabular-nums; }
.role { font-size: 1.15rem; margin: 0 0 .35rem; }
.via { font-weight: 400; color: var(--muted); font-size: .95rem; }
.timeline p:last-child { margin: 0; }
/* Education line starts where the entries' text starts (logo column + gap) */
.edu { margin: 2.25rem 0 0 calc(4.5rem + 1.25rem); padding-top: 1.25rem; border-top: 1px solid var(--rule); }
@media (min-width: 48rem) {
  .timeline > li { grid-template-columns: 5.5rem 1fr; gap: 1.75rem; }
  .logo { width: 5.5rem; height: 5.5rem; }
  .edu { margin-left: calc(5.5rem + 1.75rem); }
}
/* Wide screens: résumé columns. Logo | employer and dates | details, spanning the full container,
   so a skimmer reads employers and dates down one column and details stay near 75 characters a line */
@media screen and (min-width: 60rem) {
  .timeline > li > div { display: grid; grid-template-columns: 17rem 1fr; column-gap: 2rem; align-items: start; }
  .timeline { gap: 2.25rem; }
}

/* Leadership tiles */
.lead-in { font-size: 1.2rem; margin-bottom: 1rem; }
.lead-grid { margin-bottom: 1.75rem; }
.lead-grid > .lead-in-sub { margin: 0; }
/* Wide screens: intro left, highlights right; the column split and gutter match the two tile columns below */
@media screen and (min-width: 60rem) {
  .lead-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; align-items: start; }
  .lead-grid > .lead-in { margin: 0; }
  .tiles { gap: 1.5rem; }
}
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
/* Icon sits beside the title; text runs full width below */
.tiles > li { background: var(--surface); border-radius: 12px; padding: 1.25rem; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; column-gap: .85rem; align-items: center; align-content: start; }
.tiles > li > :not(.icon) { grid-column: 1 / -1; }
.tiles > li > h3:not(.icon) { grid-column: 2; }
.tiles h3 { font-size: 1.1rem; margin: 0; }
.tiles p { font-size: .975rem; margin: .75rem 0 0; }
.tiles p + p { margin-top: .5rem; }
.icon { width: 2.25rem; height: 2.25rem; color: var(--accent); }
.tiles .icon { display: block; padding: .4rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); box-sizing: content-box; }

/* Tablet: prose is stacked but the container is wide, so hold it to about 80 characters until it splits into columns at 60rem */
@media (min-width: 48rem) and (max-width: 59.99rem) {
  .lead-grid > *, .timeline > li > div, .refs { max-width: 42rem; }
}

/* Writing */
.writing-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .writing-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.refs { margin: 0; padding: 0; list-style: none; }
.refs li { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.refs li:first-child { padding-top: 0; }
.covers { border-radius: 10px; box-shadow: var(--shadow); }
cite { font-style: italic; }

/* Contact: the one centered block, a single closing action */
.contact { background: var(--navy); color: var(--navy-ink); text-align: center; }
.contact h2 { justify-content: center; }
.contact-lead { margin-inline: auto; max-width: 40ch; }
.contact h2 { color: color-mix(in srgb, var(--navy-ink) 70%, transparent); }
.contact-lead { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; }
.button { display: inline-flex; align-items: center; gap: .6rem; background: var(--gold); color: #1b1d21; font: 600 1rem/1 var(--sans); padding: .9rem 1.25rem; border-radius: 999px; text-decoration: none; margin-bottom: 1.25rem; transition: transform .15s ease, filter .15s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.07); }
.button .icon { width: 1.15rem; height: 1.15rem; color: currentColor; }

/* Draft placeholders: a check blocks production deploys while any remain */
mark.need {
  display: inline; background: var(--need-bg); color: var(--need-ink);
  font: 600 .8125rem/1.4 var(--sans); padding: .1rem .35rem; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Footer */
.colophon { background: var(--navy); color: color-mix(in srgb, var(--navy-ink) 60%, transparent); font: .875rem/1.5 var(--sans); border-top: 1px solid rgb(255 255 255 / .08); }
.colophon .wrap { padding-block: 1.5rem 2rem; }
.colophon p { margin: 0; }

/* Print: a clean résumé */
@media print {
  @page { margin: .6in; }
  :root { --bg: #fff; --surface: #fff; --band: #fff; --ink: #000; --muted: #444; --rule: #bbb; --navy: #fff; --navy-ink: #000; --accent: #000; --gold: #000; --shadow: none; }
  body { font-size: 10.5pt; line-height: 1.4; }
  .skip, .masthead nav, .colophon, mark.need, .hero-photo, .stats, .case-figure, .logo, .icon, .covers, h2::before, .hero::after { display: none !important; }
  .name { font-size: 18pt; font-weight: 700; color: #000; }
  .eyebrow { display: none; }
  .button { display: inline; background: none; padding: 0; color: #000; font: inherit; }
  .button::after { content: ": linkedin.com/in/ascooke"; }
  .results li::before { content: "\2022"; background: none; width: auto; height: auto; top: 0; }
  .masthead { position: static; background: none; }
  .wrap { padding: 0; max-width: none; }
  main > section:not(.hero):not(.stats) { padding-block: .6rem; }
  .hero { padding: 0; }
  .hero h1 { font-size: 13pt; max-width: none; }
  .hero p:not(.eyebrow) { font-size: 10.5pt; color: #000; }
  .eyebrow { display: none; }
  #work { margin: 0; }
  h2 { margin: .5rem 0 .4rem; }
  .cards { display: block; }
  .case { box-shadow: none; break-inside: avoid; margin-bottom: .6rem; }
  .case-body { padding: 0; }
  .case h3 { font-size: 11.5pt; margin-bottom: .3rem; }
  .case dt { margin-top: .3rem; }
  .timeline > li, .tiles > li { display: block; box-shadow: none; padding: 0; break-inside: avoid; }
  .timeline { gap: .5rem; }
  .edu { margin-left: 0; }
  .lead-grid { display: block; margin-bottom: .4rem; }
  .tiles { display: block; }
  .tiles li { margin-bottom: .4rem; }
  .tiles h3 { margin: 0; display: inline; font-size: 10.5pt; }
  .tiles h3::after { content: ". "; }
  .tiles p { display: inline; font-size: 10.5pt; }
  .writing-grid { display: block; }
  .contact-lead { font-size: 10.5pt; }
  a { text-decoration: none; color: #000; }
}
