/* =====================================================================
   Aerion homepage v2 demo: city-wide network sections.
   Sits on top of deploy-current/css/main.css and only uses its tokens
   (black / white / --accent red, Space Grotesk / Inter / JetBrains Mono).
   ===================================================================== */

:root { --slant: 22%; --gutter: max(32px, calc((100vw - 1440px) / 2 + 32px)); }
@media (max-width: 800px) { :root { --gutter: 20px; } }

.credit {
  margin-top: 28px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--text-spectral); opacity: 0.38; line-height: 1.6;
}

/* ---------- 1. split: text left, video right with a slanted edge ---------- */
.net-split {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  min-height: min(86vh, 820px);
  background: var(--bg-black);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
}
.net-split__text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 48px 120px var(--gutter);
}
.net-split__h {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.9vw, 62px);
  line-height: 1.02; letter-spacing: -0.02em;
  font-weight: 700; text-transform: uppercase;
  margin: 0 0 32px; color: var(--text-pure);
}
.net-split__line { display: block; }
.net-roll {
  position: relative; display: block;
  height: 1.12em; overflow: hidden;
  color: var(--accent);
}
.net-roll__word {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  transition: transform 620ms cubic-bezier(.65,0,.2,1), opacity 620ms ease;
}
.net-roll__word.is-in   { transform: translateY(110%); opacity: 0; }
.net-roll__word.is-out  { transform: translateY(-110%); opacity: 0; }
.net-split__body {
  max-width: 470px;
  font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6;
  color: var(--text-dark); opacity: 0.86; margin: 0 0 36px;
}
.net-split__body strong { color: var(--text-pure); font-weight: 600; opacity: 1; }
.net-link {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-pure); text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid var(--accent);
  transition: color var(--transition);
}
.net-link:hover { color: var(--accent); }

.net-split__media {
  position: relative;
  background: #0d0d0d url('../assets/v2/city-network-poster.jpg') center / cover no-repeat;
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
.net-split__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.net-split__media::after { /* keeps the left edge readable against bright sky */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 35%);
}
.net-split__edge {
  position: absolute; z-index: 3; pointer-events: none;
  top: 0; bottom: 0; left: 46%; width: calc(54% * 0.22); height: 100%;
}
.net-split__edge line { stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.net-split__tag {
  position: absolute; right: 24px; bottom: 22px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-spectral); opacity: 0.7;
}

@media (max-width: 800px) {
  /* phone: headline, then the video, then the text, so the rolling word and the
     moving city are on screen together and the section doesn't open with a second
     video straight after the hero */
  .net-split { grid-template-columns: 1fr; min-height: 0; padding: 56px 0 72px; }
  .net-split__text { display: contents; }
  .net-split__text > * { padding-left: var(--gutter); padding-right: var(--gutter); }
  .net-split__text > .eyebrow { order: 1; margin-bottom: 14px; }
  .net-split__h { order: 2; margin-bottom: 28px; }
  .net-split__media {
    order: 3; height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-bottom: 32px;
    background-image: url('../assets/v2/city-network-poster-mobile.jpg');
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }
  .net-split__body { order: 4; }
  .net-split__text > .net-link { order: 5; justify-self: start; margin-left: var(--gutter); padding-left: 0; padding-right: 0; }
  .net-split__edge { display: none; }
  .net-split__tag { bottom: auto; top: 14px; right: 14px; }
}

/* ---------- 2. AI vision ---------- */
.ai__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px;
}
.ai-card { margin: 0; display: flex; flex-direction: column; }
.ai-card__img {
  position: relative; aspect-ratio: 1.3; overflow: hidden;
  background: #0f0f0f; border: 1px solid var(--border-dark);
}
.ai-card__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.ai-card__img--contain img { object-fit: contain; }
.ai-card__img--left img { object-position: 0% 50%; }
.ai-card__stamp {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(0,0,0,0.72); color: var(--text-pure); padding: 5px 9px;
}
.ai-card__tag {
  display: block; margin: 20px 0 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.ai-card__text { display: block; font-size: 15px; line-height: 1.6; color: var(--text-dark); opacity: 0.84; max-width: 380px; }

/* the change card fades between two dated pictures of the same spot */
.ai-change img { transition: none; }
.ai-change .ai-change__after { animation: aiChange 7s ease-in-out infinite; }
.ai-change .ai-card__stamp--after { animation: aiChange 7s ease-in-out infinite; }
.ai-change .ai-card__stamp--before { animation: aiChangeInv 7s ease-in-out infinite; }
@keyframes aiChange    { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes aiChangeInv { 0%, 38% { opacity: 1; } 50%, 88% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ai-change .ai-change__after, .ai-change .ai-card__stamp--after { animation: none; opacity: 1; }
  .ai-change .ai-card__stamp--before { animation: none; opacity: 0; }
}
@media (max-width: 1000px) { .ai__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .ai__grid { grid-template-columns: 1fr; } }

/* ---------- 3. capabilities ---------- */
.caps__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-dark); border-left: 1px solid var(--border-dark);
}
.cap { border-right: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); display: flex; flex-direction: column; }
.cap__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d0d0d; }
.cap__media--split img { object-position: 30% 50%; }
.cap__media img, .cap__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cap__body-wrap { padding: 28px 26px 32px; display: flex; flex-direction: column; flex: 1; }
.cap__num {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(32px, 3vw, 46px); line-height: 1; color: var(--text-pure); margin-bottom: 14px; white-space: nowrap;
}
.cap__title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.cap__text { font-size: 15px; line-height: 1.6; color: var(--text-dark); opacity: 0.85; margin: 0; }
.cap__note {
  margin: auto 0 0; padding-top: 20px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-spectral); opacity: 0.62; line-height: 1.6;
}
@media (max-width: 1100px) { .caps__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .caps__grid { grid-template-columns: 1fr; } .cap__media { aspect-ratio: 16 / 9; } }

/* ---------- 4. over homes, not into them ---------- */
.homes__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.homes__media { position: relative; margin: 0; aspect-ratio: 1.15; overflow: hidden; border: 1px solid var(--border-dark); }
.homes__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85) brightness(0.92); }
.homes__media::after { /* straight-down marker: the camera's footprint */
  content: ''; position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1.33;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.28);
}
.homes__stamp {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(0,0,0,0.75); color: var(--text-pure); padding: 6px 10px;
}
.homes__list { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: homes; }
.homes__list li {
  counter-increment: homes;
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px;
  padding: 22px 0; border-top: 1px solid var(--border-dark);
  font-size: 15.5px; line-height: 1.6; color: var(--text-dark);
}
.homes__list li::before {
  content: counter(homes, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); padding-top: 4px;
}
.homes__list b { display: block; color: var(--text-pure); font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.homes__list span { opacity: 0.82; }
@media (max-width: 900px) { .homes__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- 5. where the network is ---------- */
.where__you {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding: 18px 22px; margin: 0 0 40px;
  border: 1px solid var(--border-dark-2); background: rgba(255,255,255,0.02);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.where__you[hidden] { display: none; }
.where__you-label { color: var(--text-spectral); opacity: 0.55; font-size: 10.5px; letter-spacing: 0.18em; }
.where__you-city { color: var(--text-pure); font-weight: 700; font-size: 14px; }
.where__you-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-spectral); opacity: 0.5; flex: 0 0 auto; }
.where__you[data-state="in"] .where__you-dot,
.where__you[data-state="live"] .where__you-dot { background: var(--accent); opacity: 1; box-shadow: 0 0 0 4px rgba(255,59,48,0.18); }
.where__you-status { color: var(--text-dark); text-transform: none; letter-spacing: 0.02em; font-family: var(--font-body); font-size: 15px; opacity: 0.9; }
.where__you-cta { margin-left: auto; color: var(--text-pure); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.where__you-cta:hover { color: var(--accent); }
.where__you-note { flex-basis: 100%; font-size: 9.5px; opacity: 0.4; letter-spacing: 0.14em; }

.where__cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.where-city { margin: 0; border: 1px solid var(--border-dark); background: #070707; }
.where-city__map { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 6%; }
.where-city__map img { width: 100%; height: 100%; object-fit: contain; display: block; }
.where-city figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 16px 20px; border-top: 1px solid var(--border-dark);
}
.where-city__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: 0.01em; color: var(--text-pure); }
.where-city__meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (max-width: 900px) {
  .where__cities { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .where-city { scroll-snap-align: start; }
}

/* departures board */
.board { margin-top: 56px; }
.board__title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-spectral); opacity: 0.6; margin-bottom: 14px;
}
.board__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.board__row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 110px; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-pure); align-items: baseline;
}
.board__row--head { color: var(--text-spectral); opacity: 0.45; font-size: 10px; letter-spacing: 0.2em; padding-top: 0; }
.board__row span:nth-child(2) { opacity: 0.55; }
.board__row .is-soon { color: var(--accent); }
.board__row .is-later { opacity: 0.55; }
.board__row--you a { color: var(--text-pure); text-decoration: none; border-bottom: 1px solid var(--accent); }
.board__row--you a:hover { color: var(--accent); }
.board__row--you span:first-child { color: var(--accent); }
@media (max-width: 800px) {
  .board__cols { grid-template-columns: 1fr; }
  .board__cols > div + div .board__row--head { display: none; }
  .board__row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 84px; font-size: 12px; }
}

/* ---------- 6. join ---------- */
.join__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.join__private {
  margin: 48px auto 0 !important; padding-top: 28px; max-width: 520px;
  border-top: 1px solid var(--border-dark);
  font-size: 14px !important; opacity: 0.7 !important;
}
.join__private a { color: var(--text-pure); border-bottom: 1px solid var(--accent); text-decoration: none; }

/* drone shots behind the closing section */
.closing-cta > .join__bg {
  position: absolute; inset: 0; z-index: 0;
  background: #000 url('../assets/v2/drone-shots-poster.jpg') center / cover no-repeat;
}
.join__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.85); }
.join__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 38%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.95) 100%);
}
.join .waitlist-form__input { background: rgba(0,0,0,0.55); }
.closing-cta .credit { font-size: 10px; letter-spacing: 0.08em; max-width: none; opacity: 0.4; }
.where__you-note a { color: inherit; border-bottom: 1px solid currentColor; text-decoration: none; }

/* privacy block, text only */
.safe__list {
  list-style: none; margin: 8px 0 0; padding: 0; counter-reset: safe;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-dark);
}
.safe__list li {
  counter-increment: safe;
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 28px 32px 0;
}
.safe__list li + li { padding-left: 28px; border-left: 1px solid var(--border-dark); }
.safe__list li::before {
  content: counter(safe, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent);
}
.safe__list b { color: var(--text-pure); font-weight: 600; font-size: 18px; line-height: 1.3; }
.safe__list span { font-size: 15px; line-height: 1.6; opacity: 0.82; }
.safe__more { display: inline-block; margin-top: 40px; }
.where__note {
  margin-top: 24px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.4;
}
@media (max-width: 1000px) {
  .safe__list { grid-template-columns: 1fr 1fr; }
  .safe__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .safe__list li:nth-child(n+3) { border-top: 1px solid var(--border-dark); }
}
@media (max-width: 600px) {
  .safe__list { grid-template-columns: 1fr; }
  .safe__list li, .safe__list li + li { padding: 22px 0; border-left: 0; }
  .safe__list li + li { border-top: 1px solid var(--border-dark); }
}

/* hero: the year rolls with the city (2027 / Planned); its own width, no width animation */
.eyebrow-roll--status { animation: none; width: auto; margin-left: 0.35em; }
.eyebrow-roll--status .eyebrow-roll__item { opacity: 0.85; }

/* ---------- your city band: under the hero, full width, the grey of the AI section ---------- */
.city-band { background: var(--bg-near-black); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
.city-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 14px 48px; align-items: center; padding: 22px var(--gutter) 20px; }
.city-band__label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dark); opacity: .6; margin-bottom: 4px; }
.city-band__line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; }
.city-band__city, .city-band__steps li.is-on { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; letter-spacing: -.01em; }
.city-band__city { color: var(--text-pure); }
/* the visitor's own status only, set like the departures board: red year, grey later */
.city-band__steps { list-style: none; margin: 0; padding: 0; }
.city-band__steps li { display: none; }
.city-band__steps li.is-on { display: inline-block; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.16); color: var(--text-pure); white-space: nowrap; }
.city-band[data-state="in"] .city-band__steps li.is-on { color: var(--accent); }
.city-band[data-state="later"] .city-band__steps li.is-on,
.city-band[data-state="near"] .city-band__steps li.is-on,
.city-band[data-state="none"] .city-band__steps li.is-on { color: var(--text-dark); opacity: .5; }
.city-band__msg { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text-pure); }
.city-band__msg .net-link { margin-left: 12px; white-space: nowrap; }
.city-band__note { margin: 6px 0 0; font-size: 12px; color: var(--text-dark); opacity: .55; }
.city-band__note a { color: inherit; }
.city-band__act { justify-self: end; }
.city-band__act .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .city-band__inner { grid-template-columns: 1fr; align-items: start; gap: 12px; padding: 22px var(--gutter) 20px; }
  .city-band__act { justify-self: start; }
}

/* hero title bigger, on its own now (Henry, 17 Oct) */
.hero[data-section="hero"] .hero__content { max-width: 1180px; }
.hero[data-section="hero"] h1 { font-size: clamp(42px, 6.8vw, 104px); line-height: .94; letter-spacing: -.015em; }

/* Estonian: "ootenimekirjaga" is one long word; at the English size it broke mid-word on phones */
html[lang="et"] .closing-cta.join h2 { font-size: clamp(32px, 8.4vw, 128px); }

/* every town on the board opens the waitlist with that town filled in */
.board__row a[data-city] { color: inherit; text-decoration: none; transition: color var(--transition); }
.board__row a[data-city]:hover, .board__row a[data-city]:focus-visible { color: var(--accent); }
