/* Landing — the field carries the page; type and button sit on top of it. */

.landing {
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.top {
  position: fixed;
  top: 30px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.top .mark {
  pointer-events: auto;
}

.top-note {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(28px, 5vh, 52px);
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
}

.display {
  margin: 0;
  font-size: clamp(2.2rem, 7.6vw, 6rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.display .zh {
  letter-spacing: -0.02em;
}

.stage-actions {
  display: grid;
  gap: 10px;
}

.cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 30px 0 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    transform 0.5s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.5s var(--ease);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.06), 0 10px 26px -20px rgba(10, 10, 10, 0.55);
}

.cta svg {
  width: 15px;
  height: 15px;
  overflow: visible;
  transition: transform 0.5s var(--ease);
}

.cta:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.06), 0 20px 38px -24px rgba(10, 10, 10, 0.6);
}

.cta:hover svg {
  transform: translateX(4px);
}

.cta:active {
  transform: translateY(0) scale(0.985);
}

.cta:focus-visible {
  outline-offset: 5px;
}

.cta-secondary {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.cta-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: none;
}

.bottom {
  position: fixed;
  left: 40px;
  right: 40px;
  bottom: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

/* One authored entrance: the type rises out of blur, nothing repeats it. */
.display,
.cta,
.top,
.bottom {
  animation: rise 1.1s var(--ease) both;
}

.display {
  animation-delay: 0.08s;
}
.cta {
  animation-delay: 0.24s;
}
.top {
  animation-delay: 0.5s;
}
.bottom {
  animation-delay: 0.62s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 720px) {
  .top {
    top: 22px;
    left: 22px;
    right: 22px;
  }
  .top-note {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .bottom {
    left: 22px;
    right: 22px;
    bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .display {
    white-space: normal;
    padding: 0 8px;
  }
  .cta {
    height: 50px;
    padding: 0 26px;
  }
}

@media (max-width: 420px) {
  .bottom > :nth-child(2) {
    display: none;
  }
}

/* ---------- header nav ---------- */

.nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  pointer-events: auto;
}

.nav-link {
  position: relative;
  padding: 2px 0 5px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

/* ---------- the sheet ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 28px 40px 36px;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition:
    opacity 0.38s var(--ease),
    visibility 0s linear 0.38s;
}

.sheet.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.38s var(--ease);
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sheet-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}

.sheet-close:hover {
  border-color: rgba(10, 10, 10, 0.34);
}

.kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sheet-body {
  width: 100%;
  padding: 24px 0 8px;
  flex: 1;
  display: grid;
  align-content: center;
}

.panel {
  display: none;
  outline: none;
}

.panel.is-active {
  display: block;
  animation: panelIn 0.55s var(--ease) backwards;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.statement {
  margin: 0;
  max-width: 22em;
  font-size: clamp(1.55rem, 3.1vw, 2.9rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.statement + .statement {
  margin-top: 0.7em;
}

.panel-title {
  margin: 0 0 clamp(20px, 4vh, 40px);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  outline: none;
}

.product-list {
  max-width: 1040px;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.product-list li {
  position: relative;
}

/* The rule belongs to the row, not to a border hugging its children. */
.product-list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}

.product {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 3.2vh, 30px) 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.product-name {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.product svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  opacity: 0.3;
  transition:
    opacity 0.3s var(--ease),
    transform 0.45s var(--ease);
}

.product:hover .product-name,
.product:focus-visible .product-name {
  transform: translateX(10px);
}

.product:hover svg,
.product:focus-visible svg {
  opacity: 1;
  transform: translateX(4px);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 clamp(20px, 3.6vh, 36px);
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.back:hover {
  color: var(--ink);
}

.product-detail-title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  outline: none;
}

.product-desc {
  margin: 0;
  max-width: 24em;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.75;
  color: #3d3d3d;
  text-wrap: pretty;
}

.product-site {
  margin-top: clamp(18px, 3vh, 28px);
  animation: none;
}

@media (max-width: 720px) {
  .nav {
    gap: 16px;
  }
  .nav-link {
    font-size: 12px;
  }
  .top-note {
    display: none;
  }
  .kbd {
    display: none;
  }
  .sheet {
    padding: 20px 22px 30px;
  }
  .sheet-body {
    align-content: start;
    padding-top: clamp(28px, 8vh, 64px);
  }
  .product-detail-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
  .statement {
    font-size: clamp(1.35rem, 6.4vw, 1.9rem);
  }
}
