/* Join Our Mission (/contact) — four audience sections.
   Individuals & Startups · Enterprise Partners · Capital Partners · Community Partners.
   Station Austin Commons structure, HICAM dark/minimal styling. */

:root {
  --hicam-join-font-heading: var(
    --ai-gen-82921b10-4b39-48f0-b346-808cf4903d29-1750352884403---font--heading-font,
    "Space Grotesk",
    sans-serif
  );
  --hicam-join-bg: #080808;
  --hicam-join-bg-alt: #101012;
  --hicam-join-card: #f4f1ea;
  --hicam-join-accent: #1a5c7a;
}

.hicam-join-page {
  background: var(--hicam-join-bg);
  color: #fff;
  display: block;
  font-family: "DM Sans", "Inter", sans-serif;
}

/* ---------- Buttons ---------- */

.hicam-btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  font-family: var(--hicam-join-font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  max-width: 100%;
  padding: 0.85rem 1.5rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.hicam-btn--primary {
  background: #fff;
  color: #080808 !important;
}
.hicam-btn--primary:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hicam-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
}
.hicam-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hicam-btn--dark {
  background: #111;
  color: #fff !important;
}
.hicam-btn--dark:hover {
  background: #2a2a2a;
}

.hicam-btn--light {
  background: #fff;
  color: #080808 !important;
}
.hicam-btn--light:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ---------- Hero ---------- */

.hicam-join-hero {
  align-items: flex-end;
  display: flex;
  min-height: 78vh;
  overflow: hidden;
  position: relative;
}

.hicam-join-hero__bg {
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  z-index: 0;
}

.hicam-join-hero__scrim {
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.96) 0%,
    rgba(8, 8, 8, 0.72) 45%,
    rgba(8, 8, 8, 0.35) 100%
  );
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hicam-join-hero__inner {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 2vw 6vh;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hicam-join-hero__eyebrow {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--hicam-join-font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.hicam-join-hero__headline {
  color: #fff;
  font-family: var(--hicam-join-font-heading);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.hicam-join-hero__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  margin: 0 0 2rem;
  max-width: 50ch;
}

.hicam-join-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Explorer (tabs + dynamic panel) ---------- */

.hicam-explorer {
  padding: 6vh 2vw 7vh;
}

.hicam-explorer__inner {
  margin: 0 auto;
  max-width: 1120px;
}

.hicam-explorer__label {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--hicam-join-font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.hicam-tabs {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2.75rem;
}

.hicam-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.7rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hicam-tab:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.hicam-tab.is-active {
  background: #fff;
  border-color: #fff;
  color: #080808;
}

.hicam-tab__name {
  font-family: var(--hicam-join-font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
}

.hicam-tab__desc {
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.7;
}

.hicam-panel {
  animation: hicam-fade 0.25s ease;
}

.hicam-panel[hidden] {
  display: none;
}

@keyframes hicam-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hicam-section-head {
  margin-bottom: 2.25rem;
}

.hicam-section-head__eyebrow {
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  font-family: var(--hicam-join-font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  gap: 0.75rem;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hicam-section-head__num {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.hicam-section-head__headline {
  color: #fff;
  font-family: var(--hicam-join-font-heading);
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 24ch;
}

.hicam-section-head__intro {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.5;
  margin: 0;
  max-width: 60ch;
}

.hicam-subhead {
  color: #fff;
  font-family: var(--hicam-join-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1.25rem;
}

/* ---------- Tier cards (vertical columns, side by side) ---------- */

.hicam-tier-cards {
  display: grid;
  gap: 1.25rem;
}

.hicam-tier-cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hicam-tier-card {
  background: var(--hicam-join-card);
  border-radius: 0.85rem;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  color: #111;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 1.5rem;
}

.hicam-tier-card__head {
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
}

.hicam-tier-card__name {
  font-family: var(--hicam-join-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.hicam-tier-card__price-block {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.hicam-tier-card__price {
  font-family: var(--hicam-join-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.hicam-tier-card__price-detail {
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0.7;
}

.hicam-tier-card__desc {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  opacity: 0.82;
}

.hicam-tier-benefits {
  flex: 1;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.hicam-tier-benefit {
  align-items: flex-start;
  display: flex;
  font-size: 0.88rem;
  gap: 0.6rem;
  line-height: 1.4;
  padding: 0.55rem 0;
}

.hicam-tier-check-icon {
  color: var(--hicam-join-accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.hicam-tier-card__foot {
  margin-top: auto;
}

.hicam-tier-card__cta {
  background: #111;
  border: none;
  border-radius: 999px;
  color: #fff !important;
  cursor: pointer;
  display: block;
  font-family: var(--hicam-join-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.8rem 1.4rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 100%;
}

.hicam-tier-card__cta:hover {
  background: #2a2a2a;
}

.hicam-tier-card__note {
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0.75rem 0 0;
  opacity: 0.65;
  text-align: center;
}

/* ---------- Pillars (Why partner / What you access) ---------- */

.hicam-pillars {
  display: grid;
  gap: 1.25rem 1.75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2.5rem;
}

.hicam-pillars--4 {
  grid-template-columns: repeat(4, 1fr);
}

.hicam-pillars--5 {
  grid-template-columns: repeat(3, 1fr);
}

.hicam-pillar {
  border-left: 2px solid var(--hicam-join-accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.hicam-pillar__title {
  color: #fff;
  font-family: var(--hicam-join-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hicam-pillar__body {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Callout (In-kind machinery) ---------- */

.hicam-callout {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
}

.hicam-callout__text {
  flex: 1 1 24rem;
}

.hicam-callout__title {
  color: #fff;
  font-family: var(--hicam-join-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hicam-callout__text p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Feature block (Founding cohort) ---------- */

.hicam-feature {
  background: linear-gradient(135deg, rgba(26, 92, 122, 0.35), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.85rem;
  padding: 2rem 1.75rem;
}

.hicam-feature__eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--hicam-join-font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hicam-feature__body {
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

/* ---------- Audience / bullet lists ---------- */

.hicam-audience-list {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hicam-audience-list li {
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  font-size: 0.95rem;
  gap: 0.65rem;
  line-height: 1.45;
}

.hicam-audience-list .hicam-tier-check-icon {
  color: var(--hicam-join-accent);
}

/* ---------- Community ---------- */

.hicam-community {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr;
}

.hicam-community__cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  padding: 1.75rem;
}

.hicam-community__cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

/* ---------- Facility ---------- */

.hicam-facility {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6vh 2vw;
}

.hicam-facility__inner {
  margin: 0 auto;
  max-width: 1120px;
}

.hicam-facility__headline {
  color: #fff;
  font-family: var(--hicam-join-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.hicam-facility__lede {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  margin: 0 0 2.5rem;
  max-width: 48ch;
}

.hicam-facility__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.hicam-facility__tile {
  border-radius: 0.75rem;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.hicam-facility__tile img {
  aspect-ratio: 16 / 10;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hicam-facility__tile figcaption {
  background: linear-gradient(to top, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0));
  bottom: 0;
  color: #fff;
  font-size: 0.9rem;
  left: 0;
  padding: 2.5rem 1.25rem 1rem;
  position: absolute;
  right: 0;
}

/* ---------- Book a tour ---------- */

.hicam-tour {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7vh 2vw;
  text-align: center;
}

.hicam-tour__inner {
  margin: 0 auto;
  max-width: 640px;
}

.hicam-tour__headline {
  color: #fff;
  font-family: var(--hicam-join-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.hicam-tour__lede {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

/* ---------- Connect page: Join Our Mission button ---------- */

.hicam-join-mission-cta {
  margin-top: 1.75rem;
}

/* ---------- Modals ---------- */

.hicam-modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  z-index: 9999;
}

.hicam-modal.is-open {
  display: flex;
}

.hicam-modal__backdrop {
  background: rgba(0, 0, 0, 0.6);
  inset: 0;
  position: absolute;
}

.hicam-modal__panel {
  background: var(--hicam-join-card);
  border-radius: 0.85rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  color: #111;
  max-height: 90vh;
  max-width: 30rem;
  overflow-y: auto;
  padding: 2rem 1.75rem;
  position: relative;
  width: 100%;
}

.hicam-modal__close {
  background: none;
  border: none;
  color: #111;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
}

.hicam-modal__title {
  font-family: var(--hicam-join-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 1.5rem 0.5rem 0;
}

.hicam-modal__intro {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 1.5rem;
  opacity: 0.78;
}

.hicam-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hicam-modal__row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}

.hicam-modal__field {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hicam-modal__field input,
.hicam-modal__field textarea {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 0.4rem;
  color: #111;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0.6rem 0.7rem;
  text-transform: none;
  width: 100%;
}

.hicam-modal__field textarea {
  resize: vertical;
}

.hicam-modal__field input:focus,
.hicam-modal__field textarea:focus {
  border-color: var(--hicam-join-accent);
  outline: none;
}

.hicam-modal__submit {
  background: #111;
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: var(--hicam-join-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  text-transform: uppercase;
}

.hicam-modal__submit:hover {
  background: #2a2a2a;
}

.hicam-modal__submit:disabled {
  cursor: default;
  opacity: 0.6;
}

.hicam-modal__status {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0.25rem 0 0;
  min-height: 1.2em;
}

.hicam-modal__status.is-success {
  color: #1a7a3c;
}

.hicam-modal__status.is-error {
  color: #b3261e;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hicam-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .hicam-pillars--4,
  .hicam-pillars--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hicam-tier-cards--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hicam-pillars,
  .hicam-pillars--4,
  .hicam-pillars--5,
  .hicam-audience-list,
  .hicam-community,
  .hicam-facility__grid {
    grid-template-columns: 1fr;
  }
}

/* Below tablet, vw side padding gets too tight — give content real gutters. */
@media (max-width: 768px) {
  .hicam-join-hero__inner,
  .hicam-explorer,
  .hicam-facility,
  .hicam-tour {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hicam-feature,
  .hicam-callout,
  .hicam-community__cta {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 520px) {
  .hicam-tabs {
    grid-template-columns: 1fr;
  }

  .hicam-modal__row {
    grid-template-columns: 1fr;
  }

  .hicam-join-hero {
    min-height: 70vh;
  }

  .hicam-modal {
    padding: 1rem;
  }

  .hicam-modal__panel {
    padding: 1.6rem 1.25rem;
  }

  .hicam-tier-card {
    padding: 1.4rem 1.25rem 1.3rem;
  }

  .hicam-join-hero__cta .hicam-btn {
    flex: 1 1 auto;
  }
}
