/* Desktoad Home · Full-viewport hero, hybrid expanding macropad & print-stack showcase */

/* Full-screen hero: fills exact viewport below sticky nav so extensions never poke through */
.page--home .hero {
  min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(14px, 2.5vh, 36px) clamp(28px, 5vh, 56px);
}

.page--home .hero .toad {
  width: clamp(160px, 22vh, 248px);
}

.page--home .hero h1 {
  margin-top: clamp(12px, 2vh, 20px);
  font-size: clamp(42px, min(6.6vw, 10.5vh), 92px);
}

.page--home .hero__lede {
  margin-top: clamp(14px, 2vh, 20px);
}

.page--home .hero .actions {
  margin-top: clamp(20px, 3.2vh, 32px);
}

/* ---------- Extensions Showcase Band (Hybrid Expanding Macropad + Print Stack) ---------- */
.page--home .shelf {
  border-top: var(--line) solid var(--ink);
  background: var(--cream-2);
  padding-block: clamp(52px, 6.5vw, 88px) clamp(56px, 7vw, 96px);
}

.shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
}

.shelf__copy {
  display: grid;
  gap: 8px;
}

.shelf__head h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 0.98;
}

.shelf__sub {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 40ch;
}

/* Sculpted 2-key macropad tray — active key expands wider & latches down */
.desk-keys {
  display: flex;
  align-items: stretch;
  width: min(100%, 548px);
  gap: 9px;
  padding: 8px;
  border: var(--line) solid var(--ink);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 4px 0 var(--ink);
}

.desk-keys .key {
  --w: auto;
  --h: 66px;
  --depth: 8px;
  flex: 1 1 0%;
  min-width: 0;
  transition: flex .42s var(--ease);
}

.desk-keys .key[aria-selected="true"] {
  flex: 1.54 1 0%;
}

.desk-keys .key::before,
.desk-keys .key__cap {
  border-radius: 14px;
}

.desk-keys .key__cap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 20px 0 24px;
}

/* Top-right status LED pip */
.desk-keys .key__cap::after {
  inset: 8px 9px auto auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  transition: background-color .2s;
}

.desk-keys__num {
  position: absolute;
  left: 9px;
  top: 7px;
  font: 700 11px/1 var(--mono);
  color: var(--muted);
}

.desk-keys__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: width .36s var(--ease), height .36s var(--ease);
}

.desk-keys [aria-selected="true"] .desk-keys__icon {
  width: 35px;
  height: 35px;
}

.desk-keys__text {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.desk-keys .key__label {
  font: 700 clamp(18px, 1.9vw, 22px)/1.05 var(--display);
  font-variation-settings: "SOFT" 100;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-keys__sub {
  font: 600 12.5px/1.15 var(--body);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}

.desk-keys [aria-selected="false"] {
  --top: var(--paper);
}

.desk-keys [aria-selected="false"]:hover .key__cap {
  transform: translateY(2px);
}

.desk-keys [aria-selected="true"] .key__cap {
  transform: translateY(calc(var(--depth) - 2px));
}

.desk-keys [aria-selected="true"] .key__cap::after {
  background: var(--ink);
}

.desk-keys [aria-selected="true"] .desk-keys__num {
  color: var(--ink);
}

.desk-keys [aria-selected="true"] .desk-keys__sub {
  color: var(--ink-2);
}

/* ---------- Focused Horizontal Spotlight Card + Print Stack ---------- */
.shelf__stage {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.page--home .card {
  grid-template-columns: minmax(0, 4.65fr) minmax(0, 5.75fr);
  margin-top: 0;
}

.js .shelf__stage [data-project-panel]:not(.is-active) {
  display: none;
}

.js .shelf__stage [data-project-panel].is-entering {
  animation: card-swap .28s var(--ease) both;
}

@keyframes card-swap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.card__head {
  display: grid;
  gap: 8px;
}

.card__num {
  font: 700 12.5px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__name {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card__name img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.card__name h3 {
  font-size: clamp(34px, 3.3vw, 46px);
  line-height: 1;
}

.card__tagline {
  font: 650 16px/1.3 var(--body);
  color: var(--verm-deep);
}

.card--uc .card__tagline {
  color: var(--uc-deep);
}

.card__checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ink-2);
}

.card__checks li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.card__checks li::before {
  content: "";
  width: 11px;
  height: 6px;
  flex-shrink: 0;
  border: solid var(--verm);
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg);
}

.card--uc .card__checks li::before {
  border-color: var(--uc-vivid);
}

.page--home .card .actions {
  gap: 12px 14px;
}

.page--home .card .btn {
  padding: 0 22px;
}

.page--home .card .store-badge {
  min-height: 42px;
  padding: 7px 13px;
  font-size: 13.5px;
}

/* Tilted stack of prints */
.snapshots {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 95%;
  max-width: 610px;
}

.snapshots__sheet {
  grid-area: 1 / 1;
  margin: 0;
  padding: clamp(7px, 1vw, 12px);
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
}

.snapshots__sheet[data-depth="0"] {
  z-index: 3;
  transition: transform .3s var(--spring);
}

.snapshots:hover .snapshots__sheet[data-depth="0"] {
  transform: translateY(-2px) rotate(-0.35deg);
}

.snapshots__sheet[data-depth="1"] {
  z-index: 2;
  transform: translate(1.2%, -1.2%) rotate(2deg);
  background: var(--belly);
  pointer-events: none;
}

.snapshots__sheet[data-depth="2"] {
  z-index: 1;
  transform: translate(-1.2%, 1.2%) rotate(-2.8deg);
  background: var(--cream-2);
  pointer-events: none;
}

.snapshots__img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #d8d2c6;
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
  cursor: zoom-in;
}

.snapshots__img-btn img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 961px) {
  .snapshots__img-btn img {
    max-height: 465px;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
  }
}

.snapshots__sheet figcaption {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 142px 0 4px;
  font: 600 clamp(15px, 1.4vw, 19px)/1.2 var(--display);
}

.snapshots__previous,
.snapshots__next,
.snapshots__zoom {
  position: absolute;
  padding: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.snapshots__previous svg,
.snapshots__next svg,
.snapshots__zoom svg {
  width: 32px;
  height: 32px;
  margin: auto;
  padding: 5px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  transition: background-color .16s, transform .2s var(--spring);
}

.snapshots__previous {
  bottom: clamp(7px, 1vw, 12px);
  right: calc(clamp(7px, 1vw, 12px) + 42px);
  z-index: 6;
}

.snapshots__next {
  bottom: clamp(7px, 1vw, 12px);
  right: clamp(7px, 1vw, 12px);
  z-index: 6;
}

.snapshots__zoom {
  top: -14px;
  right: -12px;
  z-index: 6;
  width: 40px;
  height: 40px;
}

.snapshots__zoom svg {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-width: 2px;
  background: var(--paper);
  box-shadow: 0 2px 0 var(--ink);
}

.snapshots__previous:is(:hover, :focus-visible) svg,
.snapshots__next:is(:hover, :focus-visible) svg,
.snapshots__zoom:is(:hover, :focus-visible) svg {
  background: var(--verm-2);
  transform: translateY(-1px);
}

.card--uc .snapshots__previous:is(:hover, :focus-visible) svg,
.card--uc .snapshots__next:is(:hover, :focus-visible) svg,
.card--uc .snapshots__zoom:is(:hover, :focus-visible) svg {
  background: var(--uc-2);
}

.snapshots__count {
  position: absolute;
  right: calc(clamp(7px, 1vw, 12px) + 90px);
  bottom: calc(clamp(7px, 1vw, 12px) + 14px);
  z-index: 6;
  font: 700 12.5px/1 var(--mono);
  color: var(--muted);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* Bottom bar under focused card */
.shelf__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
}

.shelf__hint {
  font-size: 14.5px;
  color: var(--muted);
}

.shelf__switch {
  margin-left: auto;
  font-size: 16px;
  color: var(--ink);
}

html:not(.js) .desk-keys,
html:not(.js) .shelf__foot {
  display: none;
}

/* ---------- Studio / Principles Section ---------- */
.bench {
  border-top: var(--line) solid var(--ink);
  background: var(--sage-4);
  padding-block: clamp(60px, 7.5vw, 104px);
}

.bench__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.bench__intro {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.toad--sm {
  width: 76px;
}

.toad--sm .toad__bubble {
  left: 82%;
  top: -8%;
  padding: 6px 12px;
  font-size: 14.5px;
  box-shadow: 0 3px 0 var(--ink);
}

.bench__intro h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1;
}

.bench__lede {
  font-size: 17.5px;
  color: var(--ink-2);
  max-width: 40ch;
}

.bench__contact {
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.bench__contact a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.bench__slip {
  border: var(--line) solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: 0 7px 0 var(--ink);
  overflow: hidden;
}

.bench__slip-head {
  padding: 14px clamp(18px, 2.5vw, 28px);
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
  font: 700 12.5px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.bench__list {
  margin: 0;
  padding: 4px clamp(18px, 2.5vw, 28px);
  list-style: none;
}

.bench__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding-block: 18px;
  border-top: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.bench__row:first-child {
  border-top: 0;
}

.bench__idx {
  font: 700 13px/1 var(--mono);
  color: var(--muted);
}

.bench__item {
  display: grid;
  gap: 4px;
}

.bench__name {
  font: 700 19px/1.2 var(--display);
  font-variation-settings: "SOFT" 100;
}

.bench__note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .page--home .card {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .desk-keys {
    width: 100%;
    max-width: 548px;
  }
}

@media (max-width: 680px) {
  .shelf__hint {
    display: none;
  }
}

@media (max-width: 560px) {
  .desk-keys {
    gap: 7px;
    padding: 6px;
    border-radius: 18px;
  }
  .desk-keys .key {
    --h: 58px;
    --depth: 6px;
  }
  .desk-keys .key[aria-selected="true"] {
    flex: 1.32 1 0%;
  }
  .desk-keys .key::before,
  .desk-keys .key__cap {
    border-radius: 12px;
  }
  .desk-keys .key__cap {
    gap: 7px;
    padding: 0 10px 0 16px;
  }
  .desk-keys__num {
    left: 6px;
    top: 5px;
    font-size: 10px;
  }
  .desk-keys .key__cap::after {
    inset: 6px 6px auto auto;
    width: 6px;
    height: 6px;
  }
  .desk-keys__icon {
    width: 22px;
    height: 22px;
  }
  .desk-keys [aria-selected="true"] .desk-keys__icon {
    width: 26px;
    height: 26px;
  }
  .desk-keys .key__label {
    font-size: 16px;
  }
  .desk-keys__sub {
    font-size: 11px;
  }
  .snapshots__sheet figcaption {
    min-height: 44px;
    padding: 6px 124px 0 2px;
    font-size: 14.5px;
  }
  .snapshots__previous,
  .snapshots__next {
    width: 38px;
    height: 38px;
  }
  .snapshots__previous svg,
  .snapshots__next svg {
    width: 30px;
    height: 30px;
    padding: 5px;
  }
  .snapshots__previous {
    right: calc(clamp(7px, 1vw, 12px) + 38px);
  }
  .snapshots__count {
    right: calc(clamp(7px, 1vw, 12px) + 82px);
    bottom: calc(clamp(7px, 1vw, 12px) + 13px);
    font-size: 12px;
  }
}
