/* Appily Thirtyseven — Seed House company info
   Layout: hero + meter → strip → stats → story → aisle bento
   → promises → vitals cards → channels → CTAs. Not gallery/story split. */

.page-company-house {
  --hs-ink: #04261f;
  --hs-deep: #0a3d32;
  --hs-leaf: #0f8f72;
  --hs-mint: #2ee6a8;
  --hs-sky: #d6f3ea;
  --hs-wash: #eef9f4;
  --hs-paper: #f7fcfa;
  --hs-coral: #ff6b4a;
  --hs-gold: #e8c547;
  --hs-muted: #4d6b62;
  --hs-line: rgba(4, 38, 31, 0.12);
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-company-house .page-main {
  padding-top: 0;
  font-family: var(--font-body);
  color: var(--hs-ink);
  background:
    radial-gradient(ellipse 52% 34% at 88% 0%, rgba(46, 230, 168, 0.15), transparent 55%),
    radial-gradient(ellipse 40% 26% at 8% 10%, rgba(232, 197, 71, 0.1), transparent 50%),
    linear-gradient(180deg, var(--hs-sky) 0%, var(--hs-wash) 28%, var(--hs-paper) 58%, #fff 100%);
}

.a37-house {
  --house-fill: 70;
  padding-bottom: 3.5rem;
}

.a37-house-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hs-leaf);
}

/* —— Hero —— */
.a37-house-hero {
  position: relative;
  padding: 2.2rem 0 1.6rem;
  overflow: hidden;
  isolation: isolate;
}

.a37-house-hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(15, 143, 114, 0.04) 18px,
      rgba(15, 143, 114, 0.04) 19px
    );
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  animation: a37HouseMesh 30s linear infinite;
}

@keyframes a37HouseMesh {
  to { transform: translateX(24px); }
}

.a37-house-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 1.75rem 2rem;
  align-items: center;
  max-width: 900px;
}

.a37-house-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--hs-muted);
}

.a37-house-crumb a {
  color: var(--hs-leaf);
  text-decoration: none !important;
  font-weight: 650;
}

.a37-house-crumb a:hover {
  color: var(--hs-ink);
}

.a37-house-intro h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--hs-ink);
}

.a37-house-intro h1 span {
  background: linear-gradient(120deg, var(--hs-leaf), var(--hs-mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.a37-house-lede {
  margin: 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hs-muted);
}

.a37-house-meter {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.a37-house-meter svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.a37-house-meter-track {
  fill: none;
  stroke: rgba(4, 38, 31, 0.1);
  stroke-width: 8;
}

.a37-house-meter-fill {
  fill: none;
  stroke: var(--hs-mint);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: var(--house-fill) 100;
  filter: drop-shadow(0 0 8px rgba(46, 230, 168, 0.5));
  transition: stroke-dasharray 0.8s var(--ease-out);
}

.a37-house-meter-core {
  position: relative;
  z-index: 1;
  width: 98px;
  height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(4, 38, 31, 0.1);
  backdrop-filter: blur(12px);
  text-align: center;
}

.a37-house-meter-core strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hs-leaf);
  letter-spacing: -0.03em;
}

.a37-house-meter-core span {
  margin-top: 0.25rem;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-muted);
}

/* —— Stage —— */
.a37-house-stage {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.a37-house-strip {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 1rem 1.4rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  border-radius: 1.4rem;
  background: linear-gradient(145deg, var(--hs-deep), var(--hs-ink));
  color: #fff;
  border: 1px solid rgba(46, 230, 168, 0.28);
  box-shadow: 0 22px 48px rgba(4, 38, 31, 0.22);
  animation: a37HouseIn 0.45s var(--ease-out);
}

.a37-house-strip-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-mint);
}

.a37-house-strip strong {
  font-size: 0.92rem;
  font-weight: 650;
}

.a37-house-strip-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(46, 230, 168, 0.14);
  border: 1px solid rgba(46, 230, 168, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hs-mint);
  white-space: nowrap;
}

.a37-house-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hs-mint);
  box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.55);
  animation: a37HouseDot 1.8s ease-out infinite;
}

@keyframes a37HouseDot {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}

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

/* —— Stats —— */
.a37-house-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  animation: a37HouseIn 0.45s var(--ease-out) 0.05s both;
}

.a37-house-stat {
  position: relative;
  padding: 1.1rem 1.15rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hs-line);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.a37-house-stat.tone-mint { --s-accent: var(--hs-mint); }
.a37-house-stat.tone-gold { --s-accent: var(--hs-gold); }
.a37-house-stat.tone-coral { --s-accent: var(--hs-coral); }

.a37-house-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--s-accent);
}

.a37-house-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(4, 38, 31, 0.08);
}

.a37-house-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hs-leaf);
  line-height: 1.1;
}

.a37-house-stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--hs-muted);
}

/* —— Story —— */
.a37-house-story {
  padding: 1.35rem 1.4rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--hs-line);
  box-shadow: 0 16px 36px rgba(4, 38, 31, 0.07);
  backdrop-filter: blur(10px);
  animation: a37HouseIn 0.45s var(--ease-out) 0.08s both;
}

.a37-house-story-head {
  margin-bottom: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--hs-line);
}

.a37-house-story-head span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-leaf);
}

.a37-house-story-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.a37-house-story-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.a37-house-story-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hs-muted);
}

.a37-house-story-body p:first-child {
  color: var(--hs-ink);
  font-size: 1.02rem;
}

/* —— Aisles —— */
.a37-house-aisles {
  animation: a37HouseIn 0.45s var(--ease-out) 0.1s both;
}

.a37-house-aisles-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.a37-house-aisles-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.a37-house-aisle-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.a37-house-aisle {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hs-line);
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.25s;
}

.a37-house-aisle.tone-mint { --a-accent: var(--hs-mint); }
.a37-house-aisle.tone-gold { --a-accent: var(--hs-gold); }
.a37-house-aisle.tone-teal { --a-accent: #1db88a; }
.a37-house-aisle.tone-coral { --a-accent: var(--hs-coral); }

.a37-house-aisle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--a-accent);
  opacity: 0.55;
}

.a37-house-aisle:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--a-accent) 45%, transparent);
  box-shadow: 0 14px 28px rgba(4, 38, 31, 0.1);
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--a-accent) 12%, #fff));
}

.a37-house-aisle:hover::before {
  opacity: 1;
}

.a37-house-aisle-num {
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--hs-leaf);
}

.a37-house-aisle strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.a37-house-aisle em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--hs-muted);
}

/* —— Promises —— */
.a37-house-promises-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.a37-house-promises-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.a37-house-promises-head span {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-muted);
}

.a37-house-promise-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.a37-house-promise {
  position: relative;
  padding: 1.05rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hs-line);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.a37-house-promise.tone-mint { --p-accent: var(--hs-mint); }
.a37-house-promise.tone-gold { --p-accent: var(--hs-gold); }
.a37-house-promise.tone-teal { --p-accent: #1db88a; }
.a37-house-promise.tone-coral { --p-accent: var(--hs-coral); }

.a37-house-promise::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--p-accent);
}

.a37-house-promise:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(4, 38, 31, 0.08);
}

.a37-house-promise > span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--hs-leaf);
}

.a37-house-promise strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.a37-house-promise p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--hs-muted);
}

/* —— Registry vitals —— */
.a37-house-registry {
  padding: 1.25rem 1.3rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--hs-line);
  box-shadow: 0 14px 32px rgba(4, 38, 31, 0.06);
}

.a37-house-registry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.a37-house-registry-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.a37-house-registry-code {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: var(--hs-leaf);
  background: rgba(46, 230, 168, 0.15);
  border: 1px solid rgba(46, 230, 168, 0.3);
}

.a37-house-vitals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.a37-house-vitals > div {
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  background: var(--hs-wash);
}

.a37-house-vitals-wide {
  grid-column: 1 / -1;
}

.a37-house-vitals dt {
  margin: 0 0 0.2rem;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hs-leaf);
}

.a37-house-vitals dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  word-break: break-word;
  line-height: 1.4;
}

/* —— Channels —— */
.a37-house-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.a37-house-channel {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hs-line);
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.a37-house-channel.tone-mint { --c-accent: var(--hs-mint); }
.a37-house-channel.tone-gold { --c-accent: var(--hs-gold); }
.a37-house-channel.tone-coral { --c-accent: var(--hs-coral); }

.a37-house-channel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-accent);
}

.a37-house-channel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(4, 38, 31, 0.08);
}

.a37-house-channel span {
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hs-leaf);
}

.a37-house-channel strong {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
  word-break: break-word;
}

/* —— Foot —— */
.a37-house-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.a37-house-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.a37-house-btn--primary {
  color: var(--hs-ink);
  background: linear-gradient(135deg, var(--hs-mint), #7ef0c4);
  box-shadow: 0 12px 28px rgba(46, 230, 168, 0.35);
}

.a37-house-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(46, 230, 168, 0.45);
}

.a37-house-btn--soft {
  color: var(--hs-ink);
  background: rgba(46, 230, 168, 0.15);
  border: 1px solid rgba(46, 230, 168, 0.3);
}

.a37-house-btn--soft:hover {
  background: var(--hs-ink);
  color: var(--hs-mint);
}

/* —— Responsive —— */
@media (max-width: 780px) {
  .a37-house-hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .a37-house-crumb,
  .a37-house-lede {
    justify-content: center;
    margin-inline: auto;
  }

  .a37-house-strip {
    grid-template-columns: 1fr;
  }

  .a37-house-stats,
  .a37-house-channels {
    grid-template-columns: 1fr;
  }

  .a37-house-aisles-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .a37-house-aisle-grid,
  .a37-house-promise-grid,
  .a37-house-vitals {
    grid-template-columns: 1fr;
  }

  .a37-house-foot .a37-house-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a37-house-hero-mesh,
  .a37-house-pulse,
  .a37-house-strip,
  .a37-house-stats,
  .a37-house-story,
  .a37-house-aisles {
    animation: none !important;
  }
}
