/* Appily-OneHundred — Tambour Hutch (company info)
   Roll-top slats · cavity mission · cubbies · pull drawers · slot rail · ledger
   Scoped to body.page-a100-hutch · shared Typebar via shell-head
   NOT charter plaque / brass timeline / covenant ribbon / aisle chips / registry table */

body.page-a100-hutch {
  --hu-ink: var(--a100-ink, #182030);
  --hu-field: var(--a100-field, #FFF0E4);
  --hu-field-2: var(--a100-field-2, #FFE4D0);
  --hu-accent: var(--a100-accent, #E8330C);
  --hu-accent-deep: var(--a100-accent-deep, #A8240A);
  --hu-teal: var(--a100-secondary, #008F82);
  --hu-teal-deep: var(--a100-secondary-deep, #005F58);
  --hu-bloom: var(--a100-bloom, #FFC933);
  --hu-bloom-ink: var(--a100-bloom-ink, #2E2400);
  --hu-surface: var(--a100-surface, #FFFFFF);
  --hu-mute: var(--a100-mute, #3E4A5C);
  --hu-shadow: var(--a100-shadow-hard, 5px 5px 0 #182030);
  --hu-font-display: var(--a100-font-display, "Grandstander", system-ui, sans-serif);
  --hu-font-body: var(--a100-font-body, "Commissioner", system-ui, sans-serif);
  --hu-wood: #3A2E22;
  --hu-wood-mid: #5A4634;
  --hu-wood-deep: #241C14;
  --hu-brass: #C4A35A;
  --hu-brass-deep: #8A6E2F;
  --hu-brass-shine: #E8D39A;
  background:
    radial-gradient(ellipse 44% 30% at 10% 0%, rgba(0, 143, 130, 0.11), transparent 55%),
    radial-gradient(ellipse 40% 28% at 88% 4%, rgba(255, 201, 51, 0.15), transparent 50%),
    linear-gradient(168deg, var(--hu-field) 0%, var(--hu-field-2) 48%, #FFD4B8 100%);
}

.hu-main {
  padding-block: var(--a100-space-4, 32px) var(--a100-space-6, 64px);
}

.hu-mast {
  margin-bottom: 22px;
}
.hu-kicker {
  margin: 0 0 6px;
  font-family: var(--hu-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hu-teal-deep);
}
.hu-mast h1 {
  margin: 0 0 8px;
  font-family: var(--hu-font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--hu-ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hu-lede {
  margin: 0;
  max-width: 52ch;
  color: var(--hu-mute);
  font-size: 1.02rem;
}

.hu-sec-head {
  margin-bottom: 16px;
}
.hu-sec-kicker {
  margin: 0 0 4px;
  font-family: var(--hu-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hu-teal-deep);
}
.hu-sec-head h2,
.hu-ledger-head h2 {
  margin: 0;
  font-family: var(--hu-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: var(--hu-ink);
}

/* —— Tambour desk —— */
.hu-desk {
  margin-bottom: 36px;
  padding: 0;
  background: linear-gradient(160deg, var(--hu-wood-mid) 0%, var(--hu-wood) 45%, var(--hu-wood-deep) 100%);
  border: 3px solid var(--hu-ink);
  box-shadow: var(--hu-shadow);
  overflow: hidden;
}
.hu-tambour {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  padding: 10px 10px 0;
  background: var(--hu-wood-deep);
  border-bottom: 2px solid var(--hu-ink);
}
.hu-slat {
  display: block;
  height: 52px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(0, 0, 0, 0.15)),
    linear-gradient(180deg, #6B5540, #3A2E22);
  border: 2px solid var(--hu-ink);
  border-radius: 2px;
  transform-origin: top center;
  animation: hu-slat-open 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--hu-s, 0) * 0.04s);
}
@keyframes hu-slat-open {
  from { transform: scaleY(1.15) translateY(-6px); opacity: 0.4; }
  to { transform: scaleY(0.55) translateY(0); opacity: 1; }
}

.hu-cavity {
  padding: 22px 22px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 201, 51, 0.12), transparent 60%),
    linear-gradient(180deg, #2A221A 0%, #1A1410 100%);
  color: #FFF0E4;
}
.hu-legal {
  margin: 0 0 10px;
  font-family: var(--hu-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hu-brass-shine);
}
.hu-mission {
  margin: 0 0 14px;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 240, 228, 0.92);
}
.hu-ref {
  display: inline-block;
  font-family: var(--hu-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hu-bloom);
  border-top: 2px solid rgba(255, 201, 51, 0.35);
  padding-top: 10px;
}

/* —— Cubbies —— */
.hu-cubbies {
  margin-bottom: 36px;
}
.hu-cubby-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hu-cubby {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px 14px;
  background: var(--hu-surface);
  border: 3px solid var(--hu-ink);
  box-shadow: 3px 3px 0 var(--hu-ink);
  animation: hu-rise 0.5s ease both;
  animation-delay: calc(var(--hu-i, 0) * 0.06s);
}
@keyframes hu-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hu-cubby-lip {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 6px;
  background: var(--hu-teal);
  border-radius: 0 0 2px 2px;
  font-size: 0;
}
.hu-cubby:nth-child(2) .hu-cubby-lip { background: var(--hu-accent); }
.hu-cubby:nth-child(3) .hu-cubby-lip { background: var(--hu-bloom); }
.hu-cubby:nth-child(4) .hu-cubby-lip { background: var(--hu-teal-deep); }
.hu-cubby em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hu-mute);
}
.hu-cubby strong {
  font-family: var(--hu-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--hu-ink);
  word-break: break-word;
  line-height: 1.15;
}
.hu-cubby-note {
  font-size: 0.8rem;
  color: var(--hu-mute);
}

/* —— Pull drawers —— */
.hu-draws {
  margin-bottom: 36px;
}
.hu-draw-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hu-draw {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 10px;
  background: linear-gradient(180deg, var(--hu-wood-mid), var(--hu-wood));
  border: 3px solid var(--hu-ink);
  box-shadow: var(--hu-shadow);
  color: #FFF0E4;
  animation: hu-rise 0.5s ease both;
  animation-delay: calc(0.15s + var(--hu-i, 0) * 0.06s);
}
.hu-draw-handle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 28px;
  background: var(--hu-wood-deep);
  border: 2px solid var(--hu-ink);
  border-radius: 4px;
}
.hu-draw-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--hu-brass-shine), var(--hu-brass) 55%, var(--hu-brass-deep));
  border: 2px solid var(--hu-ink);
}
.hu-draw-no {
  font-family: var(--hu-font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--hu-bloom);
  letter-spacing: 0.06em;
}
.hu-draw strong {
  font-family: var(--hu-font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

/* —— Slot rail —— */
.hu-slots {
  margin-bottom: 36px;
}
.hu-slot-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.hu-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px 12px;
  background: var(--hu-surface);
  border: 3px solid var(--hu-ink);
  box-shadow: 3px 3px 0 var(--hu-ink);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: hu-rise 0.45s ease both;
  animation-delay: calc(var(--hu-i, 0) * 0.04s);
}
.hu-slot:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--hu-ink);
}
.hu-slot-no {
  font-family: var(--hu-font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--hu-accent);
}
.hu-slot strong {
  font-family: var(--hu-font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hu-ink);
  line-height: 1.25;
}

/* —— Ledger —— */
.hu-ledger {
  margin-bottom: 8px;
  padding: 22px 22px 24px;
  background: #FFFEFA;
  border: 3px solid var(--hu-ink);
  box-shadow: var(--hu-shadow);
}
.hu-ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(24, 32, 48, 0.18);
}
.hu-ledger-code {
  font-family: var(--hu-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--hu-teal-deep);
  padding: 6px 10px;
  border: 2px solid var(--hu-ink);
  background: var(--hu-bloom);
}

.hu-ledger-lines {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
}
.hu-line {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 12px 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(24, 32, 48, 0.1);
  background: repeating-linear-gradient(
    180deg,
    transparent 0 27px,
    transparent 27px
  );
}
.hu-line dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hu-mute);
  padding-top: 2px;
}
.hu-line dd {
  margin: 0;
  font-family: var(--hu-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hu-ink);
  word-break: break-word;
}

.hu-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  background: var(--hu-field);
  border: 2px solid var(--hu-ink);
}
.hu-contact strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--hu-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hu-teal-deep);
}
.hu-contact p {
  margin: 0;
  font-weight: 600;
  color: var(--hu-ink);
}
.hu-contact a {
  color: var(--hu-accent-deep);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.hu-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hu-lift {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(180deg, #2A221A, #1A1410);
  border: 3px solid var(--hu-ink);
  box-shadow: var(--hu-shadow);
  text-decoration: none !important;
  color: #FFF0E4 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hu-lift:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--hu-ink);
}
.hu-lift:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 var(--hu-ink);
}
.hu-lift-knob {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--hu-brass-shine), var(--hu-brass) 55%, var(--hu-brass-deep));
  border: 2px solid var(--hu-ink);
}
.hu-lift-text {
  flex: 1 1 auto;
  font-family: var(--hu-font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.hu-lift-hint {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hu-bloom);
}
.hu-textlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hu-textlinks a {
  font-family: var(--hu-font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--hu-teal-deep) !important;
  text-decoration: none !important;
  border-bottom: 2px solid var(--hu-teal);
  padding-bottom: 2px;
}
.hu-textlinks a:hover {
  color: var(--hu-accent) !important;
  border-bottom-color: var(--hu-accent);
}

@media (max-width: 900px) {
  .hu-cubby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .hu-cubby-grid {
    grid-template-columns: 1fr;
  }
  .hu-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hu-contact {
    grid-template-columns: 1fr;
  }
  .hu-tambour {
    grid-template-columns: repeat(6, 1fr);
  }
  .hu-tambour .hu-slat:nth-child(n+7) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hu-slat,
  .hu-cubby,
  .hu-draw,
  .hu-slot {
    animation: none;
  }
  .hu-lift,
  .hu-slot {
    transition: none;
  }
}
