/* Lathhouse Stage — home (Appily-OneHundredFour / Lathhouse Nursery) */
.page-a104-lathhouse .tr-rail { box-shadow: 0 4px 0 var(--a104-primary); }

.lh-stage {
  position: relative;
  min-height: calc(100vh - var(--a104-nav-h));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--a104-space-6);
  align-items: center;
  width: min(100% - 32px, var(--a104-max));
  margin: 0 auto;
  padding: var(--a104-space-6) 0 var(--a104-space-7);
  overflow: hidden;
}

.lh-laths {
  position: absolute;
  inset: -4% -8%;
  display: flex;
  gap: 14px;
  pointer-events: none;
  z-index: 0;
}
.lh-lath {
  flex: 1 1 0;
  background: linear-gradient(
    180deg,
    rgba(122, 90, 66, 0.18) 0%,
    rgba(255, 224, 102, 0.22) 35%,
    rgba(13, 138, 91, 0.10) 70%,
    transparent 100%
  );
  transform: skewX(-4deg);
  opacity: 0.85;
  animation: lhLathPulse 8s ease-in-out infinite alternate;
  animation-delay: calc(var(--lh-li, 0) * 90ms);
}
@keyframes lhLathPulse {
  from { opacity: 0.45; }
  to { opacity: 0.95; }
}

.lh-sunshaft {
  position: absolute;
  width: 42%;
  height: 120%;
  right: 8%;
  top: -10%;
  background: linear-gradient(160deg, rgba(255, 224, 102, 0.35), transparent 70%);
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.lh-stage-copy { position: relative; z-index: 2; min-width: 0; }
.lh-brand {
  margin: 0 0 var(--a104-space-3);
  line-height: 0.9;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
}
.lh-brand.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 560ms ease, transform 560ms cubic-bezier(.15,.9,.2,1);
}
.lh-brand-top {
  display: block;
  font-family: var(--a104-font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a104-primary-deep);
}
.lh-brand-bot {
  display: block;
  font-family: var(--a104-font-display);
  font-size: clamp(3.5rem, 9.5vw, 6rem);
  font-weight: 800;
  color: var(--a104-ink);
  letter-spacing: -0.03em;
  text-shadow: 4px 4px 0 var(--a104-sun);
}
.lh-stage h1 {
  margin: 0 0 var(--a104-space-3);
  font-family: var(--a104-font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  font-weight: 800;
  max-width: 12ch;
  line-height: 1.05;
  color: var(--a104-ink);
}
.lh-lede {
  margin: 0 0 var(--a104-space-5);
  max-width: 36ch;
  color: var(--a104-mute);
  font-size: 1.05rem;
}

/* —— CTAs —— */
.lh-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--a104-space-3);
  align-items: center;
}
.lh-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 9.5rem;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  text-align: center;
  font-family: var(--a104-font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  border: 2.5px solid var(--a104-ink);
  border-radius: var(--a104-radius);
  overflow: hidden;
  box-shadow: var(--a104-shadow-hard);
  cursor: pointer;
  color: var(--a104-ink);
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.lh-cta span { position: relative; z-index: 1; }
.lh-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--a104-primary);
  transform: translateX(-105%) skewX(-12deg);
  transition: transform 380ms cubic-bezier(.2,.85,.2,1);
  z-index: 0;
}
.lh-cta:hover::before,
.lh-cta.is-wipe::before,
.lh-cta:focus-visible::before { transform: translateX(0) skewX(0); }
.lh-cta:hover,
.lh-cta:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--a104-ink);
  color: inherit;
  outline: none;
}
.lh-cta:focus-visible {
  outline: 3px solid var(--a104-sun);
  outline-offset: 3px;
}
.lh-cta:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--a104-ink);
}
.lh-cta--leaf { background: var(--a104-field); color: var(--a104-ink); }
.lh-cta--leaf:hover span,
.lh-cta--leaf:focus-visible span { color: var(--a104-on-primary); }
.lh-cta--ghost { background: var(--a104-surface); color: var(--a104-ink); }
.lh-cta--ghost::before { background: var(--a104-secondary); }
.lh-cta--ghost:hover span,
.lh-cta--ghost:focus-visible span { color: var(--a104-on-secondary); }
.lh-cta--sun {
  background: var(--a104-sun);
  color: var(--a104-sun-ink);
  margin-top: var(--a104-space-2);
}
.lh-cta--sun::before { background: var(--a104-accent); }
.lh-cta--sun:hover span,
.lh-cta--sun:focus-visible span { color: var(--a104-on-accent); }

.lh-flat {
  position: relative;
  z-index: 2;
  min-width: 0;
  opacity: 0;
  transform: translateY(40px);
}
.lh-flat.is-up {
  opacity: 1;
  transform: none;
  transition: opacity 640ms ease, transform 640ms cubic-bezier(.15,.9,.2,1);
}
.lh-flat-rim {
  position: absolute;
  inset: -10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  pointer-events: none;
  z-index: 0;
}
.lh-flat-rim span {
  border: 2.5px solid var(--a104-timber);
  background: rgba(92, 64, 48, 0.08);
  border-radius: 2px;
}
.lh-flat-window {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 3px solid var(--a104-ink);
  border-radius: var(--a104-radius);
  background: var(--a104-night);
  box-shadow: var(--a104-shadow-leaf);
  text-decoration: none;
}
.lh-flat-window:focus-visible {
  outline: 3px solid var(--a104-sun);
  outline-offset: 3px;
}
.lh-flat-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}
.lh-flat-window:hover img,
.lh-flat-window:focus-visible img { transform: scale(1.04); }
.lh-flat-soil {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 14px;
  background: linear-gradient(90deg, var(--a104-timber), var(--a104-lath), var(--a104-timber));
  border-radius: 0 0 4px 4px;
  z-index: 2;
}

.lh-section { padding: var(--a104-space-7) 0; }
.lh-sec-head { margin-bottom: var(--a104-space-5); }
.lh-sec-head .a104-display {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--a104-ink);
}

.lh-stake-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--a104-space-3);
}
.lh-stake-row li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--a104-space-4) var(--a104-space-3);
  background: var(--a104-surface);
  border: 2.5px solid var(--a104-ink);
  border-radius: var(--a104-radius);
  box-shadow: 3px 3px 0 var(--a104-primary);
  font-family: var(--a104-font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--a104-ink);
  opacity: 0;
  transform: translateY(16px);
}
.lh-stake-row.is-in li {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms ease;
  transition-delay: calc(var(--lh-i, 0) * 60ms);
}
.lh-stake-row li i {
  display: block;
  width: 10px;
  height: 28px;
  background: var(--a104-secondary);
  border: 2px solid var(--a104-ink);
  border-radius: 2px;
  flex-shrink: 0;
}

.lh-bed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--a104-space-4);
}
.lh-bed {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--a104-space-2);
  min-height: 140px;
  padding: 18px;
  text-decoration: none;
  border: 2.5px solid var(--a104-ink);
  border-radius: var(--a104-radius);
  box-shadow: var(--a104-shadow-hard);
  transition: transform 160ms ease, box-shadow 160ms ease;
  color: var(--a104-ink);
}
.lh-bed:hover,
.lh-bed:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--a104-ink);
  color: var(--a104-ink);
  outline: none;
}
.lh-bed:focus-visible {
  outline: 3px solid var(--a104-sun);
  outline-offset: 3px;
}
.lh-bed em {
  font-family: var(--a104-font-display);
  font-style: normal;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.lh-bed strong {
  font-family: var(--a104-font-display);
  font-size: 1.35rem;
  font-weight: 800;
}
.lh-bed span {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--a104-font-display);
}
.lh-bed--leaf { background: var(--a104-field); }
.lh-bed--clay { background: #F6E4D8; }
.lh-bed--bloom { background: #FFE4EE; }
.lh-bed--sun { background: #FFF4C2; }

.lh-parade-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lh-packet {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  border: 2.5px solid var(--a104-ink);
  border-radius: var(--a104-radius);
  background: var(--a104-surface);
  box-shadow: 3px 3px 0 var(--a104-accent);
  overflow: hidden;
  color: var(--a104-ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.lh-packet:hover,
.lh-packet:focus-visible {
  transform: translateY(-4px);
  box-shadow: 3px 7px 0 var(--a104-accent);
  color: var(--a104-ink);
  outline: none;
}
.lh-packet:focus-visible {
  outline: 3px solid var(--a104-primary);
  outline-offset: 3px;
}
.lh-packet-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--a104-field-mist);
  border-bottom: 2px solid var(--a104-ink);
}
.lh-packet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lh-packet-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--a104-space-3);
}
.lh-packet-copy strong {
  font-family: var(--a104-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}
.lh-packet-copy em {
  font-style: normal;
  font-weight: 800;
  font-family: var(--a104-font-display);
  color: var(--a104-primary-deep);
}

.lh-finale {
  margin-top: var(--a104-space-5);
  padding: var(--a104-space-8) 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(15, 31, 22, 0.92) 0 14px,
      rgba(20, 40, 28, 0.96) 14px 28px
    );
  color: var(--a104-on-night);
}
.lh-finale-inner {
  text-align: center;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lh-finale .a104-display {
  margin: 0 0 var(--a104-space-3);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--a104-sun);
}
.lh-finale p {
  margin: 0 0 var(--a104-space-5);
  color: var(--a104-night-mute);
  max-width: 42ch;
}

@media (max-width: 960px) {
  .lh-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--a104-space-5);
    gap: var(--a104-space-5);
  }
  .lh-stake-row { grid-template-columns: repeat(3, 1fr); }
  .lh-bed-grid { grid-template-columns: repeat(2, 1fr); }
  .lh-parade-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lh-stage { width: min(100% - 20px, var(--a104-max)); padding-bottom: var(--a104-space-6); }
  .lh-stake-row { grid-template-columns: repeat(2, 1fr); }
  .lh-bed-grid { grid-template-columns: 1fr; }
  .lh-brand-bot { font-size: clamp(2.8rem, 16vw, 3.6rem); }
  .lh-cta {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  .lh-cta-row { width: 100%; }
  .lh-section { padding: var(--a104-space-6) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lh-lath { animation: none; }
  .lh-brand,
  .lh-flat,
  .lh-stake-row li,
  .lh-cta,
  .lh-bed,
  .lh-packet,
  .lh-flat-window img { transition: none !important; }
  .lh-brand,
  .lh-flat,
  .lh-stake-row li { opacity: 1; transform: none; }
}

/* ui-pass:cta */
body.a104-body a.lh-cta--leaf { color: var(--a104-on-primary); }
body.a104-body a.lh-cta--sun { color: var(--a104-sun-ink); }
body.a104-body a.lh-cta--ghost { color: var(--a104-ink); }
body.a104-body a.lh-cta--leaf:hover, body.a104-body a.lh-cta--leaf:focus-visible { color: var(--a104-on-primary); }
body.a104-body a.lh-cta--sun:hover, body.a104-body a.lh-cta--sun:focus-visible { color: var(--a104-sun-ink); }
body.a104-body a.lh-bed, body.a104-body a.lh-packet { color: var(--a104-ink); }
