/* ============================================================
   v522 · Mobile recruiter / hiring-manager presentation layer
   Loaded only for small viewports. Desktop remains governed by site.css.
   ============================================================ */

@media (max-width: 760px) {
  :root {
    --mobile-gutter: clamp(1rem, 5vw, 1.35rem);
    --mobile-nav-h: 64px;
    --mobile-bar-h: 68px;
  }

  html {
    overflow-x: hidden;
    scroll-padding-top: calc(var(--mobile-nav-h) + 12px);
  }

  body {
    overflow-x: hidden;
    padding-top: var(--mobile-nav-h);
    padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 20% 0%, rgba(11,107,88,.09), transparent 35%),
      linear-gradient(180deg, rgba(247,249,248,.98), rgba(237,240,238,.98));
  }

  body.home-intro-active { overflow: auto !important; }
  body.mobile-nav-open,
  body.modal-open { overflow: hidden; }

  .wrap,
  .wrap-narrow,
  .wrap-prose {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .section {
    padding: clamp(2.25rem, 10vw, 3.5rem) 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Mobile top nav: native-app style, full-screen menu, scroll-direction aware. */
  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    min-height: var(--mobile-nav-h);
    transform: translateY(0);
    transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
    background: rgba(237,240,238,.94);
    border-bottom: 1px solid rgba(15,23,20,.12);
  }

  body.mobile-nav-hidden:not(.mobile-nav-open) .site-nav {
    transform: translateY(-110%);
  }

  .site-nav__inner {
    position: relative;
    z-index: 2;
    min-height: var(--mobile-nav-h);
    padding: .6rem var(--mobile-gutter);
  }

  .brand {
    gap: .65rem;
    min-height: 44px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--redline);
    color: var(--paper);
  }

  .brand__name {
    display: inline;
    max-width: 13ch;
    font-size: .74rem;
    line-height: 1.05;
    letter-spacing: .08em;
  }

  .nav-toggle {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border-color: rgba(15,23,20,.18);
  }

  .nav-toggle:focus-visible,
  .mobile-conversion-bar a:focus-visible,
  .hero-demo-hotspot:focus-visible,
  .btn:focus-visible,
  .work-index-card a:focus-visible,
  .media-compare__range:focus-visible {
    outline: 3px solid rgba(11,107,88,.32);
    outline-offset: 3px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: .25rem;
    min-height: 100svh;
    padding: calc(var(--mobile-nav-h) + 1.2rem) var(--mobile-gutter) calc(2rem + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 18% 18%, rgba(11,107,88,.18), transparent 32%),
      linear-gradient(180deg, rgba(247,249,248,.985), rgba(237,240,238,.985));
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 240ms var(--ease-out), transform 260ms var(--ease-out), visibility 240ms var(--ease-out);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(15,23,20,.12);
  }

  .nav-links li:last-child {
    padding-top: 1rem;
    border-bottom: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: .85rem 0;
    border-radius: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -.05em;
  }

  .nav-links a.nav-cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: .75rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: .01em;
    color: var(--paper);
    background: var(--ink);
  }

  .nav-links a[aria-current="page"] {
    border-bottom: 0;
    color: var(--redline);
  }

  /* Skip the timed desktop intro on mobile. It delays the 30-second decision. */
  .home-intro-sequence {
    display: none !important;
  }

  /* Homepage: 30-second elevator pitch. */
  body[data-page="home"] main {
    display: flex;
    flex-direction: column;
  }

  body[data-page="home"] .hero {
    order: 1;
    padding: .8rem 0 1.8rem;
  }

  body[data-page="home"] .hero__rule {
    display: none;
  }

  body[data-page="home"] .hero__lead {
    display: flex;
    flex-direction: column;
    gap: .95rem;
  }

  body[data-page="home"] .hero__primary {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  body[data-page="home"] .hero__id {
    margin: 0 0 .7rem;
    font-size: .68rem;
    line-height: 1.35;
    letter-spacing: .12em;
    color: var(--redline);
  }

  body[data-page="home"] .hero h1 {
    max-width: 12.5ch;
    margin: 0 0 .8rem;
    font-size: clamp(2.35rem, 11.8vw, 3.55rem);
    line-height: .94;
    font-weight: 420;
    letter-spacing: -.062em;
    text-wrap: balance;
  }

  body[data-page="home"] .hero h1 .accent {
    color: var(--redline);
  }

  body[data-page="home"] .hero .lede {
    max-width: 100%;
    margin: 0;
    font-size: .98rem;
    line-height: 1.46;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body[data-page="home"] .hero__cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
    margin-top: 1rem;
  }

  body[data-page="home"] .hero__cta-row .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    padding: .9rem 1rem;
  }

  body[data-page="home"] .hero__visual {
    width: calc(100% + .6rem);
    margin: .35rem -.3rem 0;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    border-color: rgba(15,23,20,.16);
    box-shadow: 0 18px 48px rgba(15,23,20,.10);
    background: #f7f9f8;
  }

  body[data-page="home"] .hero__visual img {
    object-fit: cover;
    object-position: center top;
  }

  body[data-page="home"] .hero__proof {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    border: 1.5px solid var(--ink);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.52);
  }

  body[data-page="home"] .hero__proof > article {
    min-width: 0;
    padding: .78rem .55rem .72rem;
    border-right: 1px solid rgba(15,23,20,.16);
  }

  body[data-page="home"] .hero__proof strong {
    font-size: clamp(1.45rem, 8vw, 2.05rem);
    line-height: .92;
    letter-spacing: -.04em;
    margin-bottom: .34rem;
  }

  body[data-page="home"] .hero__proof small {
    margin: 0;
    font-size: .56rem;
    line-height: 1.25;
    letter-spacing: .07em;
  }

  body[data-page="home"] .hero__proof p {
    display: none;
  }

  body[data-page="home"] .hero-media-showcase {
    margin-top: 1rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    border-radius: 26px;
    border: 0;
    background: #0f1714;
    color: var(--paper);
    box-shadow: 0 24px 60px rgba(15,23,20,.18);
  }

  body[data-page="home"] .hero-media-showcase__copy {
    order: -1;
  }

  body[data-page="home"] .hero-media-showcase__copy .case-id,
  body[data-page="home"] .hero-media-showcase__copy h2 {
    color: var(--mint, #6fcfb8);
  }

  body[data-page="home"] .hero-media-showcase__copy h2 {
    margin: .35rem 0 .25rem;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.045em;
  }

  body[data-page="home"] .hero-media-showcase__copy p {
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: .96rem;
    line-height: 1.45;
  }

  body[data-page="home"] .hero-media-showcase__media {
    border-radius: 20px;
    background: #050807;
  }

  body[data-page="home"] .hero-demo-hotspot {
    min-width: 44px;
    min-height: 44px;
    padding: .55rem .75rem;
    font-size: .62rem;
    background: rgba(15,23,20,.88);
  }

  body[data-page="home"] .hero-demo-hotspot--smart { left: 7%; top: 22%; }
  body[data-page="home"] .hero-demo-hotspot--workspace { left: 32%; bottom: 10%; }
  body[data-page="home"] .hero-demo-hotspot--biometrics { right: 9%; bottom: 20%; }

  body[data-page="home"] .portfolio-architecture-section,
  body[data-page="home"] .principles-section {
    display: none;
  }

  body[data-page="home"] #work {
    order: 2;
    padding-top: 1.6rem;
  }

  body[data-page="home"] #work .section-head {
    margin-bottom: 1rem;
  }

  body[data-page="home"] #work .section-head__eyebrow {
    margin-bottom: .65rem;
  }

  body[data-page="home"] #work h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: .98;
    letter-spacing: -.055em;
    max-width: 11ch;
  }

  body[data-page="home"] #work .section-head__deck {
    margin-top: .8rem;
    font-size: .96rem;
    line-height: 1.45;
  }

  body[data-page="home"] .home-work-index-grid {
    margin-top: 1rem;
    gap: 1rem;
  }

  .work-index-card {
    overflow: hidden;
    padding: 1rem;
    border-radius: 24px;
    border-width: 1.25px;
    gap: .8rem;
  }

  body[data-page="home"] .work-index-card:not(.work-index-card--lead) {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-index-card__media {
    margin: -1rem -1rem .2rem;
  }

  .work-index-card__media .media-compare {
    aspect-ratio: 4 / 3;
    border-radius: 24px 24px 0 0;
  }

  .work-index-card__head {
    gap: .45rem;
  }

  .work-index-card__id,
  .work-index-card__tag,
  .work-index-card__meta > span {
    font-size: .63rem;
    line-height: 1.25;
  }

  .work-index-card h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    line-height: 1.03;
    letter-spacing: -.045em;
  }

  .work-index-card__deck {
    font-size: .94rem;
    line-height: 1.43;
  }

  body[data-page="home"] .work-index-card:not(.work-index-card--lead) .work-index-card__deck {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .work-index-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 0;
    padding: .75rem 0;
  }

  .work-index-card__metrics li {
    min-width: 0;
    padding: 0 .55rem;
    border-right: 1px dashed rgba(15,23,20,.18);
  }

  .work-index-card__metrics li:last-child {
    border-right: 0;
  }

  .work-index-card__metrics strong {
    font-size: clamp(1.05rem, 5.8vw, 1.55rem);
    line-height: .98;
    overflow-wrap: anywhere;
  }

  .work-index-card__metrics span {
    font-size: .56rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .work-index-card__meta {
    align-items: stretch;
    flex-direction: column;
    gap: .65rem;
  }

  .work-index-card__cta,
  .btn--small.work-index-card__cta {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  body[data-page="home"] .testimonials-section {
    order: 3;
    padding-top: 1rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial {
    padding: 1.15rem;
    border-radius: 22px;
  }

  .testimonial blockquote,
  .testimonial p {
    font-size: 1rem;
    line-height: 1.48;
  }

  /* Case study mobile: visual proof first, specs compact, long TOC removed. */
  body[data-page="case"] .case-hero {
    padding: 1rem 0 1.7rem;
  }

  body[data-page="case"] .case-hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-page="case"] .case-hero__copy {
    display: grid;
    gap: .75rem;
  }

  body[data-page="case"] .section-head__eyebrow {
    gap: .45rem;
    flex-wrap: wrap;
    margin-bottom: .35rem;
  }

  body[data-page="case"] .case-hero h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 0;
  }

  body[data-page="case"] .case-hero__deck {
    font-size: .98rem;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body[data-page="case"] .case-hero__comparison {
    margin-top: .25rem;
    border-radius: 24px;
  }

  body[data-page="case"] .case-hero__comparison .case-fast-proof__heading {
    padding: 1rem;
  }

  body[data-page="case"] .case-hero__comparison .case-fast-proof__heading h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
    line-height: 1.05;
  }

  body[data-page="case"] .media-compare {
    aspect-ratio: 4 / 3;
  }

  body[data-page="case"] .case-hero__details {
    min-width: 0;
  }

  body[data-page="case"] .case-spec-block {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
    padding: .9rem;
    border-radius: 22px;
  }

  body[data-page="case"] .spec-line {
    min-width: 0;
    padding: 0;
    border-right: 0;
  }

  body[data-page="case"] .spec-line__label {
    font-size: .6rem;
  }

  body[data-page="case"] .spec-line__value {
    font-size: .78rem;
    line-height: 1.25;
  }

  body[data-page="case"] .case-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    margin-top: .9rem;
    border: 1px solid var(--ink);
    border-radius: 20px;
    overflow: hidden;
  }

  body[data-page="case"] .case-hero__metrics > div {
    min-width: 0;
    padding: .75rem .45rem;
    border-right: 1px dashed rgba(15,23,20,.18);
  }

  body[data-page="case"] .case-hero__metrics strong {
    font-size: clamp(1.15rem, 7vw, 1.85rem);
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
  }

  body[data-page="case"] .case-hero__metrics span {
    font-size: .58rem;
    line-height: 1.18;
  }

  body[data-page="case"] .case-toc {
    display: none;
  }

  body[data-page="case"] .case-with-toc {
    display: block;
  }

  body[data-page="case"] .case-section {
    padding: 2rem 0;
  }

  body[data-page="case"] .case-section__header {
    gap: .8rem;
  }

  body[data-page="case"] .case-section__num {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  body[data-page="case"] .case-section__body p {
    font-size: 1rem;
    line-height: 1.55;
  }

  body[data-page="case"] .arch-figure,
  body[data-page="case"] .case-inline-media,
  body[data-page="case"] .case-fast-proof__block {
    border-radius: 22px;
  }

  body[data-page="case"] .arch-svg {
    min-width: 760px;
  }

  body[data-page="case"] .arch-figure {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Work index mobile mirrors homepage card system. */
  body[data-page="work-index"] .page-hero {
    padding: 1rem 0 1.6rem;
  }

  body[data-page="work-index"] .page-hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.6rem);
    line-height: .92;
    letter-spacing: -.06em;
  }

  body[data-page="work-index"] .work-index-grid {
    padding-top: 0;
  }

  body[data-page="work-index"] .work-index-grid .wrap {
    gap: 1rem;
  }

  /* Utility pages: cleaner mobile scan. */
  body[data-page="about"] .about-hero__grid,
  body[data-page="resume"] .resume-shell,
  body[data-page="contact"] .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: calc(var(--mobile-bar-h) + 1.5rem + env(safe-area-inset-bottom));
  }

  /* Persistent recruiter conversion bar. */
  .mobile-conversion-bar {
    position: fixed;
    z-index: 880;
    left: .75rem;
    right: .75rem;
    bottom: calc(.7rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    padding: .45rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(15,23,20,.94);
    box-shadow: 0 18px 45px rgba(15,23,20,.24);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }

  body.mobile-nav-open .mobile-conversion-bar,
  body.modal-open .mobile-conversion-bar {
    display: none;
  }

  .mobile-conversion-bar a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .5rem;
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
  }

  .mobile-conversion-bar a:first-child {
    background: var(--redline);
    color: #fff;
  }

  @media (max-width: 340px) {
    .brand__name { display: none; }
    body[data-page="home"] .hero h1 { font-size: 2.18rem; }
    body[data-page="home"] .hero .lede { -webkit-line-clamp: 4; }
    body[data-page="home"] .hero__proof small,
    .work-index-card__metrics span,
    body[data-page="case"] .case-hero__metrics span { font-size: .52rem; }
    .mobile-conversion-bar a { font-size: .68rem; }
  }
}

@media (max-width: 760px) {
  /* v522 tightening loop: the proof image should appear inside the first mobile scan, not after all actions. */
  body[data-page="home"] .hero__primary { display: contents; }
  body[data-page="home"] .hero__id { order: 1; }
  body[data-page="home"] .hero h1 {
    order: 2;
    max-width: 100%;
    font-size: clamp(2rem, 9.1vw, 2.75rem);
    line-height: .97;
  }
  body[data-page="home"] .hero .lede {
    order: 3;
    -webkit-line-clamp: 3;
  }
  body[data-page="home"] .hero__visual { order: 4; }
  body[data-page="home"] .hero__cta-row {
    order: 5;
    grid-template-columns: 1fr;
    margin-top: .2rem;
  }
  body[data-page="home"] .hero__cta-row a[href$="Michael-Hawkins-Resume.pdf"] {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* =====================================================================
   v523 · Clean light mobile recruiter layer
   Keeps the v522 30-second order while removing heavy/dark treatments.
   ===================================================================== */
@media (max-width: 760px) {
  body {
    background: var(--paper) !important;
    color: var(--ink);
  }

  .site-nav {
    background: rgba(247,246,241,.94);
    border-bottom-color: var(--surface-border, #D8DDD8);
    box-shadow: none;
  }

  .brand__mark {
    background: var(--ink);
    color: #fff;
  }

  .nav-toggle {
    background: #fff;
    border-color: var(--surface-border, #D8DDD8);
  }

  .nav-links {
    background: linear-gradient(180deg, rgba(251,250,246,.99), rgba(247,246,241,.99));
  }

  .nav-links li { border-bottom-color: rgba(17,22,19,.11); }
  .nav-links a { color: var(--ink); }
  .nav-links a[aria-current="page"] { color: var(--redline); }

  body[data-page="home"] .hero__id,
  body[data-page="home"] .hero h1 .accent,
  body[data-page="home"] .hero-media-showcase__copy .case-id,
  body[data-page="home"] .hero-media-showcase__copy h2,
  .work-index-card__id,
  body[data-page="case"] .case-section__num,
  body[data-page="case"] .case-section__label {
    color: var(--redline);
  }

  body[data-page="home"] .hero .lede,
  body[data-page="home"] #work .section-head__deck,
  .work-index-card__deck,
  body[data-page="case"] .case-hero__deck,
  body[data-page="case"] .case-section__body,
  body[data-page="case"] .case-section__body p {
    color: var(--ink-2);
  }

  body[data-page="home"] .hero__visual,
  .work-index-card,
  body[data-page="case"] .case-hero__comparison,
  body[data-page="case"] .case-spec-block,
  body[data-page="case"] .case-hero__metrics,
  body[data-page="case"] .arch-figure,
  body[data-page="case"] .case-inline-media,
  body[data-page="case"] .case-fast-proof__block,
  .testimonial,
  .contact-form {
    background: #fff;
    border: 1px solid var(--surface-border, #D8DDD8);
    box-shadow: 0 10px 28px rgba(17,22,19,.045);
  }

  body[data-page="home"] .hero__visual {
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(17,22,19,.055);
  }

  body[data-page="home"] .hero__proof {
    border: 1px solid var(--surface-border, #D8DDD8);
    background: #fff;
    box-shadow: 0 8px 22px rgba(17,22,19,.035);
  }

  body[data-page="home"] .hero__proof > article {
    border-right-color: var(--surface-border, #D8DDD8);
  }

  body[data-page="home"] .hero-media-showcase {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--surface-border, #D8DDD8);
    box-shadow: 0 14px 36px rgba(17,22,19,.06);
  }

  body[data-page="home"] .hero-media-showcase__copy p {
    color: var(--ink-2);
  }

  body[data-page="home"] .hero-media-showcase__media {
    background: var(--paper-3, #FBFAF6);
  }

  .work-index-card {
    border-radius: 22px;
  }

  .work-index-card__media .media-compare {
    border-bottom-color: var(--surface-border, #D8DDD8);
  }

  .work-index-card__metrics li,
  body[data-page="case"] .case-hero__metrics > div {
    border-right-color: var(--surface-border, #D8DDD8);
  }

  .work-index-card__metrics span,
  body[data-page="case"] .case-hero__metrics span,
  body[data-page="case"] .spec-line__label {
    color: var(--ink-soft);
  }

  .btn,
  .work-index-card__cta,
  .btn--small.work-index-card__cta {
    border-radius: 999px;
  }

  .btn--ghost,
  .btn--small.work-index-card__cta {
    background: transparent;
    color: var(--ink);
    border-color: var(--surface-border-strong, #AEB8B2);
  }

  .btn--ghost:hover,
  .btn--small.work-index-card__cta:hover {
    background: var(--redline);
    border-color: var(--redline);
    color: #fff;
  }

  body[data-page="case"] .case-hero__metrics {
    border-color: var(--surface-border, #D8DDD8);
  }

  .case-inline-media figcaption,
  .case-fast-proof figcaption,
  .case-media-evidence figcaption {
    color: var(--ink-2);
    border-top-color: var(--surface-border, #D8DDD8);
  }

  .mobile-conversion-bar {
    background: rgba(255,255,255,.96);
    border-color: var(--surface-border, #D8DDD8);
    box-shadow: 0 14px 34px rgba(17,22,19,.12);
  }

  .mobile-conversion-bar a {
    color: var(--ink);
  }

  .mobile-conversion-bar a:first-child {
    background: var(--redline);
    color: #fff;
  }

  .site-footer {
    background: var(--paper);
    border-top-color: var(--surface-border, #D8DDD8);
  }
}

/* =====================================================================
   v524 · Mobile viewport consistency / visual QA pass
   ===================================================================== */
@media (max-width: 760px) {
  *, *::before, *::after {
    min-width: 0;
  }

  body,
  main,
  .wrap,
  .wrap-narrow,
  .wrap-prose,
  .section,
  .case-section,
  .case-hero,
  .work-index-card,
  .testimonial,
  .contact-band {
    max-width: 100%;
  }

  body[data-page="home"] .hero__lead,
  body[data-page="home"] .hero__primary,
  body[data-page="home"] .hero h1,
  body[data-page="home"] .hero .lede,
  .page-hero,
  .page-hero h1,
  body[data-page="case"] .case-hero__copy,
  body[data-page="case"] .case-hero h1,
  body[data-page="case"] .case-hero__deck,
  .work-index-card,
  .work-index-card h2,
  .work-index-card__deck,
  .case-section__body,
  .contact-band h2 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Keep the new hero proof image visually present on mobile even when image decode is delayed. */
  body[data-page="home"] .hero__visual {
    background-color: #fff;
    background-image: url("../img/hp_hero.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  body[data-page="home"] .hero__visual img {
    position: relative;
    z-index: 1;
    object-fit: cover;
    object-position: center top;
  }

  /* Prevent the email CTA from creating horizontal scroll at 320px. */
  .contact-band {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
    overflow: hidden;
  }

  .contact-band .wrap-prose {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .contact-band__email {
    display: inline-flex;
    max-width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.28rem, 6.4vw, 1.8rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
  }

  /* Center and contain the About portrait instead of letting the desktop max-width push past the viewport. */
  .about-intro__inner {
    justify-items: center;
  }

  .about-portrait {
    width: min(100%, 260px);
    max-width: calc(100vw - (var(--mobile-gutter) * 2));
    margin-left: auto;
    margin-right: auto;
  }

  .about-portrait img,
  .about-portrait__caption {
    max-width: 100%;
  }

  /* Normalize card rhythm and keep fixed bar from feeling like it sits on top of content. */
  .work-index-card__metrics,
  body[data-page="case"] .case-hero__metrics,
  body[data-page="home"] .hero__proof {
    border-color: var(--surface-border, #D8DDD8);
  }

  body[data-page="home"] .hero__proof {
    margin-bottom: .4rem;
  }

  .mobile-conversion-bar {
    left: max(.75rem, env(safe-area-inset-left));
    right: max(.75rem, env(safe-area-inset-right));
  }

  .mobile-conversion-bar a {
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  body[data-page="home"] .hero__cta-row .btn,
  .btn,
  .btn--small.work-index-card__cta {
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .contact-band__email {
    font-size: 1.2rem;
  }
}

@media (max-width: 760px) {
  .brand {
    min-width: 44px;
  }

  .text-link,
  .case-back,
  .next-project h3 a,
  .resume-side__value a,
  .resume-sidebar__value a,
  .resume-sidebar__list a,
  .contact-info__value a,
  .thanks-card a,
  .site-footer__links a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }

  .text-link,
  .case-back {
    padding-top: .55rem;
    padding-bottom: .55rem;
  }

  .resume-sidebar__list a,
  .contact-info__value a,
  .thanks-card a {
    padding-top: .45rem;
    padding-bottom: .45rem;
    overflow-wrap: anywhere;
  }

  .site-footer__links a {
    justify-content: center;
  }

  .media-compare__handle {
    overflow: visible;
  }
}
@media (max-width: 760px) {
  body[data-page="home"] .hero__lead { overflow-x: clip; }
}

@media (max-width: 760px) {
  .page-hero .section-head__eyebrow {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    align-items: start;
  }

  .page-hero .section-head__eyebrow .sep {
    display: none;
  }

  .case-id,
  .eyebrow,
  .work-index-card__id,
  body[data-page="case"] .case-section__label {
    overflow-wrap: normal;
    word-break: normal;
  }

  .page-hero .section-head__eyebrow .case-id,
  .page-hero .section-head__eyebrow .eyebrow {
    white-space: normal;
  }

  .page-hero .section-head__eyebrow .case-id {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  body.mobile-nav-open .site-nav,
  .nav-links,
  .nav-links.is-open {
    background: #FBFAF6;
  }

  .nav-toggle span {
    transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
    transform-origin: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
}

@media (max-width: 760px) {
  body.mobile-nav-open .site-nav__inner {
    z-index: 1002;
  }

  body.mobile-nav-open .brand,
  body.mobile-nav-open .nav-toggle {
    position: relative;
    z-index: 1003;
    opacity: 1;
    visibility: visible;
  }

  body.mobile-nav-open .nav-links {
    z-index: 1000;
  }
}

@media (max-width: 760px) {
  .thanks-block p a[href^="mailto:"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}


/* =====================================================================
   v526 · Mobile visual-defect cleanup and navigation repair
   ===================================================================== */
@media (max-width: 760px) {
  :root {
    --mobile-bar-h: 58px;
  }

  body {
    padding-bottom: calc(var(--mobile-bar-h) + 1rem + env(safe-area-inset-bottom));
    background: var(--paper-2, #F7F9F8);
  }

  main {
    overflow: clip;
  }

  /* Keep the fixed recruiter bar compact enough that it does not visually smother page content. */
  .mobile-conversion-bar {
    left: max(.7rem, env(safe-area-inset-left));
    right: max(.7rem, env(safe-area-inset-right));
    bottom: max(.45rem, env(safe-area-inset-bottom));
    min-height: 56px;
    padding: .32rem;
    border-radius: 999px;
  }

  .mobile-conversion-bar a {
    min-height: 44px;
    border-radius: 999px;
    font-size: .78rem;
    letter-spacing: 0;
  }

  /* Homepage proof: replace cramped metric tiles with a clean scan-friendly proof list. */
  body[data-page="home"] .hero {
    padding-bottom: calc(2rem + var(--mobile-bar-h));
  }

  body[data-page="home"] .hero__proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    padding: .35rem;
    margin: .9rem 0 0;
    border: 1px solid var(--surface-border, #D8DDD8);
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 12px 32px rgba(17,22,19,.045);
    overflow: visible;
  }

  body[data-page="home"] .hero__proof > article {
    display: grid;
    grid-template-columns: minmax(72px, .34fr) 1fr;
    align-items: center;
    gap: .75rem;
    min-height: 58px;
    padding: .75rem .8rem;
    border: 0;
    border-radius: 18px;
    background: #fff;
  }

  body[data-page="home"] .hero__proof > article + article {
    border-top: 1px solid var(--surface-border, #D8DDD8);
  }

  body[data-page="home"] .hero__proof strong {
    margin: 0;
    font-size: clamp(1.8rem, 9vw, 2.35rem);
    line-height: .9;
    letter-spacing: -.055em;
    white-space: nowrap;
  }

  body[data-page="home"] .hero__proof small {
    margin: 0;
    max-width: 100%;
    font-size: .74rem;
    line-height: 1.22;
    letter-spacing: .045em;
    color: var(--ink-3, #44524D);
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
  }


  /* Case-study hero details: prioritize readability over dense two-column compression. */
  body[data-page="case"] .case-hero {
    padding-bottom: 2.25rem;
  }

  body[data-page="case"] .case-spec-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem 1.1rem;
    border-radius: 24px;
  }

  body[data-page="case"] .spec-line {
    display: grid;
    gap: .38rem;
    padding: .85rem 0;
    border-bottom: 1px dashed var(--surface-border, #D8DDD8);
  }

  body[data-page="case"] .spec-line:last-child {
    border-bottom: 0;
  }

  body[data-page="case"] .spec-line__label {
    font-size: .72rem;
    line-height: 1;
    letter-spacing: .12em;
    color: var(--ink-soft, #5B6663);
  }

  body[data-page="case"] .spec-line__value {
    font-size: 1.04rem;
    line-height: 1.25;
    color: var(--ink, #0F1714);
    overflow-wrap: normal;
  }

  body[data-page="case"] .case-hero__metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: .75rem;
    padding: .25rem 1rem;
    border: 1px solid var(--surface-border, #D8DDD8);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17,22,19,.045);
    overflow: hidden;
  }

  body[data-page="case"] .case-hero__metrics > div {
    display: grid;
    grid-template-columns: minmax(72px, .34fr) 1fr;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0;
    border-right: 0;
    border-bottom: 1px dashed var(--surface-border, #D8DDD8);
  }

  body[data-page="case"] .case-hero__metrics > div:last-child {
    border-bottom: 0;
  }

  body[data-page="case"] .case-hero__metrics strong {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: .95;
    white-space: nowrap;
  }

  body[data-page="case"] .case-hero__metrics span {
    font-size: .72rem;
    line-height: 1.28;
    letter-spacing: .06em;
    overflow-wrap: normal;
  }

  /* Case-study sections: remove header collisions and make labels scan as labels. */
  body[data-page="case"] .case-section {
    padding: 2.15rem 0;
  }

  body[data-page="case"] .case-section__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: start;
  }

  body[data-page="case"] .case-section__label {
    display: block;
    font-size: .72rem;
    line-height: 1.25;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--redline, #0B6B58);
  }

  body[data-page="case"] .case-section__header h2 {
    font-size: clamp(1.65rem, 8.5vw, 2.3rem);
    line-height: 1.03;
    letter-spacing: -.045em;
  }

  body[data-page="case"] .case-section__body,
  body[data-page="case"] .case-section__body p {
    font-size: 1rem;
    line-height: 1.58;
  }

  /* Validation tables: the desktop row header causes the //Finding//Response//Launch collision on mobile. */
  .validation-table {
    border-radius: 22px;
  }

  .validation-table__header {
    padding: .85rem 1rem;
    font-size: .68rem;
    line-height: 1.35;
    letter-spacing: .08em;
  }

  .validation-table__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: 1rem;
  }

  .validation-table__meta > div {
    padding-bottom: .75rem;
    border-bottom: 1px dashed var(--surface-border, #D8DDD8);
  }

  .validation-table__meta > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .validation-table__meta span {
    font-size: .68rem;
  }

  .validation-table__meta strong {
    font-size: 1rem;
    line-height: 1.3;
  }

  .validation-table__rowhead {
    display: none !important;
  }

  .vrow {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: 1rem;
  }

  .vrow__finding,
  .vrow__response,
  .vrow__status {
    display: grid;
    gap: .35rem;
    min-width: 0;
  }

  .vrow__finding::before,
  .vrow__response::before,
  .vrow__status::before {
    font-size: .66rem;
    line-height: 1;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--ink-soft, #5B6663);
    font-weight: 600;
  }

  .vrow__finding::before { content: "Finding"; }
  .vrow__response::before { content: "Design response"; }
  .vrow__status::before { content: "Status"; }

  .vrow__finding,
  .vrow__response {
    font-size: 1rem;
    line-height: 1.48;
  }

  .vrow__status .status-badge {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  /* Work card polish: prevent title/CTA crowding and keep cards clean. */
  .work-index-card {
    gap: .95rem;
  }

  .work-index-card h2 {
    font-size: clamp(1.45rem, 7.5vw, 2rem);
    line-height: 1.06;
    text-wrap: balance;
  }

  .work-index-card__deck {
    font-size: .98rem;
    line-height: 1.5;
  }

  .work-index-card__cta,
  .btn--small.work-index-card__cta {
    min-height: 48px;
    font-size: .96rem;
  }

  /* Leave enough air above fixed nav when a section becomes the visible focus. */
  body[data-page="home"] #work,
  body[data-page="work-index"] .work-index-grid,
  body[data-page="case"] .case-with-toc,
  body[data-page="about"] main,
  body[data-page="resume"] main,
  body[data-page="contact"] main {
    padding-bottom: calc(var(--mobile-bar-h) + 1.25rem);
  }
}

@media (min-width: 560px) and (max-width: 760px) {
  body[data-page="case"] .case-spec-block {
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 1.25rem;
  }

  body[data-page="case"] .case-hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
  }

  body[data-page="case"] .case-hero__metrics > div {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: .5rem;
    padding: .9rem;
    border-bottom: 0;
    border-right: 1px dashed var(--surface-border, #D8DDD8);
  }

  body[data-page="case"] .case-hero__metrics > div:last-child {
    border-right: 0;
  }
}

@media (max-width: 340px) {
  body[data-page="home"] .hero__proof > article,
  body[data-page="case"] .case-hero__metrics > div {
    grid-template-columns: 64px 1fr;
    gap: .6rem;
  }

  body[data-page="home"] .hero__proof small,
  body[data-page="case"] .case-hero__metrics span,
  body[data-page="case"] .spec-line__label,
  body[data-page="case"] .case-section__label {
    font-size: .66rem;
  }

  body[data-page="case"] .spec-line__value {
    font-size: .98rem;
  }
}

@media (max-width: 760px) {
  .mobile-conversion-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 1rem));
    transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out);
  }
  body.mobile-conversion-visible .mobile-conversion-bar,
  .mobile-conversion-bar:focus-within {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* =====================================================================
   v526 · Mobile visual defect cleanup: metrics, evidence cards, headers
   ===================================================================== */
@media (max-width: 760px) {
  /* Remove inherited desktop hero-frame treatment that can create odd clipping on case pages. */
  body[data-page="case"] .case-hero__layout {
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  /* Hero metrics: stack value over label so long values never collide with the descriptor. */
  body[data-page="case"] .case-hero__metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: .35rem 1.05rem;
    overflow: hidden;
  }

  body[data-page="case"] .case-hero__metrics > div {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: .42rem;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px dashed var(--surface-border, #D8DDD8);
  }

  body[data-page="case"] .case-hero__metrics > div:last-child {
    border-bottom: 0;
  }

  body[data-page="case"] .case-hero__metrics strong {
    display: block;
    max-width: 100%;
    margin: 0;
    font-size: clamp(2rem, 11vw, 2.95rem);
    line-height: .95;
    letter-spacing: -.055em;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-page="case"] .case-hero__metrics span {
    display: block;
    max-width: 30ch;
    font-size: .78rem;
    line-height: 1.32;
    letter-spacing: .055em;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Section headers: number + label scan together; title gets the full width. */
  body[data-page="case"] .case-section__header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num label"
      "title title";
    column-gap: .65rem;
    row-gap: .55rem;
    margin-bottom: 1.15rem;
    align-items: center;
  }

  body[data-page="case"] .case-section__num {
    grid-area: num;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    font-size: .82rem;
    line-height: 1;
    letter-spacing: .08em;
  }

  body[data-page="case"] .case-section__header > div:not(.case-section__num) {
    display: contents;
  }

  body[data-page="case"] .case-section__label {
    grid-area: label;
    margin: 0;
    min-width: 0;
    font-size: .72rem;
    line-height: 1.2;
    letter-spacing: .105em;
    white-space: normal;
  }

  body[data-page="case"] .case-section__header h2 {
    grid-area: title;
    max-width: 100%;
    margin: 0;
    font-size: clamp(1.72rem, 8.2vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: -.05em;
    text-wrap: balance;
  }

  /* Contextual media: flatten nested cards and keep captions readable. */
  body[data-page="case"] .case-inline-media {
    display: block;
    margin-top: 1.35rem;
    padding-top: 0;
    border-top: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
  }

  body[data-page="case"] .case-inline-evidence,
  body[data-page="case"] .case-inline-block,
  body[data-page="case"] .case-inline-video,
  body[data-page="case"] .case-inline-gallery figure {
    overflow: hidden;
    border: 1px solid var(--surface-border, #D8DDD8);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17,22,19,.045);
  }

  body[data-page="case"] .case-inline-evidence img,
  body[data-page="case"] .case-inline-gallery img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: contain;
    object-position: center center;
    background: #fff;
  }

  body[data-page="case"] .case-inline-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-page="case"] .case-inline-media figcaption,
  body[data-page="case"] .case-media-evidence figcaption,
  body[data-page="case"] .case-fast-proof figcaption {
    padding: .95rem 1rem;
    font-size: .96rem;
    line-height: 1.42;
    color: var(--ink-2, #44524D);
    border-top: 1px solid var(--surface-border, #D8DDD8);
  }

  body[data-page="case"] .case-inline-media figcaption::before {
    display: inline;
    white-space: normal;
  }

  /* Tighten large evidence sections without creating cramped cards. */
  body[data-page="case"] .case-media-evidence__gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-page="case"] .case-media-evidence__gallery img,
  body[data-page="case"] .case-media-evidence__hero img {
    max-height: min(54vh, 430px);
    object-fit: contain;
    background: #fff;
  }

  /* Work and homepage cards: keep mobile card rhythm clean after the card swap. */
  .work-index-card__metrics {
    grid-template-columns: 1fr;
    gap: 0;
    padding: .25rem 0;
  }

  .work-index-card__metrics li {
    display: grid;
    grid-template-columns: minmax(70px, .32fr) 1fr;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-right: 0;
    border-bottom: 1px dashed var(--surface-border, #D8DDD8);
  }

  .work-index-card__metrics li:last-child {
    border-bottom: 0;
  }

  .work-index-card__metrics strong {
    margin: 0;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
    line-height: .95;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .work-index-card__metrics span {
    font-size: .7rem;
    line-height: 1.25;
    letter-spacing: .055em;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Long CTAs should never feel like they collide with card edges. */
  .work-index-card__cta,
  .btn--small.work-index-card__cta,
  body[data-page="home"] .hero__cta-row .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 360px) {
  body[data-page="case"] .case-hero__metrics strong {
    font-size: clamp(1.85rem, 10vw, 2.35rem);
  }

  body[data-page="case"] .case-hero__metrics span {
    font-size: .72rem;
  }

  .work-index-card__metrics li {
    grid-template-columns: minmax(64px, .3fr) 1fr;
    gap: .6rem;
  }

  .work-index-card__metrics strong {
    font-size: clamp(1.35rem, 7.4vw, 1.85rem);
  }
}

@media (max-width: 760px) {
  /* Architecture figures should read as contained mobile artifacts, not clipped desktop canvases. */
  body[data-page="case"] .arch-figure {
    overflow: hidden;
  }

  body[data-page="case"] .arch-svg {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 760px) {
  /* Homepage/Work case cards keep the requested one-row metric treatment. */
  .work-index-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: .72rem 0;
  }

  .work-index-card__metrics li {
    display: block;
    min-width: 0;
    padding: 0 .42rem;
    border-right: 1px dashed var(--surface-border, #D8DDD8);
    border-bottom: 0;
  }

  .work-index-card__metrics li:last-child {
    border-right: 0;
  }

  .work-index-card__metrics strong {
    display: block;
    margin: 0 0 .32rem;
    font-size: clamp(.98rem, 4.8vw, 1.35rem);
    line-height: 1;
    letter-spacing: -.035em;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .work-index-card__metrics span {
    display: block;
    font-size: clamp(.48rem, 2.45vw, .62rem);
    line-height: 1.18;
    letter-spacing: .045em;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* =====================================================================
   v528 · Mobile homepage CTA width polish
   Make the primary homepage actions use the full mobile content measure.
   ===================================================================== */
@media (max-width: 760px) {
  body[data-page="home"] .hero__lead {
    align-items: stretch;
  }

  body[data-page="home"] .hero__cta-row {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
    justify-items: stretch;
  }

  body[data-page="home"] .hero__cta-row .btn,
  body[data-page="home"] .hero__cta-row .btn--ghost {
    width: 100%;
    max-width: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
}

/* =====================================================================
   v528 · Mobile homepage hero button system
   Keep the three primary homepage actions full-width and consistent with
   the clean/light system.
   ===================================================================== */
@media (max-width: 760px) {
  body[data-page="home"] .hero__cta-row[aria-label="Primary portfolio actions"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
  }

  body[data-page="home"] .hero__cta-row[aria-label="Primary portfolio actions"] .btn,
  body[data-page="home"] .hero__cta-row[aria-label="Primary portfolio actions"] .btn--ghost {
    width: 100%;
    min-height: 58px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    justify-content: center;
    white-space: normal;
  }
}

/* v528 correction · show every requested homepage action on mobile. */
@media (max-width: 760px) {
  body[data-page="home"] .hero__cta-row[aria-label="Primary portfolio actions"] a[href$="Michael-Hawkins-Resume.pdf"] {
    display: inline-flex !important;
  }
}


/* Named case-study labels wrap cleanly on mobile */
@media (max-width: 760px) {
  .case-id,
  .work-index-card__id,
  .next-project__label {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.25;
  }
}
