@media screen {
  html[data-appearance-family="portfolio"] {
    color-scheme: light;
    --pf-background: light-dark(#f5f5f7, #080e19);
    --pf-surface: light-dark(#fff, #141e30);
    --pf-raised: light-dark(#e9eef5, #1d293c);
    --pf-ink: light-dark(#141d2d, #f5f7fc);
    --pf-muted: light-dark(#46556a, #b8c7db);
    --pf-line: light-dark(#cbd3dd, #48586d);
    --pf-accent: light-dark(#005bb5, #9cc9ff);
    --pf-fog: light-dark(#f8fafdf2, #142034f2);
    --pf-action: #205bb1;
    --pf-gutter: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
    --pf-width: min(1180px, calc(100% - 2 * var(--pf-gutter)));
    --pf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --pf-radius: 18px;
  }
  html[data-appearance-family="portfolio"][data-theme="dark"] { color-scheme: dark }
  @media (prefers-color-scheme: dark) {
    html[data-appearance-family="portfolio"]:not([data-theme]) { color-scheme: dark }
  }

  .pf-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    white-space: nowrap; clip-path: inset(50%);
  }
  body :is(.pf-header,.pf-footer,.pf-page) { font-family: var(--pf-font) }
  .pf-header {
    position: relative; z-index: 5; display: flex; align-items: center;
    justify-content: space-between; gap: clamp(6px, 1.4vw, 20px);
    inline-size: var(--pf-width); min-block-size: 64px; margin: auto;
    padding-block: max(8px, env(safe-area-inset-top)) 8px;
    color: var(--pf-ink);
  }
  .pf-header svg, .pf-actions svg, .pf-tile svg, .pf-local-nav svg, .pf-workflow svg, .pf-detail-badge svg, .pf-detail-back svg {
    flex: none; display: block; inline-size: 21px; block-size: 21px;
  }
  .pf-header :is(a,summary), .pf-footer a {
    text-decoration: none; color: inherit; min-height: 44px;
  }
  .pf-header :is(a,summary,select):focus-visible,
  .pf-footer a:focus-visible, .pf-page :is(a,summary,button,input):focus-visible {
    outline: 3px solid var(--pf-accent); outline-offset: 3px;
  }
  .pf-brand {
    display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap;
    font-size: clamp(1.02rem, 2vw, 1.5rem); font-weight: 720; letter-spacing: -.055em;
  }
  .pf-header .pf-brand svg { inline-size: 33px; block-size: 33px }
  .pf-header .pf-primary {
    display: flex; align-items: center; justify-content: space-between; gap: 2px; flex-wrap: nowrap;
    border: 1px solid var(--pf-line); padding: 2px; border-radius: 999px;
    background: var(--pf-fog); color: var(--pf-ink);
  }
  .pf-primary a {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    padding: 0 clamp(.55rem, 1.25vw, 1.1rem); border-radius: 999px; font-size: .89rem;
  }
  .pf-primary a:is(:hover,[aria-current]), .pf-menu a:is(:hover,[aria-current]) {
    background: var(--pf-raised); color: var(--pf-accent);
  }
  .pf-primary a:first-child span { position: absolute; clip-path: inset(50%) }
  .pf-appearance {
    display: grid; align-items: center; justify-content: center; position: relative;
    border-radius: 999px; border: 1px solid var(--pf-line); background: var(--pf-fog);
    color: var(--pf-ink); inline-size: 48px; min-block-size: 44px; margin-inline-start: auto;
  }
  .pf-appearance[hidden], .pf-mode { display: none }
  [data-theme-preference="system"] .pf-mode-system,
  [data-theme-preference="light"] .pf-mode-light,
  [data-theme-preference="dark"] .pf-mode-dark { display: block }
  .pf-appearance select {
    position: absolute; inset: 0; opacity: 0; inline-size: 100%; cursor: pointer;
  }
  .pf-appearance:focus-within { outline: 3px solid var(--pf-accent); outline-offset: 3px }
  .pf-menu { position: relative }
  .pf-menu summary {
    display: grid; align-items: center; justify-content: center; inline-size: 44px;
    cursor: pointer; list-style: none; border: 1px solid var(--pf-line);
    border-radius: 999px; background: var(--pf-fog); color: var(--pf-ink);
  }
  .pf-menu summary::-webkit-details-marker { display: none }
  .pf-header .pf-menu nav {
    display: grid; position: absolute; top: calc(100% + .6rem); right: 0;
    width: min(370px, calc(100vw - 2 * var(--pf-gutter)));
    max-height: min(75vh, 580px); overflow: auto; grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 2px 8px; padding: .65rem; border: 1px solid var(--pf-line);
    border-radius: 16px; background: var(--pf-surface); color: var(--pf-ink);
    box-shadow: 0 16px 36px #0005;
  }
  .pf-menu:not([open]) > nav { display: none }
  .pf-menu nav a { display: flex; align-items: center; padding: .25rem .65rem; border-radius: 8px; font-size: .93rem }
  .pf-menu .site-settings { grid-column: 1 / -1; min-height: 44px; color: var(--pf-ink); background: var(--pf-raised); border-color: var(--pf-line) }
  .pf-footer {
    inline-size: var(--pf-width); margin: clamp(2rem,5vw,4rem) auto 0; padding-block: 1.25rem 2rem;
    display: flex; align-items: flex-start; gap: .55rem 1.5rem; flex-wrap: wrap;
    color: var(--pf-muted); border-top: 1px solid var(--pf-line); font-size: .88rem;
  }
  .pf-footer strong, .pf-footer a { display: inline-flex; align-items: center; min-height: 44px }
  .pf-footer nav { display: flex; flex-wrap: wrap; gap: 0 1rem }
  .pf-footer a:hover { text-decoration: underline }

  .pf-page {
    --paper: var(--pf-background); --ink: var(--pf-ink); --muted: var(--pf-muted);
    --surface: var(--pf-surface); --line: var(--pf-line); --accent: var(--pf-accent);
    --action: var(--pf-action); --action-ink: white; --navy: #152848; --ivory: white;
    position: relative; margin: 0; background: var(--paper); color: var(--ink);
    font: 16px/1.58 var(--pf-font);
  }
  .pf-page main { inline-size: var(--pf-width); margin-inline: auto }
  .pf-page h1, .pf-page h2, .pf-page h3 { font-family: var(--pf-font); font-weight: 700 }
  .pf-page .skip { z-index: 12; color: var(--pf-ink) }
  .pf-page .skip:focus { left: var(--pf-gutter) }
  .pf-page .page-head { padding: clamp(1.75rem, 5vw, 4rem) 0 .9rem }
  .pf-page .page-head h1 { margin: .16em 0; font-size: clamp(2.1rem, 6vw, 4.35rem) }
  @media (max-width: 480px) {
    .pf-program-page .page-head h1 { font-size: clamp(1.4rem, 6.4vw, 2rem); }
  }
  .pf-page .page-head .lede { max-width: 54ch; margin: .6em 0; font-size: clamp(1rem, 2vw, 1.25rem) }
  .pf-page .item {
    margin-block: .65rem; border: 1px solid var(--pf-line); border-radius: 12px;
    background: var(--pf-surface); padding: clamp(1rem,3vw,1.5rem);
    grid-template-columns: minmax(8rem,.75fr) minmax(0,2fr); gap: .45rem 1.5rem;
  }
  .pf-page .item h3, .pf-page .item h2 { font-size: clamp(1.15rem,2.2vw,1.6rem) }
  .pf-page .item a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600 }
  .pf-page .developer-hero { background: var(--pf-surface); border-color: var(--pf-line) }
  .pf-page .presets a:not([aria-current]) { background: var(--pf-surface); color: var(--pf-ink); border-color: var(--pf-line); }
  .pf-page .presets a[aria-current] { background: var(--pf-action); color: white; border-color: var(--pf-action); }
  .pf-page .plot, .pf-page .feature .plot { background: #12223a; border-color: #597ca4 }

  .pf-home { --pf-width: min(1180px, calc(100% - 2 * var(--pf-gutter))); }
  .pf-home .pf-header { color: #f5f7fc; }
  .pf-home .pf-header :is(.pf-primary,.pf-appearance,.pf-menu summary) {
    background: #162238e8; border-color: #95a7c480; color: #f5f7fc;
  }
  .pf-home .pf-header .pf-primary a:is(:hover,[aria-current]) { background: #31445f; color: #d3eaff }
  .pf-home .pf-header :is(a,summary,select):focus-visible, .pf-home .pf-appearance:focus-within,
  .pf-home-hero :is(a,summary):focus-visible { outline-color: #a8d5ff; }

  .pf-home .pf-home-hero { isolation: isolate; padding-block: 0 clamp(1.4rem, 3.5vw, 2.7rem); color: #f5f7fc; }
  .pf-home-hero::before, .pf-observatory, .pf-home-hero::after {
    position: absolute; inset: 0 0 auto; width: 100%; height: var(--pf-scene, clamp(550px,40vw,680px)); pointer-events: none;
  }
  .pf-home-hero::before { content: ""; z-index: -3; background: #0a1425; }
  .pf-observatory { z-index: -2; object-fit: cover; object-position: center 54%; }
  .pf-home-hero::after {
    z-index: -1; content: "";
    background: linear-gradient(180deg,#07101b33,transparent 23%,transparent 66%,var(--pf-background)),
      linear-gradient(90deg,transparent 28%,#07101b42 45%,#07101b5c 66%,transparent 85%);
  }
  .pf-home-heading {
    display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr);
    align-items: center; min-height: clamp(265px,19vw,320px);
  }
  .pf-portrait-area { position: relative; min-block-size: 100%; }
  .pf-portrait {
    position: absolute; left: 68%; bottom: -104px; transform: translateX(-50%);
    width: clamp(230px, 24vw, 380px); height: auto;
    clip-path: polygon(0 54%,3% 51%,11% 47%,15% 44%,20% 43%,23% 44%,25% 43%,25% 39%,24% 35%,22% 35%,20% 30%,19% 27%,20% 23%,22% 20%,22% 15%,23% 12%,25% 9%,29% 7%,34% 6%,38% 5%,44% 5%,49% 6%,53% 8%,55% 11%,55% 16%,56% 19%,55% 22%,55% 28%,54% 31%,53% 34%,50% 37%,48% 39%,46% 42%,45% 46%,49% 47%,52% 50%,58% 51%,64% 52%,69% 56%,71% 61%,73% 68%,76% 74%,80% 80%,84% 87%,88% 94%,91% 100%,0 100%);
    mask-image: linear-gradient(#000 68%,transparent 92%);
  }
  .pf-home-copy {
    padding-block: clamp(1rem, 2vw, 2rem); padding-inline: .25rem;
    text-shadow: 0 1px 10px #03080f;
  }
  .pf-home-copy h1 {
    margin: 0; color: #f5f7fc; text-wrap: initial;
    font-size: clamp(2.65rem, 4.05vw, 4.2rem); letter-spacing: -.065em; line-height: 1.05;
  }
  .pf-home-copy h1 span { color: inherit }
  .pf-home-copy .pf-role {
    margin: .12em 0 .46em; max-width: none; color: #b6d6ff;
    font-size: clamp(1.3rem, 2.35vw, 2rem); font-weight: 620; line-height: 1.2; letter-spacing: -.04em;
  }
  .pf-home-copy .pf-bio { max-width: 40ch; margin: 0; color: #f1f5fc; font-size: clamp(.98rem, 1.44vw, 1.19rem); line-height: 1.38 }
  .pf-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
  .pf-actions .pf-action {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px;
    padding: .52rem 1rem; border: 1px solid #9bb1d0; border-radius: 13px;
    background: #22334d; color: #fff; text-decoration: none;
    font-weight: 650; line-height: 1.2; text-shadow: none;
  }
  .pf-actions .pf-action-primary { background: linear-gradient(#316ec0,#20519e); border-color: #8dbefe }
  .pf-actions .pf-action:hover { background: #37629c }
  .pf-feature-strip {
    position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.55rem,1.2vw,1rem);
    list-style: none; margin: 0; padding: 0;
  }
  .pf-tile {
    position: relative; display: grid; isolation: isolate; align-content: end; row-gap: .38rem;
    min-height: clamp(165px,13vw,192px); padding: .85rem 2rem .85rem .9rem;
    background: #131f32; border: 1px solid #8194b3; border-radius: 17px; overflow: hidden;
    text-decoration: none; color: #fbfcff;
  }
  .pf-tile img, .pf-tile::after {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  .pf-tile img { z-index: -2; object-position: 50% 42% }
  .pf-tile::after { content: ""; z-index: -1; background: linear-gradient(180deg,#121b2b08 12%,#101b2f50 37%,#101b2fe8 68%,#101b2f 100%) }
  .pf-tile:hover { border-color: #b5d5ff }
  .pf-tile:hover strong { text-decoration: underline }
  .pf-tile-icon, .pf-detail-badge {
    display: grid; align-items: center; justify-content: center; width: 42px; height: 42px;
    border: 1px solid #9ebbe99c; border-radius: 11px; background: #28446c; color: #fff;
  }
  .pf-tile-merit { background: #39375e } .pf-tile-research { background: #163b5c }
  .pf-tile-developer { background: #25354e } .pf-tile-studio { background: #513447 }
  .pf-tile-copy { display: grid; gap: .14rem; line-height: 1.2 }
  .pf-tile-copy strong { font-size: clamp(1rem,1.55vw,1.3rem); letter-spacing: -.03em }
  .pf-tile-copy > span { font-size: .88rem; color: #dee7f6 }
  .pf-tile-next { position: absolute; right: .45rem; bottom: .9rem }
  .pf-home .showcase { padding-top: clamp(1.3rem,4vw,3rem); margin-top: 0; border-top: 0 }
  .pf-home .openlab-showcase { background: var(--pf-surface); color: var(--pf-ink); }
  .pf-home .openlab-showcase :is(.kicker,.showcase-copy p,.showcase-disclosure) { color: var(--pf-muted); }
  .pf-home .openlab-showcase :is(.showcase-links a,.broadcast-wave) { color: var(--pf-accent); }
  .pf-home .feature, .pf-page .developer-card {
    background: var(--pf-surface); border-color: var(--pf-line);
  }

  .pf-page .pf-detail-banner {
    position: relative; isolation: isolate; padding: clamp(1.15rem,4vw,3rem);
    margin: clamp(.6rem,2vw,1.5rem) 0 1rem; border-radius: var(--pf-radius);
    background: #111f36; color: #f5f7fc; overflow: hidden; border: 1px solid #7183a3;
  }
  .pf-detail-banner > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    object-position: right 43%; z-index: -2;
  }
  .pf-detail-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0c1830 15%,#0c1830f2 36%,#0c18307d 78%,#0c183045) }
  .pf-detail-emblem {
    position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: min(29%, 270px);
    color: #abc5ff; opacity: .88; pointer-events: none;
  }
  .pf-detail-emblem svg { width: 100%; height: auto; stroke-width: .7px; }
  .pf-detail-merit { background: radial-gradient(ellipse at 83% 56%,#343779,#111f36 55%); }
  .pf-detail-merit::after { display: none; }
  .pf-page .pf-detail-banner h1 { font-size: clamp(2rem,6vw,4rem); margin: .24em 0 .13em; color: #fff }
  .pf-page .pf-detail-banner p { max-width: 48ch; margin-block: .35rem 0; color: #e1eafb }
  .pf-page .pf-detail-banner .kicker { color: #b9d7fd; }
  .pf-page .pf-detail-back { display: inline-flex; gap: .38rem; align-items: center; min-height: 44px; color: #d8e8ff; }
  .pf-local-nav { display: flex; gap: .5rem; margin: .6rem 0 1.1rem; }
  .pf-local-nav a {
    display: inline-flex; gap: .4rem; align-items: center; border: 1px solid var(--pf-line); border-radius: 10px;
    background: var(--pf-raised); color: var(--pf-ink); min-height: 44px; padding: .35rem .9rem; text-decoration: none; font-weight: 600;
  }
  .pf-local-nav a:hover { color: var(--pf-accent); text-decoration: underline }
  .pf-workflow {
    --pf-raised: #dce6f5; --pf-muted: #3d4e67; --pf-accent: #245ca4;
    border: 1px solid #9eb1d0; border-radius: var(--pf-radius);
    background: #eef3fb; color: #162138; padding: clamp(1rem,3vw,2rem);
  }
  .pf-learning-panel {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: .6rem 1.5rem;
    background: #eef3fb; color: #162138; border: 1px solid #9eb1d0;
    border-radius: var(--pf-radius); padding: clamp(1rem,3vw,2rem); margin: 0 0 1.1rem;
  }
  .pf-learning-panel h2, .pf-studio-notes h2 { margin: .15em 0 .35em; font-size: clamp(1.3rem,3vw,2.1rem); }
  .pf-learning-panel p, .pf-studio-notes p { margin: 0; }
  .pf-learning-panel ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; margin: 0; list-style: none; gap: .5rem; }
  .pf-learning-panel a {
    display: grid; align-content: start; min-height: 100%; padding: .65rem .8rem; border-radius: 10px;
    color: #173f74; background: #dce6f5; text-decoration: none;
  }
  .pf-learning-panel a:is(:hover,:focus-visible) strong { text-decoration: underline; }
  .pf-learning-panel a span { color: #3d4e67; font-size: .87rem; line-height: 1.32; }
  .pf-studio-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .pf-studio-notes article { padding: 1rem; border-radius: 12px; border: 1px solid var(--pf-line); background: var(--pf-surface); }
  .pf-studio-notes nav { grid-column: 1/-1; }
  .pf-workflow h2 { margin: 0 0 .65em; font-size: clamp(1.38rem,3vw,2.2rem); }
  .pf-workflow ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0 }
  .pf-workflow li { display: grid; gap: .4rem; padding: .8rem; background: var(--pf-raised); border-radius: 10px; line-height: 1.3; }
  .pf-workflow svg { color: var(--pf-accent) }
  .pf-workflow ol span, .pf-workflow > p { color: var(--pf-muted); font-size: .87rem }
  .pf-page .pf-programs .item { grid-template-columns: 1fr; gap: .12rem; }
  .pf-page .pf-programs .item p { margin: .35rem 0; }
  .pf-page .pf-programs a { color: var(--pf-accent); }

  @media (min-width: 680px) and (max-width: 1000px) {
    .pf-home-heading { grid-template-columns: minmax(0,.78fr) minmax(0,1fr) }
    .pf-feature-strip { grid-template-columns: repeat(2,minmax(0,1fr)) }
    .pf-home { --pf-scene: 650px }
  }
  @media (max-width: 900px) {
    .pf-primary a { white-space: nowrap; }
    .pf-primary a { gap: 5px; padding-inline: .55rem }
    .pf-header .pf-primary svg { width: 18px; height: 18px }
  }
  @media (min-width: 761px) and (max-width: 900px) {
    .pf-primary a span { position: absolute; clip-path: inset(50%); }
  }
  @media (max-width: 760px) {
    .pf-header .pf-primary {
      position: fixed; inset: auto env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px);
      z-index: 6; border-radius: 0; border-width: 1px 0 0; justify-content: space-around;
      padding: 2px 0 max(2px, env(safe-area-inset-bottom));
    }
    .pf-primary a { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; padding: 2px 1px; border-radius: 6px; font-size: .65rem; }
    .pf-primary a:first-child span { position: static; clip-path: none; }
    .pf-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
    .pf-page .item { grid-template-columns: 1fr }
  }
  @media (max-width: 679px) {
    .pf-home { --pf-scene: 430px; }
    .pf-home .pf-header { min-height: 58px; }
    .pf-home-heading { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }
    .pf-observatory { object-position: 31% 50%; }
    @media (min-width: 761px) and (max-width: 1000px) {
    html[data-appearance-family="portfolio"] .lab-body .lab-secondary {
      grid-template-columns: minmax(0, .8fr) minmax(0,1.5fr); gap: clamp(1rem,3vw,2rem);
    }
    html[data-appearance-family="portfolio"] .lab-body .lab-systems {
      grid-template-columns: minmax(0,1fr);
    }
    html[data-appearance-family="portfolio"] .lab-body .lab-system-grid { min-width: 0; }
  }
  .pf-home-hero::after { background: linear-gradient(180deg,#09152835,#0c17264d 30%,#0a1425 57%,var(--pf-background)); }
    .pf-portrait-area { min-height: clamp(145px,39vw,220px); overflow: hidden; mask-image: linear-gradient(#000 82%,transparent); }
    .pf-portrait { left: 55%; width: clamp(170px,48vw,230px); bottom: -80px; }
    .pf-home-copy { padding: .22rem .12rem 1rem; }
    .pf-home-copy h1 { font-size: clamp(1.78rem,8vw,2.7rem); }
    .pf-home-copy .pf-role { font-size: clamp(1.01rem,4.2vw,1.34rem); margin-bottom: .6rem; color: #d3e6ff; }
    .pf-home-copy .pf-bio { color: #f5f7fc; font-size: .95rem; }
    .pf-home-copy .pf-actions { display: grid; gap: .45rem; margin-top: .85rem; }
    .pf-feature-strip { grid-template-columns: minmax(0,1fr); gap: .45rem; }
    .pf-tile {
      grid-template-columns: auto minmax(0,1fr) auto; align-items: center; column-gap: .65rem; row-gap: 0;
      padding: .54rem .65rem; min-height: 62px;
      color: var(--pf-ink); background: var(--pf-surface); border-color: var(--pf-line); border-radius: 12px;
    }
    .pf-tile img, .pf-tile::after { display: none; }
    .pf-tile-next { position: static; }
    .pf-tile-icon { width: 33px; height: 33px; border-radius: 8px; }
    .pf-tile-copy > span { color: var(--pf-muted); font-size: .8rem; }
    .pf-tile svg { width: 17px; height: 17px; }
    .pf-page .pf-detail-banner { padding: 0 1rem 1.1rem; }
    .pf-page .pf-detail-merit { padding-top: .5rem; padding-right: 24%; }
    .pf-detail-emblem { top: 41%; right: 4%; width: 27%; }
    .pf-local-nav.pf-destination-nav { display: grid; gap: .45rem; }
    .pf-destination-nav a { justify-content: space-between; }
    .pf-detail-banner > img { position: relative; display: block; height: clamp(110px,32vw,175px); margin-inline: -1rem; width: calc(100% + 2rem); z-index: -1; }
    .pf-detail-banner::after { background: linear-gradient(180deg,transparent 12%,#0c1830 64%); }
    .pf-learning-panel, .pf-studio-notes { grid-template-columns: 1fr; }
    .pf-workflow ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  }
  @media (prefers-reduced-motion: no-preference) {
    .pf-header a, .pf-action, .pf-tile { transition: background-color .18s, color .18s, border-color .18s; }
  }
  @media (forced-colors: active) {
    .pf-portrait, .pf-observatory, .pf-tile img, .pf-tile::after, .pf-home-hero::after { display: none; }
    .pf-tile, .pf-action, .pf-appearance { border: 1px solid ButtonText; }
    .pf-header [aria-current] { outline: 1px solid Highlight; }
  }
}
@media print {
  .pf-header, .pf-footer, .pf-skip { display: none !important; }
}
@media screen {
  html[data-appearance-family="portfolio"] { scroll-padding: 1rem 0 calc(3.8rem + env(safe-area-inset-bottom)); }
  html[data-appearance-family="portfolio"] .pf-creator {
    --pc-paper: var(--pf-background); --pc-ink: var(--pf-ink); --pc-muted: var(--pf-muted);
    --pc-line: var(--pf-line); --pc-panel: var(--pf-raised); --pc-card: var(--pf-surface);
    --pc-blue: var(--pf-accent); --pc-blue-on: var(--pf-background); font-family: var(--pf-font);
  }
  .pf-creator .pc-wrap { width: var(--pf-width); }
  .pf-creator .pc-resume { max-width: 960px; }
  .pf-creator .pc-resume h1 { font-size: clamp(2rem,5.5vw,3.8rem); line-height: 1.04; }
  .pf-creator .pc-resume-hero p { max-width: 66ch; }
  .pf-creator .pc-resume-contact { overflow-wrap: anywhere; }
  .pf-creator .pc-button-primary { color: #fff; background: var(--pf-action); border-color: var(--pf-action); }
  .pf-creator .pc-jump a { background: var(--pf-surface); border-color: var(--pf-line); }
  .pf-creator .pc-hero h1, .pf-creator .pc-setup-hero h1, .pf-creator .pc-episode-detail h1 {
    font-size: clamp(2.1rem,5vw,4.6rem);
  }
  .pf-creator :is(.pc-about-hero h1,.pc-lesson-hero h1) {
    font: 700 clamp(2.25rem,6vw,4.75rem)/1.04 var(--pf-font);
  }
  .pf-creator :is(.pc-about-lede,.pc-lesson-deck) {
    font: 500 clamp(1.07rem,2.1vw,1.45rem)/1.48 var(--pf-font);
  }
  .pf-creator :is(.pc-about-grid,.pc-about-principles,.pc-about-contact,.pc-lesson-reading) h2 {
    font-family: var(--pf-font);
  }
  .pf-creator .pc-live {
    --live-paper: #f5f7fc; --live-muted: #c5d2e5; --live-brass: #a9c5ed;
    background: #0b1525;
  }
  .pf-creator .pc-live::before {
    background: radial-gradient(ellipse at 82% 0%,#71605859,transparent 52%),
      radial-gradient(ellipse at 12% 45%,#234d8277,transparent 60%);
  }
  .pf-creator .pc-live-intro h1 { font: 700 clamp(2.4rem,6vw,5rem)/1.04 var(--pf-font); }
  .pf-creator .pc-live-intro h1 em { color: #b7d0f5; font-style: normal; }
  .pf-creator .pc-live-stage {
    background: radial-gradient(ellipse at 75% 100%,#463a6c70,transparent 58%),linear-gradient(145deg,#142843,#0a1423 70%);
    border-color: #8197bb;
  }
  .pf-creator .pc-live-atmosphere span { background: #4777b8; }
  .pf-creator .pc-live-atmosphere span:nth-child(2) { background: #856291; }
  .pf-creator .pc-live-stage-footer { background: #182840; color: #d3e0f1; }
  .pf-creator :is(.pc-live-offline,.pc-live-below-heading,.pc-live-library) h2,
  .pf-creator .pc-live-tiles h3 { font-family: var(--pf-font); }
  .pf-creator .pc-live-link-primary { background: #205bb1; border-color: #8dbefe; color: #fff; }
  .pf-creator .pc-live-link-primary span { color: #e7f1ff; }
  .pf-creator .pc-live-link-primary:hover { background: #194784; color: #fff; }
  .pf-creator .pc-hero-art { padding: clamp(1rem,4vw,2.75rem); }
  .pf-creator .pc-hero-art img { max-height: 360px; object-fit: contain; }
  html[data-appearance-family="portfolio"] .lab-body {
    --ink: var(--pf-ink); --paper: var(--pf-background); --muted: var(--pf-muted);
    --line: var(--pf-line); --blue: var(--pf-accent); --accent-solid: var(--pf-action);
    font-family: var(--pf-font);
  }
  html[data-appearance-family="portfolio"] .lab-body .lab-section-intro h1,
  html[data-appearance-family="portfolio"] .lab-body .lab-study h2 {
    font-family: var(--pf-font); letter-spacing: -.045em;
  }
  html[data-appearance-family="portfolio"] .lab-body .lab-systems .lab-section-intro h1 {
    font-size: clamp(1.9rem,4.6vw,4.3rem); line-height: 1.04; text-wrap: balance;
  }
  html[data-appearance-family="portfolio"] .lab-body .lab-systems .lab-section-intro h1 em {
    white-space: normal; overflow-wrap: anywhere;
  }
  html[data-appearance-family="portfolio"] .lab-body .lab-study {
    background: var(--pf-surface); border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius); padding: clamp(1rem,2.5vw,1.75rem);
  }
  @media (min-width: 761px) and (max-width: 1000px) {
    html[data-appearance-family="portfolio"] .lab-body .lab-secondary {
      grid-template-columns: minmax(0, .8fr) minmax(0,1.5fr); gap: clamp(1rem,3vw,2rem);
    }
    html[data-appearance-family="portfolio"] .lab-body .lab-systems {
      grid-template-columns: minmax(0,1fr);
    }
    html[data-appearance-family="portfolio"] .lab-body .lab-system-grid { min-width: 0; }
  }
  .pf-home-hero::after { background: linear-gradient(180deg,#07101b33,transparent 23%,transparent 55%,#0a1425 84%,var(--pf-background)),
    linear-gradient(90deg,transparent 28%,#07101b42 45%,#07101b5c 66%,transparent 85%); }
  @media (max-width: 679px) {
    @media (min-width: 761px) and (max-width: 1000px) {
    html[data-appearance-family="portfolio"] .lab-body .lab-secondary {
      grid-template-columns: minmax(0, .8fr) minmax(0,1.5fr); gap: clamp(1rem,3vw,2rem);
    }
    html[data-appearance-family="portfolio"] .lab-body .lab-systems {
      grid-template-columns: minmax(0,1fr);
    }
    html[data-appearance-family="portfolio"] .lab-body .lab-system-grid { min-width: 0; }
  }
  .pf-home-hero::after { background: linear-gradient(180deg,#09152830,#0c17264d 28%,#0a1425 55%); }
    .pf-home.pf-page { --pf-scene: 500px; }
    .pf-home .pf-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
    .pf-creator .pc-hero-art { grid-row: 1; }
    .pf-creator .pc-hero-art img { max-height: 200px; }
    .pf-creator .pc-resume-hero { padding: 1.1rem; }
    .pf-creator .pc-resume-jump { display: grid; grid-template-columns: minmax(0,1fr); }
    .pf-creator .pc-resume-jump a { width: 100%; justify-content: flex-start; border-radius: 9px; }
    .pf-creator .pc-resume-jump a::after { content: ""; width: 6px; height: 6px; margin-left: auto; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
    .pf-creator .pc-resume-portrait { display: none; }
  }
}
