/* Version 2: Claude's gallery plate, direct manipulation and mobile audit fixes. */
.mobile-hero { display: none; margin: 0; }
.v2-production-comparison { padding-block: 24px 34px; }
.v2-production-comparison > header { margin-bottom: 25px; }
.v2-production-comparison > header h2 { margin: 0 0 10px; }
.v2-production-comparison > header p { margin: 0; color: var(--refine-muted); font-size: 14px; }
.v2-comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(14px,3vw,50px); }
.v2-comparison-grid figcaption { display: grid; gap: 4px; margin-bottom: 16px; color: var(--refine-muted); font-size: 13px; line-height: 1.5; }
.v2-comparison-grid figcaption strong { color: var(--refine-ink); font-weight: 500; }
.v2-project-description { margin-top: 23px; max-width: 64ch; }
.candidate-about-intro h1 { font-size: clamp(38px,4vw,58px); line-height: 1.08; margin: 12px 0 18px; }
.candidate-about-role { max-width: 26ch; font-size: 18px; line-height: 1.5; }
.refined-portfolio .refine-feature-copy .v2-project-description p { font-size: 16px; line-height: 1.75; margin: 0 0 12px; max-width: 64ch; }
.candidate-tool-grid .v2-toolkit-development { grid-column: 1 / -1; }
.v2-spider-card a { position: relative; aspect-ratio: 1; }
.refined-portfolio .v2-spider-card img { position: absolute; width: 100%; height: 101.1%; aspect-ratio: auto; object-fit: cover; object-position: 50% 0; }

/* One controlled layout replaces mixed legacy blocks on Commercial & Film. */
.v2-commercial-page { margin-top: 54px; }
.v2-commercial-heading { margin-bottom: 40px; }
.refined-portfolio .v2-commercial-heading h1 { margin: 0 0 18px; }
.v2-commercial-heading > p { margin: 0; max-width: 55ch; color: var(--refine-muted); font-size: 19px; line-height: 1.6; }
.v2-commercial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(28px,4vw,64px); }
.v2-commercial-card { min-width: 0; }
.v2-product-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; margin: 0; background: #fff; }
.v2-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.v2-card-copy > header { margin: 22px 0 0; }
.refined-portfolio .v2-card-copy h2 { margin: 7px 0 0; font-size: clamp(26px,2.2vw,34px); line-height: 1.2; }
.v2-commercial-page .v2-project-role { margin: 0; color: var(--refine-muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.v2-card-copy > p { margin: 16px 0 0; font-size: 16px; line-height: 1.7; color: #50544c; }
.v2-commercial-film { margin-top: 64px; padding-top: 38px; border-top: 1px solid var(--refine-rule); }
.v2-commercial-section-heading { margin-bottom: 28px; }
.refined-portfolio .v2-commercial-section-heading h2 { margin: 0 0 10px; }
.v2-commercial-section-heading > p { margin: 0; font-size: 16px; color: var(--refine-muted); line-height: 1.6; }
.v2-film-projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: clamp(20px,3vw,44px); }
.v2-film-card { min-width: 0; display: grid; grid-template-rows: subgrid; grid-row: span 4; }
.v2-film-media { position: relative; aspect-ratio: 1; overflow: hidden; margin: 0; }
.v2-film-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
#spiderman .v2-film-media img { height: 101.1%; object-position: 50% 0; }
.v2-film-card > .v2-project-role { margin: 20px 0 8px; }
.refined-portfolio .v2-film-card > h3 { margin: 0 0 12px; font-size: clamp(18px,1.7vw,24px); line-height: 1.3; }
.v2-film-copy > p { margin: 0; font-size: 15px; line-height: 1.7; color: #50544c; }
.v2-product-feature { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: clamp(28px,5vw,80px); align-items: center; margin-block: 72px; }
.v2-product-feature > figure { margin: 0; min-width: 0; }
.v2-product-feature img { display: block; width: 100%; height: auto; }
.v2-product-feature .v2-card-copy > header { margin-top: 0; }
.v2-commercial-page .candidate-project-toolkit { width: 100%; margin-top: 0; padding-block: 32px 44px; }
.refined-portfolio p.v2-project-meta, .refined-portfolio .refine-case p.v2-project-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 16px 0 0; padding: 0; border: 0; color: var(--refine-muted); font-size: 12px; line-height: 1.5; max-width: none; font-weight: 400; }
@media (min-width: 761px) {
  .v2-home-header { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,.8fr); column-gap: clamp(32px,5vw,90px); }
  .v2-home-header .refine-wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .v2-home-header .refine-desktop-nav { display: none; }
  .v2-home-header .refine-menu { display: block; grid-column: 2; grid-row: 1; justify-self: end; }
  .v2-home-header .refine-menu summary { display: flex; align-items: center; gap: 20px; min-height: 44px; padding: 10px 0 10px 12px; font-size: 13px; cursor: pointer; list-style: none; }
  .v2-home-header .refine-menu summary::-webkit-details-marker { display: none; }
  .v2-home-header .refine-menu summary span { font-size: 23px; font-weight: 300; line-height: 1; }
  .v2-home-header .refine-menu[open] summary span { transform: rotate(45deg); }
  .v2-home-header .refine-menu nav { position: absolute; left: 0; right: 0; top: calc(100% - 1px); display: grid; gap: 2px; padding: 18px 24px 22px; border-block: 1px solid var(--refine-rule); background: #fff; box-shadow: 0 16px 24px -24px #333; }
  .v2-home-header .refine-menu nav a { padding-block: 10px; font-size: 16px; line-height: 1.5; }
  .v2-home .v2-intro-proof { align-items: center; flex-wrap: nowrap; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--refine-rule); }
  .v2-intro-proof a.v2-experience { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 0; }
  .v2-experience > strong { flex-shrink: 0; font-size: 26px; line-height: 1; letter-spacing: -.05em; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
  .v2-experience > strong > span { font-size: .65em; vertical-align: 15%; }
  .v2-experience > span { max-width: 18ch; color: var(--refine-muted); font-size: 12px; line-height: 1.45; }
  .v2-intro-proof > a:not(.v2-experience) { min-height: 44px; }
  #project-gallery-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .v2-home-header { grid-template-columns: 1.5fr 1fr; column-gap: 36px; }
}
@media (max-width: 1150px) {
  .refine-menu nav { left: calc(-1 * var(--refine-gutter)); right: calc(-1 * var(--refine-gutter)); padding-inline: var(--refine-gutter); }
}
@media (max-width: 760px) {
  .v2-home { display: flex; flex-direction: column; }
  .v2-home .refine-intro:has(.candidate-intro-availability) { display: block; padding-block: 28px 26px; }
  .refined-portfolio .v2-home .refine-intro h1 { font-size: clamp(22px,7.2vw,32px); line-height: 1.12; letter-spacing: -.045em; }
  .v2-home .refine-intro > p, .v2-home .candidate-intro-availability { display: none; }
  .v2-home .mobile-hero { order: 1; }
  .v2-home .refine-work { order: 3; padding-top: 22px; }
  .candidate-about { padding-top: 28px; }
  .candidate-about-intro h1 { font-size: clamp(34px,9.3vw,42px); margin: 10px 0 15px; }
  .candidate-about-role { font-size: 17px; max-width: 30ch; }
  .refine-hero:not(.mobile-hero) { display: none; }
  .mobile-hero { display: block; width: 100%; }
  .mobile-hero-frame { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; touch-action: pan-y; cursor: grab; user-select: none; }
  .mobile-hero-frame:focus-visible { outline: 2px solid #343e33; outline-offset: -3px; }
  .mobile-hero.is-dragging .mobile-hero-frame { cursor: grabbing; }
  .mobile-hero-frame img { position: absolute; top: -46.5%; left: 0; height: 175%; width: auto; max-width: none; transform: translate3d(var(--hero-pan, -32.63%), 0, 0); will-change: transform; -webkit-user-drag: none; }
  .mobile-hero figcaption { display: flex; justify-content: space-between; gap: 15px; padding: 12px var(--refine-gutter, 22px) 0; font-size: 12px; line-height: 1.5; color: var(--refine-muted); }
  .mobile-hero figcaption > span:last-child { text-align: right; }
  .refine-hero figcaption, .refine-gallery-piece p, .mobile-gallery-controls, .mobile-gallery-hint, .mobile-work-heading, .mobile-project-number, .candidate-evidence a > span, .candidate-intro-availability a, .refine-footer p { font-size: 12px; }
  .refined-portfolio .refine-project-heading .refine-eyebrow { font-size: 12px; }
  .refine-apollo-contribution { margin-inline: 0; }
  .refined-portfolio .refine-feature-copy .v2-project-description p { font-size: 15px; line-height: 1.7; }
  .candidate-evidence a { padding-inline: 12px 6px; }
  .candidate-evidence a:first-child { padding-left: 0; }
  .candidate-evidence a > span { line-height: 1.45; }
  .candidate-evidence a > span br { display: none; }
  .v2-commercial-page { margin-top: 28px; }
  .v2-commercial-heading { margin-bottom: 26px; }
  .refined-portfolio .v2-commercial-heading h1 { font-size: 34px; line-height: 1.1; margin-bottom: 14px; }
  .v2-commercial-heading > p { font-size: 16px; }
  .v2-commercial-page > .mobile-section-nav { margin-bottom: 28px; }
  .v2-commercial-grid { grid-template-columns: 1fr; gap: 40px; }
  .v2-card-copy > header { margin-top: 18px; }
  .refined-portfolio .v2-card-copy h2 { font-size: 27px; }
  .v2-card-copy > p { font-size: 15px; }
  .v2-commercial-film { margin-top: 44px; padding-top: 30px; }
  .v2-commercial-section-heading { margin-bottom: 24px; }
  .v2-commercial-section-heading > p { font-size: 15px; }
  .v2-film-projects { grid-template-columns: 1fr; gap: 36px; }
  .v2-film-card { display: block; }
  .refined-portfolio .v2-film-card > h3 { font-size: 23px; }
  .v2-product-feature { grid-template-columns: 1fr; gap: 20px; margin-block: 44px; }
  .v2-production-comparison { padding-block: 20px 24px; }
  .v2-production-comparison > header { margin-bottom: 19px; }
  .refined-portfolio .v2-production-comparison > header h2 { font-size: 25px; }
  .v2-production-comparison > header p { font-size: 13px; }
  .v2-comparison-grid figcaption { font-size: 12px; margin-bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-hero-frame img { will-change: auto; }
}
