/* Responsive layout parity for the Aetherion homepage / Webflow Investors page.
   This file loads after the legacy homepage styles so the breakpoint rules here
   define the final layout. */

.aeth-home .hb-hero h1 {
  max-width: 720px;
  font-size: 76px !important;
  line-height: 1.1 !important;
  margin-bottom: 28px;
}

.aeth-home .hb-hero .hero-description {
  max-width: 39rem;
  font-size: 19px !important;
  line-height: 1.5 !important;
}

.aeth-home .hb-hero h1 span {
  display: inline;
}

.aeth-home .hb-thesis h2 {
  font-size: clamp(36px, 3.15vw, 48px) !important;
  line-height: 1.2 !important;
}

.aeth-home .hb-portfolio .section-heading h2 {
  font-size: clamp(42px, 4.2vw, 64px) !important;
  line-height: 1.1 !important;
}

.aeth-home .hb-portal > .container {
  width: min(1280px, calc(100% - 80px));
  max-width: 1280px;
  margin-inline: auto;
}

.aeth-home .hb-portal .section-heading h2 {
  font-size: clamp(40px, 3.35vw, 48px) !important;
  line-height: 1.1 !important;
}

.aeth-home .hb-portal .section-heading {
  text-align: left !important;
}

.aeth-home .hb-portal .portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.aeth-home .hb-portal .portal-link-main {
  min-height: 121px;
  padding: 18px;
}

.aeth-home .hb-portal .portal-link-title {
  font-size: 24px;
  line-height: 1.1;
}

.aeth-home .hb-portal .portal-link-description {
  min-height: 58px;
  padding-inline: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.aeth-home .hb-updates > .container {
  width: min(1280px, calc(100% - 80px));
  max-width: 1280px;
  margin-inline: auto;
}

.aeth-home .hb-updates .ai-alerts {
  height: auto;
  min-height: 388px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.aeth-home .hb-updates .ai-alert-copy-top,
.aeth-home .hb-updates .ai-alert-copy-bottom {
  padding: 48px;
}

.aeth-home .hb-updates .ai-alert-copy h2 {
  font-size: 40px !important;
  line-height: 1.05 !important;
  white-space: nowrap;
}

.aeth-home .hb-updates .ai-alert-copy-bottom p {
  font-size: 16px;
  line-height: 1.45;
}

.aeth-home .hb-updates .ai-alert-form-panel {
  padding: 32px 26px;
}

.aeth-home .hb-updates .ai-alert-form legend {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
}

.aeth-home .hb-updates .ai-alert-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aeth-home .hb-updates .ai-alert-options label {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

.aeth-home .hb-updates .ai-form-status:empty {
  display: none;
}

.aeth-home .hb-updates .ai-alert-submit {
  grid-template-columns: minmax(0, 1fr) auto;
}

.aeth-home .hb-updates .ai-alert-submit .ai-button {
  width: auto;
}

@media (min-width: 992px) {
  .aeth-home .hb-thesis {
    padding-block: 84px;
  }

  .aeth-home .hb-portfolio {
    padding: 80px 0;
  }

  .aeth-home .hb-portfolio .section-heading {
    margin-bottom: 64px;
  }

  .aeth-home .hb-portfolio .section-heading h2 {
    margin-bottom: 19px;
  }

  .aeth-home .hb-portfolio .section-heading h2 {
    font-size: 48px !important;
    line-height: 1.1 !important;
  }

  .aeth-home .hb-portfolio .section-heading > p:last-child {
    font-size: 16px;
    line-height: 1.5;
  }

  .aeth-home .portfolio-card {
    min-height: 230px;
  }

  .aeth-home .hb-portal {
    padding-bottom: 115px;
  }

  .aeth-home .hb-portal .portal-grid {
    grid-template-rows: repeat(2, 228px);
    column-gap: 2px;
    row-gap: 4px;
  }

  .aeth-home .hb-portal .portal-link-main {
    height: 155px;
    min-height: 155px;
  }

  .aeth-home .hb-portal .portal-link-description {
    height: 72px;
    min-height: 72px;
  }

  .aeth-home .hb-updates {
    padding: 80px 0;
  }
}

@media (max-width: 1199px) {
  .aeth-home .hb-hero h1 {
    font-size: clamp(56px, 6.3vw, 72px) !important;
  }

  .aeth-home .hb-updates .ai-alert-copy-top,
  .aeth-home .hb-updates .ai-alert-copy-bottom {
    padding: 36px;
  }
}

@media (max-width: 991px) {
  .aeth-home .hb-hero {
    min-height: 0;
  }

  .aeth-home .hb-hero-content {
    min-height: 0;
    padding: 240px 32px 64px;
  }

  .aeth-home .hb-hero h1 {
    max-width: none;
    font-size: clamp(48px, 6.5vw, 64px) !important;
  }

  .aeth-home .hb-hero .hero-description {
    max-width: 34rem;
    font-size: 18px !important;
  }

  .aeth-home .hb-thesis-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .aeth-home .hb-thesis h2 {
    grid-column: 1;
  }

  .aeth-home .hb-updates .ai-alerts {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .aeth-home .hb-updates .ai-alert-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    height: auto;
  }

  .aeth-home .hb-updates .ai-alert-copy-top,
  .aeth-home .hb-updates .ai-alert-copy-bottom {
    min-height: 162px;
    padding: 24px;
  }

  .aeth-home .hb-updates .ai-alert-form-panel {
    padding: 32px;
  }

  .aeth-home .hb-updates .ai-alert-submit {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .aeth-home .hb-updates .ai-alert-submit .ai-button {
    width: auto;
  }
}

/* Webflow's compact tablet layout begins just below the desktop breakpoint. */
@media (min-width: 992px) and (max-width: 1199px) {
  .aeth-home .hb-hero-content {
    justify-content: flex-end;
    padding: 180px 4.2vw 76px;
  }

  .aeth-home .hb-hero h1 {
    max-width: 672px;
    font-size: 72px !important;
  }

  .aeth-home .hb-hero .hero-description {
    max-width: 39rem;
    font-size: 19px !important;
  }

  .aeth-home .hb-hero-actions {
    position: absolute;
    right: 7.2vw;
    bottom: 76px;
  }

  .aeth-home .hb-thesis {
    padding: 40px 0;
  }

  .aeth-home .hb-thesis-inner {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .aeth-home .hb-thesis .eyebrow {
    align-self: start;
    margin-top: 7px;
  }

  .aeth-home .hb-thesis h2 {
    grid-column: 2;
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .aeth-home .hb-portfolio {
    padding: 60px 0 40px;
  }

  .aeth-home .hb-portfolio > .container {
    width: calc(100% - 80px);
    margin-inline: auto;
  }

  .aeth-home .hb-portfolio .section-heading {
    margin-bottom: 40px;
  }

  .aeth-home .hb-portfolio .section-heading h2 {
    margin-bottom: 11px;
    font-size: 40px !important;
    line-height: 1.2 !important;
  }

  .aeth-home .hb-portfolio .section-heading > p:last-child {
    font-size: 16px;
    line-height: 24px;
  }

  .aeth-home .portfolio-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .aeth-home .portfolio-card {
    min-height: 245px;
  }

  .aeth-home .hb-portal {
    padding: 56px 0 43px;
  }

  .aeth-home .hb-portal > .container {
    width: calc(100% - 80px);
    margin-inline: auto;
  }

  .aeth-home .hb-portal .section-heading h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .aeth-home .hb-portal .portal-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
    min-height: 0;
    padding-top: 0;
    overflow: visible;
  }

  .aeth-home .hb-portal .portal-link {
    height: auto;
    min-width: 0;
    gap: 1px;
  }

  .aeth-home .hb-portal .portal-link-main {
    height: 121px;
    min-height: 121px;
    padding: 18px;
  }

  .aeth-home .hb-portal .portal-link-description {
    height: 58px;
    min-height: 58px;
    padding: 0 18px;
  }

  .aeth-home .hb-updates {
    padding: 40px 0;
  }

  .aeth-home .hb-updates .ai-alerts {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .aeth-home .hb-updates .ai-alert-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    height: auto;
  }

  .aeth-home .hb-updates .ai-alert-copy-top,
  .aeth-home .hb-updates .ai-alert-copy-bottom {
    min-height: 175px;
    padding: 24px;
  }

  .aeth-home .hb-updates .ai-alert-form-panel {
    grid-column: auto;
    padding: 32px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .aeth-home .hb-hero {
    min-height: calc(84vw + 142px);
  }

  .aeth-home .hb-hero-content {
    min-height: calc(84vw + 142px);
    justify-content: flex-end;
    padding: 0 48px 163px;
  }

  .aeth-home .hb-hero h1 {
    max-width: 672px;
    margin-bottom: 32px;
    font-size: 64px !important;
  }

  .aeth-home .hb-hero .hero-description {
    max-width: 600px;
  }

  .aeth-home .hb-thesis {
    padding: 67.5px 0;
  }

  .aeth-home .hb-portfolio {
    padding: 64px 0;
  }

  .aeth-home .hb-portfolio > .container {
    width: calc(100% - 80px);
    margin-inline: auto;
  }

  .aeth-home .hb-portfolio .section-heading {
    margin-bottom: 48px;
  }

  .aeth-home .hb-portfolio .section-heading h2 {
    margin-bottom: 11px;
    font-size: 40px !important;
    line-height: 1.2 !important;
  }

  .aeth-home .hb-portfolio .section-heading > p:last-child {
    font-size: 16px;
    line-height: 24px;
  }

  .aeth-home .portfolio-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .aeth-home .portfolio-card {
    /* height: 245px; */
    min-height: 245px;
  }

  .aeth-home .hb-portal {
    padding: 95px 0 63px;
  }

  .aeth-home .hb-portal .portal-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 1px);
    grid-template-columns: none;
    grid-template-rows: auto;
    box-sizing: border-box;
    height: 345px;
    min-height: 345px;
    padding-top: 77px;
    gap: 2px;
    align-content: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .aeth-home .hb-portal .portal-grid::-webkit-scrollbar {
    display: none;
  }

  .aeth-home .hb-portal .section-heading {
    margin-bottom: 36px;
  }

  .aeth-home .hb-portal .portal-link {
    height: 267px;
    min-width: 0;
    gap: 0;
    align-self: start;
    scroll-snap-align: start;
  }

  .aeth-home .hb-portal .portal-link-main {
    height: 155px;
    min-height: 155px;
    padding: 24px 20px;
  }

  .aeth-home .hb-portal .portal-link-description {
    height: 112px;
    min-height: 112px;
    padding: 16px;
  }

  .aeth-home .hb-updates {
    padding: 64px 0;
  }

  .aeth-home .hb-updates .ai-alerts {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .aeth-home .hb-updates .ai-alert-copy {
    display: contents;
    height: auto;
  }

  .aeth-home .hb-updates .ai-alert-copy-top,
  .aeth-home .hb-updates .ai-alert-copy-bottom {
    min-height: 175px;
    padding: 24px;
  }

  .aeth-home .hb-updates .ai-alert-form-panel {
    grid-column: 1 / -1;
    padding: 22.5px 32px;
  }

}

@media (max-width: 757px) {
  .aeth-home .hb-hero {
    min-height: 0;
    margin-top: -40px;
  }

  .aeth-home .hb-hero-content {
    min-height: 0;
    justify-content: flex-start;
    padding: 172px 24px 40px;
  }

  .aeth-home .hb-hero .eyebrow {
    margin-bottom: 20px;
  }

  .aeth-home .hb-hero h1 {
    max-width: none;
    margin-bottom: 24px;
    font-size: 48px !important;
    line-height: 1.1 !important;
  }

  .aeth-home .hb-hero .hero-description {
    max-width: none;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  .aeth-home .hb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    inset: auto;
    align-self: flex-start;
    margin-top: 24px;
    width: max-content;
    max-width: 100%;
    gap: 10px;
  }

  .aeth-home .hb-hero-actions .btn-light {
    box-sizing: border-box;
    width: 152px;
    min-width: 152px;
    height: 52px;
    min-height: 52px;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 16px;
    white-space: nowrap;
  }

  /* Keep the hover label and arrow inside the fixed mobile button box. */
  .aeth-home .hb-hero-actions .btn-light {
    gap: 16px;
  }

  .aeth-home .hb-hero-actions .btn-light::before {
    content: "Why Invest";
    transform: none;
    font-size: 1rem;
    line-height: 1.5;
  }

  .aeth-home .hb-hero-actions .btn-light::after { content: none; }

  .aeth-home .hb-hero-actions .btn-light:hover::before,
  .aeth-home .hb-hero-actions .btn-light:focus-visible::before { transform: none; }

  .aeth-home .hb-hero-actions .btn-light .arrow {
    margin: 0;
    width: 24px;
    height: 24px;
    flex: none;
  }

  .aeth-home .hb-hero-actions .btn-light:hover .arrow,
  .aeth-home .hb-hero-actions .btn-light:focus-visible .arrow {
    transform: translateX(3px);
  }

  .aeth-home .hb-hero-actions .btn-outline-light {
    box-sizing: border-box;
    width: 192px;
    min-width: 192px;
    height: 52px;
    min-height: 52px;
    padding: 0 16px !important;
    padding-inline: 16px;
    white-space: nowrap;
  }

  .aeth-home .hb-thesis {
    padding: 40px 0;
  }

  .aeth-home .hb-thesis-inner {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .aeth-home .hb-thesis .eyebrow {
    margin: 0;
  }

  .aeth-home .hb-thesis h2 {
    grid-column: 1;
    font-size: 32px !important;
    line-height: 1.2 !important;
    letter-spacing: -.04em !important;
  }

  .aeth-home .hb-portfolio {
    padding: 40px 0;
  }

  .aeth-home .hb-portfolio > .container {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .aeth-home .hb-portfolio .section-heading {
    margin-bottom: 37px;
  }

  .aeth-home .hb-portfolio .section-heading h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .aeth-home .portfolio-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .aeth-home .portfolio-card {
    min-height: 177px;
    padding: 20px 24px;
  }

  .aeth-home .portfolio-card .eyebrow {
    margin-bottom: 8px;
  }

  .aeth-home .portfolio-card h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  .aeth-home .portfolio-card > p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.4;
  }

  .aeth-home .hb-portal {
    padding: 56px 0 43px;
  }

  .aeth-home .hb-portal > .container {
    width: calc(100% - 40px);
    max-width: 1280px;
  }

  .aeth-home .hb-portal .section-heading {
    margin-bottom: 36px;
  }

  .aeth-home .hb-portal .section-heading h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .aeth-home .hb-portal .portal-grid {
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 1px);
    grid-template-columns: none;
    grid-template-rows: auto;
    gap: 2px;
    box-sizing: border-box;
    height: 305px;
    min-height: 305px;
    padding-top: 71px;
    align-content: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .aeth-home .hb-portal .portal-grid::-webkit-scrollbar {
    display: none;
  }

  .aeth-home .hb-portal .portal-link {
    min-width: 0;
    height: 235px;
    align-self: start;
    scroll-snap-align: start;
  }

  .aeth-home .hb-portal .portal-link-main {
    min-height: 147px;
    padding: 18px;
  }

  .aeth-home .hb-portal .portal-link-title {
    padding-top: 16px;
    font-size: 20px;
  }

  .aeth-home .hb-portal .portal-link-description {
    min-height: 88px;
    padding: 0 16px;
    font-size: 12px;
  }

  .aeth-home .hb-updates {
    padding: 40px 0;
  }

  .aeth-home .hb-updates > .container {
    width: calc(100% - 40px);
    max-width: 1280px;
  }

  .aeth-home .hb-updates .ai-alerts {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .aeth-home .hb-updates .ai-alert-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    height: auto;
  }

  .aeth-home .hb-updates .ai-alert-copy-top,
  .aeth-home .hb-updates .ai-alert-copy-bottom {
    min-width: 0;
    min-height: 162px;
    padding: 20px;
  }

  .aeth-home .hb-updates .ai-alert-copy h2 {
    max-width: none;
    font-size: 32px !important;
    line-height: 1.2 !important;
    white-space: normal;
  }

  .aeth-home .hb-updates .ai-alert-copy-bottom p {
    font-size: 16px;
    line-height: 1.5;
  }

  .aeth-home .hb-updates .ai-alert-form-panel {
    padding: 19.5px 20px;
  }

  .aeth-home .hb-updates .ai-alert-form legend {
    font-size: 20px;
  }

  .aeth-home .hb-updates .ai-alert-options {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
  }

  .aeth-home .hb-updates .ai-alert-options label {
    padding: 11px 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .aeth-home .hb-updates .ai-alert-submit {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 24px;
  }

  .aeth-home .hb-updates .ai-alert-submit .ai-button {
    width: auto;
    padding-inline: 20px;
  }

  .aeth-home .hb-updates .ai-alert-note {
    margin-top: 24px;
  }

  .aeth-home .hb-updates .ai-alert-form fieldset {
    padding-bottom: 20px;
  }

  .aeth-home .hb-updates .ai-form-status:empty {
    display: none;
  }
}

@media (max-width: 420px) {
  .aeth-home .hb-hero h1 {
    font-size: 42px !important;
  }

  .aeth-home .hb-updates .ai-alert-copy-top,
  .aeth-home .hb-updates .ai-alert-copy-bottom {
    padding: 16px;
  }

  .aeth-home .hb-updates .ai-alert-copy h2 {
    font-size: 28px !important;
  }

  .aeth-home .hb-updates .ai-alert-form-panel {
    padding: 20px;
  }
}

/* Give the four portfolio cards clear rounded edges and transparent separation. */
.aeth-home .portfolio-cards {
  gap: 3px;
  background: transparent;
}

.aeth-home .portfolio-card,
.aeth-home .portfolio-card:nth-child(odd),
.aeth-home .portfolio-card:nth-child(-n+2),
.aeth-home .portfolio-card:last-child {
  border: 2px solid transparent !important;
  border-radius: 8px;
}

/* Move the outgoing hero button label fully beyond its clipped edge on hover. */
@media (min-width: 992px) {
  .aeth-home .hb-hero-actions .btn-light:hover::before,
  .aeth-home .hb-hero-actions .btn-light:focus-visible::before {
    transform: translateY(-200%);
  }
}

/* Keep the newsletter preference available in the homepage alert form. */
.aeth-home .hb-updates .ai-alert-options label:last-child {
  display: inline-flex !important;
}

@media (max-width: 767px) {
  .aeth-home .hb-thesis-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 1em !important;
  }
}
