/* refine.css — loaded last on the portfolio page.
   1. About -> Lab: less empty run between the two
   2. Professional work: short layout on phones only
   3. Workspace: sign-in as a directory, not a card
   Removing the <link> restores the earlier look of all three. */

/* ── 1. ABOUT -> LAB ──────────────────────────────────────────────── */
.flow-js #about { padding-bottom: clamp(1.4rem, 3.5vh, 2.4rem); }
.flow-js #lab.section-lab { padding-top: clamp(2.4rem, 5vw, 3.6rem); }
/* the Lab heading arrives with the dusk instead of after it */
.flow-js #lab .lab-header { opacity: var(--night, 1); }

/* ── 2. PROFESSIONAL WORK on phones ───────────────────────────────── */
@media (max-width: 600px) {
  #systems { padding-top: 3.4rem; padding-bottom: 3rem; }
  #systems .sec-label { margin-bottom: 1.4rem; }

  /* three boxes become three ruled rows */
  #systems .systems-scan-band {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  #systems .systems-scan-item {
    display: grid;
    grid-template-columns: 5.6rem 1fr;
    gap: .8rem;
    align-items: baseline;
    padding: .72rem 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  #systems .systems-scan-label { margin-bottom: 0; }
  #systems .systems-scan-item strong { font-size: .86rem; font-weight: 500; }

  /* the paragraphs repeat the rows above */
  #systems .systems-body { display: none; }

  /* certificates: one row of four logos, tap to open */
  #systems .certification-showcase { margin-top: 1.7rem !important; gap: .7rem; }
  #systems .certification-intro p { display: none; }
  #systems .certification-eyebrow { margin-bottom: 0; }
  #systems .certification-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  #systems .cert-logo-card { padding: .45rem; border-radius: 14px; gap: 0; box-shadow: none; }
  #systems .cert-logo-shell { min-height: 3.5rem; padding: .5rem; }
  #systems .cert-logo-meta { display: none; }

  /* roles: a plain timeline, no cards or tags */
  #systems .systems-grid { gap: 2.2rem; }
  #systems .timeline { padding-left: 1.35rem; }
  #systems .tnode { margin-bottom: 1.35rem; }
  #systems .tnode::before { left: -1.35rem; top: .22rem; width: 8px; height: 8px; transform: translateX(-3px); }
  #systems .tnode-year { margin-bottom: .3rem; }
  #systems .wcard {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  #systems .wcard:hover { transform: none; box-shadow: none; }
  #systems .wcard-num,
  #systems .wtags { display: none; }
  #systems .wcard-top { align-items: center; margin-bottom: .35rem; }
  #systems .wcard-title { font-size: 1.08rem; }
  #systems .wstatus { font-size: .56rem; padding: .16rem .5rem; }
  #systems .wcard-desc { margin-bottom: 0; font-size: .84rem; line-height: 1.55; }
}

/* ── 3. WORKSPACE ─────────────────────────────────────────────────── */
#dashboard { padding-bottom: clamp(3.6rem, 7vw, 5.6rem); }
.wsp-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.4rem, 7vw, 6.5rem);
  align-items: end;
}
#dashboard .wsp-lead .sec-label { margin-bottom: 1.5rem; color: rgba(240, 240, 248, .4); }
.wsp-hed {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.034em;
  color: var(--dark-ink);
}
.wsp-hed em { font-style: italic; color: var(--seq-metal); }
.wsp-sub {
  max-width: 30ch;
  margin-top: 1.1rem;
  font-size: .98rem;
  line-height: 1.7;
  color: rgba(228, 232, 240, .62);
}
.wsp-enter {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 2rem;
  padding: .82rem 1.15rem .82rem 1.4rem;
  border-radius: 999px;
  background: #f1ece1;
  color: #14120f;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, transform .35s var(--out);
}
.wsp-enter svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s var(--out);
}
.wsp-enter:hover { background: #fff; transform: translateY(-1px); }
.wsp-enter:hover svg { transform: translateX(4px); }
.wsp-enter:focus-visible { outline: 2px solid var(--seq-metal); outline-offset: 4px; }

.wsp-index { list-style: none; border-top: 1px solid rgba(255, 255, 255, .1); }
.wsp-index li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto 1rem;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.wsp-no {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(228, 232, 240, .34);
}
.wsp-name {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: rgba(240, 240, 248, .9);
}
.wsp-what {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: rgba(228, 232, 240, .46);
  text-align: right;
}
.wsp-lock {
  align-self: center;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--seq-metal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}

@media (max-width: 900px) {
  .wsp-inner { grid-template-columns: 1fr; gap: 2.4rem; align-items: start; }
  .wsp-sub { max-width: 40ch; }
}
@media (max-width: 600px) {
  .wsp-index li { grid-template-columns: 1.9rem minmax(0, 1fr) 1rem; gap: .2rem .8rem; padding: .9rem 0; }
  .wsp-what { grid-column: 2; grid-row: 2; text-align: left; }
  .wsp-lock { grid-column: 3; grid-row: 1; }
}
