/* soft.css — the software page (Vera's spec, Sep 28 2026): "The Key
   Cabinet". home.css supplies the base. Flat vector objects: grey steel,
   brass hooks, cream and kraft tags. Red only for the 90-day line and the
   idle totals. No gradients, glow or cards. */
.soft { --steel: #8E96A3; --steel-d: #6E7684; --brass: #C8A45C; --brass-d: #9C7E3F; --cream: #F4F1EA; --kraft: #C9A878; --red: #D6454F; --red-soft: #F08A91; --mono: "IBM Plex Mono", ui-monospace, monospace; }
.soft section { position: relative; }
.soft h2 { font-size: clamp(30px, 3.4vw, 46px); }
.h-ink { color: var(--ink); }
.red { color: var(--red); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -.02em; }
.ill { font-size: 12px; color: var(--snow-2); margin-top: 24px; }
.caption--dark { color: var(--ink-2); opacity: 1; }
.k__p { font-size: 18px; margin-top: 16px; color: var(--ink-2); max-width: 26em; }
.k__p b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.k__muted { font-size: 14px; color: var(--ink-2); margin-top: 14px; max-width: 30em; }
.k__big { font: 500 clamp(40px, 5vw, 64px)/1 var(--mono); margin-top: 26px; color: var(--red-soft); font-variant-numeric: tabular-nums; }
.k__big small { font: 400 15px var(--body); color: var(--snow-2); margin-left: 8px; }
.k7__src a, .k8__sub a { border-bottom: 1px solid currentColor; }

/* 1. the cabinet */
.k1 { padding: clamp(150px, 16vw, 200px) 0 160px; }
.k1__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.k1 h1 { font-size: clamp(40px, 4.8vw, 66px); line-height: 1.08; }
.k1 h1 .mono { color: var(--red-soft); }
.k1__sub { color: var(--snow-2); font-size: 18px; margin-top: 18px; }
.k1 .cta { margin-top: 30px; }
.cab { position: relative; width: min(340px, 100%); aspect-ratio: .8; margin: 0 auto; perspective: 1200px; }
.cab__body { position: absolute; inset: 0; background: #2A313E; border: 6px solid var(--steel); border-radius: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 30px 26px; align-content: start; }
.cab__hook { height: 26px; border-left: 3px solid var(--brass); border-bottom: 3px solid var(--brass); border-radius: 0 0 0 10px; width: 14px; margin: 0 auto; }
.cab__door { position: absolute; inset: 0; background: var(--steel); border-radius: 6px; transform-origin: left center; box-shadow: inset 0 0 0 1px var(--steel-d);
  animation: dooropen 900ms cubic-bezier(.3,.7,.2,1) 700ms forwards; }
.cab__plate { position: absolute; left: 14%; right: 14%; top: 18%; background: #D9DCE2; color: #2A2A33; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; padding: 10px; text-align: center; border-radius: 2px; }
.cab__handle { position: absolute; right: 14px; top: 46%; width: 8px; height: 46px; background: var(--steel-d); border-radius: 4px; }
@keyframes dooropen { to { transform: rotateY(-78deg); } }

/* 2. the pegboard */
.k2 { padding: 160px 0; }
.board { margin-top: 40px; background: var(--cream); padding: 24px 26px; display: grid; gap: 18px;
  background-image: radial-gradient(circle, rgba(0,0,0,.12) 1.2px, transparent 1.6px); background-size: 16px 16px; border: 1px solid rgba(17,24,39,.12); }
.prow__n { font-size: 13px; color: var(--ink); font-weight: 500; }
.prow__n span { color: var(--ink-2); font-weight: 400; } .prow__n em { font: 500 12px var(--mono); font-style: normal; color: var(--ink-2); margin-left: 6px; }
.prow__hooks { display: grid; grid-template-columns: repeat(auto-fill, 18px); gap: 6px 4px; margin-top: 8px; }
.hook { height: 34px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hook::before { content: ""; position: absolute; top: 0; left: 50%; margin-left: -1px; width: 2px; height: 10px; background: var(--brass-d); }
.hook b { font: 600 6px var(--mono); color: #9A968C; letter-spacing: .02em; }
.hook--key::after { content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 22px; margin-left: -5px; background: var(--brass); border-radius: 5px 5px 2px 2px; transform-origin: top center; }
.board.in .hook--key::after { animation: sway 1.4s ease-out 1; }
@keyframes sway { 25% { transform: rotate(9deg); } 55% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }

/* 3. the sign-out book */
.k3 { padding: 120px 0 160px; }
.k3__grid, .k5__grid, .k6__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.bk { position: relative; background: #FBFAF6; color: #2A2A33; padding: 20px 22px; border-left: 14px solid #3B4A6B; box-shadow: 0 30px 60px -40px rgba(17,24,39,.5); }
.bk__h { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .1em; color: #6A6F80; padding-bottom: 8px; border-bottom: 1.5px solid #2A2A33; }
.bk ol { list-style: none; }
.bk li { display: grid; grid-template-columns: 110px 1fr 90px; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #E7E4DC; font-size: 13px; }
.bk li b { font: 500 13px var(--mono); text-align: right; }
.bk__bar { height: 6px; background: #EFECE4; position: relative; }
.bk__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #3B4A6B; }
.bk__rule { position: absolute; top: 40px; bottom: 16px; width: 0; border-left: 2px solid var(--red); transform-origin: top; }
.js .bk:not(.in) .bk__rule { transform: scaleY(0); }
.js .bk .bk__rule { transition: transform 900ms ease 300ms; }
.bk__rule em { position: absolute; top: -18px; left: 4px; font: 600 11px var(--mono); font-style: normal; color: var(--red); white-space: nowrap; }

/* 4. blank tags */
.k4 { padding: 160px 0; }
.tagrows { display: grid; gap: 34px; margin-top: 40px; }
.tagrow__h { font-size: 14px; color: var(--snow-2); }
.tagrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tagkey { width: 30px; height: 56px; position: relative; }
.tagkey::before { content: ""; position: absolute; left: 11px; top: 0; width: 8px; height: 24px; background: var(--brass); border-radius: 4px 4px 1px 1px; }
.tagkey::after { content: ""; position: absolute; left: 3px; top: 22px; width: 24px; height: 32px; background: #E8D9B5; border-radius: 2px; clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); }
.tagrow__m { font: 500 15px var(--mono); margin-top: 10px; color: var(--snow); }

/* 5. sealed envelopes */
.k5 { padding: 120px 0 160px; }
.envs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.env { aspect-ratio: .7; background: var(--kraft); border-radius: 3px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 10px 6px; font-style: normal; }
.env::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36%; background: #B8966A; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env b { font: 600 8px var(--mono); color: #3A2F1E; text-align: center; letter-spacing: .04em; }
.seal { position: absolute; top: 28%; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--red); }

/* 6. one door, two locks */
.k6 { padding: 160px 0; }
.door { position: relative; height: 340px; width: min(260px, 100%); margin: 0 auto; background: #E7E2D6; border: 3px solid #2A2A33; border-radius: 3px; }
.door__l { position: absolute; top: 34px; left: 0; right: 0; text-align: center; font: 600 12px var(--mono); letter-spacing: .12em; color: #2A2A33; }
.lock { position: absolute; right: 26px; top: 150px; width: 26px; height: 26px; border-radius: 50%; background: var(--brass); box-shadow: inset 0 0 0 5px var(--brass-d); }
.lock--2 { top: 196px; }
.ring { position: absolute; left: calc(100% + 18px); top: 146px; font: 500 13px var(--mono); color: var(--ink); white-space: nowrap; }
.ring--2 { top: 192px; }
.ring b { font-weight: 600; }

/* 7. the work order */
.k7 { padding: 120px 0 160px; }
.k7__wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wo { background: #FBFAF6; color: #2A2A33; width: min(560px, 100%); text-align: left; padding: 26px 30px 0; font: 400 14px/1.9 var(--mono); box-shadow: 0 30px 60px -40px rgba(17,24,39,.5); }
.wo__h { font-weight: 600; font-size: 12px; letter-spacing: .1em; padding-bottom: 8px; border-bottom: 1.5px solid #2A2A33; margin-bottom: 6px; }
.wo__row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted #D8D4CA; }
.wo__tot { font-weight: 600; border-bottom: 0; border-top: 1.5px solid #2A2A33; margin-top: 6px; }
.wo__tot b { color: var(--red); }
.wo__stub { margin: 18px -30px 0; padding: 10px 30px; border-top: 2px dashed #B9B4A8; font-size: 11px; letter-spacing: .2em; color: #9A968C; }
.k7__year { font: 480 clamp(56px, 10vw, 150px)/1 var(--head); letter-spacing: -.02em; margin-top: 48px; color: var(--ink); }
.js .k7__year { opacity: 0; transition: opacity 900ms ease; } .js .k7.in .k7__year { opacity: 1; }
.k7__src { color: var(--ink-2); font-size: 14px; margin-top: 18px; max-width: 34em; }

/* 8. the key drop */
.k8 { padding: 160px 0; }
.k8__wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.slot { width: 260px; padding: 22px; background: var(--brass); border-radius: 6px; margin-bottom: 48px; }
.slot__mouth { display: block; height: 16px; background: #141A2A; border-radius: 8px; }
.slot__l { font: 600 11px var(--mono); letter-spacing: .14em; color: #3A2F1E; margin-top: 12px; }
.k8 h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.15; }
.k8 .cta { justify-content: center; margin-top: 30px; }
.k8__sub { color: var(--snow-2); margin-top: 18px; font-size: 15px; max-width: 40em; }

@media (max-width: 860px) {
  .k1__grid, .k3__grid, .k5__grid, .k6__grid { grid-template-columns: 1fr; }
  .cab { width: 240px; }
  .prow__hooks { grid-template-columns: repeat(auto-fill, 12px); gap: 4px 3px; } .hook { height: 24px; } .hook b { display: none; }
  .hook--key::after { width: 7px; height: 15px; margin-left: -3.5px; }
  .bk li { grid-template-columns: 96px 1fr 70px; font-size: 12px; }
  .ring { position: static; display: block; margin-top: 6px; }
  .door { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .cab__door { animation: none; transform: rotateY(-78deg); } .board.in .hook--key::after { animation: none; } }
.k5 .k__big { font-size: clamp(30px, 3.4vw, 46px); }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.8,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
