/* September 8-6: a composed mobile opening, with sculpture and copy sharing a frame. */
.mobile-only { display: none; }
@media (max-width: 760px) {
  :root { --mobile-gutter: clamp(22px, 6vw, 40px); --mobile-header: 82px; }
  body { background: #04090a; }
  body::before { content: ''; position: fixed; inset: 10px; border: 1px solid #bca16b24; border-radius: 12px; pointer-events: none; z-index: 21; }
  html { scroll-padding-top: calc(var(--mobile-header) + 16px); }
  .wrap { width: calc(100% - var(--mobile-gutter) * 2); }
  .mobile-only { display: block; }
  .site-header { height: var(--mobile-header); background: #050a0bf7; border-bottom: 0; }
  .header-inner { position: relative; gap: 16px; }
  .header-inner > nav, .header-actions { display: none; }
  .brand { gap: 11px; }
  .monogram { width: 34px; font-size: 32px; }
  .brand > span:last-child { display: block; font-size: 11px; letter-spacing: 1px; }
  .brand small { display: block; margin-top: 6px; color: #929b92; font-size: 6px; font-weight: 400; letter-spacing: 1.1px; }
  .mobile-menu { margin-left: auto; }
  .mobile-menu > summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 75px; min-height: 40px; padding: 9px 13px; border: 1px solid #b59c6370; border-radius: 24px; color: #d5bf90; font-size: 12px; cursor: pointer; }
  .mobile-menu summary::marker, .mobile-studio summary::marker { content: ''; }
  .mobile-menu summary::-webkit-details-marker, .mobile-studio summary::-webkit-details-marker { display: none; }
  .menu-lines { display: block; width: 16px; height: 8px; border-block: 1px solid currentColor; }
  .mobile-menu > nav { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 14px; width: min(310px, calc(100vw - 44px)); max-height: calc(100dvh - 90px); overflow: auto; background: #0b1112; border: 1px solid #b59c6350; border-radius: 8px; box-shadow: 0 14px 40px #0009; }
  .mobile-menu:not([open]) > nav { display: none; }
  .mobile-menu nav > a, .mobile-menu nav > button { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 44px; padding: 11px 4px; color: #e4e1d9; text-align: left; font-size: 14px; border-bottom: 1px solid #a38d5420; }
  .mobile-menu nav > a:last-child, .mobile-menu nav > button:last-child { border: 0; }
  .mobile-menu nav > a > span, .mobile-menu nav > button > span { font-size: 11px; color: #9fa89c; }
  .mobile-menu a[aria-current] { color: #d5b575; }
  summary:focus-visible { outline: 2px solid #8fa8bf; outline-offset: 4px; border-radius: 3px; }

  /* The live sculpture occupies the right side of the headline composition. */
  #mobile-diagram-background { position: relative; grid-column: 2; grid-row: 2; width: calc(100% + 12px); max-width: 260px; height: clamp(180px, 50vw, 310px); margin: 0 -12px 0 0; justify-self: end; align-self: center; z-index: 0; overflow: hidden; pointer-events: none; }
  #mobile-diagram-background > .practice-instrument { position: relative; display: block; width: 100%; height: 100%; margin: 0; pointer-events: none; }
  #mobile-diagram-background .field-surface { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: .9; pointer-events: none; cursor: default; touch-action: pan-y; }
  #mobile-diagram-background #practice-field, #mobile-diagram-background .practice-gpu { width: 100%; height: 100%; }
  #mobile-diagram-background .field-hint { display: none; }
  #mobile-diagram-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #04090a50, transparent 24%); pointer-events: none; }
  main, .footer { position: relative; z-index: 1; }
  .hero-shell { display: block; background: radial-gradient(ellipse at 85% 22%, #9f82400b, transparent 60%); overflow: visible; }
  .hero-shell::before, .hero-shell::after, #atmosphere, #studio-backdrop, .ambient-grid { display: none; }
  .hero { display: block; min-height: 0; padding: 16px 0 14px; z-index: 3; }
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 4px; width: 100%; max-width: none; margin: 0; padding: 0; }
  .hero-copy > * { width: 100%; max-width: none; min-width: 0; margin-inline: 0; }
  .hero-copy > .eyebrow, .hero-copy > .skill-ribbon, .hero-actions > .hero-story { display: none; }
  .mobile-hero-eyebrow { grid-column: 1 / -1; grid-row: 1; margin: 0 0 14px; font: 8px/1.5 var(--mono); letter-spacing: 1.7px; color: #a4afa5; }
  .hero-copy > .hero-description { grid-column: 1 / -1; display: block; font-size: 14px; line-height: 1.65; margin: 18px 0 19px; color: #adb6ad; }
  .hero-copy > .hero-credit-signature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 64px; grid-template-rows: auto auto; width: 100%; max-width: none; margin: 24px 0 0; padding: 12px 16px; border: 1px solid #bca16b40; border-radius: 10px; min-height: 78px; gap: 2px 14px; }
  .hero-copy > h1 { grid-column: 1; grid-row: 2; align-self: center; margin: 0; font-size: clamp(26px, 7.6vw, 48px); line-height: 1.06; letter-spacing: -.9px; font-weight: 580; }
  .hero h1 > br:nth-of-type(2) { display: initial; }
  .hero h1 > span::before { content: none; }
  .hero-copy > .hero-actions { grid-column: 1 / -1; position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 0; }
  .hero-actions .button { min-height: 46px; padding: 12px 20px; border-radius: 28px; font-size: 13px; }
  .hero-actions > .hero-story { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; color: #d5bf90; }
  .mobile-menu .mobile-studio { width: 100%; border-top: 1px solid #a38d5430; margin-top: 5px; padding-top: 5px; }
  .mobile-studio > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 11px 4px; color: #e4e1d9; font-size: 14px; line-height: 1.5; cursor: pointer; }
  .mobile-background-state { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #a7b2a6; }
  .disclosure-mark { font-size: 16px; line-height: 1; font-weight: 400; color: #c4b17f; }
  details[open] > summary .disclosure-mark { transform: rotate(45deg); }
  .mobile-studio-body { --focus-tint: 207,178,116; position: relative; padding: 8px 4px 4px; border-top: 1px solid #a38d5420; }
  .mobile-studio:not([open]) > .mobile-studio-body { display: none; }
  #mobile-reset-slot .field-reset { position: static; width: 44px; height: 44px; flex-shrink: 0; }
  #mobile-heading-slot .instrument-heading { margin-top: 9px; }
  .mobile-motion-slot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: #aeb6a9; }
  .mobile-motion-slot .icon-btn { width: 44px; height: 44px; }
  .instrument-heading { min-height: 38px; padding-block: 7px; }
  .instrument-heading .micro, #scene-cycle { font-size: 8px; }
  .field-surface { height: 185px; overflow: hidden; }
  .field-coordinate, .field-graduations { display: none; }
  .field-hint { bottom: 13px; max-width: calc(100% - 50px); font-size: 6px; letter-spacing: .5px; }
  .field-reset { width: 44px; height: 44px; right: 0; bottom: 3px; }
  .practice-focus-tabs > button { min-height: 44px; padding: 10px 2px; font-size: 11px; }
  #focus-content { min-height: 104px; padding: 8px 0 10px; }
  .focus-title-line { gap: 12px; align-items: center; }
  .focus-title-line h2 { font-size: 16px; line-height: 1.35; letter-spacing: -.4px; min-width: 0; }
  .focus-title-line > button { min-height: 44px; flex-shrink: 0; font-size: 11px; gap: 10px; }
  .focus-skills { font-size: 11px; line-height: 1.65; gap: 3px 9px; margin-top: 2px; }
  .focus-skills > span { white-space: normal; }
  .focus-skills > span:not(:last-child)::after { padding-inline: 0 5px; }

  .library-section { display: flex; flex-direction: column; width: calc(100% - var(--mobile-gutter) * 2); padding: 20px 0 8px; scroll-margin-top: 0; }
  .library-intro { order: 1; flex-direction: row; align-items: center; gap: 12px; margin-bottom: 18px; padding-top: 18px; border-top: 1px solid #a38d5424; }
  #work-library { order: 2; min-width: 0; }
  .library-intro > div { min-width: 0; flex: 1; }
  .library-intro .micro, .library-intro > div > p:last-child { display: none; }
  .library-intro h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.8px; margin: 0; }
  .library-search { width: 44px; height: 44px; min-height: 44px; justify-content: center; flex-shrink: 0; padding: 8px; font-size: 20px; }
  .library-search-label { display: none; }
  .library-nav { order: 0; position: static; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: auto; padding: 0 0 18px; margin: 0; gap: 4px; background: none; backdrop-filter: none; border: 0; overflow: visible; }
  .library-nav a { flex-direction: column; min-width: 0; min-height: 68px; padding: 0; gap: 8px; font-size: 11px; line-height: 1.4; background: none; border-radius: 0; }
  .library-nav a > span { display: none; }
  .library-nav .category-orbit { display: block; width: 48px; height: 48px; padding: 13px; border: 1px solid #8fa8bf60; border-radius: 50%; fill: none; stroke: #a4b8c6; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: border-color .2s, background .2s, transform .2s; }
  .library-nav a[aria-current] { color: #d5bf90; background: none; }
  .library-nav a[aria-current] .category-orbit { border-color: #d5bf90; stroke: #e3c78d; background: #bca16b0d; box-shadow: 0 0 18px #bca16b0a; }
  .library-nav a:hover .category-orbit { border-color: #d5bf90; transform: translateY(-2px); }
  .library-category { scroll-margin-top: 0; margin-bottom: 36px; }
  .library-category + .library-category { padding-top: 22px; }
  .category-heading { margin-bottom: 10px; }
  .category-heading-line { gap: 12px; }
  .category-number, .category-heading > p { display: none; }
  .category-heading h3 { font-size: 28px; }
  .category-total { font-size: 12px; padding-left: 12px; }
  .shelf-heading { flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
  .shelf-heading > div:first-child { flex: 1; min-width: 110px; }
  .shelf-heading h4 { font-size: 17px; gap: 8px; margin: 0; }
  .shelf-heading h4 > span { font-size: 11px; padding: 4px 5px; }
  .shelf-heading p { display: none; }
  .shelf-controls { width: auto; gap: 8px; }
  .shelf-view-all { font-size: 11px; }
  .shelf-arrows { gap: 4px; }
  .shelf-arrows button { width: 44px; height: 44px; font-size: 20px; }
  .shelf-arrows button:disabled { opacity: .4; }
  .shelf-track { --card-width: 89%; gap: 14px; align-items: stretch; margin-right: calc(-1 * var(--mobile-gutter)); padding: 2px var(--mobile-gutter) 10px 1px; overflow-y: hidden; }
  .shelf-cover { aspect-ratio: 16 / 9; }
  .shelf-card-title { font-size: 16px; line-height: 1.35; padding: 11px 13px 0; }
  .shelf-card-artist { font-size: 12px; line-height: 1.5; padding: 3px 13px 0; }
  .shelf-card-artist:empty { display: none; }
  .shelf-excerpt { margin: 10px 13px 0; font-size: 13px; line-height: 1.6; }
  .shelf-credits { padding: 9px 13px 11px; flex: none; }
  .shelf-credits > p { font-size: 11px; margin-bottom: 4px; }
  .shelf-credits > div { font-size: 12px; line-height: 1.6; }
  .shelf-actions { padding: 2px 10px; }
  .shelf-actions > button { min-height: 44px; font-size: 12px; }
  .shelf-position { font-size: 10px; margin-top: 6px; line-height: 1.5; }
  .work-shelf { margin-bottom: 26px; }
  .work-shelf.is-expanded .shelf-track { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); margin-right: 0; padding-right: 1px; overflow: visible; }
  .cover-explore { display: none; }
  .cover-number { font-size: 9px; }
  .shelf-card:hover .shelf-cover > img { transform: none; }

  .about-section { padding-top: 32px; padding-bottom: 36px; scroll-margin-top: 0; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .section-heading h2 { font-size: 27px; line-height: 1.25; }
  .about-section > .section-heading > .micro, .about-story > .micro { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 22px; }
  .about-story h3 { font-size: 27px; line-height: 1.25; }
  .about-story > p, .craft-description { font-size: 14px; line-height: 1.8; }
  .craft-top { padding: 16px; flex-wrap: wrap; gap: 8px; }
  .craft-top .micro { font-size: 8px; }
  .craft-top > :last-child { display: none; }
  #craft-tabs > button { min-height: 48px; padding: 12px 8px; font-size: 13px; }
  #craft-content { padding: 20px 17px; }
  .craft-title { font-size: 20px; line-height: 1.35; }
  .craft-skills { gap: 11px 14px; }
  .craft-skills > li { font-size: 13px; }
  .craft-tools { gap: 8px 14px; }
  .craft-tools > span { font-size: 11px; }
  .craft-flow { display: none; }
  .hero-shell > .milestones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; width: calc(100% - var(--mobile-gutter) * 2); margin: 0 auto; padding: 0; overflow: hidden; border: 1px solid #bca16b40; border-radius: 10px; background: linear-gradient(115deg, #111715c9, #080e0ec9); }
  .hero-shell > .milestones > .milestone { min-height: 0; padding: 14px 16px !important; border-bottom: 1px solid #98865728 !important; border-right: 1px solid #98865728 !important; }
  .hero-shell > .milestones > .milestone:nth-child(2n) { border-right: 0 !important; }
  .hero-shell > .milestones > .milestone:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .milestone strong { position: relative; font-size: 25px; line-height: 1.15; }
  .milestone strong em, .award-milestone strong em { font-size: 17px; letter-spacing: -.5px; }
  .metric-index { display: none; }
  .metric-description { font-size: 11px; line-height: 1.5; margin-top: 8px; }
  .metric-arrow { display: none; }
  .milestone.metric-decoding strong, .milestone.metric-decoding strong > :not(.metric-scramble) { color: transparent !important; }
  .milestone strong > .metric-scramble { position: absolute; inset: 0; width: 100%; margin: 0; color: #d3b575 !important; font-size: 19px; line-height: 1.5; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; pointer-events: none; }
  .hero-credit-signature > .hero-credit-caption { grid-column: 1; grid-row: 1; font-size: 9px; letter-spacing: 1px; color: #959e94; }
  .hero-credit-caption::before { display: none; }
  .hero-credit-link { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0,1fr) 14px; min-height: 38px; }
  .hero-credit-word { font-size: 20px; letter-spacing: -.4px; }
  .hero-credit-arrow { font-size: 14px; }
  .hero-credit-signature > .hero-credit-next { grid-column: 2; grid-row: 1 / 3; min-height: 44px; align-self: center; justify-content: center; padding: 0 4px; gap: 9px; font-size: 9px; border: 1px solid #a38d5440; border-radius: 24px; }
  .hero-credit-next .credit-step-mark { width: 7px; height: 7px; transform: rotate(-45deg); opacity: 1; }
  .hero-credit-next::before, .hero-credit-next::after { bottom: -1px; left: 6px; right: 6px; }
  .contact-section { flex-direction: column; align-items: stretch; padding-block: 30px; gap: 25px; scroll-margin-top: 0; }
  .contact-section h2 { font-size: 30px; }
  .contact-card { width: 100%; }
  .email-link { font-size: clamp(20px, 5.5vw, 24px); }
  .contact-card > div { flex-wrap: wrap; }
  .contact-card .button { min-height: 44px; }
  .footer { padding-block: 26px; }
}
@media (max-width: 360px) {
  :root { --mobile-gutter: 22px; }
  .brand > span:last-child { font-size: 10px; }
  .library-intro h2 { font-size: 22px; }
  .library-nav a { padding-inline: 0; font-size: 10px; }
  .library-nav .category-orbit { width: 43px; height: 43px; padding: 11px; }
  .hero-actions { gap: 14px; }
  .hero-actions .button { padding-inline: 16px; }
  .hero-actions > .hero-story { font-size: 11px; }
  .focus-title-line h2 { font-size: 15px; }
  .focus-title-line > button { font-size: 10px; gap: 7px; }
  .hero-credit-word { font-size: 19px; }
}
@media (min-width: 560px) and (max-width: 760px) {
  .hero-shell > .milestones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-shell > .milestones > .milestone:nth-child(n) { padding: 16px 13px !important; border-bottom: 0 !important; border-right: 1px solid #98865728 !important; }
  .hero-shell > .milestones > .milestone:last-child { border-right: 0 !important; }
  .milestone strong { font-size: 26px; }
  .milestone strong em { display: block; margin-top: 3px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .library-nav .category-orbit { transition: none; } }
html.still .library-nav .category-orbit { transition: none; }

/* ── mobile arrival: sections rise in as they enter; the numbers wobble; the headline's words rise ── */
@media (max-width: 760px) {
  [data-mreveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
  [data-mreveal].in { opacity: 1; transform: none; }
  .milestone[data-mreveal].in { animation: m-wobble .9s cubic-bezier(.34, 1.56, .64, 1) both; }
  @keyframes m-wobble { 0% { transform: translate3d(0, 14px, 0) scale(.94) rotate(-1.2deg); } 55% { transform: translate3d(0, -3px, 0) scale(1.025) rotate(.6deg); } 100% { transform: none; } }
  #hero-title.hw-ready .hw { display: inline-block; opacity: 0; transform: translate3d(0, .45em, 0); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  #hero-title.hw-in .hw { opacity: 1; transform: none; }
  html.still [data-mreveal], html.still #hero-title .hw { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  [data-mreveal], #hero-title .hw { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* the sticky header blurred everything under it on every scroll frame — over the moving organism that is the
   single most expensive thing a phone can do. The header is already near-opaque; the blur added nothing visible. */
@media (max-width: 760px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
