/* refresh-2026.css — design refresh layer. Load after main.css. Uses main.css tokens only. */

/* ---------- Header / navigation ---------- */
.site-header__inner { min-height: 72px; position: relative; }
.site-nav { flex-wrap: nowrap; }
.site-nav a { min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; padding: .55rem .75rem; }
.brand-mark strong, .brand-mark span { white-space: nowrap; }
.tag { white-space: nowrap; }
.site-footer__nav { gap: .5rem 1rem; }
.site-nav .site-nav__cta { margin-left: .5rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid rgba(225, 187, 129, .5); color: var(--heading); }
.site-nav .site-nav__cta:hover, .site-nav .site-nav__cta.is-active { background: var(--accent-soft); border-color: var(--accent-strong); }
.nav-toggle { display: none; }
@media (max-width: 1120px) {
  .site-header .site-header__inner { flex-wrap: nowrap; padding: .6rem 0; min-height: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--heading); font: inherit; font-size: .95rem; cursor: pointer; }
  .site-header .site-nav { display: none; position: absolute; left: -1rem; right: -1rem; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1.1rem; background: rgba(8, 12, 17, .98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.is-open .site-nav { display: flex; }
  .site-header .site-nav a { min-height: 48px; padding: 0 .75rem; font-size: 1rem; border-radius: 12px; }
  .site-header .site-nav .site-nav__cta { margin: .6rem 0 0; justify-content: center; }
}
@media (max-width: 480px) { .brand-mark span { display: none; } }

/* ---------- Shared rhythm for interior pages ---------- */
.site-refresh .page-hero h1, .cs-hero h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; color: var(--heading); text-wrap: pretty; }
.site-refresh .page-hero__lede { font-size: 1.08rem; line-height: 1.65; }
.site-refresh .section-block--spacious { padding-top: 3.5rem; }
.site-refresh .section-heading h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.18; }
.site-refresh .page-hero__media-caption p { display: none; }
@media (max-width: 760px) {
  .site-refresh .section-block--spacious { padding-top: 2.25rem; }
  .site-refresh .page-hero__media img { height: auto; aspect-ratio: 16 / 9; max-height: 220px; }
}

/* ---------- Home ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; align-items: center; padding: 3rem 0 2rem; }
.home-hero h1 { margin: .55rem 0 1rem; color: var(--heading); font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; max-width: 20ch; text-wrap: pretty; }
.home-hero .hero__lede { margin: 0; max-width: 58ch; }
.home-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.home-hero__portrait { margin: 0; display: grid; gap: .65rem; }
.home-hero__portrait img { width: 100%; height: 280px; object-fit: cover; object-position: center 22%; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-elevated); }
.home-hero__portrait img.is-placeholder { object-fit: contain; padding: 1rem; }
.profile-row { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .85rem; }
.profile-row a { color: var(--muted); }
.profile-row a:hover { color: var(--heading); }
.principles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles p { margin: 0; padding: 1.1rem 1.5rem 1.1rem 0; color: var(--heading); font-size: clamp(1.02rem, 1.5vw, 1.22rem); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.principles p + p { padding: 1.1rem 0 1.1rem 1.5rem; border-left: 1px solid var(--line); }
.principles p::before { content: '\201C'; color: var(--accent); margin-right: .1em; }
.principles p::after { content: '\201D'; color: var(--accent); margin-left: .05em; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.work-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.work-card__media { position: relative; margin: 0; aspect-ratio: 16 / 10; background: #f8fafc; border-bottom: 1px solid var(--line); overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.media-tag { position: absolute; top: .6rem; right: .6rem; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #78350f; background: #fef3c7; padding: .28rem .6rem; border-radius: 999px; }
.work-card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.5rem 1.5rem; flex: 1; }
.work-card__body h3 { font-size: 1.22rem; }
.work-card__body p { margin: 0; }
.work-card__body .text-link { margin-top: auto; padding-top: .4rem; }
@media (max-width: 1080px) { .work-grid { grid-template-columns: 1fr; } .work-card { flex-direction: row; } .work-card__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--line); } }
@media (max-width: 640px) { .work-card { flex-direction: column; } .work-card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } }

.focus-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.focus-strip article { display: grid; gap: .5rem; align-content: start; border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.focus-strip h3 { margin: 0; color: var(--heading); font-size: 1.12rem; line-height: 1.3; }
.focus-strip p { margin: 0; color: var(--muted); }

.featured-video-card--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: center; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) 200px; gap: 1.75rem; }
  .home-hero__portrait img { height: 220px; }
  .featured-video-card--split { grid-template-columns: 1fr; }
  .focus-strip { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 1.75rem; }
  .home-hero__portrait { grid-template-columns: 96px 1fr; align-items: center; gap: 1rem; order: -1; }
  .home-hero__portrait img { height: 96px; border-radius: 50%; object-position: center 20%; }
  .principles { grid-template-columns: 1fr; }
  .principles p, .principles p + p { padding: 1rem 0; border-left: 0; }
  .principles p + p { border-top: 1px solid var(--line); }
}

/* ---------- Article cards ---------- */
.article-card__badge { display: inline-flex; align-self: start; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: .75rem; font-weight: 600; }
.article-card__topline { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.article-card__related { margin: .25rem 0 0; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.article-card__related a { color: var(--heading); font-weight: 600; }
.article-card__related a:hover { color: var(--accent-strong); }
.ext::after { content: ' \2197'; }

/* ---------- Projects page cards with media ---------- */
.project-card--media { padding: 0; overflow: hidden; gap: 0; }
.project-card--media .work-card__media { aspect-ratio: 16 / 9; }
.project-card--media .project-card__body { display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem; flex: 1; }

/* ---------- Case studies ---------- */
.cs { width: min(calc(100% - 2rem), var(--max-width)); margin: 0 auto; }
.cs-crumb { margin: 0; font-size: .9rem; color: var(--muted); }
.cs-crumb a { color: var(--accent-strong); }
.cs-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 3rem; align-items: end; padding-top: 2.5rem; }
.cs-hero h1 { margin: .7rem 0 .9rem; max-width: 22ch; }
.cs-hero .page-hero__lede { margin: 0; max-width: 58ch; }
.fact-rail { margin: 0; border-top: 1px solid var(--line-strong); }
.fact-rail > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.fact-rail dt { color: var(--accent-strong); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-top: .2rem; }
.fact-rail dd { margin: 0; color: var(--heading); font-size: .95rem; line-height: 1.5; }
.cs-figure { margin: 2.5rem 0 0; display: grid; gap: .75rem; }
.cs-figure img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line-strong); background: #f8fafc; }
.cs-figure figcaption { color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 90ch; }
.cs-figure figcaption strong { color: var(--heading); }
.cs-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3.5rem; padding-top: 3.5rem; }
.cs-toc { position: sticky; top: 96px; align-self: start; display: grid; gap: .1rem; font-size: .9rem; }
.cs-toc__label { color: var(--accent-strong); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem; }
.cs-toc a { display: block; padding: .45rem .8rem; border-left: 2px solid var(--line); color: var(--muted); line-height: 1.4; }
.cs-toc a:hover, .cs-toc a.is-current { color: var(--heading); border-left-color: var(--accent); }
.cs-toc-mobile { display: none; border: 1px solid var(--line-strong); border-radius: 14px; }
.cs-toc-mobile summary { min-height: 48px; display: flex; align-items: center; padding: 0 1rem; cursor: pointer; color: var(--heading); }
.cs-toc-mobile a { display: block; padding: .7rem 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.cs-content { display: grid; gap: 2.75rem; max-width: 760px; min-width: 0; }
.cs-content > section { display: grid; gap: .9rem; }
.cs-content h2 { margin: 0; color: var(--heading); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 96px; }
.cs-content h3 { margin: 0; color: var(--heading); font-size: 1.08rem; line-height: 1.3; }
.cs-content p, .cs-content li { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.cs-content .detail-list { display: grid; gap: .5rem; }
.cs-content .detail-list li + li { margin-top: 0; }
.cs-content strong { color: var(--text); }
.cs-note { font-size: .92rem !important; line-height: 1.6 !important; color: #8f9aab !important; }
.cs-quote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: var(--text) !important; font-size: 1.12rem !important; line-height: 1.6 !important; }
.cs-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; }
.cs-strip > div { display: grid; gap: .35rem; align-content: start; padding: 1.1rem 1.2rem; }
.cs-strip > div + div { border-left: 1px solid var(--line-strong); }
.cs-strip strong { color: var(--accent-strong); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cs-strip span { color: var(--heading); font-size: .98rem; line-height: 1.45; }
.cs-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem 2.25rem; }
.cs-pair > div { display: grid; gap: .5rem; align-content: start; }
.cs-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cs-projects article { display: grid; gap: .5rem; align-content: start; padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.cs-projects p { font-size: .95rem !important; line-height: 1.6 !important; }
.cs-projects a { color: var(--accent-strong); font-weight: 650; font-size: .92rem; }
.cs-related { padding-top: 4rem; display: grid; gap: 1.25rem; }
.cs-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.cs-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: stretch; padding-top: 3.5rem; }
.cs-pager > a { display: grid; gap: .3rem; align-content: center; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 18px; }
.cs-pager > a:hover { border-color: rgba(205, 161, 92, .45); }
.cs-pager small { color: var(--muted); font-size: .85rem; }
.cs-pager strong { color: var(--heading); font-size: 1.02rem; line-height: 1.35; }
.cs-pager .cs-pager__all { border: 0; padding: 1.2rem .5rem; color: var(--accent-strong); font-weight: 650; text-align: center; }
.cs-pager .cs-pager__next { text-align: right; }
.cs-pager > span { display: block; }
@media (max-width: 1080px) { .cs-hero { grid-template-columns: 1fr; gap: 1.75rem; } }
@media (max-width: 900px) {
  .cs-body { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.5rem; }
  .cs-toc { display: none; }
  .cs-toc-mobile { display: block; }
  .cs-projects, .cs-pair { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cs-hero { padding-top: 1.75rem; }
  .fact-rail > div { grid-template-columns: 1fr; gap: .15rem; }
  .cs-figure { margin-top: 1.75rem; }
  .cs-figure img { border-radius: 14px; }
  .cs-strip { grid-template-columns: 1fr; }
  .cs-strip > div + div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .cs-content p, .cs-content li { font-size: 1rem; }
  .cs-pager { grid-template-columns: 1fr; }
  .cs-pager .cs-pager__next { text-align: left; }
  .cs-pager .cs-pager__all { order: 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.cs-related h2 { margin: 0; color: var(--heading); font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.02em; scroll-margin-top: 96px; }
.cs-related .article-card h3 { font-size: 1.05rem; line-height: 1.35; }
.cs-figure__open { font-size: .85rem; color: var(--accent-strong); font-weight: 650; }
@media (min-width: 1081px) { .cs-figure__open { display: none; } }
@media (max-width: 1080px) { .cs-figure picture { display: block; } .cs-figure img { max-width: 560px; margin: 0 auto; display: block; } .cs-figure { justify-items: center; } .cs-figure figcaption { max-width: 560px; } }
.article-card__topline { min-width: 0; }
.article-card__topline .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* v5: name-first cards, discreet image captions (no badges) */
.media-tag { display: none; }
.work-card__media { aspect-ratio: auto; background: none; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.work-card__frame { aspect-ratio: 16 / 10; background: #f8fafc; overflow: hidden; }
.work-card__frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.work-card__note { margin: 0; padding: .55rem 1.5rem; font-size: .78rem; line-height: 1.45; color: var(--muted); background: rgba(255, 255, 255, .02); border-top: 1px solid var(--line); }
.app-status { margin: -.25rem 0 0; color: var(--accent-strong); font-size: .8rem; font-weight: 650; letter-spacing: .02em; }
.project-card .app-status { margin-top: -.5rem; }
.cs-figure figcaption { font-size: .84rem; color: var(--muted); }
@media (max-width: 1080px) { .work-card__media { flex: 0 0 40%; border-bottom: 0; border-right: 1px solid var(--line); min-height: 0; } .work-card__frame { aspect-ratio: auto; flex: 1; min-height: 200px; } }
@media (max-width: 640px) { .work-card__media { flex: none; border-right: 0; border-bottom: 1px solid var(--line); } .work-card__frame { aspect-ratio: 16 / 10; flex: none; min-height: 0; } .work-card__note { padding: .5rem 1.25rem; } }
.article-card__actions a, .project-card__link { white-space: nowrap; }
.split-layout > .card.stack-gap { align-content: start; }
.site-refresh .narrow-shell-wide { width: min(calc(100% - 2rem), var(--max-width)); }
.button.ext::after { margin-left: .3em; }

/* Usability review: predictable navigation and readable action targets. */
[data-site-header] { position: sticky; top: 0; z-index: 100; }
.site-header { position: relative; background: rgba(9, 13, 18, .98); }
html { scroll-padding-top: 100px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
.work-card__frame { display: block; }
.work-card h3 a:hover, .work-card__body > a:hover h3, .project-card h3 a:hover, .article-card h3 a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: .2em; }
.work-card__frame:hover img { opacity: .9; }
.work-card__body > a:has(h3) { margin: 0; }
.article-card__actions { margin-top: auto; flex-wrap: wrap; gap: .65rem 1rem; }
.article-card__actions > .article-card__link:first-child { padding: .45rem .8rem; border: 1px solid var(--accent); border-radius: 9px; }
.article-card__actions .article-card__link--secondary { color: var(--muted); font-weight: 500; white-space: normal; }
.article-card__topline .eyebrow { white-space: normal; overflow: visible; }
.cs-related__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cs-figure__open { display: inline-flex; padding: .5rem 0; min-height: 44px; }
.return-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.return-links a, .experience-project { color: var(--accent-strong); }
.return-links .button--primary { color: #17130c; }
.experience-project { display: inline-block; padding: .5rem 0; margin-right: 1.5rem; }
.page-crumb { padding-top: 1.5rem; }
body[data-page="training"] .page-hero__copy { display: block; align-self: center; }
body[data-page="training"] .page-hero__copy h1 { margin: .6rem 0 1rem; }
body[data-page="training"] .page-hero { padding-top: 2rem; padding-bottom: 1rem; }
[data-article-meta] { align-self: start; }
.contact-primary { margin-top: 1.5rem; }
@media (max-width: 640px) { .cs-related__grid { grid-template-columns: 1fr; } .contact-primary .button { max-width: 100%; overflow-wrap: anywhere; white-space: normal; } }
