/* Aethera portals (Aethera Club on aetheraclub.com, Aethera Executive on aetheraexecutive.com). Same palette and type as aetheralongevity.com. */
:root {
  --ink: #0c1626;
  --ink-2: #13203a;
  --ivory: #f4f0e6;
  --mute: #b8b3a8;
  --gold: #d4b483;
  --gold-fill: #c4a36a;
  --line: rgb(244 240 230 / 0.16);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  /* The page is exactly one screen tall when its content fits: header, main (which grows), fine print. */
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--ink);
  color: var(--ivory);
  font: 300 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.film, .scrim { position: fixed; inset: 0; width: 100%; height: 100%; }
.film { object-fit: cover; z-index: 0; }
.scrim {
  z-index: 1;
  background:
    linear-gradient(to top, rgb(12 22 38 / 0.92) 0%, rgb(12 22 38 / 0.5) 45%, rgb(12 22 38 / 0.2) 75%),
    linear-gradient(to bottom, rgb(12 22 38 / 0.6) 0%, transparent 25%);
}
.top, main, .fine { position: relative; z-index: 2; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem;
}
.top .right { display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 1.9rem; height: auto; }
.brand span {
  font: 500 1.35rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.langs { display: flex; gap: 0.15rem; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-decoration: none; color: var(--mute);
}
.langs a.on, .langs a:hover { color: var(--gold); }
.kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0.6rem 0 0; font: 500 clamp(2.6rem, 7vw, 5.2rem)/1.02 var(--display); letter-spacing: -0.01em; }
.lede { max-width: 38rem; margin: 1.1rem 0 0; font-size: 1.1rem; line-height: 1.6; }
.hero {
  flex: 1 0 auto; width: 100%; max-width: 72rem; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem 1.25rem 3rem;
}
.hero.narrow { width: auto; max-width: 30rem; margin-left: max(1.25rem, calc((100vw - 72rem) / 2)); margin-right: 0; }
.hero.split { display: grid; align-content: end; gap: 2.5rem; }
@media (min-width: 900px) {
  .hero.split { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.75rem 1.4rem;
  border: 1px solid transparent; border-radius: 2px; font: 500 0.78rem/1 var(--sans); letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn.gold { background: var(--gold-fill); color: #0c1c33; }
.btn.gold:hover { background: #d4b88a; }
.btn.ghost { background: rgb(244 240 230 / 0.06); color: var(--ivory); border-color: rgb(244 240 230 / 0.4); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.signin {
  display: grid; gap: 0.5rem; width: 100%; max-width: 26rem; margin-top: 1.75rem; padding: 1.5rem;
  background: rgb(12 22 38 / 0.72); border: 1px solid rgb(212 180 131 / 0.45); backdrop-filter: blur(12px);
}
.signin label { margin-top: 0.4rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.signin input {
  min-height: 2.9rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 2px;
  background: rgb(244 240 230 / 0.06); color: var(--ivory); font: 400 1rem var(--sans);
}
.signin input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.signin .btn { margin-top: 1rem; }
.err { margin: 0.5rem 0 0; color: var(--gold); font-size: 0.9rem; }
.private { margin: 0.75rem 0 0; font-size: 0.78rem; color: var(--mute); }
.inside { flex: 1 0 auto; width: 100%; max-width: 72rem; margin: 0 auto; padding: 3rem 1.25rem 2rem; }
.inside.narrow { max-width: 40rem; }
.cards { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.tiles { grid-template-columns: repeat(4, 1fr); } }
.cards li { background: var(--ink-2); padding: 1.6rem 1.5rem; }
.cards h2 { margin: 0; font: 500 1.7rem/1.1 var(--display); }
.cards p { margin: 0.6rem 0 0; color: var(--mute); font-size: 0.95rem; }
.cards a { display: inline-flex; min-height: 2.75rem; align-items: center; margin-top: 0.4rem; color: var(--gold); }
.cards .soon { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.note { margin-top: 2rem; font-size: 0.85rem; color: var(--mute); }
.out { margin: 0; }
.out .btn { min-height: 2.75rem; padding: 0.6rem 1rem; }
.fine { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem 1.5rem; font-size: 0.72rem; color: var(--mute); }
/* Phones (15 Nov 2026): the five language links no longer fit beside the name, which pushed the page to 468 px and made
   phones shrink the whole page. They now sit on their own row under the name. */
@media (max-width: 560px) {
  .top { flex-wrap: wrap; row-gap: 0.25rem; padding-bottom: 0.4rem; }
  .brand span { font-size: 1.05rem; letter-spacing: 0.1em; }
  .top > .langs, .top > .right { flex-basis: 100%; }
  .top > .right { justify-content: space-between; }
  .langs { margin-left: -0.7rem; }
  .langs a { min-width: 2.75rem; }
  .top .right { gap: 0.4rem; }
  .hero { padding-bottom: 2rem; }
  .hero.split { gap: 1.75rem; }
  .scrim {
    background:
      linear-gradient(to top, rgb(12 22 38 / 0.94) 0%, rgb(12 22 38 / 0.82) 45%, rgb(12 22 38 / 0.68) 75%, rgb(12 22 38 / 0.62) 100%);
  }
  .devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Aethera Club app: download block on the welcome screen (15 Nov 2026). */
.app { margin-top: 1.9rem; max-width: 34rem; }
.app-line { margin: 0.6rem 0 0; font-size: 1rem; line-height: 1.55; }
.devices { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.9rem 0 0; padding: 0; }
.devices li {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem;
  border: 1px solid rgb(244 240 230 / 0.28); border-radius: 999px; background: rgb(12 22 38 / 0.55);
  font-size: 0.82rem; color: var(--ivory);
}
.devices svg { width: 1rem; height: 1rem; color: var(--gold); }
.app .btn { gap: 0.55rem; margin-top: 1.15rem; }
.app .btn svg { width: 1.05rem; height: 1.05rem; }
.app-note { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--mute); }

/* The application form (aetheraclub.com/apply/). */
.apply .lede { font-size: 1rem; }
.apply-form { display: grid; gap: 0.5rem; margin-top: 2rem; }
.apply-form label, .apply-form legend { margin-top: 0.6rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.apply-form input:not([type="checkbox"]), .apply-form select {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 2px;
  background: rgb(244 240 230 / 0.06); color: var(--ivory); font: 400 1rem var(--sans);
}
.apply-form select option { color: var(--ink); background: var(--ivory); }
.apply-form input:focus, .apply-form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.apply-form [aria-invalid="true"] { border-color: var(--gold); }
.apply-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.apply-form .checks { display: grid; gap: 0.35rem; margin-top: 0.5rem; }
@media (min-width: 560px) { .apply-form .checks { grid-template-columns: 1fr 1fr; } }
.apply-form .check {
  display: flex; align-items: center; gap: 0.7rem; min-height: 2.9rem; margin: 0; padding: 0.4rem 0.75rem;
  border: 1px solid var(--line); border-radius: 2px; font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ivory);
  cursor: pointer;
}
.apply-form .check input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--gold-fill); }
.apply-form .check.age { margin-top: 1rem; }
.apply-form .btn { margin-top: 1.25rem; justify-self: start; }
.apply-form .err { margin: 0.1rem 0 0; }
.apply-form .err a { color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* r19: the aetheraclub.com welcome reel. The next clip fades in over the one that is ending. */
.reel { overflow: hidden; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease-in-out; }
.reel video.on { opacity: 1; z-index: 2; }
.reel video.prev { opacity: 1; z-index: 1; transition: none; }
/* r20: the new calisthenics clip is centred on him; 52% keeps the tablet's edge out of a phone crop. */
@media (orientation: portrait) {
  .reel video[data-clip="club-calisthenics"] { object-position: 52% 50%; }
}

/* r20 (Jaye, 16 Nov): the Aethera Longevity Club screen in the bottom-right corner of the film (club-screen.js fills
   it). Wide screens only: on a phone it would cover the sign-in form. Mirrors .ae-app-screen in app/src/styles.css. */
.ae-app-screen { display: none; }
@media (min-width: 1280px) {
  .ae-app-screen { display: block; position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 3; width: 16.5rem; pointer-events: none; }
  /* The welcome content keeps clear of the screen, so it never sits on the sign-in form. */
  body.welcome main.hero { padding-right: 19rem; }
}
/* r20 review: aetheraexecutive.com has no form on its welcome page, so phones and tablets show a compact card in the
   open space at the top right, as the main site does on phones. */
@media (max-width: 1279px) {
  body.welcome.executive .ae-app-screen { display: block; position: absolute; top: 6.25rem; right: 0.9rem; z-index: 3; width: 11.5rem; pointer-events: none; }
  body.welcome.executive .ae-app-screen-in { padding: 0.7rem 0.8rem 0.75rem; border-radius: 1.1rem; }
  body.welcome.executive .ae-app-screen-title { font-size: 1.05rem; }
  body.welcome.executive .ae-app-chart { height: 1.6rem; }
  body.welcome.executive .ae-app-screen-metrics div:nth-child(n + 3),
  body.welcome.executive .ae-app-screen-foot { display: none; }
  body.welcome.executive .ae-app-screen-live { font-size: 0; }
  body.welcome.executive .ae-app-screen-brand { font-size: 0.6rem; letter-spacing: 0.05em; }
  body.welcome.executive .ae-app-screen-metrics dd { font-size: 0.84rem; }
}
.ae-app-screen-in {
  padding: 0.95rem 1.05rem 1rem; border: 1px solid rgb(200 169 106 / 0.55); border-radius: 1.4rem;
  background: rgb(10 26 48 / 0.8); color: #f7f5f0; box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: ae-app-in 700ms cubic-bezier(0.2, 0, 0, 1) both;
  font-family: "Outfit", system-ui, sans-serif;
}
@keyframes ae-app-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ae-app-screen-top { display: flex; align-items: center; gap: 0.35rem; }
.ae-app-screen-top img { width: 1.05rem; height: auto; }
.ae-app-screen-brand { flex: 1; min-width: 0; color: #c8a96a; font-size: 0.68rem; line-height: 1.25; letter-spacing: 0.05em; text-transform: uppercase; }
.ae-app-screen-live { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.25rem; color: #bcc6d2; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ae-app-screen-live::before { content: ""; width: 0.38rem; height: 0.38rem; border-radius: 50%; background: #7fd6a4; animation: ae-app-pulse 1.6s ease-in-out infinite; }
@keyframes ae-app-pulse { 50% { opacity: 0.35; } }
.ae-app-screen-title { margin: 0.45rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; line-height: 1.15; }
.ae-app-chart { display: block; width: 100%; height: 2.2rem; margin-top: 0.35rem; }
.ae-app-chart-line { fill: none; stroke: #c8a96a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: ae-app-draw 2.4s ease-out both; }
@keyframes ae-app-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.ae-app-screen-metrics { display: grid; gap: 0.3rem; margin: 0.4rem 0 0; }
.ae-app-screen-metrics div { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding-top: 0.3rem; border-top: 1px solid #263f5f; }
.ae-app-screen-metrics dt { color: #bcc6d2; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ae-app-screen-metrics dd { margin: 0; font-size: 0.95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ae-app-screen-foot { margin: 0.5rem 0 0; color: #bcc6d2; font-size: 0.7rem; }
@media (prefers-reduced-motion: reduce) {
  .ae-app-screen-in, .ae-app-chart-line, .ae-app-screen-live::before { animation: none; }
}

/* r20 (Jaye, 16 Nov): the Executive sub-headline under the title. */
.sub { margin: 0.6rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.15; color: #c8a96a; }
.sub span { display: block; margin-top: 0.35rem; font-family: "Outfit", system-ui, sans-serif; font-size: 0.95rem; letter-spacing: 0.04em; color: #f7f5f0; }

/* r20 review: the hero words keep their contrast over bright reel frames. */
main.hero :is(h1, .sub, .lede, .kicker) {
  text-shadow: 0 0 2px rgb(10 26 48 / 0.8), 0 0 18px rgb(10 26 48 / 0.7);
}
/* The security and HIPAA line under the sign-in form and on the Executive welcome page. */
.private.security { margin-top: 0.45rem; max-width: 36rem; line-height: 1.5; }
main.hero > .private.security { margin-top: 1.25rem; font-size: 0.8rem; color: #bcc6d2; }
