/* R26.16: compact touch layouts. Desktop remains the R26.15 reference. */
@media (max-width:680px), (max-width:1024px) and (pointer:coarse) {
  :root { --edge:20px; --header-height:66px; --mobile-hero-height:max(100svh,460px); }
  .shell { min-width:0; }
  .header-inner { gap:8px; --edge:12px; }
  .header-inner .brand img { width:clamp(75px,22vw,105px); }
  .header-actions { gap:6px; }
  .header-join { min-height:44px; padding-inline:10px; font-size:13px; white-space:nowrap; }
  .languages button { min-width:28px; min-height:44px; }
  .site-nav { max-height:calc(100dvh - var(--header-height)); overflow-y:auto; overscroll-behavior:contain; }
  .site-nav a { font-size:16px; min-height:48px; }
  .section-rail a,.studio-story .section-rail a { min-height:48px; }
  .hero .hero-stage { min-height:0; padding-top:0; display:block; overflow:hidden; }
  .hero .hero-media { inset:0 0 auto; height:var(--mobile-hero-height); min-height:0; transform:none; clip-path:none; }
  .hero .hero-media video { object-position:50% 50%; }
  .hero .hero-copy { display:grid; grid-template-columns:minmax(0,1fr); gap:0; padding-block:0; align-items:start; }
  .hero .hero-heading { min-height:var(--mobile-hero-height); display:flex; flex-direction:column; justify-content:flex-end; padding:calc(var(--header-height) + 24px) 0 40px; transform:none; }
  .hero .hero-mark { width:clamp(58px,17vw,94px); margin-bottom:12px; }
  .hero .hero-slogan { margin-bottom:12px; }
  .hero #hero-title { --hero-size:clamp(29px,7.4vw,43px); }
  .hero .hero-descriptor { max-width:45ch; color:var(--off-white); }
  .hero .hero-summary { max-width:64ch; padding:32px 0 12px; min-height:0; overflow:visible; }
  .hero .hero-summary > :is(p,.action-row) { opacity:1; transform:none; }
  .hero .hero-summary p + p { margin-top:13px; }
  .hero .hero-summary-art { inset:var(--mobile-hero-height) -60% 0 10%; opacity:1; }
  .hero-stage > .hero-summary-art .hero-summary-x { height:100%; opacity:.07; }
  .hero .section-rail { position:relative; padding-bottom:10px; }
  .hero-stage::after { height:12%; }
  .studio-story .studio-scene { min-height:0; padding-block:36px 12px; gap:18px; }
  .studio-story .studio-heading h2,#compound-title,#coming-title,#team-title { font-size:clamp(29px,7vw,40px); line-height:1.12; overflow-wrap:normal; }
  .studio-story .studio-lede p,.studio-card-text p,.hero-summary p,.studio-data .data-copy p:not(.label) { font-size:15px; line-height:1.58; }
  .studio-story[data-mobile-story] .studio-slides { display:block; }
  .studio-story[data-mobile-story] .studio-slide:not([data-active]) { display:none; }
  .studio-story[data-mobile-story] .studio-slide[data-active] { opacity:1; visibility:visible; transform:none; animation:mobile-card-in .25s ease both; }
  .studio-story .studio-tabs { gap:6px 8px; padding-bottom:6px; }
  .studio-story .studio-node { min-height:44px; padding:8px 10px; font-size:14px; line-height:1.25; }
  .studio-story .studio-node[aria-current="true"] { color:var(--light-action); }
  .studio-company .company-chapter { grid-template-columns:minmax(0,1fr); gap:18px; }
  .studio-company .company-diagram { min-height:0; padding:10px 0; }
  #ecosystem.fixed-section .studio-exchange { grid-template-columns:minmax(0,1fr); gap:10px; }
  #ecosystem.fixed-section .studio-orbit { width:min(86%,310px); max-width:none; margin-inline:auto; }
  #ecosystem .eco-node { min-height:44px; min-width:44px; font-size:13px; padding:4px; }
  #ecosystem .studio-audience { min-height:0; padding:20px; border-radius:18px; }
  #services.fixed-section .service-body { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
  #services.fixed-section .service-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:0 0 10px; margin:0; align-content:start; }
  #services.fixed-section .service-tabs .studio-node { min-height:44px; padding:9px 12px; font-size:13px; border-radius:12px; }
  #services.fixed-section .value-chain-chapter { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; min-height:0; gap:14px; }
  #services .value-chain-chapter .service-copy { grid-column:1; grid-row:1; }
  #services .service-copy h3 { font-size:clamp(24px,6.2vw,32px); max-width:none; line-height:1.12; margin:4px 0; }
  #services .value-chain-chapter .process-visual { display:block; grid-column:1; grid-row:2; }
  #services .process-board { border-radius:18px; padding:15px; gap:15px; min-height:0; }
  #services .process-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  #services .process-chip { min-height:64px; padding:18px 8px 9px; border-radius:10px; }
  #services .process-chip::before { top:9px; left:8px; width:20px; }
  #services .process-chip span { font-size:13px; line-height:1.3; max-width:none; overflow-wrap:anywhere; }
  #services .process-track { gap:4px; }
  #services .process-track .track-node { width:28px; height:28px; }
  #services .process-summary .process-note { min-height:0!important; }
  #services .process-note strong { font-size:14px!important; line-height:1.5!important; }
  #data-and-people.fixed-section .studio-scene { padding-block:36px 12px; }
  #data-and-people.fixed-section .dossier { grid-template-columns:minmax(0,1fr); gap:20px; }
  #data-and-people.fixed-section .data-copy { grid-column:1; grid-row:1; min-width:0; }
  #data-and-people.fixed-section .dossier-photo { grid-column:1; grid-row:2; }
  #data-and-people.fixed-section .dossier-details { grid-column:1; grid-row:3; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:16px 14px; margin:0; }
  #data-and-people.fixed-section .dossier-card { opacity:1; visibility:visible; transform:none; min-height:0; padding:12px 0 0; align-content:start; }
  #data-and-people.fixed-section .dossier-card strong { font-size:17px; line-height:1.2; }
  #data-and-people.fixed-section .dossier-card > span { font-size:14px; line-height:1.4; opacity:1; transform:none; }
  #data-and-people .dossier-image { aspect-ratio:1.9; }
  #purchasing .buy-heading,#purchasing .studio-buy-step { grid-template-columns:minmax(0,1fr); gap:16px; }
  #purchasing .buy-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:12px; }
  #purchasing .buy-visual { min-width:0; }
  #purchasing .buy-visual .portal-fragment { max-width:100%; }
  #compound .compound-frame { min-height:0; }
  #compound .compound-content { padding-block:40px 24px; grid-template-columns:minmax(0,1fr); gap:18px; }
  #compound .compound-content p:not(.label) { line-height:1.5; }
  #compound .compound-size { font-size:clamp(42px,12vw,58px); }
  #compound .photo-motion::after { background:linear-gradient(90deg,color-mix(in srgb,var(--core-navy) 82%,transparent),color-mix(in srgb,var(--core-navy) 66%,transparent)); }
  #coming .future-layout { padding-block:40px 20px; }
  #team { --edge:20px; }
  #team .team-wrap { padding-block:40px 10px; }
  #team .team-groups { gap:24px; }
  #team.fixed-section .department .dept-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; align-items:start; }
  #team .portrait-display { aspect-ratio:auto; min-height:0; display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
  #team .portrait-frame { position:relative; inset:auto; aspect-ratio:4/5; clip-path:none; border-radius:8px; }
  #team .portrait-trigger { position:absolute; inset:0 0 auto; height:auto; aspect-ratio:4/5; clip-path:none; }
  #team .portrait-trigger::after { content:'+'; position:absolute; bottom:8px; right:8px; width:36px; height:36px; display:grid; place-items:center; background:var(--core-navy); color:var(--white); border-radius:50%; font:500 23px/1 var(--ui); }
  #team .person.is-expanded .portrait-trigger::after { content:'−'; }
  #team .person.is-expanded { grid-column:1/-1; }
  #team .person.is-expanded .portrait-frame,#team .person.is-expanded .portrait-trigger { width:calc((100% - 12px)/2); }
  #team.fixed-section .inline-profile { display:none; position:relative; inset:auto; width:auto; max-height:none; overflow:visible; opacity:1; visibility:visible; transform:none; padding:18px; margin-top:12px; font:400 15px/1.55 var(--support-font); box-shadow:none; }
  #team.fixed-section .person.is-expanded .inline-profile { display:flex; }
  #team.fixed-section .profile-name { font:550 21px/1.2 var(--headline-font); }
  #team.fixed-section .profile-links a { overflow-wrap:anywhere; min-height:36px; display:flex; align-items:center; }
  #team .person-meta { padding-top:7px; }
  #team .person-meta h3 { font-size:16px; line-height:1.2; overflow-wrap:normal; }
  #team .person-meta p { font-size:13px; line-height:1.4; }
  #team .person.is-expanded .person-meta { display:none; }
  #join .join-inner { padding-block:44px 24px; }
  #join-title { font-size:clamp(26px,6.6vw,38px); }
  #join .approved-closing-mark { opacity:.28; }
  .footer nav a,.legal a { min-height:40px; display:inline-flex; align-items:center; }
  .footer nav { gap:4px 14px; }
  .approved-tide { display:none !important; } /* Lorela 01.12: no floating X shards on phones */
}
@media(max-width:360px) {
  :root { --edge:16px; }
  .header-join { font-size:12px; padding-inline:7px; }
  .header-inner .brand img { width:76px; }
  .header-actions { gap:4px; }
  .languages button { min-width:25px; }
  #services .process-grid { grid-template-columns:minmax(0,1fr); }
  #services .process-chip { min-height:0; padding:10px 10px 10px 32px; }
  #services .process-chip::before { width:12px; left:10px; top:50%; }
  #ecosystem .eco-node { font-size:12px; }
}
@keyframes mobile-card-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce) { .studio-story[data-mobile-story] .studio-slide[data-active] { animation:none; } }

@media (min-width:681px) and (max-width:1024px) and (pointer:coarse) {
  :root { --edge:32px; }
  .studio-story .studio-scene { padding-block:42px 16px; }
  .studio-company .company-chapter { grid-template-columns:minmax(0,1fr) minmax(0,.9fr); align-items:center; }
  #ecosystem.fixed-section .studio-exchange { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
  #ecosystem.fixed-section .studio-orbit { width:min(92%,310px); }
  #services.fixed-section .service-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #services.fixed-section .value-chain-chapter { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto; align-items:start; }
  #services .value-chain-chapter .process-visual { grid-column:2; grid-row:1; }
  #services .process-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #data-and-people.fixed-section .dossier { grid-template-columns:minmax(0,1fr) minmax(0,.8fr); align-items:start; }
  #data-and-people.fixed-section .dossier-photo { grid-column:2; grid-row:1; }
  #data-and-people.fixed-section .dossier-details { grid-column:1/-1; grid-row:2; grid-template-columns:repeat(4,minmax(0,1fr))!important; }
  #purchasing .studio-buy-step { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; }
  #team { --edge:32px; }
  #team.fixed-section .department .dept-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 16px; }
  #team .person.is-expanded .portrait-frame,#team .person.is-expanded .portrait-trigger { width:calc((100% - 32px)/3); }
}

/* R26.17: phone and touch-tablet interaction refinements only. */
.mobile-profile-close { display:none; }
@media (max-width:680px), (max-width:1024px) and (pointer:coarse) {
  :is(#company,#purchasing,#services) .studio-tabs .studio-node {
    display:flex; align-items:center; justify-content:center; text-align:center;
    border:1px solid var(--light-rule); border-radius:9px; background:var(--paper);
    color:var(--ink); padding:9px 8px; min-height:44px; box-shadow:none;
  }
  :is(#company,#purchasing,#services) .studio-tabs .studio-node[aria-current="true"] {
    background:var(--light-action); color:var(--white); border-color:var(--light-action);
  }
  #company .studio-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0;}
  #company.fixed-section .company-chapter {padding:clamp(16px,4.5vw,24px);border:1px solid var(--light-rule);border-radius:18px;background:var(--ice);gap:14px;}
  #company.fixed-section .company-chapter .company-diagram {padding:0;}
  #company .studio-flow {gap:8px;}
  #company .studio-flow li {background:var(--paper);box-shadow:none;min-height:44px;padding:10px 14px;}
  :is(#company,#ecosystem,#purchasing,#services)[data-mobile-story] .studio-slides {touch-action:pan-y pinch-zoom;}
  :is(#company,#ecosystem,#purchasing,#services)[data-mobile-story] .studio-slide[data-active] {animation:mobile-swipe-forward .24s ease-out both;}
  :is(#company,#ecosystem,#purchasing,#services)[data-mobile-story][data-reverse] .studio-slide[data-active] {animation:mobile-swipe-back .24s ease-out both;}
  #ecosystem .eco-node {padding:5px 10px;min-height:44px;background:var(--paper)!important;border:1px solid var(--light-rule)!important;border-radius:9px!important;color:var(--ink);font-size:12px;}
  #ecosystem .eco-node[aria-current="true"] {background:var(--light-action)!important;border-color:var(--light-action)!important;color:var(--white);}
  #ecosystem.fixed-section .studio-orbit {width:min(78%,290px);margin-block:12px 8px;}
  #ecosystem .studio-tags {display:flex;flex-wrap:wrap;align-items:flex-start;column-gap:9px;row-gap:5px;}
  #ecosystem .studio-tags li {display:inline-flex;align-items:center;white-space:nowrap;gap:6px;padding:0;font-size:12px;line-height:1.5;}
  #ecosystem .studio-tags li+li::before {align-self:center;}
  #services.fixed-section .service-tabs {gap:7px;padding:0;margin:0;}
  #services.fixed-section .value-chain-chapter {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:12px;padding:20px 17px;border:1px solid var(--light-rule);border-radius:18px;background:var(--ice);}
  #services .service-copy .service-overline,#services .service-copy .value-chain-category,#services .process-track {display:none;}
  #services .service-copy h3 {margin:0 0 8px;font-size:clamp(23px,5.8vw,30px);}
  #services .service-copy {padding:0;gap:5px;}
  #services .process-board {padding:12px 0 0;gap:10px;border:0;border-top:1px solid var(--light-rule);border-radius:0;background:none;box-shadow:none;}
  #services .process-board::before,#services .process-board::after {display:none;}
  #services .process-grid {display:flex;flex-wrap:wrap;gap:6px;}
  #services .process-chip {min-height:0;padding:6px 9px;background:var(--paper);border:1px solid var(--light-rule);border-radius:6px;box-shadow:none;display:block;}
  #services .process-chip::before {display:none;}
  #services .process-chip span {font-size:12px;line-height:1.35;}
  #services .process-summary {padding:0;}
  #services .process-note::before {display:none;}
  #services .process-note strong {font-size:14px!important;line-height:1.5!important;}
  #purchasing .buy-overline {display:none;}
  #purchasing .buy-tabs {gap:7px;margin-bottom:12px;}
  #purchasing .studio-buy-step {padding:16px;border:1px solid var(--light-rule);border-radius:18px;background:var(--ice);}
  #team .person.is-expanded {grid-column:auto;}
  #team .person.is-expanded .portrait-frame,#team .person.is-expanded .portrait-trigger {width:100%;}
  #team .person.is-expanded .person-meta {display:block;}
  #team .portrait-display::before {display:none;}
  #team.fixed-section .person .inline-profile {display:none;position:absolute;inset:auto;width:auto;margin:0;}
  #team.fixed-section .person.is-expanded .inline-profile {display:flex;position:absolute;inset:0 auto auto 0;width:min(calc(100vw - 32px),520px);max-height:calc(100dvh - var(--header-height) - 28px)!important;overflow-y:auto!important;overscroll-behavior:contain;box-shadow:0 16px 48px color-mix(in srgb,var(--core-navy) 32%,transparent);padding:20px;border:1px solid var(--light-rule);border-radius:17px;}
  #team.fixed-section .person .inline-profile[popover] {display:none;}
  #team.fixed-section .person.is-expanded .inline-profile:popover-open {display:flex;position:fixed;inset:calc(var(--header-height) + 10px) 0 10px;width:min(calc(100vw - 32px),520px);height:max-content;margin:auto;max-height:calc(100dvh - var(--header-height) - 28px)!important;}
  #team.fixed-section .inline-profile .profile-name {padding-right:36px;}
  #team .mobile-profile-close {display:grid;place-items:center;position:absolute;right:10px;top:10px;width:44px;height:44px;border:1px solid var(--light-rule);border-radius:50%;background:var(--paper);color:var(--ink);font:500 25px/1 var(--ui);cursor:pointer;margin:0;}
  #team .inline-profile::backdrop {background:color-mix(in srgb,var(--core-navy) 20%,transparent);}
}
@media(max-width:360px) {
  #company .studio-tabs .studio-node {font-size:12px;padding-inline:5px;}
  #ecosystem .eco-node {font-size:11px;padding-inline:7px;}
  #ecosystem .studio-tags li {font-size:11px;}
}
@keyframes mobile-swipe-forward {from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@keyframes mobile-swipe-back {from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){:is(#company,#ecosystem,#purchasing,#services)[data-mobile-story] .studio-slide[data-active]{animation:none!important;}}
@media (max-width:680px), (max-width:1024px) and (pointer:coarse) {
  /* Active-only wins over the chapter grid declarations above. */
  :is(#company,#ecosystem,#purchasing,#services).fixed-section[data-mobile-story] .studio-slide:not([data-active]) {display:none!important;}
  #company .studio-tabs {align-items:stretch;}
  #company .studio-tabs .studio-node {height:100%;}
  #ecosystem #suppliers .studio-tags li:nth-child(3) {flex-basis:100%;}
  #ecosystem #suppliers .studio-tags li:nth-child(3)::before {display:none;}
  #services .process-summary .process-note {text-align:left;justify-items:start;}
}
@media (max-width:680px), (max-width:1024px) and (pointer:coarse) {
  #team.fixed-section .person.is-expanded .inline-profile {overscroll-behavior:auto;}
  #team .inline-profile::backdrop {pointer-events:none;}
  #ecosystem .studio-tags li {max-width:100%;white-space:normal;overflow-wrap:anywhere;}
}
@media (max-width:680px), (max-width:1024px) and (pointer:coarse) {
  #ecosystem .studio-tags {display:grid;grid-template-columns:repeat(3,minmax(0,max-content));justify-content:start;align-items:start;gap:5px 7px;}
  #ecosystem .studio-tags li {min-width:0;align-items:flex-start;}
  #ecosystem .studio-tags li+li::before {align-self:flex-start;margin-top:.65em;}
  #ecosystem #suppliers .studio-tags {grid-template-columns:repeat(2,minmax(0,max-content));}
  #ecosystem #suppliers .studio-tags li:nth-child(3) {grid-column:1/-1;}
}
