/* One type system for the portfolio and standalone resume. Layouts remain section-owned. */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-regular);
  line-height: 1.7;
  letter-spacing: -.01em;
  font-synthesis: none;
}
:where(h1, h2, h3, h4) { text-wrap: balance; word-break: keep-all; }
:where(button, input, textarea, select) { font-family: var(--font-ui); }

/* Navigation and the wordmark use the same sans family as the display text. */
.brand .logo { display: flex; align-items: baseline; line-height: 1.05; }
.brand .logo-pre, .brand .logo-m, .brand .logo-post {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.brand .tag { margin-top: 1px; font-family: var(--font-display); font-size: 25px; font-weight: var(--weight-medium); letter-spacing: -.055em; line-height: 1.05; }
.nav .idx, .nav .lbl { font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-medium); letter-spacing: .015em; }
.nav .idx { font-variant-numeric: tabular-nums; }
body:not(.ui-light) .nav a::after, body.at-about .nav a::after { background: #235566; }
.profile, .ui .profile, .ui-about .profile { font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-regular); line-height: 1.5; letter-spacing: -.015em; }
.profile-name { font-weight: var(--weight-semibold); line-height: 1.3; }
.ui .profile-name .profile-A, .ui-about .profile-name .profile-A { font: inherit; letter-spacing: inherit; }
.scroll-hint { font-family: var(--font-ui); font-weight: var(--weight-medium); font-size: 12px; letter-spacing: .035em; }
.scroll-word { font-family: var(--font-display); font-size: 18px; font-weight: var(--weight-medium); letter-spacing: -.025em; }
.thumb-cap { font-family: var(--font-ui); font-size: 12px; font-weight: var(--weight-medium); letter-spacing: .04em; }
.work-title .title { font-family: var(--font-display); font-size: 32px; font-weight: var(--weight-semibold); letter-spacing: -.04em; line-height: 1.25; }

/* Intro and About. */
.venn-label, .footer-venn .venn-label { font-family: var(--font-display); font-size: 42px; font-weight: var(--weight-medium); letter-spacing: -.04em; }
.hero-message__eyebrow, .contact-content__eyebrow { font-family: var(--font-ui); font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: .1em; line-height: 1.6; }
.hero-message h1 { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 38px); font-weight: 550; line-height: 1.32; letter-spacing: -.045em; }
.hero-message h1 strong { font-weight: var(--weight-bold); }
.hero-message__summary { font-size: 16px; font-weight: var(--weight-regular); line-height: 1.8; letter-spacing: -.02em; }
.hero-message__link { font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-semibold); letter-spacing: -.015em; }
.about-under__title { margin-right: 0; gap: 0; font-family: var(--font-display); font-size: clamp(110px, 23vw, 300px); font-weight: var(--weight-semibold); letter-spacing: -.07em; line-height: 1; }
.about-under__A, .about-under__rest { font: inherit; letter-spacing: inherit; margin: 0; top: 0; -webkit-text-stroke: 0; text-shadow: none; }
.about-stage .glass-badge { font-family: var(--font-body); font-size: 15px; font-weight: var(--weight-medium); line-height: 1.6; letter-spacing: -.025em; }
.about-desc--center p { font-size: 18px; font-weight: var(--weight-regular); line-height: 1.9; letter-spacing: -.02em; }
.about-desc--center .em { font-weight: var(--weight-medium); }
.resume-sec-title { font-family: var(--font-display); font-style: normal; font-size: clamp(25px, 2.2vw, 34px); font-weight: var(--weight-semibold); line-height: 1.2; letter-spacing: -.045em; }
.resume-sec-title::before { font-family: var(--font-ui); font-size: 12px; font-weight: var(--weight-medium); letter-spacing: .04em; }
.ri-left { font-family: var(--font-body); font-size: 17px; font-weight: var(--weight-medium); line-height: 1.8; letter-spacing: -.025em; }
.ri-detail { font-size: 15px; font-weight: var(--weight-regular); line-height: 1.85; letter-spacing: -.015em; }
.ri-right { font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-regular); line-height: 1.65; letter-spacing: -.01em; }
.skill-label { font-family: var(--font-ui); font-size: 16px; font-weight: var(--weight-medium); letter-spacing: -.015em; }
.skills { min-width: 0; justify-content: flex-start; overflow-x: auto; }
.skill-detail h3 { font-family: var(--font-display); font-size: 28px; font-weight: var(--weight-semibold); line-height: 1.2; letter-spacing: -.04em; }
.skill-detail p { font-size: 15px; font-weight: var(--weight-regular); line-height: 1.7; letter-spacing: -.015em; }

/* Selected work: 600-weight titles, regular body copy, and readable supporting text. */
#work .work-heading { font-family: var(--font-display); font-size: var(--text-heading); font-weight: var(--weight-semibold); line-height: 1.3; letter-spacing: -.04em; width: min(100%, 380px); }
#work .planning-info .work-heading { width: auto; }
#work .work-summary { font-family: var(--font-body); font-size: var(--text-body); font-weight: var(--weight-regular); line-height: 1.8; letter-spacing: -.02em; }
#work .work-proof { font-family: var(--font-body); font-size: 15px; font-weight: var(--weight-regular); line-height: 1.8; letter-spacing: -.015em; }
#work .work-number { font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-medium); line-height: 1.5; letter-spacing: .06em; }
#work .work-tags li { font-family: var(--font-ui); font-size: 12px; font-weight: var(--weight-medium); line-height: 1.5; letter-spacing: .015em; }
#work .work-evidence { font-size: 14px; font-weight: var(--weight-medium); line-height: 1.6; }
#work .work-btn { font-family: var(--font-ui); font-size: 14px; font-weight: 550; letter-spacing: -.015em; line-height: 1.5; }
.planning-period { font-family: var(--font-body); font-size: 13px; font-weight: var(--weight-regular); line-height: 1.7; }
.visual-wordmark { font-family: var(--font-display); font-size: 32px; font-weight: var(--weight-semibold); line-height: 1.1; letter-spacing: -.055em; }
.visual-wordmark em { font-style: normal; }
.visual-masthead > span:last-child { font-family: var(--font-ui); font-size: 11px; font-weight: var(--weight-medium); line-height: 1.5; letter-spacing: .06em; }
.agent-visual-intro { font-family: var(--font-display); font-size: clamp(40px, 3.7vw, 54px); font-weight: 550; line-height: 1.02; letter-spacing: -.055em; }
.agent-visual-intro em { font-style: normal; font-weight: 550; }
.agent-visual-intro > span { font-family: var(--font-body); font-size: 14px; font-weight: var(--weight-regular); line-height: 1.65; letter-spacing: -.02em; }
.agent-pipeline li > span { font-family: var(--font-ui); font-size: 10px; font-weight: var(--weight-medium); }
.agent-pipeline strong { font-family: var(--font-body); font-size: 13px; font-weight: var(--weight-medium); line-height: 1.6; letter-spacing: -.025em; }
.agent-shot-top { font-family: var(--font-ui); font-size: 11px; font-weight: var(--weight-medium); letter-spacing: .045em; line-height: 1.4; }
.agent-shot-empty > strong { font-family: var(--font-body); font-size: 18px; font-weight: var(--weight-medium); letter-spacing: -.025em; }
.agent-shot-empty > span:last-child { font-family: var(--font-body); font-size: 13px; font-weight: var(--weight-regular); line-height: 1.7; letter-spacing: -.015em; }
.agent-shot figcaption { font-family: var(--font-ui); font-size: 10px; font-weight: var(--weight-medium); letter-spacing: .06em; line-height: 1.4; }
.andwise-context h3 { font-family: var(--font-body); font-size: 14px; font-weight: var(--weight-medium); letter-spacing: -.02em; }
.andwise-context p { font-size: 14px; font-weight: var(--weight-regular); line-height: 1.8; letter-spacing: -.02em; }
.andwise-context ul { font-size: 13px; font-weight: var(--weight-regular); line-height: 1.8; letter-spacing: -.02em; }
.planning-next { font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-medium); }
.planning-next > span:first-child { font-size: 10px; font-weight: var(--weight-medium); letter-spacing: .07em; }

/* All project drawers share the same title and reading styles. */
.section-peek__title, .planning-detail .section-peek__title { font-family: var(--font-display); font-size: 30px; font-weight: var(--weight-semibold); line-height: 1.35; letter-spacing: -.035em; }
.section-peek__meta, .planning-detail .section-peek__meta { font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-regular); line-height: 1.7; letter-spacing: -.01em; }
.section-peek__desc, .planning-detail .section-peek__desc { font-family: var(--font-body); font-size: 16px; font-weight: var(--weight-regular); line-height: 1.85; letter-spacing: -.015em; }
b.section-peek__desc { font-size: 16px; font-weight: var(--weight-semibold); line-height: 1.7; }
.section-peek__scroll { font-size: 15px; font-weight: var(--weight-regular); line-height: 1.9; letter-spacing: -.015em; }
.section-peek__scroll b { font-weight: var(--weight-semibold); }
.section-peek__close { font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-medium); line-height: 1.4; }
.planning-detail h4 { font-size: 14px; font-weight: var(--weight-semibold); line-height: 1.6; }
.detail-kicker { font-size: 11px; font-weight: var(--weight-medium); line-height: 1.5; }
.detail-projects li { font-size: 16px; font-weight: var(--weight-medium); line-height: 1.6; }
.detail-projects small { font-size: 14px; font-weight: var(--weight-regular); line-height: 1.8; }
.planning-detail section p, .planning-detail section > ul:not(.detail-projects) { font-size: 16px; font-weight: var(--weight-regular); line-height: 1.85; letter-spacing: -.015em; }
.detail-media-note { font-size: 13px; line-height: 1.8; }

/* Archive and Contact retain their layouts with a quieter, consistent type scale. */
#archive .animated-text { font-family: var(--font-display); font-size: clamp(32px, 6.7vw, 88px); line-height: 1.12; letter-spacing: -.055em; }
#archive .word-group { font-family: var(--font-display); font-weight: var(--weight-medium); letter-spacing: -.045em; }
#archive .animated-tit { font-family: var(--font-ui); font-style: normal; font-size: 13px; font-weight: var(--weight-semibold); line-height: 1.6; letter-spacing: .09em; }
.strengths-eyebrow { font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-medium); letter-spacing: .06em; }
.strengths-title { font-family: var(--font-display); font-size: clamp(26px, 3.3vw, 48px); font-weight: var(--weight-semibold); line-height: 1.2; letter-spacing: -.045em; }
.strength-card figcaption { font-family: var(--font-body); font-size: 15px; font-weight: var(--weight-medium); line-height: 1.7; letter-spacing: -.02em; }
#archive .note-eyebrow { font-family: var(--font-ui); font-size: 12px; font-weight: var(--weight-medium); line-height: 1.5; letter-spacing: .06em; }
#archive .note-title { font-family: var(--font-display); font-size: 28px; font-weight: var(--weight-semibold); line-height: 1.3; letter-spacing: -.04em; }
#archive .note-desc { font-family: var(--font-body); font-size: 16px; font-weight: var(--weight-regular); line-height: 1.85; letter-spacing: -.02em; }
.contact-content h2 { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 64px); font-weight: var(--weight-semibold); line-height: 1.2; letter-spacing: -.045em; }
.contact-content__description { font-size: 18px; font-weight: var(--weight-regular); line-height: 1.85; letter-spacing: -.02em; }
.contact-actions a { font-family: var(--font-ui); font-size: 15px; font-weight: var(--weight-semibold); line-height: 1.5; letter-spacing: -.015em; }
.contact-content__address { font-family: var(--font-ui); font-size: 15px; font-weight: var(--weight-medium); letter-spacing: -.015em; }
.footer-left .logo { display: flex; align-items: baseline; margin-bottom: 0; line-height: 1.05; }
.footer-left .logo-pre, .footer-left .logo-m, .footer-left .logo-post, .footer-left .tag { font-family: var(--font-display); font-size: clamp(40px, 8.5vw, 124px); font-weight: var(--weight-semibold); line-height: 1.05; letter-spacing: -.065em; -webkit-text-stroke: 0; }
.footer-left .tag { margin-top: 0; padding-left: 0; font-weight: var(--weight-medium); }
#contact .copyright { font-family: var(--font-ui); font-size: 12px; font-weight: var(--weight-regular); line-height: 1.7; letter-spacing: -.01em; }

/* The downloadable/printable resume follows the same families and weight hierarchy. */
.resume-page .eyebrow { font-family: var(--font-ui); font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: .1em; }
.resume-page h1 { font-family: var(--font-display); font-size: clamp(44px, 7vw, 72px); font-weight: var(--weight-bold); line-height: 1.12; letter-spacing: -.055em; }
.resume-page h1 span { font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-medium); letter-spacing: .07em; }
.resume-page .intro { font-size: 20px; font-weight: var(--weight-regular); line-height: 1.8; letter-spacing: -.025em; }
.resume-page .resume-section h2 { font-family: var(--font-display); font-size: 20px; font-weight: var(--weight-semibold); line-height: 1.4; letter-spacing: -.025em; }
.resume-page .entry h3 { font-size: 18px; font-weight: var(--weight-semibold); line-height: 1.5; letter-spacing: -.025em; }
.resume-page .entry p, .resume-page .entry-details, .resume-page .plain-list, .resume-page .resume-section > p { font-size: 16px; font-weight: var(--weight-regular); line-height: 1.8; letter-spacing: -.015em; }
.resume-page .entry time { font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-regular); line-height: 1.7; }
.resume-page .back-link, .resume-page .email-link, .resume-page .award-proof, .resume-page footer a { font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-semibold); line-height: 1.6; }

@media (min-width: 1081px) {
  .about-body .resume { padding-left: 140px; }
  #archive .animated-tit { margin-left: 180px; }
}
@media (min-width: 1081px) and (max-height: 820px) {
  .visual-wordmark { font-size: 29px; }
  .agent-visual-intro { font-size: 42px; }
  #work .work-summary { font-size: 16px; line-height: 1.8; }
  #work .work-proof { font-size: 14px; }
  #work .work-heading { font-size: 34px; }
  .andwise-context p { font-size: 13px; }
  .andwise-context ul { font-size: 12px; }
}
@media (max-width: 1080px) {
  #ui-portal::before { content: ''; position: fixed; inset: 0 0 auto; height: 116px; background: linear-gradient(#11151b 82%, #11151b00); pointer-events: none; }
  body.ui-light #ui-portal::before { background: linear-gradient(#fdfdfd 82%, #fdfdfd00); }
  .brand .logo-pre, .brand .logo-m, .brand .logo-post, .brand .tag { font-size: 25px; }
  #work .work-heading { font-size: 34px; }
  .about-desc--center p { font-size: 17px; }
}
@media (max-width: 700px) {
  .nav .idx, .nav .lbl, .ui .nav .idx, .ui .nav .lbl { font-size: 11px; font-weight: var(--weight-medium); letter-spacing: .01em; }
  .hero-message h1 { font-size: clamp(25px, 6.4vw, 30px); line-height: 1.35; }
  .hero-message__summary { font-size: 14px; line-height: 1.8; }
  .hero-message__eyebrow { font-size: 10px; }
  .hero-message__link { font-size: 13px; }
  .about-stage .glass-badge { font-size: 13px; line-height: 1.7; }
  .about-desc--center p { font-size: 16px; line-height: 1.9; }
  .about-body .resume { padding-inline: 0; }
  .about-body .resume-item { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 16px; }
  .about-body .ri-right { white-space: normal; }
  .resume-sec-title { font-size: 26px; }
  .ri-left { font-size: 16px; }
  .ri-right { font-size: 12px; }
  .ri-detail { font-size: 14px; }
  #work .work-heading { font-size: 28px; line-height: 1.35; }
  #work .work-summary { font-size: 16px; line-height: 1.85; }
  #work .work-proof { font-size: 14px; line-height: 1.8; }
  #work .work-number { font-size: 12px; }
  #work .work-btn { font-size: 14px; }
  .planning-period { font-size: 12px; }
  .visual-wordmark { font-size: clamp(22px, 6.7vw, 26px); }
  .visual-masthead > span:last-child { font-size: 9px; }
  .agent-visual-intro { font-size: clamp(30px, 9.5vw, 40px); }
  .agent-visual-intro > span { font-size: 12px; }
  .agent-pipeline strong { font-size: 12px; word-break: keep-all; }
  .agent-shot-top { font-size: 10px; }
  .agent-shot-empty > strong { font-size: 16px; }
  .agent-shot-empty > span:last-child { font-size: 12px; }
  .agent-shot figcaption { font-size: 9px; }
  .andwise-context h3 { font-size: 14px; }
  .andwise-context p, .andwise-context ul { font-size: 13px; }
  .planning-next { font-size: 12px; }
  .planning-next > span:first-child { font-size: 9px; }
  .section-peek__title, .planning-detail .section-peek__title { font-size: 26px; }
  .section-peek__desc, .planning-detail .section-peek__desc { font-size: 16px; }
  .strengths-title { font-size: 28px; line-height: 1.3; }
  #archive .note-title { font-size: 24px; }
  .contact-content h2 { font-size: 38px; }
  .contact-content__description { font-size: 16px; }
  .resume-page .intro { font-size: 17px; }
}
@media print {
  .resume-page h1 { font-size: 42px; }
  .resume-page .intro { font-size: 16px; }
  .resume-page .entry p, .resume-page .entry-details, .resume-page .plain-list, .resume-page .resume-section > p { font-size: 12px; }
}
