/* =========================================================
   Supernova Web Studios — Pocket Universe
   Dedicated mobile-native composition layer.
   Desktop (min-width: 801px) intentionally remains untouched.
   ========================================================= */


/* Mobile-only enhancements are inert above the mobile breakpoint. */
.mobile-project-heading,
.mobile-case-progress,
.mobile-project-pulse { display: none; }

@media (max-width: 800px), (max-width: 932px) and (orientation: landscape) and (max-height: 520px) {
  :root {
    --mobile-gutter: clamp(20px, 5.6vw, 24px);
    --mobile-header: 64px;
    --mobile-ease: cubic-bezier(.2,.8,.2,1);
  }

  html { scroll-padding-top: calc(var(--mobile-header) + env(safe-area-inset-top)); }
  body { min-width: 0; text-rendering: optimizeLegibility; }
  .shell { width: calc(100% - (var(--mobile-gutter) * 2)); }
  .page-noise { opacity: .035; }
  .cursor-glow { display: none !important; }
  .supernova-canvas { opacity: .68; }
  .ambient { width: 78vw; height: 78vw; filter: blur(78px); opacity: .1; }
  .grid-overlay { background-size: 48px 48px; opacity: .22; }

  /* Mobile shell / navigation */
  .site-header,
  .inner-header {
    top: 0;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(7,8,13,.9), rgba(7,8,13,.6) 72%, transparent);
    border-bottom: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .site-header.scrolled,
  .inner-header { background: rgba(7,8,13,.82); border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-shell,
  .inner-header .nav-shell { width: calc(100% - 32px); min-height: var(--mobile-header); gap: 10px; }
  .brand { min-width: 0; min-height: 44px; gap: 9px; margin-right: auto; }
  .brand-mark { width: 34px; height: 34px; flex: 0 0 34px; }
  .brand-copy strong { font-size: .68rem; letter-spacing: .22em; animation: none; }
  .brand-copy small { margin-top: 4px; font-size: .43rem; letter-spacing: .28em; }
  .nav-actions { gap: 7px; }
  .lang-toggle {
    width: 44px; min-width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
    font-family: var(--mono); font-size: .64rem; letter-spacing: .08em;
  }
  .menu-toggle {
    display: block; width: 46px; height: 46px;
    border-radius: 50%; border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.025);
  }
  .menu-toggle span { width: 17px; }

  .site-header .nav-links,
  .inner-header .nav-links {
    inset: calc(var(--mobile-header) + env(safe-area-inset-top)) 0 0 !important;
    top: calc(var(--mobile-header) + env(safe-area-inset-top)) !important;
    height: calc(100dvh - var(--mobile-header) - env(safe-area-inset-top));
    padding: clamp(34px, 7vh, 72px) var(--mobile-gutter) calc(116px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    counter-reset: pocket-nav;
    background:
      radial-gradient(circle at 82% 74%, rgba(53,217,255,.15), transparent 26%),
      radial-gradient(circle at 10% 12%, rgba(255,78,168,.14), transparent 25%),
      rgba(7,8,13,.985) !important;
  }
  .site-header .nav-links::before,
  .inner-header .nav-links::before {
    width: 108vw; right: -58vw; bottom: -24vw;
    box-shadow: 0 0 100px rgba(53,217,255,.06);
  }
  .site-header .nav-links::after,
  .inner-header .nav-links::after {
    content: "BOLOGNA / ITALY  ·  POCKET UNIVERSE";
    position: relative; z-index: 1; display: block;
    margin-top: auto; padding-top: 26px;
    color: #777e8e; font-family: var(--mono); font-size: .52rem; letter-spacing: .14em;
  }
  .site-header .nav-links a,
  .inner-header .nav-links a {
    counter-increment: pocket-nav;
    display: grid !important; grid-template-columns: 38px 1fr; align-items: baseline;
    padding: 17px 0 !important;
    font-size: clamp(2.65rem, 12.8vw, 4.7rem) !important;
  }
  .site-header .nav-links a::before,
  .inner-header .nav-links a::before {
    content: "0" counter(pocket-nav);
    color: #686f7e; font-family: var(--mono); font-size: .52rem; letter-spacing: .12em;
  }
  body.nav-open .nav-cta {
    display: flex !important; position: fixed; z-index: 80;
    left: var(--mobile-gutter); right: var(--mobile-gutter);
    bottom: calc(18px + env(safe-area-inset-bottom));
    min-height: 58px; border: 0; background: #f5f2eb; color: #080a10;
    box-shadow: 0 14px 50px rgba(0,0,0,.38);
  }

  /* Shared mobile typography */
  .section-label,
  .chapter-label { font-size: .56rem; letter-spacing: .13em; gap: 10px; }
  .section-label i,
  .chapter-label i { width: 28px; }
  .button { min-height: 56px; padding: 0 20px; font-size: .68rem; }
  .text-link { min-height: 48px; align-items: center; }

  /* Homepage hero: Pocket Universe */
  .hero { min-height: max(112svh, 940px); }
  .hero-shell {
    position: relative; display: block; min-height: max(112svh, 940px);
    padding-top: calc(var(--mobile-header) + env(safe-area-inset-top) + 54px);
    padding-bottom: 72px;
  }
  .hero-copy { position: relative; z-index: 6; }
  .hero-index { margin-bottom: 22px; font-size: .53rem; letter-spacing: .12em; }
  .hero-index i { width: 28px; }
  .hero h1 { max-width: 100%; font-size: clamp(3.35rem, 14.2vw, 5.5rem); line-height: .82; letter-spacing: -.062em; }
  .hero h1 em { margin-left: 0; }
  .hero .gradient-text { padding-bottom: .18em; }
  .hero-lead { max-width: 34ch; margin-top: 26px; font-size: .96rem; line-height: 1.58; color: #b9beca; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 420px); gap: 10px; margin-top: 30px; }
  .hero-actions .button-primary { justify-content: space-between; min-height: 60px; }
  .hero-actions .button-ghost { justify-content: flex-start; min-height: 48px; padding-inline: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .hero-trust { display: none; }
  .hero-visual { position: absolute; z-index: 2; inset: 0; min-height: 0; margin: 0; pointer-events: none; }
  .hero-core { left: 69%; top: 76%; width: clamp(150px, 42vw, 196px); font-size: clamp(2.4rem, 10vw, 3.7rem); opacity: .94; }
  .orbit-one { width: 72vw; height: 42vw; left: 57%; top: 75%; }
  .orbit-two { width: 92vw; height: 52vw; left: 60%; top: 75%; }
  .orbit-three { width: 118vw; height: 65vw; left: 61%; top: 74%; }
  .floating-project { width: min(46vw, 176px); padding: 10px 0; border: 0; border-top: 1px solid rgba(255,255,255,.24); background: transparent; box-shadow: none; backdrop-filter: none; }
  .floating-project span { font-size: .42rem; letter-spacing: .1em; }
  .floating-project strong { max-width: 15ch; margin-top: 8px; font-size: clamp(.68rem, 3.2vw, .88rem); line-height: 1.08; }
  .floating-project small { display: none; }
  .floating-project-a { left: 0; right: auto; top: 70%; transform: none; }
  .floating-project-b { right: 0; left: auto; top: 82%; transform: none; text-align: right; }
  .hero-stamp { right: 4px; bottom: 2%; width: 72px; height: 72px; font-size: .42rem; opacity: .72; }
  .hero-stamp b { font-size: .62rem; }
  .hero-marquee { height: 44px; }
  .hero-marquee span { font-size: .56rem; }

  /* Manifesto as vertical statements */
  .manifesto { padding: 92px 0 72px; }
  .manifesto-layout { display: block; margin-top: 42px; }
  .display-quote { font-size: clamp(2.8rem, 12.2vw, 4.6rem); line-height: .93; }
  .manifesto-copy { margin-top: 46px; padding: 0; }
  .manifesto-copy p { font-size: .98rem; line-height: 1.7; }
  .manifesto-rail { display: block; margin-top: 72px; border-bottom: 0; }
  .manifesto-rail div,
  .manifesto-rail div + div { min-height: min(56svh, 520px); display: flex; flex-direction: column; justify-content: center; padding: 44px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .manifesto-rail strong { margin-top: auto; font-size: clamp(2.15rem, 9vw, 3.3rem); line-height: .98; }
  .manifesto-rail span { max-width: 28ch; margin-top: 16px; font-size: .88rem; }

  /* Selected work: mobile project chapters */
  .work { padding-top: 88px; }
  .work-intro { padding-bottom: 72px; }
  .work-heading { display: block; margin-top: 36px; }
  .work-heading h2,
  .services-head h2,
  .worlds-head h2,
  .process-head h2 { font-size: clamp(2.85rem, 11.6vw, 4.5rem); line-height: .96; }
  .work-heading p,
  .services-head p,
  .worlds-head p { margin-top: 28px; font-size: .92rem; }
  .project { min-height: 0; display: block; padding: 0; border-top-color: rgba(255,255,255,.14); }
  .project-shell,
  .project-shell-reverse { min-height: auto; display: flex; flex-direction: column; gap: 0; padding-top: 74px; padding-bottom: 84px; }
  .mobile-project-heading { display: block; order: 1; width: 100%; position: relative; z-index: 5; }
  .mobile-project-heading .project-number { font-size: .55rem; }
  .mobile-project-heading .project-type { margin-top: 16px; }
  .mobile-project-heading h3 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(3.25rem, 14vw, 5.2rem); font-weight: 400; line-height: .84; letter-spacing: -.06em; }
  .mobile-project-heading .project-line { max-width: 17ch; margin-top: 22px !important; font-size: clamp(1.3rem, 6vw, 1.8rem); line-height: 1.07 !important; }
  .project-stage { order: 2; min-height: 0; width: calc(100% + (var(--mobile-gutter) * 2)); margin: 40px calc(var(--mobile-gutter) * -1) 0; padding: 26px var(--mobile-gutter) 40px; place-items: center; }
  .browser,
  .project-shell-reverse .browser { width: 100%; aspect-ratio: 1.04; transform: none !important; border-color: rgba(255,255,255,.22); box-shadow: 0 26px 70px rgba(0,0,0,.48); }
  .phone { right: 4%; bottom: 3%; width: 28vw; max-width: 132px; border-width: 4px; border-radius: 22px; transform: rotate(4deg); }
  .menu-ticket { left: 2%; bottom: 2%; width: 36vw; max-width: 150px; padding: 14px; }
  .menu-ticket b { margin-top: 10px; font-size: 1.25rem; }
  .menu-ticket small { margin-top: 14px; }
  .project-copy { order: 3; padding-top: 10px; }
  .project-copy > .project-number,
  .project-copy > .project-type,
  .project-copy > h3,
  .project-copy > .project-line { display: none; }
  .project-copy > p { font-size: .91rem; line-height: 1.68; }
  .project-copy ul { margin-top: 24px; gap: 6px; }
  .project-copy li { font-size: .58rem; padding: 7px 9px; }
  .project-actions-v2 { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 30px; }
  .project-link { min-width: 0; width: 100%; margin-top: 0; min-height: 52px; align-items: center; }
  .project-live { align-self: center; min-height: 44px; display: flex; align-items: center; }
  .project-orbit { width: 110%; opacity: .7; }

  /* Transformation */
  .transformation { padding: 92px 0; }
  .transformation-head { display: block; margin-top: 38px; }
  .transformation h2 { font-size: clamp(3rem, 12vw, 4.6rem); }
  .transformation-head p { margin-top: 30px; font-size: .93rem; }
  .before-after-grid { display: block; margin-top: 58px; }
  .before-after-grid article { min-height: 48svh; display: flex; flex-direction: column; justify-content: center; padding: 44px 0; }
  .before-after-grid strong { font-size: clamp(3rem, 13vw, 4.8rem); }
  .gravity-arrow { height: 78px; }
  .gravity-arrow i { inset: 0 50%; }
  .gravity-arrow b { width: 54px; height: 54px; transform: rotate(90deg); }

  /* Capabilities / services */
  .services { padding-top: 92px; padding-bottom: 92px; }
  .services-head { display: block; margin-top: 38px; }
  .service-stage { display: block; margin-top: 58px; }
  .service-feature,
  .service-feature-main { min-height: min(64svh, 570px); padding: 32px 24px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .service-feature-main { min-height: min(72svh, 640px); }
  .service-feature-main svg { margin-top: 74px; }

  /* Sector worlds: portrait-native sticky sequence */
  .worlds { padding-top: 92px; }
  .worlds-head { display: block; margin-top: 38px; }
  .world-scroll-track { height: 500svh; margin-top: 54px; }
  .world-stage {
    top: calc(var(--mobile-header) + env(safe-area-inset-top) + 10px);
    height: calc(100svh - var(--mobile-header) - env(safe-area-inset-top) - 20px);
    display: grid; grid-template-columns: 1fr; grid-template-rows: 50px minmax(0,.44fr) minmax(0,.56fr);
    border-left: 0; border-right: 0;
    background: linear-gradient(180deg, rgba(16,20,31,.95), rgba(7,9,15,.82));
  }
  .world-tabs { height: 50px; }
  .world-tabs button { min-width: 86px; min-height: 50px; padding: 0 9px; font-size: .48rem; letter-spacing: .045em; }
  .world-tabs button.active::before { margin-bottom: 4px; }
  .world-copy { padding: 20px var(--mobile-gutter) 12px; justify-content: center; overflow: visible; }
  .world-copy > span { font-size: .49rem; }
  .world-copy h3 { max-width: 13ch; margin-top: 10px; font-size: clamp(1.9rem, 9.2vw, 3rem); line-height: .94; }
  .world-copy p { max-width: 40ch; margin-top: 11px; font-size: .72rem; line-height: 1.42; }
  .world-open { margin-top: 13px; padding: 10px 0; font-size: .52rem; }
  .world-preview { padding: 14px var(--mobile-gutter) 20px; align-items: center; }
  .world-browser { width: min(100%, calc((100svh - 330px) * 1.45)); max-width: 100%; aspect-ratio: 1.28; transform: none; box-shadow: 0 24px 70px rgba(0,0,0,.52); }
  .world-stage:hover .world-browser { transform: none; }
  .world-word { right: -3%; bottom: 1%; font-size: clamp(4rem, 22vw, 7.2rem); }
  .world-scroll-meter { width: 2px; }

  /* Process */
  .process { padding: 92px 0; }
  .process-head { margin-top: 38px; }
  .process-line { display: none; }
  .process-grid { display: block; margin-top: 56px; }
  .process-step,
  .process-step + .process-step { min-height: min(58svh, 500px); display: flex; flex-direction: column; justify-content: center; padding: 42px 0; border-right: 0; border-bottom: 1px solid rgba(7,8,13,.18); }
  .process-step h3 { margin-top: auto; font-size: clamp(2.5rem, 10vw, 3.6rem); }
  .process-step p { max-width: 32ch; font-size: .91rem; }
  .process-method-link { max-width: 100%; min-height: 56px; }

  /* Lab preview */
  .lab-preview { padding: 92px 0; }
  .lab-preview-shell { display: flex; flex-direction: column; gap: 0; }
  .lab-preview-shell > .section-label { width: 100%; }
  .lab-preview-copy { margin-top: 42px; }
  .lab-preview-copy h2 { font-size: clamp(3.4rem, 14vw, 5.2rem); line-height: .84; }
  .lab-preview-copy p { margin-top: 28px; font-size: .92rem; }
  .lab-preview-copy .button { width: 100%; justify-content: space-between; }
  .lab-orbits { order: 3; width: 100%; min-height: 390px; margin-top: 32px; overflow: hidden; }
  .lab-orbit-a { width: 200px; height: 200px; }
  .lab-orbit-b { width: 300px; height: 300px; }
  .lab-orbit-c { width: 410px; height: 410px; }
  .lab-core-mini { width: 94px; height: 94px; font-size: 2.6rem; }

  /* Notes */
  .home-notes { padding: 92px 0; }
  .home-notes-head { display: block; margin-top: 40px; }
  .home-notes-head h2 { font-size: clamp(3.2rem, 13vw, 5rem); }
  .home-notes-list { margin-top: 52px; }
  .home-notes-list a { min-height: min(44svh, 390px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 36px 0; }
  .home-notes-list small { order: 0; }
  .home-notes-list strong { max-width: 13ch; font-size: clamp(2.15rem, 9.8vw, 3.5rem); line-height: .97; }
  .home-notes-list b { margin-top: auto; }

  /* Project Gravity teaser / contact */
  .gravity-teaser { padding: 94px 0; }
  .gravity-teaser::before { width: 105vw; right: -58vw; top: 20%; }
  .gravity-teaser-index { font-size: .54rem; }
  .gravity-teaser h2 { margin-top: 38px; font-size: clamp(3.55rem, 14.5vw, 5.4rem); line-height: .82; }
  .gravity-teaser p { margin-top: 30px; font-size: .93rem; }
  .gravity-launch { min-height: 62px; margin-top: 38px; }

  .contact { min-height: 100svh; }
  .contact-shell { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .contact h2 { margin-top: 48px; font-size: clamp(3.55rem, 14.8vw, 5.6rem); line-height: .84; }
  .contact-bottom { display: block; margin-top: 42px; }
  .contact-bottom p { font-size: .94rem; }
  .contact-actions { margin-top: 34px; }
  .contact-main { min-height: 64px; }
  .contact-secondary,
  .contact-email { min-height: 44px; display: flex; align-items: center; }
  .contact-signature { left: -7%; bottom: 0; font-size: 31vw; }
  .contact-orbit { width: 110vw; right: -70vw; top: 22%; }
  .footer-shell { gap: 12px; padding-block: 28px; }

  /* Inner pages — mobile-native editorial system */
  .inner-body .supernova-canvas { opacity: .42; }
  .inner-hero { min-height: 92svh; align-items: flex-end; padding: calc(var(--mobile-header) + env(safe-area-inset-top) + 72px) 0 64px; }
  .inner-hero::before { width: 118vw; right: -72vw; top: 12%; border-color: rgba(255,255,255,.1); }
  .inner-kicker { gap: 9px; font-size: .5rem; letter-spacing: .11em; }
  .inner-kicker i { width: 22px; }
  .inner-hero h1 { margin-top: 28px; font-size: clamp(3.9rem, 17vw, 6.35rem); line-height: .79; letter-spacing: -.066em; }
  .inner-hero h1 em { margin-top: 10px; font-size: .52em; line-height: .94; letter-spacing: -.045em; }
  .inner-hero-lead { margin-top: 30px; max-width: 36ch; font-size: .96rem; line-height: 1.62; }
  .inner-meta { display: grid; gap: 8px; margin-top: 34px; font-size: .53rem; }

  .inner-section { padding: 88px 0; }
  .chapter-title { margin-top: 34px; font-size: clamp(3rem, 12.5vw, 4.8rem); line-height: .9; }
  .chapter-lead { margin-top: 26px; font-size: .93rem; line-height: 1.68; }
  .split-copy { display: block; }
  .big-question { font-size: clamp(3rem, 12.6vw, 4.8rem); line-height: .9; }
  .problem-stack { margin-top: 58px; }
  .problem-stack article { min-height: min(30svh, 260px); display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 30px 0; }
  .problem-stack strong { font-size: clamp(2.15rem, 9.3vw, 3.3rem); }

  /* Mobile strategy constellation becomes a readable vertical system. */
  .constellation { min-height: 760px; margin-top: 58px; border-left: 0; border-right: 0; background: radial-gradient(circle at 50% 18%, rgba(99,135,255,.15), transparent 30%), rgba(255,255,255,.018); }
  .constellation svg { display: none; }
  .constellation::before { content: ""; position: absolute; left: 50%; top: 132px; bottom: 76px; width: 1px; background: linear-gradient(var(--cyan), rgba(255,255,255,.12), var(--pink)); }
  .constellation .node,
  .constellation .node.core,
  .constellation .n1,
  .constellation .n2,
  .constellation .n3,
  .constellation .n4,
  .constellation .n5 { left: 50%; right: auto; bottom: auto; transform: translateX(-50%); width: min(82%, 310px); min-width: 0; min-height: 58px; font-size: .62rem; }
  .constellation .node.core { top: 42px; width: 168px; height: 168px; font-size: 1.15rem; }
  .constellation .n5 { top: 242px; }
  .constellation .n1 { top: 340px; }
  .constellation .n2 { top: 438px; }
  .constellation .n3 { top: 536px; }
  .constellation .n4 { top: 634px; }

  /* Exploration = native swipe deck. */
  .exploration-rail { display: flex; gap: 12px; width: calc(100% + (var(--mobile-gutter) * 2)); margin: 52px calc(var(--mobile-gutter) * -1) 0; padding: 0 var(--mobile-gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .exploration-rail::-webkit-scrollbar { display: none; }
  .direction-card { flex: 0 0 min(82vw, 360px); min-height: min(66svh, 560px); scroll-snap-align: center; padding: 26px; }
  .direction-card strong { font-size: clamp(2.6rem, 12vw, 4.2rem); }

  /* System blocks become deliberate single-screen statements. */
  .system-grid { display: block; margin-top: 54px; }
  .system-grid article { min-height: min(48svh, 430px); display: flex; flex-direction: column; justify-content: center; padding: 36px 0; border-right: 0; }
  .system-grid h3 { margin-top: auto; font-size: clamp(2.45rem, 10vw, 3.7rem); line-height: .94; }
  .system-grid p { max-width: 32ch; font-size: .91rem; }

  /* X-Ray: vertical layers instead of desktop perspective. */
  .xray-shell { display: block; }
  .xray-shell > div:first-child { margin-bottom: 52px; }
  .xray-toggle { width: 100%; min-height: 56px; text-align: left; }
  .xray-stack,
  .xray-stack.active { min-height: 0; perspective: none; display: grid; gap: 0; }
  .xray-layer,
  .xray-stack.active .xray-layer:nth-child(1),
  .xray-stack.active .xray-layer:nth-child(2),
  .xray-stack.active .xray-layer:nth-child(3),
  .xray-stack.active .xray-layer:nth-child(4),
  .xray-stack.active .xray-layer:nth-child(5) { position: relative; left: auto; top: auto; width: 100%; height: 104px; min-height: 104px; transform: none; margin-top: -1px; padding: 20px 22px; background: linear-gradient(90deg, rgba(26,32,50,.98), rgba(9,11,18,.98)); opacity: .55; }
  .xray-stack.active .xray-layer { opacity: 1; }
  .xray-stack.active .xray-layer:nth-child(2) { margin-left: 3%; width: 97%; }
  .xray-stack.active .xray-layer:nth-child(3) { margin-left: 6%; width: 94%; }
  .xray-stack.active .xray-layer:nth-child(4) { margin-left: 9%; width: 91%; }
  .xray-stack.active .xray-layer:nth-child(5) { margin-left: 12%; width: 88%; }

  .result-grid { display: block; margin-top: 54px; }
  .result-grid article { min-height: min(42svh, 360px); display: flex; flex-direction: column; justify-content: center; padding: 34px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .result-grid strong { margin-top: auto; font-size: clamp(3.2rem, 14vw, 5rem); }
  .next-world { min-height: 64svh; align-items: center; padding: 60px 0; }
  .next-world strong { font-size: clamp(3.2rem, 14vw, 5.4rem); line-height: .85; }
  .next-world > a { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(7,8,13,.24); border-radius: 50%; flex: 0 0 52px; }

  /* Work archive = orbital reel */
  .archive-controls { display: block; }
  .archive-filter { flex-wrap: nowrap; width: calc(100% + var(--mobile-gutter)); overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .archive-filter::-webkit-scrollbar { display: none; }
  .archive-filter button { min-height: 44px; flex: 0 0 auto; }
  .view-toggle { display: none !important; }
  .work-grid-v2 { display: block; margin-top: 38px; }
  .work-card-v2 { min-height: min(72svh, 650px); margin-bottom: 16px; padding: 24px; border-color: rgba(255,255,255,.14); }
  .work-card-v2 img { opacity: .34; }
  .work-card-v2 small { font-size: .53rem; }
  .work-card-v2 strong { max-width: 10ch; font-size: clamp(3rem, 13vw, 4.8rem); }
  .work-card-v2 p { max-width: 28ch; font-size: .9rem; }
  .universe-view { display: none !important; }

  /* Studio disciplines = vertical orbital selector */
  .discipline-orbit { min-height: 760px; margin-top: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
  .discipline-core { position: relative; left: auto; top: auto; transform: none; width: 118px; height: 118px; margin-bottom: 24px; font-size: 3rem; }
  .discipline-item,
  .discipline-item.d1,
  .discipline-item.d2,
  .discipline-item.d3,
  .discipline-item.d4,
  .discipline-item.d5 { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; width: 100%; height: 58px; min-height: 58px; border-radius: 0; justify-items: start; padding: 0 20px; text-align: left; font-size: .62rem; background: rgba(255,255,255,.025); color: #f7f4ee; }
  .discipline-item:hover,
  .discipline-item.active { transform: none; border-color: rgba(114,224,255,.5); background: rgba(114,224,255,.08); }
  .discipline-detail { position: relative; left: auto; bottom: auto; transform: none; width: 100%; min-height: 104px; margin-top: 20px; text-align: left; }
  .principles { display: block; }
  .principle { min-height: min(72svh, 620px); display: flex; flex-direction: column; justify-content: center; padding: 54px 0; border-right: 0; }
  .principle h3 { margin-top: auto; font-size: clamp(3rem, 13vw, 5rem); }

  /* N/Lab = vertical experiment reel */
  .lab-grid { display: block; }
  .lab-card,
  .lab-card.wide { min-height: min(74svh, 650px); margin-bottom: 16px; padding: 26px 22px; }
  .lab-card h2 { max-width: 10ch; font-size: clamp(3rem, 13vw, 4.8rem); }
  .lab-card .lab-orbits { min-height: 320px; }

  /* Notes = deliberate quiet mode */
  .notes-grid { display: block; }
  .note-card { min-height: min(62svh, 540px); display: flex; flex-direction: column; justify-content: center; padding: 42px 0; border-right: 0; }
  .note-card h2 { max-width: 13ch; margin-top: auto; font-size: clamp(2.8rem, 12vw, 4.3rem); }
  .note-card p { font-size: .91rem; }

  /* Method = four full mobile chapters */
  .method-chapter { min-height: 88svh; display: flex; align-items: center; padding: 78px 0; }
  .method-chapter-grid { display: block; }
  .method-chapter h2 { margin-top: 38px; font-size: clamp(3.6rem, 15vw, 5.6rem); line-height: .84; }
  .method-detail { margin-top: 48px; }
  .method-detail strong { font-size: 1.65rem; }
  .method-detail p { font-size: .92rem; }
  .method-detail li { min-height: 52px; display: flex; align-items: center; font-size: .68rem; }

  /* Project Gravity = native mobile wizard */
  .gravity-app { min-height: 100svh; display: block; padding-top: calc(var(--mobile-header) + env(safe-area-inset-top)); }
  .gravity-sidebar { position: sticky; z-index: 12; top: calc(var(--mobile-header) + env(safe-area-inset-top)); height: auto; min-height: 78px; padding: 14px var(--mobile-gutter); border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(7,8,13,.9); backdrop-filter: blur(16px); }
  .gravity-sidebar strong,
  .gravity-sidebar > p { display: none; }
  .gravity-progress { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; width: 100%; }
  .gravity-progress span { min-height: 4px; height: 4px; padding: 0; overflow: hidden; border: 0; background: rgba(255,255,255,.12); color: transparent; font-size: 0; }
  .gravity-progress span.active { background: linear-gradient(90deg, var(--pink), var(--cyan)); }
  .gravity-panel { min-height: calc(100svh - 142px); padding: 38px var(--mobile-gutter) calc(112px + env(safe-area-inset-bottom)); }
  .gravity-step { min-height: calc(100svh - 200px); }
  .gravity-step > small { font-size: .51rem; }
  .gravity-step h1,
  .gravity-step h2 { margin-top: 24px; font-size: clamp(3.25rem, 14.5vw, 5.2rem); line-height: .84; }
  .gravity-step p { font-size: .92rem; }
  .choice-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 34px; }
  .choice { min-height: 62px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; }
  .choice::after { content: "○"; color: #747b8a; font-size: 1rem; }
  .choice.selected::after { content: "●"; color: #0b0d12; }
  .choice b { margin-top: 0; font-family: var(--sans); font-size: .78rem; font-weight: 760; letter-spacing: .06em; }
  .gravity-nav { position: fixed; z-index: 16; left: var(--mobile-gutter); right: var(--mobile-gutter); bottom: calc(14px + env(safe-area-inset-bottom)); margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px; }
  .gravity-next,
  .gravity-back { min-height: 58px; }
  .gravity-next { grid-column: 2; }
  .gravity-back { grid-column: 1; }
  .gravity-summary { display: block; margin-top: 34px; }
  .gravity-summary article { min-height: 112px; padding: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .gravity-summary strong { font-size: 1.65rem; }
  .gravity-actions-final { display: grid; gap: 8px; margin-top: 28px; }
  .gravity-actions-final .button { width: 100%; }
  .gravity-step[data-step="5"] .gravity-nav { position: static; margin-top: 20px; grid-template-columns: 1fr; }
  .gravity-step[data-step="5"] .gravity-back { grid-column: 1; }

  /* Sector pages */
  .inner-section .split-copy > div > img { margin-top: 46px; aspect-ratio: 4/5; object-fit: cover; }

  /* Inner CTA / footer */
  .inner-cta { min-height: 76svh; display: flex; align-items: center; padding: 76px 0; }
  .inner-cta h2 { font-size: clamp(3.5rem, 14.8vw, 5.6rem); line-height: .84; }
  .inner-cta p { margin-top: 28px; font-size: .93rem; }
  .inner-cta .button { width: 100%; justify-content: space-between; margin-top: 12px; }
  .inner-footer { padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); }
  .inner-footer .footer-shell { display: grid; gap: 12px; }

  /* Mobile case-study progress */
  .mobile-case-progress { display: block; position: fixed; z-index: 48; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; background: rgba(255,255,255,.08); }
  .mobile-case-progress > i { display: block; width: 100%; height: 100%; transform: scaleX(var(--case-progress, 0)); transform-origin: left; background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow)); }

  /* Selective mobile conversion pulse */
  .mobile-project-pulse { display: flex; position: fixed; z-index: 44; left: var(--mobile-gutter); right: var(--mobile-gutter); bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #080a10; background: rgba(246,243,236,.96); box-shadow: 0 14px 50px rgba(0,0,0,.32); font-size: .64rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; transform: translateY(calc(100% + 32px)); opacity: 0; transition: transform .38s var(--mobile-ease), opacity .25s ease; }
  .mobile-project-pulse.visible { transform: none; opacity: 1; }
  body.nav-open .mobile-project-pulse,
  body.modal-open .mobile-project-pulse { transform: translateY(calc(100% + 32px)); opacity: 0; }

  /* Touch affordances */
  a, button { touch-action: manipulation; }
  .world-open,
  .project-link,
  .process-method-link,
  .gravity-launch { min-height: 48px; }
  .footer-shell a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Short phones */
@media (max-width: 800px) and (max-height: 700px) {
  .hero-shell { padding-top: calc(var(--mobile-header) + env(safe-area-inset-top) + 30px); padding-bottom: 58px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .hero-lead { margin-top: 18px; font-size: .86rem; line-height: 1.48; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .button-primary { min-height: 52px; }
  .hero-actions .button-ghost { min-height: 44px; }
  .hero-core { left: 74%; top: 76%; width: 138px; }
  .floating-project-a { top: 70%; }
  .floating-project-b { top: 82%; }
  .hero-stamp { display: none; }

  .world-stage { top: calc(var(--mobile-header) + env(safe-area-inset-top) + 6px); height: calc(100svh - var(--mobile-header) - env(safe-area-inset-top) - 12px); grid-template-rows: 44px minmax(0,.43fr) minmax(0,.57fr); }
  .world-tabs { height: 44px; }
  .world-tabs button { min-height: 44px; }
  .world-copy { padding-top: 12px; padding-bottom: 8px; }
  .world-copy h3 { margin-top: 7px; font-size: clamp(1.55rem, 7.4vw, 2.15rem); }
  .world-copy p { margin-top: 6px; font-size: .64rem; line-height: 1.35; }
  .world-open { margin-top: 7px; padding: 6px 0; min-height: 44px; }
  .world-preview { padding-top: 8px; padding-bottom: 10px; }

  .inner-hero { min-height: 88svh; padding-bottom: 40px; }
  .inner-hero h1 { font-size: clamp(3.35rem, 14.5vw, 5rem); }
  .inner-hero-lead { font-size: .87rem; }
  .gravity-step h1,
  .gravity-step h2 { font-size: clamp(2.85rem, 12.5vw, 4rem); }
  .choice { min-height: 54px; }
}

/* Landscape phones: favour usability over full-height locking. */
@media (max-width: 932px) and (orientation: landscape) and (max-height: 520px) {
  :root { --mobile-header: 58px; }
  .brand-copy small { display: none; }
  .hero { min-height: 620px; }
  .hero-shell { min-height: 620px; padding-top: 94px; padding-bottom: 54px; }
  .hero h1 { max-width: 68%; font-size: clamp(3rem, 8vw, 4.6rem); }
  .hero-lead { max-width: 47%; font-size: .82rem; }
  .hero-actions { width: 46%; }
  .hero-core { left: 78%; top: 50%; width: 168px; }
  .floating-project-a { left: 53%; top: 18%; }
  .floating-project-b { right: 1%; top: 71%; }
  .hero-marquee { display: none; }

  .manifesto-rail div,
  .process-step,
  .principle,
  .method-chapter,
  .work-card-v2,
  .lab-card,
  .note-card { min-height: 0; }

  .world-scroll-track { height: auto; margin-top: 44px; }
  .world-stage { position: relative; top: auto; height: auto; min-height: 560px; grid-template-rows: 48px 220px 292px; }
  .world-scroll-meter { display: none; }

  .inner-hero { min-height: 520px; padding-top: 110px; padding-bottom: 44px; }
  .inner-hero h1 { max-width: 74%; font-size: clamp(3.4rem, 9vw, 5.2rem); }
  .inner-hero-lead { max-width: 56%; }
  .inner-section { padding: 72px 0; }
  .gravity-nav { position: static; margin-top: 28px; }
  .gravity-panel { padding-bottom: 40px; }
}

@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  .lab-orbit,
  .hero-core::before,
  .availability i { animation: none !important; }
  .mobile-project-pulse { transition: none; }
  .exploration-rail { scroll-behavior: auto; }
}


/* X-Ray material upgrade + Project Gravity visuals on mobile */
  .xray-stack-rich .xray-layer,
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(1),
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(2),
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(3),
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(4),
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(5) {height: 162px; min-height: 162px; padding: 16px 18px;}
  .xray-stack-rich .xray-layer-art {inset: 10px 10px 38px; grid-template-columns: minmax(0, 1fr) 41%; gap: 8px;}
  .xray-stack-rich .xray-shot, .xray-stack-rich .xray-note, .xray-stack-rich .xray-terminal {border-radius: 14px;}
  .xray-stack-rich .xray-note {padding: 10px 11px 9px;}
  .xray-stack-rich .xray-note small {font-size: .48rem;}
  .xray-stack-rich .xray-note strong {margin-top: 5px; font-size: .84rem; line-height: 1.03;}
  .xray-stack-rich .xray-note p, .xray-stack-rich .xray-shot figcaption {display:none;}
  .xray-stack-rich .xray-chip-row {gap: 5px;}
  .xray-stack-rich .xray-chip {min-height: 20px; padding: 0 7px; font-size: .42rem;}
  .xray-stack-rich .xray-swatch {width: 16px; height: 16px;}
  .xray-stack-rich .xray-seo-lines {height: 18px;}
  .xray-stack-rich .xray-track {gap: 5px;}
  .xray-stack-rich .xray-track span {height: 7px;}
  .xray-stack-rich .xray-terminal {padding: 9px 10px; gap: 5px; font-size: .43rem;}
  .choice-grid-rich {grid-template-columns: 1fr; gap: 10px;}
  .choice-rich {min-height: 0; padding: 12px 14px; display:grid; grid-template-columns: 92px 1fr; gap: 12px; align-items:center;}
  .choice-rich::after {display:none;}
  .choice-rich .choice-art {height: 76px; border-radius: 14px;}
  .choice-rich .choice-copy small {font-size: .47rem;}
  .choice-rich b {margin-top: 4px; font-family: var(--serif); font-size: 1.12rem;}
  .choice-rich em {margin-top: 3px; font-size: .66rem; line-height: 1.35;}


/* Luxury X-Ray + Gravity refinement on mobile */
  .xray-stack-rich .xray-layer,
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(1),
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(2),
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(3),
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(4),
  .xray-stack-rich.xray-stack.active .xray-layer:nth-child(5) {
    height: 170px; min-height: 170px; padding: 17px 18px;
    background: linear-gradient(90deg, rgba(30,24,19,.98), rgba(8,10,16,.98));
    border-color: rgba(207,183,127,.18);
    box-shadow: 0 14px 28px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.03);
  }
  .xray-stack-rich .xray-layer-art { inset: 10px 10px 40px; grid-template-columns: minmax(0, 1fr) 41%; gap: 8px; }
  .xray-stack-rich .xray-shot, .xray-stack-rich .xray-note, .xray-stack-rich .xray-terminal { border-radius: 15px; }
  .xray-stack-rich .xray-note { padding: 10px 11px 9px; }
  .xray-stack-rich .xray-note strong { margin-top: 5px; font-size: .86rem; }
  .xray-stack-rich .xray-note p, .xray-stack-rich .xray-shot figcaption { display:none; }
  .xray-stack-rich .xray-chip { min-height: 20px; padding: 0 7px; font-size: .41rem; }
  .xray-stack-rich .xray-swatch { width: 16px; height: 16px; }
  .xray-stack-rich .xray-layer > span {
    bottom: 12px; min-height: 22px; padding: 0 8px; font-size: .42rem; letter-spacing: .12em;
  }
  .choice-grid-rich { gap: 11px; margin-top: 30px; }
  .choice-rich { padding: 12px 13px; grid-template-columns: 94px 1fr; gap: 11px; border-radius: 18px; }
  .choice-rich .choice-art { height: 78px; border-radius: 15px; }
  .choice-rich .choice-copy small { font-size: .46rem; }
  .choice-rich b { margin-top: 4px; font-size: 1.08rem; }
  .choice-rich em { margin-top: 3px; font-size: .64rem; line-height: 1.35; }


/* Rebuilt fitted X-ray system on mobile */
  .xray-stack-fitted .xray-layer,
  .xray-stack-fitted.xray-stack.active .xray-layer:nth-child(1),
  .xray-stack-fitted.xray-stack.active .xray-layer:nth-child(2),
  .xray-stack-fitted.xray-stack.active .xray-layer:nth-child(3),
  .xray-stack-fitted.xray-stack.active .xray-layer:nth-child(4),
  .xray-stack-fitted.xray-stack.active .xray-layer:nth-child(5) {
    height: 174px; min-height: 174px; padding: 14px 16px;
    border-color: rgba(255,255,255,.14);
  }
  .xray-stack-fitted .xray-layer-art { inset: 8px 8px 36px; }
  .xray-stack-fitted .xray-shot { border-radius: 16px; }
  .xray-stack-fitted .xray-shot figcaption { left: 10px; bottom: 10px; padding: 6px 9px; font-size: .41rem; }
  .xray-stack-fitted .xray-layer-pill {
    right: 10px; top: 10px; min-width: 96px; padding: 8px 10px 8px; border-radius: 13px;
  }
  .xray-stack-fitted .xray-layer-pill small { font-size: .42rem; }
  .xray-stack-fitted .xray-layer-pill strong { margin-top: 4px; font-size: .76rem; }
  .xray-stack-fitted .xray-layer > span {
    min-height: 22px; padding: 0 8px; font-size: .41rem; letter-spacing: .12em; bottom: auto;
  }

@media (max-width: 800px), (max-width: 932px) and (orientation: landscape) and (max-height: 520px) {
  /* FINAL X-RAY REBUILD — mobile-native layered reading */
  .xray-stack-project,
  .xray-stack-capabilities,
  .xray-stack-project.active,
  .xray-stack-capabilities.active{
    min-height:0!important;
    perspective:none!important;
    display:grid!important;
    gap:12px!important;
    overflow:visible!important;
  }
  .xray-stack-project .xray-layer,
  .xray-stack-capabilities .xray-layer,
  .xray-stack-project.active .xray-layer:nth-child(1),
  .xray-stack-project.active .xray-layer:nth-child(2),
  .xray-stack-project.active .xray-layer:nth-child(3),
  .xray-stack-project.active .xray-layer:nth-child(4),
  .xray-stack-project.active .xray-layer:nth-child(5),
  .xray-stack-capabilities.active .xray-layer:nth-child(1),
  .xray-stack-capabilities.active .xray-layer:nth-child(2),
  .xray-stack-capabilities.active .xray-layer:nth-child(3),
  .xray-stack-capabilities.active .xray-layer:nth-child(4),
  .xray-stack-capabilities.active .xray-layer:nth-child(5),
  .xray-stack-project:not(.active) .xray-layer:nth-child(1),
  .xray-stack-project:not(.active) .xray-layer:nth-child(2),
  .xray-stack-project:not(.active) .xray-layer:nth-child(3),
  .xray-stack-project:not(.active) .xray-layer:nth-child(4),
  .xray-stack-project:not(.active) .xray-layer:nth-child(5){
    position:relative!important;left:auto!important;top:auto!important;
    width:100%!important;height:auto!important;min-height:0!important;
    aspect-ratio:1.95/1!important;
    transform:none!important;
    margin:0!important;padding:7px!important;
    opacity:1!important;filter:none!important;
    border-radius:17px!important;
    background:linear-gradient(145deg,rgba(20,24,36,.98),rgba(8,10,16,.99))!important;
    box-shadow:0 18px 36px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.04)!important;
  }
  .xray-stack-project .xray-layer:nth-child(2),.xray-stack-capabilities .xray-layer:nth-child(2){margin-left:2%!important;width:98%!important}
  .xray-stack-project .xray-layer:nth-child(3),.xray-stack-capabilities .xray-layer:nth-child(3){margin-left:4%!important;width:96%!important}
  .xray-stack-project .xray-layer:nth-child(4),.xray-stack-capabilities .xray-layer:nth-child(4){margin-left:6%!important;width:94%!important}
  .xray-stack-project .xray-layer:nth-child(5),.xray-stack-capabilities .xray-layer:nth-child(5){margin-left:8%!important;width:92%!important}
  .xray-project-frame,.xray-capability-frame{inset:6px 6px 32px!important;border-radius:13px!important}
  .xray-stack-project .xray-layer>span,.xray-stack-capabilities .xray-layer>span{
    min-height:20px!important;padding:0 7px!important;font-size:.39rem!important;letter-spacing:.11em!important;
  }
  .xray-stack-project:not(.active) .xray-layer:not(:first-child){display:block!important}
  .xray-stack-project:not(.active) .xray-layer{filter:brightness(.72)!important}
  .xray-stack-project:not(.active) .xray-layer:first-child{filter:brightness(1)!important}
}
