/* Navigation glass is confined to small overlays. All reading surfaces are opaque. */
:root {
  --smoke: #192d32;
  --smoke-edge: #809a97;
  --paper: #ffebcb;
  --surface: #152426;
  --muted-ink: #c0cec8;
  --ui-type: Geist, "Segoe UI", system-ui, sans-serif;
  --heading-type: "Cormorant Garamond", Georgia, serif;
}
.portfolio-release .portfolio-menu summary, .portfolio-menu-list,
.entry-links .entry-read, .journey-entry .entry-contact,
.footer nav a, .journey-footer nav a, .room-actions :is(a,button),
.drawer-links .copy-project, .drawer-links a:not(.launch-demo),
.room-about > summary, .bank-nav :is(a,button,select) {
  background: var(--smoke); color: #eaf6ee; border: 1px solid var(--smoke-edge);
  box-shadow: inset 0 1px #ffffff15;
}
.entry-links .entry-read[href="/projects/"] { background: var(--smoke); color: #eaf6ee; }
.entry-center form button, .drawer-links a.launch-demo, .card .actions a:first-child, .contact-form button[type=submit] {
  color: #21251f; background: var(--paper); border: 1px solid #fff1d9; box-shadow: inset 0 1px #fff8;
}
.drawer-links a.launch-demo, .card .actions a:first-child { border-radius: 999px; }
:is(.footer nav,.journey-footer nav,.entry-links,.room-actions,.drawer-links,.bank-tabs,.actions) :is(a,button):hover {
  color: #142520; background: #e5f2e9; border-color: #fff;
}
:is(.entry-center,.room-actions,.bank-nav,.drawer-links,.footer nav,.journey-footer nav,.actions,.finder-head,#project-finder,.portfolio-menu-list,.contact-actions,.contact-form) :is(a,button,summary):active {
  box-shadow: inset 0 2px 4px #06121366;
  transform: translateY(1px);
}
:is(a,button,summary,input,select,textarea):focus-visible { outline: 3px solid #ffd39c; outline-offset: 3px; }
.footer, .journey-footer { border-top: 1px solid #77928a55; }
.footer nav, .journey-footer nav { gap: .45rem; }
.footer nav a, .journey-footer nav a { padding-inline: .85rem; }
.room-about { flex-basis: 100%; }
.room-about > summary { color: #c2d8ca; background: #142225; border-color: #526b64; }

.room-actions, .drawer-links, .finder-head, .service-example { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.room-actions :is(a,button), .drawer-links button, #project-finder button, #library-empty button {
  display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
  min-height:44px; padding:.55rem .95rem; border:1px solid var(--smoke-edge); border-radius:999px;
  color:#eff8ef; background:var(--smoke); font:600 .86rem/1.25 var(--ui-type); text-decoration:none; cursor:pointer;
}
.room-actions { justify-content:flex-end; flex-shrink:0; }
.rack-workspace:has(.has-scene) { grid-template-rows:auto minmax(0,1fr); }
.has-scene, .has-scene + .bank-nav { grid-area:2/1; }
.has-scene + .bank-nav {
  z-index:2; align-self:end; justify-self:center; width:max-content; max-width:calc(100% - 24px);
  margin-bottom:max(10px,env(safe-area-inset-bottom)); gap:.55rem; border:1px solid var(--smoke-edge);
  padding:6px; border-radius:999px; background:var(--smoke);
  box-shadow:inset 0 1px #fff2,0 5px 18px #0005;
}
.bank-nav button { width:44px; height:44px; padding:0; }
.bank-nav select { display:none; }
.bank-tabs a { padding-inline:.85rem; }
.bank-tabs a[aria-current="true"] { background:#bbe2cd; color:#13261d; border-color:#dff9e7; }
.has-scene .rack-drawer[open] summary { box-shadow:0 7px 8px -2px #020a0dd9; }
.rack-cabinet .detail-kind, .project-sheet .sheet-bank { color:var(--rack-accent); }
.project-sheet[open] {
  display:flex; flex-direction:column; padding:0; overflow:hidden; background:transparent;
  border:1px solid #68817c; border-top:3px solid var(--rack-accent); border-radius:15px 0 0 15px;
}
.project-sheet form { flex:none; position:static; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 20px; background:var(--smoke); border-bottom:1px solid #617872; }
.sheet-bank, .detail-kind, .tech { font:600 .79rem/1.45 var(--ui-type); letter-spacing:.025em; }
.project-sheet .drawer-interior { display:flex; flex-direction:column; flex:1; min-height:0; padding:0; background:var(--surface); }
.rack-drawer > .drawer-interior { border-top:2px solid var(--rack-accent); }
.project-sheet .detail-body { overflow-y:auto; overscroll-behavior:contain; padding:clamp(20px,3vw,32px); flex:1; }
.project-sheet .detail-kind { display:none; }
.drawer-interior .detail-image { background:#0f1b1e; border-color:#3d524e; }
.drawer-foot { background:#18292b; }
.project-sheet .drawer-foot { padding:16px clamp(20px,3vw,32px) max(18px,env(safe-area-inset-bottom)); border-top:1px solid #49605c; }
.drawer-foot .demo-task { margin:0 0 12px; line-height:1.45; color:#e8efe8; }
.drawer-foot .drawer-links { margin:0; gap:8px; }
.share-url { box-sizing:border-box; width:100%; margin-top:.5rem; padding:.55rem; color:#132122; background:white; }
.drawer-foot [role=status] { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
#project-finder {
  box-sizing:border-box; width:min(32rem,calc(100% - 24px)); max-height:80dvh;
  padding:clamp(16px,3vw,28px); border-radius:18px; border:1px solid #75908a;
  background:#17272b; color:#eaf3e9; box-shadow:0 16px 65px #0007;
}
#project-finder::backdrop { background:#061216b8; }
.finder-head { justify-content:space-between; margin-bottom:16px; }
.finder-head h2 { margin:0; font:500 2.2rem/1.1 var(--heading-type); }
#project-finder .finder-head button { width:44px;font-size:1.3rem; }
#project-finder label { display:block; color:#d0dfd7; }
#rack-query { box-sizing:border-box; width:100%; display:block; min-height:44px; margin-top:5px; padding:8px 12px; background:#0d1a1c; color:#fff; border:1px solid #829992; border-radius:7px; font:inherit; }
#finder-count { font-size:.85rem; margin:12px 0; color:#c4d4cb; }
#finder-results { padding:0; margin:0; list-style:none; max-height:43dvh; overflow:auto; }
#finder-results a { display:flex; min-height:44px; gap:8px; align-items:center; justify-content:space-between; padding:6px 7px; text-decoration:none; color:#eef5ec; border-top:1px solid #405550; }
#finder-results a:focus-visible { outline-offset:-3px; }
#finder-results a:hover { background:#243c39; }
#finder-results span { color:#b6ccbf; font-size:.77rem; }
body:has(#project-finder[open]) { overflow:hidden; }
@media(max-width:740px) {
  .has-scene + .bank-nav .bank-tabs { display:none; }
  .has-scene + .bank-nav select:not([hidden]) { display:block; width:auto; cursor:pointer; min-height:44px; padding:6px 12px; border-radius:999px; font:600 .94rem/1.25 var(--ui-type); }
  .room-intro { align-items:start; flex-wrap:wrap; gap:8px; }
  .room-intro p { max-width:none; margin-top:4px; }
  .room-actions { justify-content:flex-start; }
  .room-actions :is(a,button) { padding:.45rem .8rem; }
  .project-sheet[open] { inset:auto 0 0; margin:auto auto 0; width:100%; height:min(80dvh,750px); max-height:100dvh; border-radius:20px 20px 0 0; }
  .project-sheet .drawer-foot { max-height:40dvh; overflow:auto; }
  .project-sheet .detail-body { padding:16px 20px; }
  .project-sheet .drawer-interior h2 { margin:0 0 12px; }
  #project-finder { max-height:86dvh; }
  .footer nav a { padding-inline:.75rem; }
  .room-about { padding-bottom:8px; border-bottom:1px solid #536a624d; }
}
@media(prefers-reduced-motion:no-preference) and (max-width:740px) {
  .project-sheet[open] { animation:sheet-rise .23s ease-out; }
  @keyframes sheet-rise { from { transform:translateY(30px);opacity:.35; } to {transform:none;opacity:1;} }
}
@media(max-height:520px) {
  .rack-workspace:has(.has-scene) {grid-template-rows:auto minmax(0,1fr) auto;}
  .has-scene + .bank-nav {grid-area:3/1;margin-block:4px;}
  .project-sheet[open] {height:100dvh;}
}
@supports (backdrop-filter:blur(8px)) or (-webkit-backdrop-filter:blur(8px)) {
  .has-scene + .bank-nav, .project-sheet form, .portfolio-menu[open] .portfolio-menu-list,
  .portfolio-release .portfolio-menu summary, .entry-links .entry-read, .journey-entry .entry-contact {
    background-color:rgb(18 35 40 / 85%);
    -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  }
}
@media(prefers-reduced-transparency:reduce), (prefers-contrast:more), (forced-colors:active) {
  .has-scene + .bank-nav, .project-sheet form, .portfolio-menu[open] .portfolio-menu-list,
  .portfolio-release .portfolio-menu summary, .entry-links .entry-read, .journey-entry .entry-contact {
    background-color:var(--smoke); -webkit-backdrop-filter:none; backdrop-filter:none;
  }
}

.portfolio-release .chapter-copy { position:relative; isolation:isolate; }
.portfolio-release .chapter-copy::before {
  content:""; position:absolute; z-index:-1; pointer-events:none; inset:-22px -40px -24px -24px;
  background:radial-gradient(ellipse at 35% 53%,#09151dea 10%,#0a1822ce 53%,#0a182200 77%);
}
.release-console [data-mobile-stage] { display:block; color:#f8d5a5; margin:8px 0; font-weight:600; }
.release-console [data-state="active"] { color:#ffe5be; border-bottom:2px solid #ffd397; }
.release-console [data-outcome="recovered"] { padding-left:10px; border-left:3px solid #a2e7ba; }
.portfolio-reading :is(.intro h1,.block h2) { font-family:var(--heading-type); font-weight:550; }
.portfolio-reading .block h2 {font-size:clamp(26px,3vw,37px); letter-spacing:-.035em;}
.portfolio-reading .intro p, .portfolio-reading .block p { max-width:64ch; }
.portfolio-reading .history { margin-left:.4rem; border-left:1px solid #879f99; }
.portfolio-reading .history li { position:relative; padding:6px 0 16px 22px; border:0; }
.portfolio-reading .history li::before { content:""; position:absolute; left:-4px; top:12px; width:7px; height:7px; background:#bfe8d2; border-radius:50%; }
.portfolio-reading .history .date { color:#c1d9cf; font:600 .83rem/1.4 var(--ui-type); }
.process-steps { margin:0; padding:0; list-style:none; counter-reset:process-step; display:grid; gap:14px; }
.process-steps .block { position:relative; margin:0; counter-increment:process-step; padding-left:clamp(58px,7vw,86px); }
.process-steps .block::before { content:counter(process-step,decimal-leading-zero); position:absolute; left:18px; top:26px; color:#c0dccc; font:600 1rem/1 var(--ui-type); }
.service-example { padding:12px 0 0; justify-content:space-between; }
.service-example a { text-underline-offset:3px; color:#d6ebdd; }
.service-example .service-project { display:flex; align-items:center; gap:10px; padding:7px 11px; font:600 .92rem/1.2 var(--ui-type); }
.service-project img { width:60px; height:40px; object-fit:cover; object-position:top; border-radius:5px; }
.contact-form { border:1px solid #5e736f; background:#18282be8; padding:clamp(16px,2.5vw,30px); border-radius:14px; }
.page-contact .contact-actions { margin-top:18px; }
.portfolio-reading :is(.intro,.block,.contact-form) { color:#eff5ed; }
@media print {
  .portfolio-reading .intro, .portfolio-reading .block {color:black;}
  .portfolio-reading .history .date {color:#333;}
}

.portfolio-reading .service-example a {
  display:inline-flex; align-items:center; min-height:44px; box-sizing:border-box;
  padding:.45rem .85rem; border:1px solid #809a97; border-radius:12px; background:#193132;
  color:#eaf6ee; font:600 .88rem/1.3 var(--ui-type); text-decoration:none;
}
.portfolio-reading .service-example a:hover { background:#e5f2e9; color:#142520; }
.release-follow, .release-dismiss { min-height:44px; min-width:44px; }
#finder-results a { box-sizing:border-box; }
@media(prefers-reduced-motion:reduce) {
  .project-sheet[open] { animation:none; }
  :is(.entry-center,.room-actions,.bank-nav,.drawer-links,.footer nav,.journey-footer nav,.actions,.contact-actions,.contact-form) :is(a,button,summary):active { transform:none; }
}

@media(max-width:740px) {
  .portfolio-release .chapter-copy::before { inset:-18px -12px -18px -16px; }
}

.portfolio-reading .company-experience {margin:1rem 0 1.25rem}
.portfolio-reading .company-experience h3,.portfolio-reading .role-timeline h4 {margin:0}
.portfolio-reading .company-experience .company-meta,.portfolio-reading .role-timeline p {margin:.2rem 0 0;font-size:.92rem}
.portfolio-reading .role-timeline {list-style:none;margin:1rem 0 0 .4rem;padding:0}
.portfolio-reading .role-timeline li {position:relative;padding:0 0 0 1.4rem}
.portfolio-reading .role-timeline li+li {margin-top:1rem}
.portfolio-reading .role-timeline li::before {content:"";position:absolute;left:-3px;top:.55em;width:7px;height:7px;border-radius:50%;background:currentColor}
.portfolio-reading .role-timeline li:not(:last-child)::after {content:"";position:absolute;left:0;top:calc(.55em + 7px);bottom:calc(-1rem - .55em);border-left:1px solid currentColor;opacity:.45}
