/* One case-study language: open image stages followed by quiet white cards. */
@media screen{
  .unified-case{--case-ink:#252529;--case-muted:#737379;--case-radius:28px;color:var(--case-ink)}
  .app-surface .unified-case .native-nav{gap:26px;margin-bottom:34px}
  .app-surface .unified-case .native-nav a{font-size:13px;line-height:1.4}
  .app-surface .unified-case .native-deck{display:block;margin:0;padding:0}
  .app-surface .unified-case .case-hero{display:block;min-height:0;background:transparent;color:var(--case-ink);padding:20px 0 0;margin:0 0 58px;border:0;border-radius:0;clip-path:none;overflow:visible}
  .case-hero-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px 64px;align-items:start;margin-bottom:38px;padding:0 8px}
  .app-surface .unified-case .case-hero h2{font-size:clamp(40px,5vw,68px);font-weight:750;line-height:1.08;letter-spacing:-.055em;word-break:keep-all;margin:17px 0 0;color:var(--case-ink)}
  .app-surface .unified-case .case-hero .eyebrow{font-size:12px;letter-spacing:.06em;color:var(--case-muted)}
  .app-surface .unified-case .case-heading-description>p{font-size:16px;line-height:1.7;color:var(--case-muted);max-width:720px;word-break:keep-all;margin:0 0 14px}
  .app-surface .unified-case .case-hero .native-lead,.app-surface .unified-case .case-hero .kmet-lead{font-size:clamp(21px,2.3vw,29px);font-weight:550;line-height:1.4;letter-spacing:-.035em;color:var(--case-ink)}
  .app-surface .unified-case .case-hero .native-note{font-size:12px;color:#93939a}
  .app-surface .unified-case .case-hero :is(.project-facts,.kmet-facts){display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;margin:24px 0 0;padding:22px 0 0;border-top:1px solid #dedee4;font-size:12px;color:var(--case-ink)}
  .app-surface .unified-case .case-hero :is(.project-facts,.kmet-facts)>div{display:block;margin:0;min-width:0}
  .app-surface .unified-case .case-hero :is(.project-facts,.kmet-facts)>div:last-child{grid-column:1/-1}
  .app-surface .unified-case .case-hero dt{margin-bottom:4px;color:var(--case-muted);font-size:11px;letter-spacing:0}
  .app-surface .unified-case .case-hero dd{margin:0;font-size:12px;line-height:1.65;word-break:keep-all}
  .app-surface .unified-case .case-hero .native-bullets{font-size:14px;color:var(--case-muted);line-height:1.7;margin:18px 0;padding-left:18px}
  .app-surface .unified-case .case-hero .source-open{font-size:11px;margin-top:18px;color:var(--case-muted)}
  .app-surface .unified-case .case-hero .native-continue{font-size:13px;padding:16px 0 0}
  /* True full-width render field: neither a rounded card nor a clipped inset. */
  .app-surface .unified-case .case-hero-media{position:relative;width:100vw;max-width:none;margin:0 calc(50% - 50vw);background:transparent;border:0;border-radius:0;clip-path:none;overflow:hidden}
  .app-surface .unified-case .case-hero-media :is(figure,.native-visual,.native-image-item,.kmet-figure){display:block;max-width:none;min-width:0;width:100%;margin:0;padding:0;background:transparent;border:0;border-radius:0;clip-path:none!important}
  .app-surface .unified-case .case-hero-media button{display:block;width:100%;padding:0;border:0;line-height:0;background:transparent;border-radius:0!important;clip-path:none!important;cursor:zoom-in}
  .app-surface .unified-case .case-hero-media img{display:block;width:100%;height:clamp(360px,49vw,700px);max-height:none;object-fit:contain;padding:28px max(24px,calc((100vw - 1440px)/2));margin:0}
  .app-surface .unified-case .case-hero-media .kmet-expand{display:none}
  .app-surface .unified-case .case-section,.app-surface .unified-case .case-extra-views{display:block;min-height:0;margin:0 0 28px;padding:42px;background:#fff;color:var(--case-ink);border:0;border-radius:var(--case-radius);--smooth-radius:28px;overflow:hidden}
  .app-surface .unified-case .case-section-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px 46px;align-items:start;margin:0 0 30px}
  .app-surface .unified-case .case-section :is(h3,.native-copy h3){font-size:clamp(28px,3vw,42px);font-weight:750;line-height:1.25;letter-spacing:-.045em;color:var(--case-ink);margin:12px 0 0;word-break:keep-all}
  .app-surface .unified-case .case-section .eyebrow{font-size:12px;color:var(--case-muted);letter-spacing:.07em}
  .app-surface .unified-case .case-section .case-heading-description>p{font-size:16px;line-height:1.7}
  .app-surface .unified-case .case-section .native-bullets{font-size:14px;line-height:1.7;color:var(--case-muted);padding-left:18px;margin:15px 0}
  .app-surface .unified-case .case-section .native-note{font-size:12px;color:#94949a}
  .app-surface .unified-case .case-section .source-open{font-size:11px;color:#8a8a91;margin-top:12px}
  .app-surface .unified-case .case-section .native-visual{background:#f1f1f3;border-radius:20px;--smooth-radius:20px;padding:18px;min-width:0;width:100%;max-height:none}
  .app-surface .unified-case .case-section .native-visual>img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain}
  .app-surface .unified-case .case-section .native-visual button{background:transparent;border:0;padding:0;cursor:zoom-in}
  .app-surface .unified-case .case-section .native-visual button>img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}
  .app-surface .unified-case .case-section .native-image-grid{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}
  .app-surface .unified-case .case-section .native-image-grid.image-count-1{grid-template-columns:1fr}
  .app-surface .unified-case .case-section .native-image-grid .native-image-item{margin:0;min-width:0;grid-column:auto;grid-row:auto}
  .app-surface .unified-case .case-section .native-image-grid.image-count-3 .native-image-item:first-child{grid-column:1/-1}
  .app-surface .unified-case .case-section .native-image-grid .native-image-item img{height:clamp(220px,27vw,420px);object-fit:contain;width:100%;max-height:none}
  .app-surface .unified-case .case-section .native-folio{position:static;display:flex;justify-content:flex-end;margin-top:24px;font-size:10px;color:#aaaab0}
  .app-surface .unified-case .native-folio .folio-print-label{display:none}
  .app-surface .unified-case .native-keywords{gap:8px;margin:18px 0}
  .app-surface .unified-case .native-keywords span{font-size:12px;border:0;background:#f0f0f3;color:#737379;padding:7px 10px;border-radius:8px}
  .app-surface .unified-case .native-more{padding-top:16px;border-top:1px solid #e7e7ec;font-size:13px;color:#74747c;margin-top:20px}
  .app-surface .unified-case .native-more summary{cursor:pointer;min-height:40px}
  .app-surface .unified-case .native-more p{font-size:14px;line-height:1.7}
  .app-surface .unified-case .project-contact-sheet{padding:34px 0 0;margin-top:34px;border-color:#e2e2e8}
  .app-surface .unified-case .project-contact-sheet h3{font-size:22px;font-weight:700}
  .app-surface .unified-case .project-contact-sheet p{font-size:13px;color:var(--case-muted)}
  .app-surface .unified-case .case-extra-views{margin:28px 0 0}
  .app-surface .unified-case .case-extra-views .native-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;background:white}
  .app-surface .unified-case .case-extra-views .native-image-item{margin:0;grid-row:auto;grid-column:auto}
  .app-surface .unified-case .case-extra-views img{display:block;height:260px!important;max-height:none!important;width:100%;object-fit:contain}
  .app-surface .unified-case .case-extra-views button{border:0;background:transparent;width:100%;padding:0;cursor:zoom-in}
  .app-surface .unified-case .kmet-section-heading{margin-bottom:30px}
  .app-surface .unified-case .kmet-section-heading h3{margin-top:10px}
  .app-surface .main-preview-tabs{max-width:100%;width:fit-content}
  .app-surface .main-preview-tabs button{white-space:nowrap}
  .app-surface .hub-nav{max-width:100%;overflow-x:auto;scrollbar-width:thin}
  .app-surface .hub-nav a{flex:0 0 auto}
  .field-more{display:flex;justify-content:flex-end;gap:18px;align-items:center;min-height:48px;padding:0 6px;margin:-16px 0 24px;font-size:13px;color:#75757d}
  .app-surface .work-home .graphic-preview{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:44px;min-height:clamp(320px,43vw,600px);padding:52px;background:#e8e8ec;color:#35353b}
  .graphic-preview-type{font-size:clamp(36px,6vw,82px);line-height:1.07;font-weight:700;letter-spacing:-.055em}.graphic-preview-type>span{color:#8c8c96}
  .graphic-preview-caption{font-size:12px;color:#85858e;letter-spacing:.02em}
  .visualization-feature{margin-bottom:38px}
  .app-surface .visualization-feature img{height:260px;border-radius:16px;object-fit:contain}
}
@media screen and (max-width:1050px){
 .case-hero-heading{gap:28px 36px}.app-surface .unified-case .case-section,.app-surface .unified-case .case-extra-views{padding:30px}.app-surface .unified-case .case-section-heading{gap:22px 30px}
}
@media screen and (max-width:760px){
 .app-surface .unified-case .native-nav{gap:22px;margin-bottom:24px}.app-surface .unified-case .native-nav a{font-size:12px}
 .app-surface .unified-case .case-hero{padding-top:4px;margin-bottom:32px}
 .case-hero-heading{grid-template-columns:1fr;gap:22px;margin-bottom:28px;padding:0 4px}
 .app-surface .unified-case .case-hero h2{font-size:clamp(37px,8vw,48px);margin-top:12px}
 .app-surface .unified-case .case-hero .native-lead,.app-surface .unified-case .case-hero .kmet-lead{font-size:24px}
 .app-surface .unified-case .case-heading-description>p,.app-surface .unified-case .case-section .case-heading-description>p{font-size:15px}
 .app-surface .unified-case .case-hero-media img{height:clamp(300px,76vw,520px);padding:24px 16px}
 .app-surface .unified-case .case-section,.app-surface .unified-case .case-extra-views{padding:26px 22px;margin-bottom:22px;--smooth-radius:24px;border-radius:24px}
 .app-surface .unified-case .case-section-heading{grid-template-columns:1fr;gap:17px;margin-bottom:24px}
 .app-surface .unified-case .case-section h3{font-size:30px;margin-top:8px}
 .app-surface .unified-case .case-section .native-image-grid{grid-template-columns:1fr;gap:22px}
 .app-surface .unified-case .case-section .native-visual{padding:12px}
 .app-surface .unified-case .case-section .native-image-grid .native-image-item:first-child{grid-column:auto}
 .app-surface .unified-case .case-section .native-image-grid .native-image-item img{height:auto;max-height:470px}
 .app-surface .unified-case .case-extra-views .native-image-grid{grid-template-columns:1fr}
 .app-surface .unified-case .case-extra-views img{height:auto!important;max-height:360px!important}
 .field-more{font-size:12px;margin-top:-8px;padding-right:6px}
 .app-surface .work-home .graphic-preview{min-height:310px;padding:30px 26px}
 .graphic-preview-type{font-size:clamp(32px,8vw,54px)}.graphic-preview-caption{font-size:10px}
}
@media screen and (max-width:420px){
 .app-surface .main-preview-tabs{width:100%}.app-surface .main-preview-tabs button{padding:12px 10px;font-size:14px}
 .app-surface .hub-nav{gap:3px}.app-surface .hub-nav a{font-size:12px;padding-inline:11px}
}
@media(prefers-reduced-motion:reduce){.unified-case *{animation:none!important;transition:none!important}}
@media print{
 .field-more{display:none!important}.case-hero-heading{display:block!important}.case-hero-media{margin:0!important;width:auto!important;clip-path:none!important}.case-hero-media img{max-height:640pt!important;width:100%!important;object-fit:contain!important}.app-surface .unified-case .case-section-heading{display:block!important}.case-extra-views{display:none!important}
}

/* v82: one portfolio canvas and one native link for each representative work. */
@media screen {
 body.app-surface {background:var(--app-ground,#f5f5f7)}
 .app-surface .unified-case {background:transparent}
 .app-surface .unified-case :is(.case-section,.case-extra-views) {background:transparent;box-shadow:none}
 .app-surface .unified-case .case-section :is(.native-visual,.kmet-zoom),
 .app-surface .unified-case .case-extra-views .native-image-grid {background:transparent}
 .app-surface :is(.kmet-feature,.kmet-feature:hover) {background:transparent}

}
/* Restore the original Home grid while extending the native link hit area. */
@media screen {
 .app-surface .work-home .featured-stage {position:relative}
 .app-surface .work-home .featured-media {background:var(--app-ground,#f5f5f7)}
 .app-surface .work-home .featured-copy>a {position:static}
 .app-surface .work-home .featured-copy>a::after {content:"";position:absolute;inset:0;z-index:1}
 .app-surface .work-home .featured-tabs {position:relative;z-index:2}
 .app-surface .work-home .featured-tabs button::after {display:none}
 .app-surface .work-home .featured-stage:has(.featured-copy>a:focus-visible) {outline:2px solid #777780;outline-offset:-3px}
}

/* v83: a shared card component in every discipline hub. */
@media screen {
 .app-surface .collection-page .collection-heading {margin:0 0 42px;padding:12px 4px 0}
 .app-surface .collection-page .collection-section {margin:0 0 42px;padding:0;background:transparent}
 .app-surface .collection-page .collection-section-title {font-size:18px;font-weight:650;margin:0 4px 20px;letter-spacing:-.03em}
 .app-surface .collection-page .portfolio-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:24px;margin:0 0 24px}
 .app-surface .collection-page .portfolio-card {display:flex;flex-direction:column;gap:0;min-width:0;height:100%;padding:0;margin:0;background:var(--app-card);color:var(--app-ink);border:0;border-radius:24px;--smooth-radius:24px;overflow:hidden;box-shadow:none;text-decoration:none;transform:none}
 .app-surface .collection-page a.portfolio-card {transition:background .3s ease}
 .app-surface .collection-page a.portfolio-card:hover {background:#fdfdfd;transform:none}
 .app-surface .collection-page .portfolio-card .card-visual {display:block;flex:none;aspect-ratio:4/3;width:100%;height:auto;padding:0;margin:0;background:var(--app-ground);border:0;border-radius:0;overflow:hidden}
 .app-surface .collection-page .portfolio-card .card-visual img {display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;padding:0;filter:none}
 .app-surface .collection-page .portfolio-card-copy {display:flex;flex:1;flex-direction:column;padding:26px;min-width:0;min-height:190px;gap:0}
 .app-surface .collection-page .portfolio-card .card-meta {display:flex;justify-content:space-between;gap:12px;min-height:18px;margin:0 0 14px;font-size:11px;line-height:1.5;color:var(--app-muted);letter-spacing:0}
 .app-surface .collection-page .portfolio-card h2 {margin:0 0 12px;font-size:clamp(23px,2.1vw,29px);font-weight:650;line-height:1.25;letter-spacing:-.035em;word-break:keep-all}
 .app-surface .collection-page .portfolio-card p {margin:0;font-size:14px;line-height:1.65;color:var(--app-muted);word-break:keep-all}
 .app-surface .collection-page .portfolio-card-summary .portfolio-card-copy {min-height:190px}
 .app-surface .collection-page .summary-grid:last-child {margin-bottom:0}
}
@media screen and (max-width:760px) {
 .app-surface .collection-page .portfolio-grid {grid-template-columns:1fr;gap:20px;margin-bottom:20px}
 .app-surface .collection-page .portfolio-card-copy {padding:24px}
 .app-surface .collection-page .collection-heading {margin-bottom:32px}
 .app-surface .collection-page .collection-section {margin-bottom:34px}
}

/* v85: exposed representative imagery above a separate explanatory card. */
@media screen {
 .app-surface .work-home .main-preview-stage .featured-stage {display:flex;flex-direction:column;gap:24px;margin:0;padding:0;min-height:0;background:transparent;box-shadow:none;border:0;border-radius:0;clip-path:none!important;overflow:visible}
 .app-surface .work-home .featured-stage>.featured-media {display:flex;align-items:center;justify-content:center;width:100%;height:clamp(340px,40vw,560px);min-height:0;margin:0;padding:0;background:transparent;border:0;border-radius:0;overflow:visible;clip-path:none}
 .app-surface .work-home .featured-stage>.featured-media img {display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;filter:none}
 .app-surface .work-home .featured-info {position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.65fr);gap:32px;align-items:center;width:100%;min-height:200px;padding:30px 32px;background:var(--app-card,#fff);border-radius:24px;--smooth-radius:24px;overflow:hidden}
 .app-surface .work-home .featured-info .featured-copy {grid-column:auto;grid-row:auto;display:block;padding:0;margin:0;min-width:0}
 .app-surface .work-home .featured-info .featured-copy h2 {font-size:clamp(28px,3vw,40px);line-height:1.15;margin:12px 0 10px}
 .app-surface .work-home .featured-info .featured-copy p {font-size:15px;line-height:1.6;margin:0;color:var(--app-muted)}
 .app-surface .work-home .featured-info .featured-copy>a {display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;margin-top:14px;padding:0;border:0;font-size:12px}
 .app-surface .work-home .featured-info .featured-copy>a span {background:none;width:auto;height:auto;border:0;border-radius:0;box-shadow:none;font-size:21px}
 .app-surface .work-home .featured-info .featured-tabs {grid-column:auto;grid-row:auto;display:flex;flex-direction:column;gap:6px;align-self:center;margin:0;padding:0;border:0;min-width:0}
 .app-surface .work-home .featured-info .featured-tabs button {flex:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;margin:0;padding:10px 14px;border:0}
 .app-surface .work-home .preview-card .featured-info {grid-template-columns:1fr}
 .app-surface .work-home .featured-stage>.graphic-preview {flex-direction:column;justify-content:center;align-items:flex-start;gap:24px;padding:24px 4px;color:var(--app-ink)}
 .app-surface .work-home .graphic-preview-type {font-size:clamp(40px,6.5vw,88px);line-height:1.08}
 .app-surface .work-home .graphic-preview-caption {font-size:12px}
 .app-surface .work-home .field-more {margin:12px 0 24px;min-height:44px}
}
@media screen and (max-width:760px) {
 .app-surface .work-home .featured-stage>.featured-media {height:clamp(250px,66vw,420px)}
 .app-surface .work-home .main-preview-stage .featured-stage {gap:20px}
 .app-surface .work-home .featured-info {grid-template-columns:1fr;gap:20px;min-height:0;padding:24px;--smooth-radius:24px}
 .app-surface .work-home .featured-info .featured-tabs {flex-direction:row;flex-wrap:wrap;gap:6px}
 .app-surface .work-home .featured-info .featured-tabs button {flex:0 1 auto;min-width:0;min-height:44px;padding:10px 12px}
 .app-surface .work-home .featured-info .featured-tabs button span {font-size:12px;white-space:normal}
 .app-surface .work-home .featured-info .featured-copy h2 {font-size:29px}
 .app-surface .work-home .featured-info .featured-copy p {font-size:14px}
 .app-surface .work-home .featured-stage>.graphic-preview {padding:20px 4px}
}

/* v87: a permanent card surface; only media slides and card contents crossfade. */
@media screen {
 .app-surface .work-home .main-preview-stage {--preview-render-height:clamp(340px,40vw,560px);--preview-render-gap:24px;--preview-info-height:240px;isolation:isolate}
 .app-surface .work-home .preview-info-surface {position:absolute;z-index:0;pointer-events:none;left:0;right:0;top:calc(var(--preview-render-height) + var(--preview-render-gap));height:var(--preview-info-height);background:var(--app-card,#fff);border-radius:24px;--smooth-radius:24px}
 .app-surface .work-home .main-preview-panel {position:relative;z-index:1}
 .app-surface .work-home .featured-stage>.featured-media {height:var(--preview-render-height)}
 .app-surface .work-home .main-preview-stage .featured-stage {gap:var(--preview-render-gap)}
 .app-surface .work-home .featured-info {min-height:var(--preview-info-height);background:transparent;border-radius:0;clip-path:none!important}
 .app-surface .work-home .main-preview-stage.is-measuring .main-preview-panel {display:block!important;position:absolute!important;inset:0;visibility:hidden;pointer-events:none}
 .app-surface .work-home .main-preview-stage.is-measuring .featured-info {height:auto;min-height:0!important}
}
@media screen and (max-width:760px){
 .app-surface .work-home .main-preview-stage {--preview-render-height:clamp(250px,66vw,420px);--preview-render-gap:20px;--preview-info-height:330px}
}

/* v89: visible-object framing, a lower baseline and a stronger BMS presence. */
@media screen {
 .app-surface .work-home .main-preview-stage {--preview-render-height:clamp(380px,44vw,640px);--preview-render-gap:14px}
 .app-surface .work-home .featured-stage>.featured-media {align-items:flex-end;padding-bottom:2px;box-sizing:border-box}
 .app-surface .work-home .render-object {--render-fill:.94;--render-max-width:96%;position:relative;isolation:isolate;display:block;flex:none;width:min(var(--render-max-width),calc(var(--preview-render-height) * var(--render-fill) * var(--subject-aspect)));height:auto;aspect-ratio:var(--subject-aspect);margin:0}
 .app-surface .work-home .featured-media[href="#kmet-bms"] .render-object {--render-fill:.99;--render-max-width:100%}
 .app-surface .work-home .featured-media[href="#polestar-neue"] .render-object {--render-fill:.72;--render-max-width:88%}
 .app-surface .work-home .featured-stage>.featured-media .render-object>img {position:absolute;display:block;left:var(--image-left);top:var(--image-top);width:var(--image-width);height:var(--image-height);min-width:0;max-width:none;max-height:none;margin:0;padding:0;aspect-ratio:auto;object-fit:fill;pointer-events:none}
 .app-surface .work-home .render-object::after {content:"";position:absolute;z-index:-1;left:8%;right:8%;bottom:-8px;height:20px;pointer-events:none;opacity:var(--ground-opacity,0);background:radial-gradient(ellipse at center,#1d1d1f35 0%,#1d1d1f12 38%,transparent 72%);filter:blur(3px)}
}
@media screen and (max-width:760px) {
 .app-surface .work-home .main-preview-stage {--preview-render-height:clamp(300px,78vw,500px);--preview-render-gap:10px}
 .app-surface .work-home .featured-stage:has(.render-object)>.featured-media {width:calc(100% + 24px);margin-inline:-12px}
 .app-surface .work-home .featured-media[href="#polestar-neue"] .render-object {--render-max-width:96%;--render-fill:.72}
 .app-surface .work-home .render-object::after {height:15px;bottom:-6px}
}

/* v91: one continuous viewport boundary during and after render transitions. */
@media screen {
 .app-surface .work-home .main-preview-stage,
 .app-surface .work-home .main-preview-stage.is-switching {overflow:visible}
 .app-surface .work-home .main-preview-stage.is-switching .featured-media {will-change:transform}
}
