/* ==========================================================================
   Homepage polish layer. Loaded only by /index.html, after style.css.
   Changes presentation only; markup and copy are untouched.
   ========================================================================== */

:root {
  --ink:        #111418;
  --ink-2:      #1b2027;
  --ring:       linear-gradient(135deg, #3b5f8f 0%, #1e3a5f 50%, #0f2440 100%);
  --copper-txt: linear-gradient(120deg, #b5651d 0%, #8a4209 100%);
  --live:       #15803d;
  --r-lg:       18px;
}

html, body { overflow-x: clip; }
body { font-size: 16.5px; font-feature-settings: "cv11", "ss01", "ss03"; }

/* ---------- Nav --------------------------------------------------------- */

.nav { background: rgba(248, 249, 251, 0.8); border-bottom-color: rgba(0, 0, 0, 0.06); }
.nav-inner { min-height: 66px; }
.mark { font-weight: 650; font-size: 1.02rem; }
.mark-badge { width: 34px; height: 34px; border: 0; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px #1e3a5f; }
.nav-links { gap: 2px; }
.nav-links a { border-radius: 999px; padding: 7px 14px; }
.nav-links a:hover { background: rgba(17, 20, 24, 0.055); }
.nav-links a[href="/resume.pdf"] {
  margin-left: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.nav-links a[href="/resume.pdf"]:hover { background: #2a313b; color: #fff; }

/* ---------- Hero -------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(36px, 6vw, 72px) 44px; }

/* fine dot grid that fades out toward the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background-image: radial-gradient(rgba(17, 20, 24, 0.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 62% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(60% 70% at 62% 40%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.hero .kicker {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid var(--accent-line);
  background: rgba(238, 243, 249, 0.9);
  border-radius: 999px;
  letter-spacing: 0.13em;
  margin-bottom: 26px;
}
.hero .kicker::after { display: none; }

.hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 4.6rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #14181d 30%, #3a4350 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero-lede { font-size: clamp(1.12rem, 2.3vw, 1.36rem); color: #39414b; letter-spacing: -0.01em; max-width: 34em; }
.hero-lede strong {
  font-weight: 650;
  background: var(--copper-txt);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 0.98rem; line-height: 1.72; color: var(--faint); }

.btn { border-radius: 11px; padding: 13px 22px; font-weight: 600; }
.btn-primary {
  background: linear-gradient(180deg, #244673 0%, #1a3353 100%);
  border-color: #152a45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(30, 58, 95, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #1e3a5f 0%, #152a45 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 26px rgba(30, 58, 95, 0.34);
}
.btn:not(.btn-primary) { background: rgba(255, 255, 255, 0.9); }

.meta-row { gap: 10px; font-size: 0.82rem; }
.meta-row span {
  padding: 7px 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--dim);
}
.dot.live { background: var(--live); width: 7px; height: 7px; animation-name: pulse-live; }
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

/* portrait: gradient ring, soft copper glow */
.hero-grid { grid-template-columns: minmax(0, 1fr) clamp(210px, 25vw, 330px); }
.hero-photo {
  position: relative;
  border: 0;
  outline: 0;
  padding: 5px;
  background: var(--ring);
  box-shadow: 0 30px 60px -18px rgba(15, 36, 64, 0.35), 0 0 0 10px rgba(30, 58, 95, 0.06);
  overflow: visible;
}
.hero-photo img { border-radius: 50%; border: 4px solid var(--bg); }

/* ---------- Stats ------------------------------------------------------- */

section.wrap[style] { padding-bottom: 48px; }
.stats { background: none; border: 0; box-shadow: none; gap: 14px; overflow: visible; }
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ring);
  opacity: 0.85;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat b {
  font-size: clamp(1.8rem, 3vw, 2.15rem);
  font-weight: 720;
  letter-spacing: -0.04em;
  background: var(--copper-txt);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

/* ---------- Section rhythm --------------------------------------------- */

section { padding-block: 60px; }
section + section { border-top: 0; }
#focus { border-top: 1px solid var(--border); }

.section-title { font-size: clamp(1.75rem, 3.8vw, 2.45rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 14px; }
.section-lede { font-size: 1.02rem; }
#focus .section-title { margin-bottom: 26px; }

/* projects sit on a recessed band so the page has rhythm */
#work { position: relative; }
#work::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: var(--bg-2);
  border-block: 1px solid var(--border);
  z-index: -1;
}

/* ---------- Cards ------------------------------------------------------- */

.card {
  border-radius: var(--r-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ring);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover::after { transform: scaleX(1); }
.card:hover { border-color: var(--accent-line); box-shadow: 0 18px 40px -12px rgba(28, 20, 10, 0.16), 0 2px 6px rgba(28, 20, 10, 0.05); }
.card h3 { font-size: 1.12rem; font-weight: 660; letter-spacing: -0.02em; line-height: 1.3; }
.card .tags { margin-top: auto; padding-top: 18px; }

.card-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.tag { border-radius: 999px; padding: 4px 11px; font-size: 0.69rem; }

/* venue line under each project, pinned to the card bottom */
#work .card > p[style] {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px dashed var(--border-hi);
  color: var(--accent) !important;
  font-weight: 600;
}

/* ---------- Contact: dark panel ----------------------------------------- */

#contact { padding-block: 60px; }
.contact-card {
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(200, 118, 42, 0.18), transparent 60%),
    linear-gradient(160deg, #1e3a5f 0%, #0f2440 100%);
  border: 1px solid #2b4a72;
  border-radius: 22px;
  color: #e9ecef;
  box-shadow: 0 30px 60px -24px rgba(17, 20, 24, 0.5);
  padding: clamp(30px, 5.5vw, 54px);
}
.contact-card .kicker { color: #f0a868; }
.contact-card .kicker::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent); }
.contact-card .section-title { color: #fff; }
.contact-card .section-lede { color: #b8c0ca; }
.contact-card a { color: #f6b77c; }
.contact-card a:hover { color: #ffd2a6; }
.contact-list {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.contact-list li {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 13px 16px;
  color: #dfe3e8;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.contact-list li:hover { background: rgba(255, 255, 255, 0.075); border-color: rgba(246, 183, 124, 0.35); }
.contact-list li { flex-wrap: nowrap; min-width: 0; }
.contact-list li a { overflow-wrap: anywhere; }
.contact-list dfn { color: #9aa4b0; min-width: 76px; }

/* ---------- Authorship -------------------------------------------------- */

.authorship { border-top: 1px solid var(--border); }
.author-cover { border-radius: var(--r-lg); box-shadow: 0 24px 50px -20px rgba(28, 20, 10, 0.35); border: 0; }
.author-stats b {
  font-size: 1.75rem;
  font-weight: 720;
  background: var(--copper-txt);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.shelf figure { border-radius: 6px; box-shadow: 0 10px 24px -8px rgba(28, 20, 10, 0.35); }

/* ---------- Footer ------------------------------------------------------ */

.foot { background: var(--bg); }

/* ---------- Small screens ----------------------------------------------- */

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { width: 190px; justify-self: start; }
}

@media (max-width: 620px) {
  section { padding-block: 42px; }
  #contact { padding-block: 42px; }
  .nav-links a[href="/resume.pdf"] { margin-left: 0; }
  .hero .kicker { font-size: 0.64rem; letter-spacing: 0.08em; padding: 6px 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px 16px; }
  .card { padding: 24px 20px; }
  .contact-list { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media print {
  .hero::before, #work::before { display: none; }
  .hero h1, .stat b, .hero-lede strong, .author-stats b { background: none; color: #000; }
  .contact-card { background: #fff; color: #000; }
}

/* ---------- Role buttons with detail popovers --------------------------- */

.roles { margin: 0 0 34px; max-width: 46rem; }
.roles-lead { margin: 0 0 14px; color: var(--dim); font-size: 1rem; }
.roles-hint { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.02em; margin-left: 4px; }
.role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.role { position: relative; }
.role-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.9rem/1.3 var(--sans);
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 9px 14px 9px 16px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.role-plus { position: relative; width: 10px; height: 10px; flex: none; }
.role-plus::before, .role-plus::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 2px; border-radius: 2px;
  background: var(--accent); transition: transform 0.2s ease;
}
.role-plus::after { transform: rotate(90deg); }
.role:hover .role-btn, .role.open .role-btn, .role-btn:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hi);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14), var(--shadow-md);
  transform: translateY(-1px);
}
.role:hover .role-plus::after, .role.open .role-plus::after, .role-btn:focus-visible .role-plus::after { transform: rotate(0deg); }

.role-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 30;
  width: min(400px, calc(100vw - 32px));
  padding: 16px 18px;
  background: var(--ink);
  color: #e6e9ed;
  border: 1px solid #2a313b;
  border-radius: 14px;
  box-shadow: 0 22px 44px -14px rgba(17, 20, 24, 0.45);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.role-pop.flip { left: auto; right: 0; }
.role-pop::before {
  content: ""; position: absolute; top: -6px; left: 22px; width: 11px; height: 11px;
  background: var(--ink); border-left: 1px solid #2a313b; border-top: 1px solid #2a313b;
  transform: rotate(45deg);
}
.role-pop.flip::before { left: auto; right: 22px; }
/* invisible bridge so the pointer can travel from button to box */
.role-pop::after { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.role-pop p { margin: 0; }
.role:hover .role-pop, .role:focus-within .role-pop, .role.open .role-pop {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

@media (hover: none) {
  /* touch screens: open only on tap, so a scroll does not leave boxes open */
  .role:hover .role-pop { opacity: 0; visibility: hidden; }
  .role.open .role-pop { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 620px) {
  .role-list { flex-direction: column; align-items: stretch; }
  .role-btn { width: 100%; justify-content: space-between; border-radius: 12px; }
  .role-pop { position: static; width: auto; margin-top: 8px; display: none; transform: none; }
  .role-pop::before { display: none; }
  .role.open .role-pop { display: block; }
  .role:hover:not(.open) .role-pop, .role:focus-within:not(.open) .role-pop { display: none; }
}
.role-pop a { color: #f6b77c; text-decoration: underline; text-underline-offset: 2px; }
.role-pop a:hover { color: #ffd2a6; }
.role-pop cite { font-style: italic; color: #fff; }

/* ---------- Headline tag and dictionary entry --------------------------- */

.hero-tag { display: block; color: var(--text); font-weight: 650; letter-spacing: -0.015em; margin-bottom: 4px; }

.dict {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  max-width: 40rem;
  margin: 6px 0 22px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent-line);
}
.dict-head { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.dict-word { font-style: normal; font-weight: 700; font-size: 1.7rem; letter-spacing: 0.005em; color: var(--text); line-height: 1.1; }
.dict-pron { font-size: 1.05rem; color: var(--dim); letter-spacing: 0.02em; }
.dict-pos { font-style: italic; font-size: 1rem; color: var(--accent); }
.dict-def { margin: 0; font-size: 1.08rem; line-height: 1.65; color: #2f363f; }

.roles-lead { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 1.08rem; color: var(--text); }
.roles-hint { font-style: normal; }

@media (max-width: 620px) {
  .dict { padding-left: 14px; }
  .dict-word { font-size: 1.45rem; }
  .dict-def { font-size: 1rem; }
}

/* dictionary block: white card with dark blue rules top and bottom */
.dict {
  background: #ffffff;
  border-left: 0;
  border-top: 3px solid #1e3a5f;
  border-bottom: 3px solid #1e3a5f;
  padding: 16px 20px 18px;
  margin: 10px 0 22px;
  box-shadow: 0 6px 18px -10px rgba(30, 58, 95, 0.25);
}
.dict-pos { color: #1e3a5f; }
@media (max-width: 620px) { .dict { padding: 14px 16px 16px; } }
.author-link { margin: 28px 0 0; }

/* tighter rhythm */
.grid { gap: 16px; }
.card { padding: 24px 24px; }
.authorship .author-cover { margin-bottom: 28px; }
.shelf { margin-top: 32px; }

/* ---------- Scale: a more compact, standard type scale ------------------ */

:root { --wrap: 1140px; }
body { font-size: 15.5px; line-height: 1.6; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); margin-bottom: 18px; }
.hero-lede { font-size: clamp(1.02rem, 1.8vw, 1.18rem); }
.hero .kicker { margin-bottom: 20px; padding: 6px 12px; font-size: 0.68rem; }
.hero-grid { grid-template-columns: minmax(0, 1fr) clamp(200px, 22vw, 280px); }
.dict-word { font-size: 1.45rem; }
.dict-def { font-size: 1rem; }
.dict { padding: 12px 18px 14px; }
.role-btn { font-size: 0.84rem; padding: 7px 12px 7px 14px; }
.role-list { gap: 7px; }
.btn { padding: 11px 18px; font-size: 0.88rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 1.95rem); }
.section-lede { font-size: 0.96rem; }
.stat { padding: 18px 18px 16px; }
.stat b { font-size: clamp(1.5rem, 2.4vw, 1.8rem); }
.stat span { font-size: 0.78rem; }
.card { padding: 20px 20px; }
.card h3 { font-size: 1.02rem; }
.card p { font-size: 0.88rem; }
.card-num { width: 32px; height: 32px; margin-bottom: 12px; font-size: 0.72rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.contact-card { padding: clamp(24px, 4vw, 40px); }
.contact-list li { padding: 10px 14px; font-size: 0.9rem; }
.author-stats b { font-size: 1.5rem; }
.shelf figure { width: 140px; }
.shelf img { height: 210px; }
.nav-inner { min-height: 58px; }

@media (max-width: 620px) {
  body { font-size: 15px; }
  .shelf figure { width: 116px; }
  .shelf img { height: 174px; }
}

/* ---------- Print: the homepage as a compact two-page profile ----------- */

@media print {
  @page { margin: 12mm 13mm; }
  html, body { background: #fff !important; font-size: 9.4pt; line-height: 1.42; }
  .nav, .foot, .shelf, .author-cover, .cta-row, .roles-hint, .role-plus,
  .role-pop, .hero::before, #work::before, .card::after, .stat::before,
  .author-link, .section-lede { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  section, .hero, #contact { padding: 0 !important; margin: 0 0 10pt !important; border: 0 !important; }
  .hero-grid { grid-template-columns: 1fr 1.15in !important; gap: 14pt !important; align-items: start; }
  .hero-photo { width: 1.15in !important; padding: 2px; box-shadow: none !important; }
  .hero .kicker { border: 0; background: none; padding: 0; margin: 0 0 4pt; font-size: 7pt; }
  .hero h1 { font-size: 22pt; margin: 0 0 4pt; background: none; color: #000; -webkit-text-fill-color: #000; }
  .hero-lede { font-size: 10pt; margin: 0 0 6pt; color: #111; }
  .hero-tag { margin: 0; }
  .dict { box-shadow: none; padding: 5pt 8pt; margin: 4pt 0 6pt; border-top-width: 1.5pt; border-bottom-width: 1.5pt; }
  .dict-word { font-size: 12pt; }
  .dict-pron, .dict-pos { font-size: 8.5pt; }
  .dict-def { font-size: 8.8pt; line-height: 1.35; }
  .roles { margin: 0 0 6pt; }
  .roles-lead { font-size: 9pt; margin: 0 0 3pt; }
  .role-list { flex-direction: row !important; flex-wrap: wrap; gap: 3pt !important; }
  .role-btn { width: auto !important; padding: 1.5pt 6pt !important; font-size: 7.6pt !important; border-radius: 99px !important;
              box-shadow: none !important; background: #fff !important; color: #000 !important; border: 0.6pt solid #888 !important; transform: none !important; }
  .meta-row { margin: 0; font-size: 7.6pt; }
  .meta-row span { padding: 1pt 6pt; background: none; }
  .stats { grid-template-columns: repeat(4, 1fr) !important; gap: 5pt !important; margin-bottom: 4pt; }
  .stat { padding: 5pt 7pt !important; box-shadow: none !important; border-color: #bbb; break-inside: avoid; }
  .stat b { font-size: 13pt !important; margin: 0; }
  .stat span { font-size: 7.2pt; }
  .kicker { font-size: 7pt; margin: 0 0 3pt; }
  .kicker::after { display: none; }
  .section-title { font-size: 12.5pt; margin: 0 0 5pt !important; }
  .grid, .grid-2 { grid-template-columns: 1fr 1fr !important; gap: 6pt !important; }
  .card { padding: 6pt 8pt !important; border-radius: 6pt; box-shadow: none !important; border-color: #bbb; break-inside: avoid; transform: none !important; }
  .card h3 { font-size: 9pt; margin-bottom: 2pt; }
  .card p { font-size: 7.9pt; line-height: 1.36; }
  .card-num { display: none; }
  .card .tags { padding-top: 3pt; margin-top: 3pt; }
  .tag { font-size: 6.4pt; padding: 0 4pt; }
  #work .card > p[style] { margin-top: 3pt !important; padding-top: 3pt; font-size: 6.8pt !important; }
  .contact-card { background: #fff !important; color: #000; border: 0.6pt solid #bbb; padding: 7pt 9pt !important; box-shadow: none; }
  .contact-card .section-title, .contact-card li, .contact-card a { color: #000 !important; }
  .contact-list { grid-template-columns: repeat(3, 1fr) !important; gap: 3pt !important; margin-top: 4pt; }
  .contact-list li { padding: 2pt 4pt !important; font-size: 7.8pt; background: none; border: 0; }
  .contact-list dfn { min-width: 0; font-size: 6.4pt; color: #555; }
  .authorship { display: block !important; background: none; padding: 0 !important; }
  .authorship .section-lede { display: block !important; font-size: 8.4pt; margin: 0 0 4pt; max-width: none; }
  .author-stats { margin: 0; gap: 4pt 24pt; }
  .author-stats b { font-size: 12pt; }
  .author-stats span { font-size: 6.6pt; }
  .stat b, .hero-lede strong, .author-stats b { -webkit-text-fill-color: currentColor; color: #8a4209 !important; background: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: inherit; }
}
@media print { .kicker, .section-title { break-after: avoid; page-break-after: avoid; } #work .grid { break-before: avoid; } }

/* role popovers must sit above the stats row that follows the hero */
.hero { z-index: 20; }

/* larger portrait (1.5x) */
.hero-grid { grid-template-columns: minmax(0, 1fr) clamp(280px, 33vw, 420px); }
@media (max-width: 780px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { width: 285px; } }

/* phones: photo sits right after the headline, before the polymath block */
@media (max-width: 780px) {
  .hero-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .hero-grid > div { display: contents; }
  .hero-grid .kicker, .hero-grid h1, .hero-grid .hero-lede { order: 1; }
  .hero-photo { order: 2; margin: 6px 0 26px; align-self: center; }
  .hero-grid .roles, .hero-grid .cta-row, .hero-grid .meta-row { order: 3; }
  .hero .kicker { align-self: flex-start; }
}
