/* The desktop deck keeps its presentation canvas. Small screens read one
   full-width, vertically scrollable slide at a time, with persistent navigation. */
.mobile-menu { display: none; }
.hud-btn:disabled { opacity: .35; cursor: default; }
.hud-btn[hidden] { display: none; }
.wide-scroll:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
@media screen and (max-width: 1024px) {
  html, body { height: 100%; overflow: hidden; }
  #viewport { overflow: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; bottom: calc(76px + env(safe-area-inset-bottom)); }
  #stage { position: relative; left: auto; top: auto; width: 100%; height: auto; min-height: 100%; transform: none; }
  .slide { position: relative; inset: auto; min-height: calc(100dvh - 76px - env(safe-area-inset-bottom)); padding: max(28px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 36px max(22px, env(safe-area-inset-left)); width: 100%; overflow-wrap: anywhere; will-change: auto; }
  .slide.is-leaving { display: none; }
  .slide.is-active { opacity: 1 !important; transform: none !important; filter: none !important; }
  .slide * { min-width: 0; }
  [data-a], .frag, .wi { opacity: 1 !important; visibility: visible !important; transform: none !important; clip-path: none !important; }
  .w, .wi { display: inline; clip-path: none; }
  #gl, #labels3d { display: none; }
  #bgfx::after { display: none; }
  .h2, .slide--team .h2 { font-size: clamp(32px, 6vw, 54px) !important; line-height: 1.08; margin-top: 20px; max-width: 100%; }
  .kicker { font-size: 11px; line-height: 1.6; letter-spacing: .12em; gap: 10px; }
  .kicker::before { flex: 0 0 22px; }
  .lead, .team-lead, .cover-lead, .closing-sub { font-size: 17px; line-height: 1.6; margin-top: 18px; }
  .badge { font-size: 10px; line-height: 1.5; white-space: normal; letter-spacing: .06em; }
  .top-right { position: relative; inset: auto; margin-bottom: 20px; flex-wrap: wrap; }
  .source { position: relative; inset: auto; margin-top: 28px; font-size: 12px; line-height: 1.65; }
  .content { height: auto; }
  .half-left, .half-right, .half-right.narrow { position: relative; inset: auto !important; width: 100%; }
  .card, .panel, .scale-card { padding: 22px; border-radius: 18px; }
  .card h3, .benefits .card h3, .mix-text .card h3 { font-size: 24px; line-height: 1.2; }
  .card p, .benefits .card p, .mix-text .card p { font-size: 16px; line-height: 1.6; }
  .card, .pain, .step, .pillar, .panel, .feat, .pilot { backdrop-filter: none; }
  .problem-grid, .moments, .cols, .conns, .power, .dash, .streams, .ue, .market, .benefits, .chain, .tl-cols, .ask, .donut-wrap, .scale, .mix, .calc, .cost, .ek-list, .team-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; height: auto; min-height: 0; }
  .problem-grid, .moments, .conns, .dash, .streams, .benefits, .chain, .scale, .mix, .calc, .cost, .team-grid { margin-top: 28px; }
  .stats, .spec, .kpis, .tiles, .bignums, .bignums.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .photo img { animation: none; }
  .photo-shade, .photo-shade.rev, .photo-shade.dim { background: linear-gradient(180deg, #07090de8, #07090df2); }
  /* Render the existing product photography in document flow instead of a
     desktop-positioned WebGL model. Text always leads the slide. */
  .slide[data-scene].is-active { display: flex; flex-direction: column; }
  .slide .scene-fallback { display: block; position: relative; inset: auto; order: 5; width: 100%; height: auto; max-height: 460px; object-fit: contain; margin-top: 28px; border-radius: 16px; }
  .slide--cover .cover-meta { position: relative; inset: auto; margin-bottom: 28px; }
  .cover-wm { font-size: clamp(40px, 9vw, 78px); }
  .cover-title { font-size: clamp(46px, 9vw, 76px); margin: 22px 0 0; }
  .cover-tag { margin-top: 26px; font-size: 12px; line-height: 1.6; letter-spacing: .15em; }
  .cover-foot { position: relative; inset: auto; order: 6; flex-direction: column; gap: 10px; margin-top: 24px; font-size: 10px; line-height: 1.6; }
  .pains { margin-top: 0; }
  .pain { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 20px 16px; }
  .pain h3 { font-size: 23px; }
  .pain p, .pillar p, .step p { font-size: 16px; line-height: 1.55; }
  .pain .n { font-size: 16px; }
  .battery-wrap { padding: 8px 0; }
  .battery { width: min(100%, 420px); }
  .bat-caption { font-size: 11px; line-height: 1.6; letter-spacing: .06em; }
  .stat { padding-left: 12px; }
  .stat b { font-size: 40px; }
  .stat span { font-size: 14px; }
  .stat small { font-size: 11px; line-height: 1.5; }
  .moment { min-height: 350px; }
  .m-text { left: 20px; right: 20px; bottom: 24px; }
  .m-text h3 { font-size: 26px; }
  .m-text p { font-size: 16px; line-height: 1.5; }
  .m-tag { left: 18px; top: 18px; }
  .pillars, .steps { margin-top: 26px; }
  .pillar { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .pillar .p-n { padding: 0; font-size: 12px; }
  .pillar h3 { font-size: 30px; }
  .pillar-foot { font-size: 13px; line-height: 1.6; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .step .s-n { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
  .step h3 { font-size: 23px; }
  .spec dd { font-size: 21px; line-height: 1.4; }
  .spec dd small { display: block; margin: 6px 0 0; font-size: 13px; }
  .spec dt { line-height: 1.5; font-size: 11px; }
  .spec-note { font-size: 14px; }
  .conn { padding: 20px; }
  .conn svg { height: 70px; }
  .conn p { min-height: 0; }
  .power b { font-size: 42px; }
  .feat-list { grid-template-columns: 1fr; }
  .feat { font-size: 16px; }
  .kpi { padding: 16px 12px; }
  .kpi span { font-size: 10px; line-height: 1.6; letter-spacing: .04em; }
  .kpi b { font-size: 28px; }
  .panel-head { font-size: 10px; gap: 14px; line-height: 1.6; flex-wrap: wrap; }
  .st-head, .st-row { grid-template-columns: 10px minmax(80px, 1.4fr) repeat(3, minmax(45px, 1fr)); gap: 8px; font-size: 12px; }
  .st-head { display: none; }
  .st-row { grid-template-columns: 10px minmax(0, 1fr) minmax(0, 1fr); padding: 18px 0; font-size: 14px; }
  .st-row > b { grid-column: 2 / 4; font-size: 16px; }
  .st-row > span:nth-child(3) { grid-column: 2 / 4; font-size: 13px; line-height: 1.5; }
  .st-row > span:nth-child(4) { grid-column: 2; }
  .st-row > span:nth-child(4)::before { content: 'Doluluk'; }
  .st-row > span:nth-child(5)::before { content: 'Stok'; }
  .st-row > span:nth-child(n+4)::before { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
  .st-row > span:nth-child(5) { font-size: 13px; }
  .spark { height: 140px; }
  .spark::before { content: 'Saatlik işlem · son 48 saat'; color: var(--muted); font: 400 11px var(--f-mono); }
  .spark svg { height: 110px; }
  .spark svg text, #ue-stack svg text { display: none; }
  #ue-stack svg { min-height: 34px; }
  .stack-legend { font-size: 13px; line-height: 1.6; }
  .st-row .mono { font-size: 10px; }
  .alert { font-size: 13px; gap: 8px; }
  .alert time { font-size: 10px; }
  .features li { font-size: 16px; line-height: 1.5; }
  .stream .price { font-size: 34px; }
  .anchors, .anchor { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tabs { flex-wrap: wrap; gap: 8px; }
  .tab { padding: 12px 14px; min-height: 44px; font-size: 14px; }
  .tab i { margin-right: 6px; }
  .chart-title { font-size: 11px; line-height: 1.6; gap: 10px; flex-wrap: wrap; letter-spacing: .05em; }
  .wide-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .wide-scroll::before { content: '↔ Detaylar için yatay kaydırın'; display: block; position: sticky; left: 0; color: var(--muted); font: 400 11px/1.5 var(--f-mono); padding: 18px 0 8px; }
  .wide-scroll table { min-width: 680px; margin-top: 10px; }
  .matrix th, .scen th { font-size: 13px; }
  .matrix td, .scen td, .scen tr.strong td { font-size: 15px; padding: 14px 12px; }
  #ue-water { min-width: 760px; padding: 8px; }
  #trmap { min-width: 650px; padding: 12px; }
  .bignum, .bignums.six .bignum { padding: 18px 12px; }
  .bignum b, .bignum.tl b { font-size: 28px; }
  .bignum span { font-size: 13px; line-height: 1.5; }
  .assume { padding: 18px; }
  .assume ul { grid-template-columns: 1fr; }
  .assume li { font-size: 13px; line-height: 1.6; }
  .globals { grid-template-columns: 1fr; }
  .tile { padding: 18px 14px; }
  .tile b { font-size: 32px; }
  .tile .t-l { font-size: 15px; }
  .tile .t-s { line-height: 1.5; }
  .matrix-foot { font-size: 15px; line-height: 1.6; }
  .pilot { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; font-size: 16px; line-height: 1.6; }
  .chain-line { display: none; }
  .link { padding: 82px 22px 24px; }
  .link h3 { font-size: 25px; }
  .status .badge { font-size: 11px; }
  .timeline { margin-top: 36px; padding: 0 0 0 24px; border-left: 2px solid var(--blue); }
  .tl-line, .tl-fill { display: none; }
  .tl-cols { gap: 38px; }
  .tl-dot { width: 12px; height: 12px; left: -31px; top: 4px; box-shadow: 0 0 0 5px #1e90ff22; }
  .tl-when { font-size: 12px; }
  .tl-big { font-size: 64px; }
  .tl-col h3 { font-size: 27px; }
  .tl-col li { font-size: 16px; }
  .ask { margin-top: 28px; }
  .ask-amount { font-size: clamp(64px, 15vw, 100px); }
  .ask-usd { font-size: 12px; line-height: 1.6; }
  .ask-round { font-size: 13px; line-height: 1.6; }
  .milestone { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 16px; font-size: 15px; }
  .milestone b { font-size: 11px; }
  .fleet { font-size: 15px; }
  .donut-wrap { padding: 0; margin-top: 18px; }
  .donut { max-width: 340px; width: 100%; margin: auto; padding: 26px; }
  .legend li { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; }
  .legend i { width: 10px; height: 10px; }
  .legend .lbl { font-size: 15px; line-height: 1.5; }
  .legend b { min-width: 0; font-size: 13px; }
  .legend li > span:last-child { grid-column: 2; text-align: left; font-size: 13px; }
  .closing-title { font-size: clamp(50px, 10vw, 80px); }
  .closing-wm { font-size: 38px; margin-top: 30px; }
  .contact { margin-top: 28px; font-size: 16px; }
  .sources { columns: 1; font-size: 15px; line-height: 1.65; margin-top: 28px; }
  .assume-foot { font-size: 14px; }
  .sc-n { font-size: 64px; }
  .sc-big { font-size: 34px; }
  .mix-fig { height: 430px; }
  .mix-text .card { padding: 22px; }
  .frow { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .fr-name { font-size: 20px; }
  .fr-eq { flex-wrap: wrap; white-space: normal; gap: 9px; }
  .fr-f b { font-size: 23px; }
  .fr-f small { font-size: 10px; }
  .fr-res { text-align: left; border-top: 1px solid var(--line2); padding-top: 16px; }
  .cost-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 14px; }
  .cr-basis { grid-column: 1; grid-row: 2; }
  .cr-val { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; }
  .pl-row { font-size: 15px; gap: 10px; }
  .pl-row b { font-size: 23px; white-space: nowrap; }
  .pl-row.sum b { font-size: 26px; }
  .pl-row.net { padding: 16px 12px; }
  .pl-row.net b { font-size: 28px; }
  .ek-list li { font-size: 17px; }
  /* Team cards grow with their copy; profiles remain usable with touch. */
  .team-card { height: auto; min-height: 244px; }
  .team-card > img { width: 34%; height: auto; align-self: stretch; object-fit: cover; object-position: 50% 20%; }
  .team-card-copy { flex: 1; padding: 20px 16px; }
  .team-name { font-size: 24px; }
  .team-role { font-size: 12px; line-height: 1.5; }
  .team-summary { font-size: 14px; line-height: 1.55; }
  .team-more { padding-top: 16px; font-size: 10px; }
  .team-footer { flex-direction: column; gap: 14px; font-size: 10px; line-height: 1.8; }
  .team-card:hover, .team-card:focus-visible { transform: none; }
  #team-profile { overscroll-behavior: contain; }
  .team-close { width: 44px; height: 44px; }
  .team-profile-copy { padding-top: 58px; }
  /* A solid safe-area-aware navigation bar stays outside the reading area. */
  #hud { top: auto; height: calc(76px + env(safe-area-inset-bottom)); background: #0b111bf5; border-top: 1px solid var(--line2); padding-bottom: env(safe-area-inset-bottom); }
  #progress { top: 0; }
  .hud-hint, .hud-bl { display: none; }
  .hud-br { inset: 14px max(18px, env(safe-area-inset-right)) auto max(18px, env(safe-area-inset-left)); gap: 10px; }
  .hud-btn { width: 46px; height: 46px; flex-shrink: 0; }
  .mobile-menu { display: grid; font-size: 23px; }
  .hud-count { margin-right: auto; margin-left: 4px; font-size: 12px; }
  .overlay { padding: max(76px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .overlay .close { top: max(16px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); background: #141922; }
  .toc { grid-template-columns: 1fr; }
  .toc button { font-size: 15px; min-height: 52px; }
  .keys { grid-template-columns: 1fr; }
}
@media screen and (min-width: 640px) and (max-width: 1024px) {
  .slide { padding-left: 40px; padding-right: 40px; }
  .moments, .conns, .streams, .benefits, .chain, .team-grid, .feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card { flex-direction: column; }
  .team-card > img { width: 100%; height: 280px; }
  .team-card-copy { min-height: 240px; }
  .power, .globals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats, .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media screen and (max-width: 359px) {
  .slide { padding-left: 16px; padding-right: 16px; }
  .stats, .spec, .tiles, .bignums, .bignums.six { grid-template-columns: 1fr; }
  .team-card > img { width: 31%; }
  .team-card-copy { padding: 18px 12px; }
  .team-name { font-size: 22px; }
  .hud-br { left: 12px; right: 12px; gap: 8px; }
  .hud-count { letter-spacing: 0; }
}

/* Paged phone reader: every screen fits; arrows/swipes advance reading pages. */
#mobile-reader { display: none; }
@media screen and (max-width: 1024px) {
  body.mobile-ready #viewport { display: none; }
  body.mobile-ready #mobile-reader { display: flex; }
  #mobile-reader { position: fixed; inset: 0 0 calc(76px + env(safe-area-inset-bottom)); z-index: 2; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 14px max(22px, env(safe-area-inset-left)); overflow: hidden; }
  .phone-header { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; flex: 0 0 auto; margin-bottom: 20px; border-bottom: 1px solid var(--line2); padding-bottom: 16px; }
  .phone-header .wm { font-size: 17px; }
  #phone-section { grid-row: 2; grid-column: 1 / 3; color: var(--cyan); font: 500 11px/1.5 var(--f-mono); letter-spacing: .06em; }
  #phone-page-count { grid-column: 2; grid-row: 1; color: var(--muted2); font: 500 12px/1.6 var(--f-mono); }
  #phone-pages { position: relative; flex: 1 1 auto; min-height: 0; }
  .phone-page { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; visibility: hidden; pointer-events: none; overflow: hidden; overflow-wrap: anywhere; }
  .phone-page.phone-current { visibility: visible; pointer-events: auto; }
  .phone-page > * { flex-shrink: 0; min-width: 0; margin: 0 !important; }
  .phone-page * { min-width: 0; }
  .phone-progress { height: 2px; background: #ffffff12; margin-top: 14px; flex: 0 0 auto; }
  .phone-progress::before { content: ''; display: block; width: var(--phone-progress); height: 100%; background: var(--cyan); transition: width .2s; }
  .phone-page .h2, .phone-page .cover-title, .phone-page .closing-title { font: 800 clamp(27px, 6vw, 38px)/1.12 var(--f-display) !important; letter-spacing: -.03em; }
  .phone-page .cover-wm { font-size: 38px; }
  .phone-page .cover-title { order: 0; }
  .phone-page .cover-lead, .phone-page .closing-sub, .phone-page .team-lead { font-size: 16px; line-height: 1.6; }
  .phone-page .scene-fallback, .phone-page > img, .phone-single-photo { display: block; position: relative; inset: auto; width: 100%; height: auto; max-height: min(380px, var(--phone-space)); object-fit: contain; border-radius: 14px; }
  .phone-page .cover-foot { position: relative; inset: auto; font-size: 10px; }
  .phone-page .cover-tag { font-size: 12px; }
  .phone-page .top-right { margin: 0; }
  .phone-page .team-card { min-height: 0; width: 100%; }
  .phone-page .team-card > img { width: 34%; height: auto; }
  .phone-page .team-card-copy { min-height: 0; padding: 18px 14px; }
  .phone-page .team-name { font-size: 24px; }
  .phone-page .team-summary { margin-top: 10px; }
  .phone-page .team-more { padding-top: 12px; }
  .phone-page .moment { min-height: 0; height: auto; }
  .phone-page .m-text { position: relative; inset: auto; margin: 120px 20px 24px; }
  .phone-page .m-text h3 { font-size: 24px; }
  .phone-page .m-text p { font-size: 15px; }
  .phone-page .spec { display: block; }
  .phone-page .spec > div { padding: 10px 0; }
  .phone-page .spec dd { font-size: 22px; }
  .phone-page .spec dd small { display: inline; margin-left: 6px; }
  .phone-page .spec dt { margin-bottom: 4px; }
  .phone-page .mix-fig { height: min(400px, var(--phone-space)); }
  .phone-page .mix-fig figcaption { padding: 42px 18px 18px; }
  .phone-page .mix-fig b { font-size: 23px; }
  .phone-page .conn { padding: 16px 20px; }
  .phone-page .conn svg { height: 48px; }
  .phone-page .conn h3 { margin-top: 6px; }
  .phone-page .kpi b { font-size: 36px; }
  .phone-page .st-row { border: 1px solid var(--line2); border-radius: 16px; padding: 18px; }
  .phone-page .features li { margin: 0; padding: 10px 0; }
  .phone-page .tl-dot { display: none; }
  .phone-page .tl-col { padding: 20px; border: 1px solid var(--line2); border-radius: 18px; background: var(--surface); }
  .phone-page .tl-big { font-size: 54px; }
  .phone-page .tl-col h3 { font-size: 25px; }
  .phone-page .tl-col ul { gap: 8px; }
  .phone-page .source { font-size: 13px; line-height: 1.6; }
  .phone-page .sources { columns: 1; font-size: 15px; }
  .phone-page .sources li { margin: 0; }
  .phone-page .assume { padding: 12px 16px; }
  .phone-page .assume ul { margin: 0; }
  .phone-page .assume li { border: 0; gap: 16px; }
  .phone-page .chart-title { line-height: 1.5; }
  .phone-page .phone-source-ue-stack svg { min-height: 34px; }
  .phone-page .phone-source-ue-stack svg text { display: none; }
  .phone-page .phone-source-ue-water { min-width: 760px; }
  .phone-page .phone-source-trmap { min-width: 650px; padding: 10px; }
  .phone-page .wide-scroll::before { padding-top: 0; }
  .phone-page .wide-scroll { flex-shrink: 0; }
  .phone-page .bignum { padding: 16px 20px; }
  .phone-page .bignum b { font-size: 32px; }
  .phone-page .bignum span { margin-top: 6px; }
  .phone-page .ask-amount { font-size: 68px; }
  .phone-page .donut { max-width: 300px; padding: 26px; }
  .phone-page .legend li { font-size: 14px; }
  .phone-page .cost-group { padding: 4px 0; }
  .phone-page .phone-long-copy { font-size: 16px; line-height: 1.65; padding: 18px; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; }
  .phone-table-card { padding: 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--surface); }
  .phone-table-card h3 { font: 700 21px/1.2 var(--f-display); margin-bottom: 14px; }
  .phone-table-card dl { display: grid; gap: 10px; }
  .phone-table-card dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .phone-table-card dt { color: var(--muted2); font-size: 13px; line-height: 1.45; }
  .phone-table-card dd { font-size: 15px; font-weight: 700; text-align: right; }
  .phone-highlight { border-color: #1e90ff88; background: #1e90ff12; }
  .phone-table-card dl > .phone-highlight { background: #f5a52412; color: var(--amber); padding: 8px; border-radius: 6px; }
}
@media screen and (min-width: 640px) and (max-width: 1024px) {
  #mobile-reader { padding-left: max(30px, calc((100vw - 600px) / 2)); padding-right: max(30px, calc((100vw - 600px) / 2)); }
  .phone-page .team-card { flex-direction: row; }
}
@media screen and (max-height: 500px) and (max-width: 1024px) {
  #mobile-reader { padding-top: 10px; padding-bottom: 8px; }
  .phone-header { display: flex; align-items: center; margin-bottom: 12px; padding-bottom: 8px; }
  #phone-section { flex: 1; }
  .phone-header .wm { font-size: 13px; }
  .phone-progress { margin-top: 6px; }
  .phone-page { gap: 10px; }
  .phone-page .phone-long-copy { font-size: 14px; line-height: 1.5; padding: 12px; }
  .phone-page .m-text { margin-top: 56px; }
  .phone-page .scene-fallback, .phone-single-photo { max-height: min(160px, var(--phone-space)); }
}
@media screen and (max-width: 1024px) {
  .phone-page:not(.phone-current):not(.phone-outgoing) * { visibility: hidden !important; }
  .phone-page.phone-current { animation: phone-reveal .18s ease-out; }
  @keyframes phone-reveal { from { opacity: .6; transform: translateX(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .phone-page.phone-current { animation: none; } }
@media screen and (max-width: 1024px) {
  /* Reserve image space before assets decode so pagination cannot shift. */
  .phone-page .scene-fallback, .phone-page > .phone-single-photo { height: min(380px, var(--phone-space)); }
}
@media screen and (max-height: 500px) and (max-width: 1024px) {
  .phone-page .scene-fallback, .phone-page > .phone-single-photo { height: min(160px, var(--phone-space)); }
}
@media screen and (max-width: 1024px) {
  .phone-context-group > :first-child { margin-top: 0; }
  .phone-context-group > :last-child { margin-top: 12px; }
  .phone-page .cover-meta { position: relative; inset: auto; }
}
@media screen and (max-height: 500px) and (max-width: 1024px) {
  .phone-page .team-card { height: 200px; }
  .phone-page .team-card > img { width: 26%; height: 100%; }
  .phone-page .team-card-copy { padding: 12px 16px; }
  .phone-page .team-name { font-size: 22px; }
  .phone-page .team-role { font-size: 11px; margin-top: 6px; }
  .phone-page .team-summary { font-size: 13px; line-height: 1.4; margin-top: 8px; }
  .phone-page .team-more { padding-top: 8px; }
}
@media screen and (max-width: 1024px) {
  .phone-photo-link { background: transparent; border: 0; padding: 0; width: 100%; cursor: pointer; }
  .phone-photo-link img { height: min(160px, var(--phone-space)); width: 100%; object-fit: contain; border-radius: 14px; }
  button.phone-long-copy { color: var(--text); text-align: left; cursor: pointer; }
}
@media screen and (max-width: 1024px) {
  #mobile-reader[data-slide="s1"] .scene-fallback { height: min(260px, var(--phone-space)); }
  #mobile-reader[data-slide="s1"] .cover-foot { font-size: 9px; gap: 4px; }
}
@media screen and (max-height: 500px) and (max-width: 1024px) {
  #mobile-reader[data-slide="s1"] .scene-fallback { height: min(160px, var(--phone-space)); }
}
/* Live 3D shares the desktop canvas; only the currently visible panel renders. */
@media screen and (max-width: 1024px) {
  .phone-model { position: relative; height: min(380px, var(--phone-space)); width: 100%; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: radial-gradient(ellipse at 50% 40%, #18324a, #080f18 75%); }
  .phone-model-view { position: absolute; inset: 0 0 46px; overflow: hidden; }
  .phone-model-view #gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; z-index: 1; transition: none; }
  .phone-model-fallback { width: 100%; height: 100%; object-fit: contain; }
  .phone-model.model-ready .phone-model-fallback { visibility: hidden; }
  .phone-model:not(.model-ready) #gl { display: none; }
  .phone-model-controls { position: absolute; inset: auto 0 0; height: 46px; display: flex; justify-content: center; gap: 10px; border-top: 1px solid var(--line2); background: #0b1420; }
  .phone-model-controls button { min-height: 44px; flex: 1; padding: 0 12px; background: transparent; border: 0; color: var(--cyan); font: 600 12px var(--f-body); cursor: pointer; }
  .phone-model-controls button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
  .phone-model:not(.model-ready) .phone-model-controls { visibility: hidden; }
  #mobile-reader[data-slide="s1"] .phone-model { height: min(260px, var(--phone-space)); }
  .phone-page.phone-current { animation: none; }
}
@media screen and (max-height: 500px) and (max-width: 1024px) {
  .phone-model, #mobile-reader[data-slide="s1"] .phone-model { height: min(210px, var(--phone-space)); }
}

/* A persistent title anchors horizontal chapters within one numbered slide. */
@media screen and (max-width: 1024px) {
  .phone-header { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 16px; padding-bottom: 16px; flex-shrink: 0; }
  #phone-section { grid-column: 1; grid-row: 2; font-size: 10px; }
  #phone-page-count { grid-column: 2; grid-row: 2; font-size: 10px; white-space: nowrap; }
  #phone-title { grid-column: 1 / -1; grid-row: 3; }
  #phone-title .phone-title-text { margin: 0; font: 700 clamp(24px, 6.8vw, 34px)/1.08 var(--f-display); letter-spacing: -.035em; color: var(--text); }
  #phone-title .phone-title-text em { color: var(--blue); font-style: normal; }
  #phone-title .wi { opacity: 1; transform: none; filter: none; }
  #phone-pages { overflow: hidden; isolation: isolate; }
  .phone-page.phone-outgoing { visibility: visible; pointer-events: none; }
  .phone-model, #mobile-reader[data-slide="s1"] .phone-model { height: var(--phone-space); border-radius: 18px; }
}
@media screen and (max-height: 500px) and (max-width: 1024px) {
  .phone-header { grid-template-columns: auto 1fr auto; gap: 6px 14px; padding-bottom: 8px; margin-bottom: 10px; }
  #phone-section { grid-column: 2; grid-row: 1; }
  #phone-page-count { grid-column: 3; grid-row: 1; }
  #phone-title { grid-column: 1 / -1; grid-row: 2; }
  #phone-title .phone-title-text { font-size: 22px; }
  #phone-title br { display: none; }
}
