/* Shared navigation for the portfolio and its interactive release demo. */
.portfolio-bar {
  position: relative;
  z-index: 10;
  background: #101b28;
  color: #fff6ea;
  border-bottom: 1px solid #d7e4f237;
  font: 500 1rem/1.4 Geist, "Segoe UI", sans-serif;
}
.portfolio-bar-inner {
  width: min(1080px, calc(100% - 48px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.portfolio-brand, .portfolio-links, .portfolio-links a, .portfolio-links summary {
  display: flex;
  align-items: center;
}
.portfolio-bar a { color: inherit; text-decoration: none; }
.portfolio-brand { gap: 10px; font-weight: 650; letter-spacing: -.035em; }
.portfolio-brand img { border-radius: 7px; }
.portfolio-links { gap: 10px; }
.portfolio-links a, .portfolio-links summary, .portfolio-menu button {
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: .91rem;
}
.portfolio-links a:hover, .portfolio-links [aria-current="page"] { color: #f3bf91; }
.portfolio-menu { position: relative; }
.portfolio-menu summary { gap: 9px; cursor: pointer; border: 1px solid #ffffff40; border-radius: 24px; list-style: none; }
.portfolio-menu summary::-webkit-details-marker { display: none; }
.portfolio-menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.portfolio-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.portfolio-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 6px;
  border: 1px solid #ffffff36;
  border-radius: 12px;
  background: #142333;
  box-shadow: 0 14px 34px #01091777;
}
.portfolio-menu-list a, .portfolio-menu button { border-radius: 7px; }
.portfolio-menu-list a:hover, .portfolio-menu button:hover { background: #22374a; }
.portfolio-menu button { width: 100%; text-align: left; background: transparent; border: 0; color: inherit; cursor: pointer; }
.compact-link, .mobile-stage { display: none; }
.portfolio-role { margin: 0 0 15px; color: #ffcb9d; font: 600 .87rem/1.4 Geist, "Segoe UI", sans-serif; letter-spacing: .045em; }
.featured-work h2 { margin: 0; font-family: var(--display); font-weight: 600; line-height: .94; letter-spacing: -.05em; }
.featured-work p:not(.portfolio-role) { max-width: 37ch; color: #e4ebef; font-size: clamp(1rem, 1.5vw, 1.21rem); line-height: 1.55; }
.portfolio-button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 9px 19px; border-radius: 999px; background: #f3bf91; color: #20170f; font-weight: 600; font-size: .94rem; text-decoration: none; }
.portfolio-button:hover { background: #ffdab9; }
.featured-work { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding-block: clamp(48px, 7vw, 90px); }
.featured-work h2 { font-size: clamp(2.75rem, 5.2vw, 5rem); max-width: 14ch; }
.featured-work img { display: block; width: 100%; height: auto; border-radius: 15px; border: 1px solid #ffffff36; }
.featured-work .portfolio-button { margin-top: 6px; }
/* Keep the server-room view clear until the visitor opens navigation. */
.portfolio-release .portfolio-bar {
  position: fixed;
  inset: max(16px, env(safe-area-inset-top)) max(clamp(16px, 3vw, 42px), env(safe-area-inset-right)) auto auto;
  border: 0;
  background: transparent;
}
.portfolio-release .portfolio-menu summary {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #faf1df42;
  border-radius: 50%;
  background: #10212bde;
  color: #fff3df;
  box-shadow: 0 3px 14px #020c162e;
}
.portfolio-release .portfolio-menu summary::after { content: none; }
.menu-lines { position: relative; display: block; width: 18px; height: 12px; }
.menu-lines::before, .menu-lines::after {
  content: "";
  position: absolute;
  right: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-lines::before { top: 2px; }
.menu-lines::after { top: 8px; width: 13px; }
.portfolio-menu[open] .menu-lines::before { transform: translateY(3px) rotate(45deg); }
.portfolio-menu[open] .menu-lines::after { width: 18px; transform: translateY(-3px) rotate(-45deg); }
.portfolio-release .portfolio-menu summary:is(:hover, :focus-visible),
.portfolio-release .portfolio-menu[open] summary { background: #19303c; color: #ffd7ac; }
.portfolio-release .portfolio-menu-list {
  min-width: min(212px, calc(100vw - 44px));
  max-height: calc(100dvh - 96px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border-color: #ece4d833;
  border-radius: 16px;
  background: #10212bf5;
}
.portfolio-release .portfolio-menu-list a,
.portfolio-release .portfolio-menu-list button {
  min-height: 44px;
  padding-inline: 14px;
  font: 500 1rem/1.4 var(--ui);
  letter-spacing: .01em;
}
.portfolio-release .portfolio-menu-list button {
  border-top: 1px solid #f9e1c433;
  margin-top: 4px;
  border-radius: 0 0 8px 8px;
  color: #f1c89f;
}
@media (prefers-reduced-motion: no-preference) {
  .menu-lines::before, .menu-lines::after { transition: transform .16s ease, width .16s ease; }
  .portfolio-release .portfolio-menu[open] .portfolio-menu-list { animation: menu-appear .16s ease-out; }
  @keyframes menu-appear { from { opacity: 0; transform: translateY(-4px); } }
}
.portfolio-release .journey-chapter { scroll-margin-top: 0; }
.skip-link:focus { z-index: 12; }
@media (max-width: 720px) {
  .wide-link { display: none; }
  .compact-link { display: block; }
  .portfolio-bar-inner { width: calc(100% - 32px); min-height: 62px; gap: 4px; }
  .portfolio-brand { gap: 7px; }
  .portfolio-brand img { width: 29px; height: 29px; }
  .portfolio-links { gap: 2px; }
  .portfolio-links > a { padding-inline: 8px; }
  .featured-work { grid-template-columns: 1fr; gap: 25px; }
  .portfolio-release .journey-nav { display: none; }
  .portfolio-release .journey-chapter { padding-inline: 22px; }
  .mobile-stage { display: block; margin: 7px 0 0; color: #ffcb9d; font-weight: 600; font-size: .9rem; }
  .portfolio-release .release-stages { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .portfolio-button, .portfolio-links a { transition: background-color .16s ease, color .16s ease; }
}

.featured-work { width: 100%; margin: 0; padding-inline: max(6vw, calc((100% - 1080px)/2)); background: #101b28; }
.reading-feature :is(.journey-nav, .journey-next) { visibility: hidden; }
.project-jump { display: inline-flex; align-items: center; text-decoration: none; }
.entry-center .entry-profession { margin: 8px auto 20px; font: 500 1rem/1.4 var(--ui); letter-spacing: 0; color: #fff6ea; }

.portfolio-menu-list button:disabled { opacity: .65; cursor: default; background: transparent; }
