/* Root project index. Aurora rendering and the product-site styles stay intact. */
html.portfolio-document { overflow-x: hidden; overflow-y: auto; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.portfolio-page {
  --folio-ink: #f4f2f5;
  --folio-muted: #b7b2bf;
  --folio-dim: #96909f;
  --folio-line: rgba(244, 242, 245, .15);
  --folio-accent: #d6edc8;
  color: var(--folio-ink);
  /* The document owns scrolling; the body must not create a second viewport. */
  overflow: visible;
  min-height: 100vh;
  min-height: 100svh;
}

.portfolio-page .hub-aurora {
  /* Keep the background outside document flow, independently of shared styles. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.portfolio-page .hub-aurora canvas { display: block; width: 100%; height: 100%; }
/* Keep the same palette when a mobile browser cannot start WebGL2/import maps. */
.portfolio-page .hub-aurora:not([data-aurora-ready="true"]) { background: radial-gradient(ellipse at 0% 0%, rgba(124, 255, 103, .65), transparent 58%), radial-gradient(ellipse at 48% 0%, rgba(180, 151, 207, .72), transparent 65%), radial-gradient(ellipse at 100% 0%, rgba(82, 39, 255, .85), transparent 62%); }
.portfolio-page ::selection { background: #d6edc8; color: #17141b; }
.portfolio-page :where(a, button):focus-visible { outline: 2px solid var(--folio-accent); outline-offset: 6px; }
.portfolio-page button { font: inherit; }
.portfolio-page :where(h1, h2, h3, p) { margin: 0; }
.portfolio-page :where(section[id], main[id]) { scroll-margin-top: 130px; }
.portfolio-skip { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 18px; background: #f4f2f5; color: #17141b; border-radius: 8px; transform: translateY(-160%); }
.portfolio-skip:focus { transform: none; }

.portfolio-page .portal-nav { position: fixed; top: 24px; left: 0; right: 0; width: min(1280px, calc(100% - 64px)); padding: 0; margin-inline: auto; }
.portfolio-page .portal-nav.portal-reveal { opacity: 1; transform: none; }
.portfolio-page .portal-nav__shell.portal-glass {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 76px;
  padding: 13px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(18, 15, 22, .24);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background .3s ease, border-color .3s ease;
}
.portfolio-page .portal-nav.is-scrolled .portal-nav__shell { background: rgba(18, 15, 22, .8); border-color: rgba(255, 255, 255, .1); }
.portfolio-page .portal-brand__mark { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .25); box-shadow: none; font-size: .7rem; letter-spacing: -.06em; font-weight: 500; }
.portfolio-page .portal-brand { flex: 0 0 auto; min-width: 0; }
.portfolio-page .portal-brand__text { min-width: 0; }
.portfolio-page .portal-brand__text strong { font-size: 1.08rem; letter-spacing: -.04em; }
.portfolio-page .portal-brand__text small { margin-top: 1px; color: rgba(244, 242, 245, .6); font-size: .65rem; letter-spacing: .12em; }
.portfolio-page .portal-nav__toggle { display: none; flex: 0 0 44px; }
.portfolio-page .portal-nav__panel { display: flex; align-items: center; margin-left: auto; gap: 26px; }
.portfolio-page .portal-nav__links { display: flex; align-items: center; gap: 4px; }
.portfolio-page .portal-nav__links a { position: relative; white-space: nowrap; font-size: .92rem; font-weight: 500; padding: 9px 14px; color: rgba(244, 242, 245, .76); }
.portfolio-page .portal-nav__links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.portfolio-page .portfolio-nav-link[aria-current="location"] { background: rgba(255, 255, 255, .1); color: #fff; }
.portfolio-nav-status { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0 6px 26px; border-left: 1px solid var(--folio-line); font-size: .88rem; white-space: nowrap; color: rgba(244, 242, 245, .68); }
.portfolio-nav-status svg { transition: transform .25s ease; }
.portfolio-nav-status:hover { color: #fff; }
.portfolio-nav-status:hover svg { transform: translate(2px, -2px); }

.portfolio-main { position: relative; z-index: 1; width: min(1200px, calc(100% - 96px)); margin-inline: auto; padding-top: 144px; }
.portfolio-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; column-gap: 5%; min-height: min(730px, calc(100svh - 144px)); padding-top: 28px; }
.portfolio-hero-copy { position: relative; z-index: 2; padding-block: 40px 72px; }
.portfolio-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--folio-muted); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: .13em; line-height: 1.7; }
.portfolio-tiny-cross { font-family: var(--font-body); font-size: 1.2rem; color: var(--folio-accent); }
.portfolio-hero h1 { margin-top: 28px; font-size: clamp(3.75rem, 6.5vw, 6.1rem); font-weight: 570; line-height: 1.2; letter-spacing: -.075em; text-wrap: balance; }
.portfolio-hero h1 > span { color: rgba(244, 242, 245, .68); }
.portfolio-hero-lead { max-width: 350px; margin-top: 28px !important; color: var(--folio-muted); font-size: 1.04rem; line-height: 1.95; text-wrap: pretty; }
.portfolio-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 50px; min-height: 52px; margin-top: 36px; padding: 0 22px; background: #f4f2f5; color: #211d26; border-radius: 999px; font-size: 0.92rem; font-weight: 550; transition: background .25s ease, transform .25s ease; }
.portfolio-primary:hover { background: var(--folio-accent); transform: translateY(-2px); }
.portfolio-button-arrow { font-size: 1.2rem; transition: transform .25s ease; }
.portfolio-primary:hover .portfolio-button-arrow { transform: translate(3px, 3px); }
.portfolio-object { position: relative; width: 100%; max-width: 470px; justify-self: end; color: #efeaf9; perspective: 900px; }
/* A width-based spacer also works in mobile WebViews without aspect-ratio. */
.portfolio-object::before { content: ""; display: block; padding-top: 100%; }
.portfolio-object-axis { position: absolute; background: currentColor; opacity: .12; }
.portfolio-object-axis--x { height: 1px; width: 100%; top: 50%; }
.portfolio-object-axis--y { width: 1px; height: 100%; left: 50%; }
.portfolio-orbit { position: absolute; inset: 0; transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); transition: transform .45s var(--ease-out); }
.portfolio-orbit-drawing { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.portfolio-orbit-rings { transform-origin: 220px 220px; animation: portfolio-orbit-turn 65s linear infinite; }
.portfolio-paused .portfolio-orbit-rings { animation-play-state: paused; }
.portfolio-object-label { position: absolute; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .15em; color: var(--folio-muted); background: rgba(18, 15, 22, .3); padding-inline: 8px; }
.portfolio-object-label--top { top: 7%; left: 15%; }
.portfolio-object-label--bottom { right: 6%; bottom: 9%; }
.portfolio-object-note { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; color: var(--folio-dim); font-size: 0.8rem; letter-spacing: .18em; }
.portfolio-hero-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; align-self: end; padding-block: 24px; margin-top: 40px; border-block: 1px solid var(--folio-line); font-family: var(--font-mono); color: var(--folio-muted); font-size: 0.77rem; }
.portfolio-hero-foot > span:first-child { font-family: var(--font-body); font-size: 1rem; letter-spacing: -.025em; }
.portfolio-hero-foot > a { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 0.82rem; }
.portfolio-index-count { color: var(--folio-ink); font-family: var(--font-mono); }
.portfolio-hero-coordinate { font-size: 0.72rem; letter-spacing: .05em; }

.portfolio-projects { padding-top: 100px; }
.portfolio-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.portfolio-section-head h2 { margin-top: 16px; font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -.06em; }
.portfolio-heading-dot { color: var(--folio-accent); }
.portfolio-section-head > p { color: var(--folio-muted); font-size: 0.88rem; line-height: 1.9; }
.portfolio-project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; margin-bottom: 24px; }
.portfolio-filters { display: none; align-items: center; gap: 6px; flex-wrap: wrap; }
.portfolio-enhanced .portfolio-filters { display: flex; }
.portfolio-filter { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--folio-muted); cursor: pointer; font-size: 0.84rem !important; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.portfolio-filter > span { font-family: var(--font-mono); font-size: 0.72rem; opacity: .65; }
.portfolio-filter:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.portfolio-filter.is-active { color: var(--folio-ink); border-color: rgba(255, 255, 255, .17); background: rgba(255, 255, 255, .055); }
.portfolio-index-label { color: var(--folio-dim); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .1em; white-space: nowrap; }
.portfolio-project-list { display: grid; gap: 28px; }
.portfolio-project { display: grid; grid-template-columns: 1.18fr 1fr; overflow: hidden; min-width: 0; border: 1px solid var(--folio-line); border-radius: 22px; background: rgba(20, 17, 25, .67); }
.portfolio-project[hidden], .portfolio-filter-empty[hidden] { display: none !important; }
.portfolio-project-visual { position: relative; display: grid; align-items: center; justify-items: center; min-width: 0; min-height: 380px; overflow: hidden; border-right: 1px solid var(--folio-line); background-color: rgba(176, 194, 231, .035); perspective: 1000px; isolation: isolate; }
.portfolio-project-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(168, 200, 251, .1), transparent 65%); opacity: .5; transition: opacity .4s ease; }
.portfolio-project-visual:hover::before { opacity: 1; }
.portfolio-visual-corners { position: absolute; inset: 18px; border: 1px solid rgba(244, 242, 245, .08); border-radius: 11px; pointer-events: none; }
.portfolio-visual-index { position: absolute; top: 36px; left: 38px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .12em; color: var(--folio-dim); }
.portfolio-visual-caption { position: absolute; left: 38px; bottom: 34px; color: var(--folio-muted); font-size: 0.72rem; letter-spacing: .04em; }
.portfolio-visual-open { position: absolute; display: grid; place-items: center; right: 32px; bottom: 26px; width: 38px; height: 38px; border: 1px solid rgba(244, 242, 245, .14); border-radius: 50%; color: var(--folio-ink); font-size: 1.1rem; transition: background .3s ease, color .3s ease, transform .3s ease; }
.portfolio-project-visual:hover .portfolio-visual-open { background: var(--folio-ink); color: #19161e; transform: rotate(45deg); }
.portfolio-app-window { width: min(390px, 78%); margin-block: 28px; border: 1px solid rgba(179, 202, 239, .23); border-radius: 11px; background: #191b24; box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 0 0 5px rgba(255, 255, 255, .015); transform: rotateX(calc(5deg + var(--tilt-y, 0deg))) rotateY(calc(-9deg + var(--tilt-x, 0deg))) rotateZ(-2deg); transition: transform .5s var(--ease-out), box-shadow .5s ease; }
.portfolio-project-visual:hover .portfolio-app-window { box-shadow: 0 28px 70px rgba(0, 0, 0, .4), 0 0 0 5px rgba(255, 255, 255, .02); }
.portfolio-app-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding-inline: 12px; border-bottom: 1px solid rgba(255, 255, 255, .075); color: #a2a6b6; font-family: var(--font-mono); font-size: .48rem; }
.portfolio-app-dots { display: flex; gap: 4px; }
.portfolio-app-dots i { width: 4px; height: 4px; border-radius: 50%; background: #656a7d; }
.portfolio-app-dots i:first-child { background: #a1a6b6; }
.portfolio-app-content { display: grid; grid-template-columns: 49px minmax(0, 1fr); min-height: 232px; }
.portfolio-app-rail { display: flex; flex-direction: column; align-items: center; gap: 13px; padding-block: 15px; border-right: 1px solid rgba(255, 255, 255, .06); color: #6b7388; font-size: 1rem; }
.portfolio-app-rail img { margin-bottom: 5px; object-fit: contain; }
.portfolio-app-rail .is-selected { color: #bdd4fb; }
.portfolio-app-canvas { display: flex; flex-direction: column; align-items: center; padding: 18px 10px 20px; }
.portfolio-app-caption { color: #767f94; font-family: var(--font-mono); font-size: .4rem; letter-spacing: .03em; }
.portfolio-device-art { position: relative; display: grid; place-items: center; width: 156px; height: 162px; margin-block: 10px; color: #acc7ef; }
.portfolio-device-art svg { position: relative; width: 80px; height: 130px; }
.portfolio-device-orbit { position: absolute; width: 156px; height: 156px; border: 1px solid rgba(172, 199, 239, .1); border-radius: 50%; }
.portfolio-device-orbit::before { content: ""; position: absolute; inset: 20px; border: 1px dashed rgba(172, 199, 239, .1); border-radius: 50%; }
.portfolio-app-tools { display: flex; justify-content: center; gap: 12px; color: #8996b0; font-family: var(--font-mono); font-size: .41rem; letter-spacing: .08em; }
.portfolio-generic-mark { position: relative; display: grid; place-items: center; width: 200px; height: 200px; color: #d8dbed; }
.portfolio-generic-mark > span { font-size: 7rem; font-weight: 250; }
.portfolio-generic-mark > i { position: absolute; inset: 0; border: 1px solid rgba(244, 242, 245, .2); border-radius: 40%; transform: rotate(28deg); }
.portfolio-project-cover { display: block; width: 78%; max-height: 280px; object-fit: contain; border-radius: 9px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.portfolio-project-copy { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 42px clamp(24px, 3.5vw, 50px); }
.portfolio-project-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; color: var(--folio-dim); font-size: 0.74rem; }
.portfolio-project-status { display: inline-flex; align-items: center; gap: 7px; }
.portfolio-project-status i { width: 4px; height: 4px; border-radius: 50%; background: var(--folio-accent); }
.portfolio-project-copy h3 { margin-top: 28px; font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1.15; font-weight: 480; letter-spacing: -.06em; }
.portfolio-project-tagline { margin-top: 12px !important; font-size: 1rem; font-weight: 450; }
.portfolio-project-description { margin-top: 18px !important; max-width: 360px; color: var(--folio-muted); font-size: 0.89rem; line-height: 1.95; text-wrap: pretty; }
.portfolio-project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 28px; padding: 0; list-style: none; }
.portfolio-project-tags li { color: var(--folio-dim); padding: 4px 9px; border: 1px solid rgba(244, 242, 245, .1); border-radius: 5px; font-size: 0.72rem; }
.portfolio-project-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; padding-bottom: 8px; margin-top: auto; border-bottom: 1px solid rgba(244, 242, 245, .35); font-size: 0.87rem; }
.portfolio-project-link > span:last-child { transition: transform .25s ease; }
.portfolio-project-link:hover { color: var(--folio-accent); border-color: var(--folio-accent); }
.portfolio-project-link:hover > span:last-child { transform: translate(3px, -3px); }
.portfolio-filter-empty { padding: 66px 28px; border: 1px dashed var(--folio-line); border-radius: 20px; text-align: center; background: rgba(18, 15, 22, .45); }
.portfolio-filter-empty > span { color: var(--folio-dim); font-size: 2rem; }
.portfolio-filter-empty h3 { margin-top: 12px; font-weight: 450; font-size: 1.3rem; }
.portfolio-filter-empty p { margin-top: 12px; color: var(--folio-muted); font-size: 0.92rem; }
.portfolio-filter-empty button { padding: 10px 0; margin-top: 18px; background: none; border: 0; border-bottom: 1px solid var(--folio-line); color: var(--folio-ink); cursor: pointer; font-size: 0.9rem; }
.portfolio-filter-announcement { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.portfolio-no-projects { padding: 50px 0; color: var(--folio-muted); }
.portfolio-next { display: flex; align-items: center; gap: 22px; padding: 36px 4px 0; }
.portfolio-next-symbol { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 1px dashed rgba(244, 242, 245, .24); border-radius: 50%; color: var(--folio-dim); font-size: 1.2rem; font-weight: 300; }
.portfolio-next h3 { color: var(--folio-muted); font-size: 0.9rem; font-weight: 450; }
.portfolio-next p { margin-top: 4px; color: var(--folio-dim); font-size: 0.79rem; }
.portfolio-next-note { margin-left: auto; color: var(--folio-dim); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .09em; }
.portfolio-about { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; padding-block: 110px; margin-top: 100px; border-top: 1px solid var(--folio-line); }
.portfolio-about h2 { margin-top: 24px; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.55; font-weight: 450; letter-spacing: -.06em; }
.portfolio-about h2 span { color: var(--folio-muted); }
.portfolio-about-copy { padding-top: 5px; }
.portfolio-about-copy > p { color: var(--folio-muted); font-size: 0.95rem; line-height: 2.1; text-wrap: pretty; }
.portfolio-about-copy > p + p { margin-top: 22px; }
.portfolio-principles { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--folio-line); }
.portfolio-principles > span { color: var(--folio-ink); font-size: 0.76rem; }
.portfolio-principles i { margin-right: 6px; color: var(--folio-dim); font-family: var(--font-mono); font-size: 0.72rem; font-style: normal; }
.portfolio-footer { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-block: 40px 36px; border-top: 1px solid var(--folio-line); }
.portfolio-footer-wordmark { display: inline-flex; gap: 28px; align-items: center; color: var(--folio-ink); font-size: 1.7rem; font-weight: 450; letter-spacing: -.065em; }
.portfolio-footer-wordmark > span { color: var(--folio-dim); font-size: 1.2rem; }
.portfolio-footer p { margin-top: 8px; color: var(--folio-dim); font-size: 0.78rem; }
.portfolio-footer-end { display: flex; gap: 34px; color: var(--folio-dim); font-size: 0.75rem; }
.portfolio-footer-end a:hover { color: var(--folio-ink); }

/* Content stays visible even if scripts or IntersectionObserver fail. */
.portfolio-page [data-portfolio-reveal] { opacity: 1; transform: none; }
@keyframes portfolio-orbit-turn { to { transform: rotate(360deg); } }

@media (min-width: 901px) {
  .portfolio-hero-copy { transition-delay: .04s; }
  .portfolio-page .portal-nav__links { flex-wrap: nowrap; }
}
@media (max-width: 1050px) {
  .portfolio-main { width: calc(100% - 72px); }
  .portfolio-hero-coordinate, .portfolio-index-label { display: none; }
  .portfolio-hero { column-gap: 1%; }
  .portfolio-object-label { font-size: 0.72rem; }
  .portfolio-project-copy { padding: 32px 26px; }
  .portfolio-project-visual { min-height: 360px; }
  .portfolio-project-copy h3 { margin-top: 24px; }
  .portfolio-app-bar { font-size: .4rem; }
  .portfolio-app-caption { font-size: .35rem; }
  .portfolio-app-window { width: 80%; }
  .portfolio-next-note { display: none; }
}
@media (max-width: 900px) {
  .portfolio-page .portal-nav__toggle { display: block; margin-left: auto; }
  .portfolio-page .portal-nav__panel { position: absolute; display: grid; align-items: stretch; top: calc(100% + 10px); left: 0; right: 0; width: auto; margin: 0; padding: 14px; gap: 10px; border-radius: 16px; background: rgba(18, 15, 22, .97); border: 1px solid var(--folio-line); max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); overflow: auto; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
  .portfolio-page .portal-nav__panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .portfolio-page .portal-nav__links { flex-direction: column; align-items: stretch; width: 100%; gap: 8px; }
  .portfolio-page .portal-nav__links a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 12px 16px; font-size: .95rem; }
  .portfolio-nav-status { min-height: 46px; justify-content: space-between; padding: 12px 16px; border-left: 0; border-top: 1px solid var(--folio-line); font-size: .92rem; }
  .portfolio-hero { min-height: 580px; }
  .portfolio-object { max-width: 340px; }
  .portfolio-project { grid-template-columns: 1fr 1fr; }
  .portfolio-about { gap: 8%; }
}
@media (max-width: 700px) {
  .portfolio-page :where(section[id], main[id]) { scroll-margin-top: 112px; }
  .portfolio-page .portal-nav { top: 16px; width: calc(100% - 32px); }
  .portfolio-page .portal-nav__shell.portal-glass { min-height: 64px; padding: 9px 12px 9px 16px; border-radius: 15px; }
  .portfolio-page .portal-brand__text small { font-size: .59rem; letter-spacing: .07em; }
  .portfolio-page .portal-brand__mark { width: 34px; height: 34px; border-radius: 9px; }
  .portfolio-main { width: calc(100% - 40px); padding-top: 112px; }
  .portfolio-hero { position: relative; min-height: 0; display: block; padding-top: 0; }
  .portfolio-hero-copy { padding-block: 40px 50px; }
  .portfolio-eyebrow { font-size: 0.72rem; letter-spacing: .08em; }
  .portfolio-hero h1 { margin-top: 26px; font-size: clamp(3.2rem, 12.5vw, 5.5rem); letter-spacing: -.065em; line-height: 1.25; }
  .portfolio-hero-lead { max-width: 310px; margin-top: 24px !important; font-size: 0.97rem; }
  .portfolio-primary { margin-top: 28px; min-height: 48px; padding-inline: 20px; gap: 42px; }
  .portfolio-object { width: min(74%, 310px); margin: -24px 0 28px auto; opacity: .7; }
  .portfolio-object-note { bottom: -9px; font-size: 0.72rem; }
  .portfolio-object-label { font-size: 0.72rem; }
  .portfolio-hero-foot { margin-top: 26px; padding-block: 20px; gap: 12px; }
  .portfolio-hero-foot > span:first-child { font-size: 0.87rem; }
  .portfolio-hero-foot > a { gap: 6px; font-size: 0.75rem; }
  .portfolio-projects { padding-top: 68px; }
  .portfolio-section-head { margin-bottom: 26px; gap: 16px; }
  .portfolio-section-head h2 { margin-top: 12px; font-size: 2.5rem; }
  .portfolio-section-head > p { font-size: 0.74rem; }
  .portfolio-project-toolbar { margin-bottom: 20px; }
  .portfolio-filters { gap: 2px; }
  .portfolio-filter { min-height: 42px; padding: 10px 12px; gap: 6px; font-size: 0.79rem !important; }
  .portfolio-filter > span { font-size: 0.72rem; }
  .portfolio-project { grid-template-columns: 1fr; border-radius: 17px; }
  .portfolio-project-visual { min-height: 320px; border-right: 0; border-bottom: 1px solid var(--folio-line); }
  .portfolio-app-window { width: min(350px, 77%); }
  .portfolio-app-caption { font-size: .4rem; }
  .portfolio-visual-index { top: 30px; left: 28px; font-size: 0.72rem; }
  .portfolio-visual-caption { left: 28px; bottom: 26px; font-size: 0.72rem; }
  .portfolio-visual-open { right: 26px; bottom: 18px; width: 34px; height: 34px; }
  .portfolio-visual-corners { inset: 13px; }
  .portfolio-project-copy { padding: 28px; }
  .portfolio-project-copy h3 { font-size: 2.6rem; }
  .portfolio-project-tagline { font-size: 1.05rem; }
  .portfolio-project-description { font-size: 0.91rem; }
  .portfolio-project-tags { margin-block: 18px 26px; }
  .portfolio-next { gap: 15px; padding-top: 26px; }
  .portfolio-next h3 { font-size: 0.85rem; }
  .portfolio-next p { font-size: 0.73rem; line-height: 1.7; }
  .portfolio-next-symbol { width: 36px; height: 36px; }
  .portfolio-about { grid-template-columns: 1fr; padding-block: 64px; margin-top: 66px; gap: 30px; }
  .portfolio-about h2 { margin-top: 18px; font-size: 2.35rem; line-height: 1.45; }
  .portfolio-about-copy > p { font-size: 0.92rem; }
  .portfolio-principles { gap: 20px; }
  .portfolio-footer { align-items: start; flex-direction: column; gap: 28px; padding-block: 32px; }
  .portfolio-footer-end { width: 100%; justify-content: space-between; }
}
@media (max-width: 360px) {
  .portfolio-main { width: calc(100% - 32px); }
  .portfolio-hero h1 { font-size: 2.9rem; }
  .portfolio-section-head > p { font-size: 0.72rem; }
  .portfolio-filter { padding-inline: 9px; }
  .portfolio-project-copy { padding: 24px; }
}
@media (hover: none), (pointer: coarse) {
  .portfolio-app-window { transform: rotate(-2deg); }
  .portfolio-project-visual::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-page *, .portfolio-page *::before, .portfolio-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .portfolio-orbit, .portfolio-app-window { transform: none; }
}
