/* Phone layouts deliberately separate the artwork viewport from its controls. */
@media (max-width:760px), (max-width:950px) and (max-height:500px) {
  :root{--gutter:20px;--mobile-ink:#131d40;--mobile-muted:#586b89}
  html{scroll-padding-top:16px}
  body{min-width:0;font-family:Manrope,Geist,Arial,sans-serif}
  main{min-width:0;width:100%}
  .site-header{position:relative!important;inset:auto!important;min-height:68px;height:auto;padding:10px 20px 6px;gap:8px;align-items:center}
  .site-header nav{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;margin:0;min-width:0;flex:1;font:600 13.5px/1.2 Manrope,sans-serif}
  .site-header nav a,.site-header nav button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px 3px;white-space:nowrap;color:#263555;font:inherit}
  .site-header .header-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:6px}
  .header-mark img{width:31px;height:31px;object-fit:contain}
  .skip{left:16px;max-width:calc(100vw - 32px);min-height:44px;font-size:14px}

  .landing-hero{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto auto;column-gap:0;row-gap:0;min-height:0;height:auto;max-height:none;width:100%;padding:24px 20px 42px;overflow:visible}
  .hero-content{display:contents;position:static;inset:auto;width:auto;max-width:none;margin:0;padding:0;opacity:1;transform:none;transition:none}
  .hero-content h1{grid-column:1;grid-row:1;position:relative;z-index:2;width:100%;max-width:none;font-family:Manrope,sans-serif;font-size:clamp(47px,13vw,60px);font-weight:800;line-height:1.035;letter-spacing:-.04em;text-wrap:initial;color:#111b3c}
  .hero-content .hero-description{grid-column:1;grid-row:2;position:relative;z-index:2;width:100%;font-family:Manrope,sans-serif;font-size:16px;line-height:1.5;font-weight:450;letter-spacing:-.02em;white-space:normal;margin:15px 0 0;color:#536380}
  .hero-scene{grid-column:1;grid-row:3;position:relative!important;inset:auto!important;width:calc(100% + 40px)!important;height:auto!important;min-height:0;aspect-ratio:1.02;margin:12px -20px 0;transform:none!important;transition:none;overflow:clip}
  .hero-scene iframe{position:absolute;inset:0;width:100%;height:100%;min-width:0;background:transparent}
  .hero-content>.quiet-link{grid-column:1;grid-row:4;justify-self:start;position:relative;z-index:2;display:inline-flex;align-items:center;min-height:48px;max-width:100%;width:auto;margin:3px 0 0;padding:10px 0;font-family:Manrope,sans-serif;font-size:16px;line-height:1.3;font-weight:650;letter-spacing:-.025em;color:#253354;pointer-events:auto;white-space:normal}
  .hero-signature{grid-column:1;grid-row:5;position:relative!important;inset:auto!important;justify-self:start;width:148px;margin-top:24px;opacity:1;transform:none;pointer-events:auto}
  .hero-signature img{width:100%;height:auto}
  .hero-scroll{grid-column:1;grid-row:5;position:relative!important;inset:auto!important;align-self:end;justify-self:end;display:grid;place-items:center;width:44px;height:44px;margin-top:16px;opacity:1;transform:none;pointer-events:auto}
  .hero-scroll img{width:20px;height:20px}
  .hero-satellites{display:none}
  .landing-hero.scene-expanded{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;min-height:0;padding:0;overflow:visible}
  .landing-hero.scene-expanded .hero-content,.landing-hero.scene-expanded .hero-signature,.landing-hero.scene-expanded .hero-scroll{display:none!important}
  .landing-hero.scene-expanded .hero-scene{grid-column:1;grid-row:1;position:relative!important;inset:auto!important;width:100%!important;height:calc(100svh - 68px)!important;min-height:500px;max-height:none;aspect-ratio:auto;margin:0!important;opacity:1;transform:none!important}

  .section,.matter-section{width:100%;max-width:none;margin:0;padding:62px 20px;min-width:0;min-height:0;scroll-margin-top:12px}
  .matter-section{display:flex;flex-direction:column;align-items:stretch;gap:0;grid-template-columns:none;overflow:visible}
  .matter-copy,.matter-position-copy,.matter-portfolio-copy{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;width:100%;max-width:none;margin:0;padding:0;transform:none;order:0;pointer-events:none}
  .matter-copy h2,.matter-position-copy h2,.matter-result-copy h2,.matter-section-risk .matter-copy h2,.matter-section-operations .matter-copy h2{width:100%;max-width:none;margin:0;font-family:Manrope,sans-serif;font-size:clamp(35px,10vw,44px);font-weight:780;line-height:1.08;letter-spacing:-.04em;white-space:normal;text-wrap:initial;overflow-wrap:normal;color:var(--mobile-ink)}
  .matter-copy p,.matter-portfolio-copy>p,.matter-position-copy>p{max-width:34ch;margin:16px 0 0;font-family:Manrope,sans-serif;font-size:16px;line-height:1.55;font-weight:450;letter-spacing:-.018em;color:var(--mobile-muted)}
  .matter-result-copy h2{max-width:13ch}
  .matter-result-copy{margin-bottom:22px}
  .matter-position-copy{margin-bottom:20px}

  .matter-art{position:relative;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;justify-content:stretch;column-gap:12px;row-gap:6px;width:100%;max-width:none;height:auto!important;min-height:0!important;aspect-ratio:auto!important;margin:0;padding:0;order:1;isolation:isolate;touch-action:pan-y}
  .matter-art>.matter-copy{grid-column:1/-1;grid-row:1;padding-bottom:12px;order:-1}
  .matter-art>canvas,.matter-art>.matter-canvas{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;display:block;grid-column:1/-1;grid-row:auto;justify-self:stretch;width:100%!important;height:auto!important;min-width:0;min-height:0;max-width:100%;max-height:none;margin:10px 0 12px;padding:0;order:0;z-index:0;touch-action:pan-y;user-select:none;-webkit-user-select:none;outline-offset:4px;border-radius:0}
  .matter-art[data-matter-scene=portfolio]>canvas{aspect-ratio:610/490}
  .matter-art[data-matter-scene=position]>canvas{aspect-ratio:390/530}
  .matter-art[data-matter-scene=risk]>canvas{aspect-ratio:390/360}
  .matter-art[data-matter-scene=operations]>canvas{aspect-ratio:390/280}
  .matter-art[data-matter-scene=result]>canvas{aspect-ratio:390/580}
  .matter-art[data-touch-active=true]>canvas,.matter-art[data-matter-interactive=true]>canvas{touch-action:none}
  .matter-art .matter-label,.matter-portfolio-art .matter-label,.matter-art .matter-asset-label,.matter-art .matter-result-label{position:static!important;inset:auto!important;left:auto!important;top:auto!important;display:flex;align-items:center;justify-content:flex-start;align-self:stretch;justify-self:stretch;min-width:0;max-width:100%;min-height:48px;width:100%;height:auto;margin:0;padding:9px 3px;gap:9px;order:1;z-index:2;font-family:Manrope,sans-serif;font-size:15px;font-weight:650;line-height:1.35;letter-spacing:-.025em;white-space:normal;overflow-wrap:normal;text-align:left;color:#26395c;transform:none!important;translate:none!important;opacity:1!important;border:0;border-radius:0;box-shadow:none;background:transparent;touch-action:manipulation}
  .matter-art .matter-label>img,.matter-art .matter-label>svg{flex:0 0 23px;width:23px;height:25px;max-width:23px;object-fit:contain}
  .matter-art .matter-label>span{min-width:0;max-width:100%;white-space:normal}
  .matter-art .matter-label small,.matter-risk-art .matter-label>span>small{display:block;width:auto;max-width:100%;margin-top:3px;font-family:Manrope,sans-serif;font-size:13px;font-weight:500;line-height:1.3;letter-spacing:0;color:#607292;white-space:normal}
  .matter-art .matter-label[aria-pressed=true]{color:#493ed2}
  .matter-art .matter-label:focus-visible{outline:2px solid #7163d5;outline-offset:2px}
  .matter-art .matter-asset-label{align-items:flex-start;justify-content:center;flex-direction:column;gap:2px}
  .matter-art .matter-aave-label{grid-column:1/-1;align-items:center;justify-content:center;min-height:54px;font-size:25px;color:#5654db;gap:9px}
  .matter-art .matter-aave-label>img{flex-basis:31px;width:31px;height:31px;max-width:31px}
  .matter-art .matter-label-risk-core{grid-column:1/-1;justify-content:center;font-size:15px;min-height:44px;color:#526789}
  .matter-art .matter-controls,.matter-position-art .matter-controls,.matter-result-art .matter-controls{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;bottom:auto!important;right:auto!important;display:flex!important;grid-column:1/-1;grid-row:auto;align-items:center;justify-content:flex-end;gap:6px;order:99;width:100%;max-width:100%;min-height:56px;margin:12px 0 0;padding:9px 0 0;border-top:1px solid #8f9bc82e;background:transparent;opacity:1!important;transform:none!important;translate:none!important;pointer-events:auto;z-index:4}
  .matter-controls button{display:flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;width:44px;height:44px;margin:0;padding:8px;border:0;border-radius:8px;font-family:Manrope,sans-serif;font-size:24px;font-weight:450;line-height:1;color:#4d6185;background:transparent;touch-action:manipulation}
  .matter-controls button:hover{background:#edf0fb;color:#4d42ca}
  .matter-controls button:active{background:#e3e7f7}
  .matter-controls svg{width:21px;height:21px}
  .matter-controls [data-matter-action=interact],.matter-controls [data-matter-action=move],.matter-controls [data-matter-action=toggle-interaction],.matter-controls .matter-move-toggle{flex:1 1 auto;justify-content:flex-start;min-width:90px;width:auto;margin-right:auto;padding:8px 0;font-family:Manrope,sans-serif;font-size:15px;font-weight:650;line-height:1.35;color:#4e46ce;white-space:nowrap}
  .matter-controls [aria-pressed=true]{color:#4e46ce}
  .matter-error{position:static;grid-column:1/-1;width:100%;font-size:15px;line-height:1.5;margin:20px 0;color:#5d6e8d}

  .matter-section-risk,.matter-section-operations{display:grid;grid-template-columns:minmax(0,1fr);column-gap:0;row-gap:0;align-items:start;min-height:0;padding-top:62px;padding-bottom:62px}
  .matter-section-risk>.matter-copy,.matter-section-operations>.matter-copy{display:contents;padding:0;transform:none}
  .matter-section-risk>.matter-copy>h2,.matter-section-operations>.matter-copy>h2{grid-column:1;grid-row:1;pointer-events:none}
  .matter-section-risk .matter-states,.matter-section-operations .matter-states{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px;margin:24px 0 14px;padding:0;pointer-events:auto}
  .matter-states button{display:flex;align-items:center;justify-content:center;min-height:52px;min-width:0;max-width:100%;padding:8px 4px;font-family:Manrope,sans-serif;font-size:14px;font-weight:550;line-height:1.35;letter-spacing:-.025em;text-align:center;white-space:normal;overflow-wrap:normal;color:#647393;touch-action:manipulation}
  .matter-states button[aria-pressed=true]{font-weight:700;color:#4e42cf}
  .matter-states button:after{left:6px;right:6px;bottom:2px}
  .matter-states button:focus-visible{outline-offset:2px}
  .matter-risk-art,.matter-operations-art{grid-column:1;grid-row:3;min-height:0}
  .matter-state-text{grid-column:1;grid-row:4;width:100%;max-width:36ch;min-height:0;margin:24px 0 0;pointer-events:none}
  .matter-state-text h3{font-family:Manrope,sans-serif;font-size:18px;font-weight:700;line-height:1.4;letter-spacing:-.025em;color:#263757}
  .matter-state-text p,.matter-copy .matter-state-text p{margin-top:9px;font-family:Manrope,sans-serif;font-size:15px;line-height:1.6;color:#5a6d8c}
  .matter-state-text>div:not([hidden]){animation-duration:.25s}

  .activity-section{padding:58px 0 46px;min-width:0;background:linear-gradient(180deg,#eaf0fc00,#eaf0fc40 45%,#eaf0fc00)}
  .activity-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:17px;align-items:start;width:100%;padding:0 20px;margin:0}
  .activity-heading .section-label{font-family:Manrope,sans-serif;font-size:12px;line-height:1.4;margin-bottom:15px;color:#60728f}
  .activity-heading h2{font-family:Manrope,sans-serif;font-size:clamp(35px,9.8vw,43px);line-height:1.08;letter-spacing:-.04em;font-weight:780;color:#14203f}
  .activity-heading>p{display:block;max-width:30ch;padding:0;font-family:Manrope,sans-serif;font-size:15px;line-height:1.55;color:#5c6e8b}
  .activity-heading .quiet-link{display:inline-flex;align-items:center;justify-self:start;min-height:46px;margin:0;padding:8px 0;font-family:Manrope,sans-serif;font-size:15px;line-height:1.4;font-weight:650;color:#3f5276}
  .activity-scene{position:relative;width:100%;height:540px;min-height:0;max-height:none;margin-top:17px;overflow:clip}
  .activity-scene iframe{width:100%;height:100%;min-width:0}
  .scene-placeholder{font-size:14px}

  .site-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px 12px;width:100%;padding:35px 20px max(24px,env(safe-area-inset-bottom));font-family:Manrope,sans-serif;font-size:12px;line-height:1.5;color:#71819c}
  .site-footer>.wordmark{grid-column:1;width:148px;max-width:100%}
  .site-footer>span:not(.copyright){grid-column:2;font-size:11px;text-align:right;white-space:normal}
  .site-footer>div{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;align-items:start;width:100%;min-width:0;margin-top:5px}
  .site-footer>div>a,.site-footer>div>button{display:flex;align-items:center;min-width:0;min-height:44px;max-width:100%;padding:9px 0;font-family:Manrope,sans-serif;font-size:12px;line-height:1.45;white-space:normal;overflow-wrap:normal;text-align:left;color:#5a6d8d}
  .site-footer>div>button{grid-column:1/-1;font-size:13px}
  .site-footer .copyright{grid-column:1/-1;margin-top:0;font-size:11px}
}

@media (max-width:359px) {
  :root{--gutter:16px}
  .site-header{padding-left:16px;padding-right:16px}
  .site-header nav{gap:5px;font-size:13px}
  .site-header nav a,.site-header nav button{padding-left:2px;padding-right:2px}
  .landing-hero{padding-left:16px;padding-right:16px;padding-top:19px}
  .hero-scene{width:calc(100% + 32px)!important;margin-left:-16px;margin-right:-16px}
  .hero-content h1{font-size:46px}
  .hero-description{font-size:15px}
  .section,.matter-section{padding-left:16px;padding-right:16px}
  .matter-copy h2,.matter-position-copy h2,.matter-result-copy h2,.matter-section-risk .matter-copy h2,.matter-section-operations .matter-copy h2{font-size:35px}
  .matter-copy p,.matter-portfolio-copy>p,.matter-position-copy>p{font-size:15px}
  .matter-art{column-gap:9px}
  .matter-art .matter-label{font-size:14px;gap:7px}
  .matter-art .matter-label>img,.matter-art .matter-label>svg{flex-basis:21px;width:21px;height:23px;max-width:21px}
  .matter-art .matter-label small{font-size:12px}
  .matter-states button{font-size:13px;padding-left:3px;padding-right:3px}
  .activity-heading{padding-left:16px;padding-right:16px}
  .activity-heading h2{font-size:35px}
  .activity-scene{height:510px}
  .site-footer{padding-left:16px;padding-right:16px}
  .site-footer>.wordmark{width:138px}
}

@media (min-width:761px) and (max-width:950px) and (max-height:500px) {
  .site-header{min-height:60px;padding:6px 24px}
  .site-header nav{font-size:14px;gap:20px}
  .landing-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto;column-gap:20px;width:100%;max-width:880px;margin:0 auto;padding:12px 24px 30px}
  .hero-content h1{grid-column:1;grid-row:1;font-size:46px}
  .hero-content .hero-description{grid-column:1;grid-row:2;font-size:15px;margin-top:12px}
  .hero-scene{grid-column:2;grid-row:1/5;width:100%!important;height:auto!important;aspect-ratio:1.1;align-self:center;margin:0;min-height:0}
  .hero-content>.quiet-link{grid-column:1;grid-row:3;margin-top:9px;font-size:15px}
  .hero-signature{grid-column:1;grid-row:4;width:140px;margin-top:16px}
  .hero-scroll{display:none}
  .landing-hero.scene-expanded{max-width:none;padding:0}
  .landing-hero.scene-expanded .hero-scene{grid-column:1;grid-row:1;height:calc(100svh - 60px)!important;min-height:300px}
  .section,.matter-section{max-width:720px;margin-left:auto;margin-right:auto;padding-top:50px;padding-bottom:50px}
  .matter-art>canvas,.matter-art>.matter-canvas{width:min(100%,440px)!important;justify-self:center}
  .matter-portfolio-copy{grid-column:1/-1;max-width:none}
  .activity-heading{max-width:720px;margin:0 auto}
  .activity-scene{height:max(300px,calc(100svh - 40px))}
  .site-footer{max-width:760px;margin:0 auto}
}

@media (prefers-reduced-motion:reduce) and (max-width:760px), (prefers-reduced-motion:reduce) and (max-width:950px) and (max-height:500px) {
  .hero-content,.matter-label,.matter-controls,.matter-states button:after{transition:none}
  .matter-state-text>div:not([hidden]){animation:none}
}

.matter-controls button[hidden]{display:none!important}
@media(max-width:760px){.site-header{padding-top:max(10px,env(safe-area-inset-top));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}}
/* Reserve the lazy renderer's exact space so scrolling never jumps as it mounts. */
@media(max-width:760px),(max-width:950px) and (max-height:500px){
 .matter-art:not(:has(.matter-canvas))::before{content:'';display:block;grid-column:1/-1;width:100%;margin:10px 0 12px;order:0}
 .matter-art[data-matter-scene=portfolio]:not(:has(.matter-canvas))::before{aspect-ratio:610/490}
 .matter-art[data-matter-scene=position]:not(:has(.matter-canvas))::before{aspect-ratio:390/530}
 .matter-art[data-matter-scene=risk]:not(:has(.matter-canvas))::before{aspect-ratio:390/360}
 .matter-art[data-matter-scene=operations]:not(:has(.matter-canvas))::before{aspect-ratio:390/280}
 .matter-art[data-matter-scene=result]:not(:has(.matter-canvas))::before{aspect-ratio:390/580}
 .matter-art:not(:has(.matter-controls))::after{content:'';grid-column:1/-1;min-height:56px;margin-top:12px;padding-top:9px;border-top:1px solid transparent;order:99}
}
@media(min-width:761px) and (max-width:950px) and (max-height:500px){.matter-art:not(:has(.matter-canvas))::before{width:min(100%,440px);justify-self:center}}

@media(max-width:760px),(max-width:950px) and (max-height:500px){
 .matter-result-copy{display:block;max-width:none;margin:0 0 20px}
 .matter-result-reading{max-width:34ch;min-height:102px;margin-top:22px;padding:0}
 .matter-result-reading h3{font-size:16px;line-height:1.45}
 .matter-result-copy .matter-result-reading p{font-size:15px;margin-top:8px}
 .matter-result-art{margin:0}
 .matter-result-joint{display:none}
 .matter-label-risk-core,.matter-label-wallet{order:3!important;grid-column:1/-1;justify-content:center!important}
 .matter-art .matter-label-exchange{font-size:13px;color:#617391}
 .matter-section button[data-pointer-focus=true]:focus-visible{outline:none;box-shadow:none}
}
@media(max-width:760px),(max-width:950px) and (max-height:500px){
 .matter-section-operations .matter-copy h2{font-size:clamp(35px,10vw,44px)}
 .matter-result-copy h2{white-space:normal;font-size:clamp(35px,10vw,44px)}
 .matter-result-art{margin-top:0}
 .matter-art[data-matter-scene=result] .matter-label:not(.matter-capital-label){position:absolute!important;inset:auto!important;left:var(--label-x)!important;top:var(--label-y)!important;width:120px!important;max-width:120px;min-height:48px;justify-content:flex-start;transform:translate(-50%,-50%)!important;padding:4px 0;gap:7px;font-size:14px;opacity:1!important}
 .matter-art[data-matter-scene=result] .matter-label:not(.matter-capital-label)>svg{display:none}
 .matter-art[data-matter-scene=result] .matter-label:not(.matter-capital-label) small{font-size:11px;line-height:1.35}
 .matter-art[data-matter-scene=result] .matter-capital-label{grid-column:1/-1;justify-content:center;min-height:48px}
}
@media(max-width:760px),(max-width:950px) and (max-height:500px){
 .matter-art[data-matter-scene=result]:not([data-art-ready=true]) .matter-label:not(.matter-capital-label){visibility:hidden}
 .matter-art[data-matter-scene=result] .matter-label:not(.matter-capital-label){text-shadow:0 1px 4px #f6f8fe,0 0 8px #f6f8fe}
}
@media(max-width:760px),(max-width:950px) and (max-height:500px){
 .matter-section-risk .matter-state-text,.matter-section-operations .matter-state-text{grid-row:3;min-height:100px;max-width:34ch;margin:8px 0 10px}
 .matter-risk-art,.matter-operations-art{grid-row:4}
}
@media(max-width:760px),(max-width:950px) and (max-height:500px){
 .matter-route-details>span{width:115px}
 .matter-route-details strong{font-size:11px}
 .matter-route-details small{font-size:10px;line-height:1.3;margin-top:3px}
 .matter-art .matter-label-exchange{grid-column:1/-1;justify-content:center;font-size:15px;min-height:58px}
 .matter-art .matter-label-exchange small{font-size:12px}
}
