/* Home only: hero card (PW-003) and recruiter snapshot strip (PW-004). */
/* PW-093: phone headshot. Below 1000px the card is just the photo (no facts list, no card chrome), stacked above the eyebrow. Fixed width plus aspect-ratio reserves the box, so no layout shift. */
.hero-card{display:block;order:-1}
.hero-card-facts{display:none}
.hero-card-slot{width:98px;aspect-ratio:4/5;overflow:hidden;border-radius:999px 999px 18px 18px;border:1px solid var(--accent-line);background:var(--fairway-soft)}
.hero-card-slot img{display:block;width:100%;height:100%;object-fit:cover}
/* PW-392: single column below 1000px; the base two-column rule only resets at 900px, which clipped the text at 901 to 999px. */
@media (max-width:999px){.hero-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}}
@media (min-width:1000px){
  .hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:clamp(24px,3vw,48px);align-items:center}
  .hero-card{order:0;display:grid;gap:18px;padding:22px;border-radius:var(--r-lg,22px);border:1px solid var(--accent-line);background:linear-gradient(155deg,color-mix(in srgb,var(--fairway) 10%,var(--surface)),var(--surface) 55%,var(--paper));color:var(--ink);box-shadow:var(--shadow-lift);animation:hc-in .9s cubic-bezier(.2,.7,.2,1) both}
  .hero-card-slot{width:auto;aspect-ratio:1;border-radius:calc(var(--r-lg,22px) - 8px);display:grid;place-items:center;background:radial-gradient(circle at 30% 25%,color-mix(in srgb,var(--fairway) 24%,transparent),transparent 62%),linear-gradient(160deg,var(--fairway-soft),var(--mist));border:1px solid var(--accent-line);overflow:hidden}
  .hero-card-slot img{width:100%;height:100%;object-fit:cover}
  .hero-card-mono{font-size:clamp(64px,7vw,96px);font-weight:500;letter-spacing:-.07em;color:var(--fairway-deep);text-shadow:0 0 28px color-mix(in srgb,var(--fairway) 45%,transparent);line-height:1}
  .hero-card-facts{display:grid;list-style:none;margin:0;padding:0;gap:0;font-size:13px;color:var(--ink)}
  .hero-card-facts li{padding:10px 0;border-top:1px solid var(--line)}
  .hero-card-facts li:first-child{border-top:0}
}
@keyframes hc-in{from{transform:translateY(14px)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.hero-card{animation:none}}
body.motion-paused .hero-card{animation:none}

/* PW-493: the recruiter snapshot is one compact strip. Label left, the two facts as text, the four links as 44px chips (the link rows keep their dt for assistive tech but hide it visually). One row of facts plus one row of chips at desktop; at 720 and under the facts keep a label column and the chips wrap two per row. */
.snapshot{display:grid;grid-template-columns:170px minmax(0,1fr);gap:0 24px;align-items:start;padding-block:22px;border-bottom:1px solid var(--line)}
.snapshot-title{font-size:12px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--ink-muted);margin:0;padding-top:12px}
.snapshot-list{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px 8px}
.snapshot-list>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.snapshot-list>div:nth-child(-n+2){flex:0 1 300px;margin-right:20px}
.snapshot-list>div:nth-child(n+3){flex-direction:row;align-items:center}
.snapshot-list dt{font-size:12px;color:var(--ink-muted)}
.snapshot-list>div:nth-child(n+3) dt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.snapshot-list dd{margin:0;font-size:14px;line-height:1.45;display:flex;flex-wrap:wrap;gap:2px 14px}
.snapshot-list a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-weight:500;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.snapshot-list a:hover{color:var(--fairway);text-decoration-color:currentColor}
.snapshot-list>div:nth-child(n+3) a{padding:0 18px;border:1px solid var(--line-strong);border-radius:999px;text-decoration:none;white-space:nowrap}
.snapshot-list>div:nth-child(n+3) a:hover{border-color:var(--fairway)}
.snapshot-list a[hidden]{display:none}
/* PW-412: the two resume links stay a list; PW-493 lays it out as a row of chips with an 8px gap (same gap as the chips around it). */
.snapshot-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
@media (max-width:900px){.snapshot{grid-template-columns:1fr}.snapshot-title{padding-top:0;margin-bottom:6px}}
@media (max-width:720px){.snapshot-list{gap:2px 8px}.snapshot-list>div:nth-child(-n+2){flex:1 1 100%;margin-right:0;display:grid;grid-template-columns:84px 1fr;gap:8px;align-items:baseline;padding:4px 0}.snapshot-list>div:nth-child(3){flex:1 1 100%;margin-top:4px}}

/* PW-022 / PW-023: keep hero CTAs above the desktop fold and the snapshot on the first mobile screen. */
@media (min-width:901px){body[data-page="home"] .hero{padding-top:clamp(56px,6vw,88px)}}
@media (max-width:900px){body[data-page="home"] .hero{min-height:0;padding-top:clamp(32px,8vw,64px);padding-bottom:12px}.hero-bottom{margin-top:20px;padding-top:10px}.snapshot{padding-block:20px}}
@media (max-width:520px){.hero-copy{gap:16px}.snapshot{padding-top:14px}}

/* Sweep polish: tablet and desktop hero name matches the tight phone rhythm (was 1.16 line-height, a 156px gap between Ashton and Capes-Varisano at 1280). */
@media (min-width:721px){body[data-page="home"] .hero h1{line-height:.98}body[data-page="home"] .hero-surname{line-height:.98}}

/* PW-213: print only. Hide JS-only controls, keep the email text, never split cards across pages. */
@media print{
  body[data-page="home"] .motion-toggle,
  body[data-page="home"] [data-copy-email]{display:none!important}
  body[data-page="home"] .door,
  body[data-page="home"] .door-mini,
  body[data-page="home"] .hero-card,
  body[data-page="home"] .cta,
  body[data-page="home"] .cta .email-row{break-inside:avoid!important;page-break-inside:avoid!important}
  /* PW-214: a snapshot label never prints apart from its value (Letter used to strand "Contact" at the foot of page 1), and the heading stays with the list. */
  body[data-page="home"] .snapshot-list>div{break-inside:avoid!important;page-break-inside:avoid!important}
  body[data-page="home"] .snapshot-title{break-after:avoid!important;page-break-after:avoid!important}
}

/* PW-039: phone hero spacing so the recruiter snapshot starts on the first screen. Spacing only, no content hidden. */
@media (max-width:720px){
  body[data-page="home"] .hero{padding-top:20px;padding-bottom:8px}
  body[data-page="home"] .hero-copy{gap:10px}
  body[data-page="home"] .hero h1{font-size:clamp(46px,13.5vw,54px);line-height:.96}
  body[data-page="home"] .hero .lead{font-size:clamp(18px,5.2vw,20px);line-height:1.35}
  body[data-page="home"] .hero-detail{font-size:15px;line-height:1.5}
  body[data-page="home"] .hero-actions{gap:8px 16px;margin-top:2px}
  body[data-page="home"] .hero .hero-actions .btn{min-height:46px}
  body[data-page="home"] .hero-bottom{margin-top:8px;padding-top:4px}
  body[data-page="home"] .snapshot{padding-top:12px}
}

/* PW-487: the Matcha strip sits 24px under the last door, but polish.css section 5 slides every .door up with a scroll-linked translate (20px at rest-below-the-fold) and the strip was not in that list. Below the fold the last door was shifted 20px down while the strip was not, so the visible gap read 4px instead of 24px. Give the strip the same rise (transform-free, no layout change) so both move together. */
@media screen and (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()) and (translate:0 1px){
    body[data-page="home"]:not(.motion-paused) .door-mini{animation:pl-rise linear backwards;animation-timeline:view();animation-range:entry 0% entry 60%}
  }
}
