/* Aether — open-source editing software, inside the SISE site. */

[data-page="aether"] {
  --ae-red: #ff3038;
  --ae-ink: #f7f7f5;
  --ae-mute: #c4c4be;
  --ae-dim: #9a9a94;
  --ae-line: rgb(247 247 245 / 0.14);
  --ae-black: #070708;
  --ae-sans: "IBM Plex Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  background-color: #101114;
  color: var(--ae-ink);
}

[data-page="aether"] main {
  background-color: #101114;
}

[data-page="aether"] ::selection {
  background: rgb(255 48 56 / 0.35);
}

[data-page="aether"] :focus-visible {
  outline-color: var(--ae-red);
}

html[data-page="aether"] {
  scroll-padding-top: calc(var(--header-h) + 3.4rem);
}

[data-page="aether"] section[id] {
  scroll-margin-top: calc(var(--header-h) + 3.6rem);
}

[data-page="aether"] main,
[data-page="aether"] .ae-subnav {
  font-family: var(--ae-sans);
}

[data-page="aether"] main h1,
[data-page="aether"] main h2,
[data-page="aether"] main h3 {
  font-family: var(--ae-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ae-subnav-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: #000;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.ae-subnav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  height: 3.15rem;
  padding: 0 1rem;
  overflow-x: auto;
}

.ae-subnav a {
  flex: none;
  color: #e4e4e0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ae-subnav a:hover {
  color: #fff;
}

.ae-subnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.35rem;
  color: var(--ae-ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ae-subnav-brand img {
  width: 6.4rem;
  height: auto;
  background: transparent;
  filter: none;
}

.ae-subnav-cta {
  margin-left: auto;
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius);
  background: var(--ae-red);
  color: #1a0708;
}

.ae-subnav-cta:hover {
  background: #ff4d54;
  color: #1a0708;
}

.ae-section {
  padding: 4.25rem 0;
}

.ae-section h2 {
  margin: 0.45rem 0 0;
  max-width: 16em;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--ae-ink);
}

.ae-kicker span {
  color: var(--ae-red);
  margin-right: 0.55rem;
}

.ae-prose {
  max-width: 40rem;
  margin-top: 1.15rem;
  color: var(--ae-mute);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ae-prose p {
  margin: 0;
}

.ae-prose p + p {
  margin-top: 0.9rem;
}

.ae-btn-solid {
  background: var(--ae-red);
  color: #1a0708;
}

.ae-btn-solid:hover {
  background: #ff4d54;
  color: #1a0708;
}

.ae-btn-line {
  background: transparent;
  color: var(--ae-ink);
  border-color: rgb(247 247 245 / 0.3);
}

.ae-btn-line:hover {
  border-color: var(--ae-red);
  color: var(--ae-red);
}

/* Hero */
.ae-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.2rem 0 3.2rem;
  background-color: #101114;
}

.ae-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 78%;
  z-index: 0;
  pointer-events: none;
  background-image: url("media/aether-leaves.svg?v=77");
  background-repeat: repeat;
  background-size: 30rem auto;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

.ae-hero-grid,
.ae-hero .wrap {
  position: relative;
  z-index: 1;
}

.ae-hero-grid > * {
  min-width: 0;
}

.ae-hero-copy {
  position: relative;
  z-index: 2;
  background: transparent;
}

.ae-mark {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  line-height: 0;
}

.ae-hero-logo,
.ae-close-logo,
.ae-foot-brand img {
  background: transparent;
}

.ae-hero-logo {
  display: block;
  width: min(100%, 15.5rem);
  height: auto;
}

.ae-hero h1,
.ae-lead,
.ae-status,
.ae-byline {
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.72);
}

.ae-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.4rem 0 0;
  color: var(--ae-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ae-hero h1 {
  margin: 0.7rem 0 0;
  max-width: 12em;
  font-size: clamp(2.35rem, 6.2vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
}

.ae-lead {
  max-width: 40rem;
  margin: 1.15rem 0 0;
  color: var(--ae-mute);
  font-size: 1.08rem;
  line-height: 1.6;
}

.ae-hero .actions {
  margin-top: 1.5rem;
}

.ae-byline {
  margin: 1.1rem 0 0;
  color: var(--ae-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ae-byline a:hover {
  color: var(--ae-ink);
}

.ae-facts {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.ae-facts li {
  padding-top: 0.75rem;
  border-top: 1px solid var(--ae-line);
}

.ae-facts strong {
  display: block;
  color: var(--ae-ink);
  font-size: 0.95rem;
}

.ae-facts span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ae-dim);
  font-size: 0.88rem;
}

/* Lists */
.ae-scope,
.ae-roles,
.ae-aims {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.ae-scope li,
.ae-roles li,
.ae-aims li {
  padding: 0.85rem 0 0.85rem 0.9rem;
  border-top: 1px solid var(--ae-line);
  box-shadow: inset 2px 0 0 transparent;
}

.ae-scope li:last-child,
.ae-roles li:last-child,
.ae-aims li:last-child {
  border-bottom: 1px solid var(--ae-line);
}

.ae-scope h3,
.ae-roles li {
  margin: 0;
  color: var(--ae-ink);
  font-size: 1.02rem;
}

.ae-scope p {
  margin: 0.25rem 0 0;
  color: var(--ae-dim);
  font-size: 0.92rem;
}

.ae-callout {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(255 48 56 / 0.45);
  color: var(--ae-ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Philosophy — present, but not the product claim */
.ae-philosophy {
  background: #121418;
}

.ae-quote {
  margin: 1.3rem 0 0;
  padding: 0;
  border: 0;
  max-width: 40rem;
  color: var(--ae-mute);
  font-size: 1.08rem;
  line-height: 1.6;
}

.ae-quote p {
  margin: 0;
}

.ae-quote p + p {
  margin-top: 0.85rem;
}

.ae-quote strong {
  color: var(--ae-ink);
  font-weight: 600;
}

/* Collaborate */
.ae-collab {
  background: #0c0e12;
}

.ae-collab-grid,
.ae-split {
  display: grid;
  gap: 2.2rem;
}

.ae-contact-name {
  margin: 1.3rem 0 0.15rem;
}

.ae-contact-mail {
  color: var(--ae-ink);
  font-weight: 600;
}

.ae-contact-mail:hover {
  color: var(--ae-red);
}

.ae-form {
  color-scheme: dark;
}

.ae-fields {
  display: grid;
  gap: 1rem;
}

.ae-field label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--ae-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ae-field input,
.ae-field select,
.ae-field textarea {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgb(247 247 245 / 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--ae-ink);
  font: inherit;
  font-size: 1rem;
}

.ae-field textarea {
  min-height: 8rem;
  padding: 0.7rem;
  border: 1px solid rgb(247 247 245 / 0.24);
  resize: vertical;
}

.ae-field input:focus-visible,
.ae-field select:focus-visible,
.ae-field textarea:focus-visible {
  border-color: var(--ae-red);
}

.ae-field select {
  color-scheme: light;
  background-color: #0c0e12;
  color: var(--ae-ink);
}

.ae-field select option {
  background-color: #fff;
  color: #1c1e22;
}

.ae-field select option:disabled {
  color: #5c5e62;
}

.ae-pick {
  position: relative;
}

.ae-pick.is-ready select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.ae-pick-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.65rem 1.6rem 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgb(247 247 245 / 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--ae-ink);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.ae-pick-btn.is-placeholder {
  color: #d4d4ce;
}

.ae-pick-btn::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 1.15rem;
  border: 5px solid transparent;
  border-top-color: #f4f4f1;
}

.ae-pick-list {
  position: absolute;
  z-index: 6;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: #1c1f26;
  border: 1px solid rgb(247 247 245 / 0.18);
  box-shadow: 0 16px 36px rgb(0 0 0 / 0.45);
  max-height: 16rem;
  overflow: auto;
}

.ae-pick-list [role="option"] {
  padding: 0.55rem 0.85rem;
  color: #f7f7f5;
  cursor: pointer;
}

.ae-pick-list [role="option"][aria-selected="true"] {
  background: rgb(255 48 56 / 0.16);
}

.ae-pick-list [role="option"]:hover,
.ae-pick-list [role="option"]:focus {
  background: #ff3038;
  color: #1a0708;
  outline: none;
}

.ae-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ae-form-status {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
  color: var(--ae-mute);
}

.ae-form-status.is-error {
  color: #ffc4c6;
}

.ae-form button {
  cursor: pointer;
  font-family: inherit;
}

/* Community */
.ae-board {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.ae-board li {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--ae-line);
}

.ae-board li:last-child {
  border-bottom: 1px solid var(--ae-line);
}

.ae-board strong {
  color: var(--ae-ink);
}

.ae-board span {
  color: var(--ae-dim);
  font-size: 0.92rem;
}

/* SISE */
.ae-sise {
  background: #121418;
}

.ae-sise-mark {
  width: 4.5rem;
  height: auto;
  margin-bottom: 1rem;
}

/* Close */
.ae-close {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: #0c0e12;
}

.ae-close-logo {
  width: min(100%, 11rem);
  height: auto;
  margin-bottom: 1.4rem;
  background: transparent;
}

.ae-close h2 {
  max-width: 10em;
}

.ae-tag {
  margin: 1.3rem 0 0;
  color: var(--ae-dim);
  font-size: 0.95rem;
}

.ae-foot-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 1.1rem;
  padding-top: 1.3rem;
  color: var(--ae-dim);
  font-size: 0.82rem;
}

.ae-foot-brand img {
  width: 7.2rem;
  height: auto;
  background: transparent;
}

@media (min-width: 720px) {
  .ae-facts,
  .ae-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }

  .ae-fields {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
  }

  .ae-field-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .ae-section {
    padding: 5.5rem 0;
  }

  .ae-hero-logo {
    width: min(100%, 17rem);
  }

  .ae-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.5rem;
    align-items: center;
  }

  .ae-flow {
    grid-auto-flow: unset;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .ae-split,
  .ae-collab-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: start;
  }

  .ae-subnav {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-page="aether"] {
    scroll-behavior: auto;
    background-attachment: scroll;
  }

  .nle-play,
  .ae-tl i {
    animation: none;
  }
}

/* Concept workspace — a cropped piece of the study, not the whole window */
.ae-stage {
  margin: 1.6rem 0 0;
}

.ae-ui-crop {
  height: 13.5rem;
  overflow: hidden;
  border-radius: 0.45rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 92%, transparent);
}

.ae-ui-crop img {
  display: block;
  width: 176%;
  max-width: none;
  height: auto;
  margin-left: -28%;
  margin-top: -18%;
}

.ae-stage figcaption {
  margin: 0.55rem 0 0;
  color: var(--ae-dim);
  font-size: 0.78rem;
}

.nle {
  border: 1px solid rgb(247 247 245 / 0.16);
  border-radius: 0.7rem;
  background: #121418;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  overflow: hidden;
  color: #d7d7d2;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.nle-top,
.nle-ruler,
.nle-viewbar,
.ae-mini header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  background: #1b1e24;
  color: #b7b7b1;
}

.nle-top img {
  width: 4.4rem;
  height: auto;
}

.nle-tc,
.ae-mini header span {
  margin-left: auto;
  color: #f4f4f1;
  font-variant-numeric: tabular-nums;
}

.nle-keys {
  display: inline-flex;
  gap: 0.28rem;
}

.nle-keys i {
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid rgb(247 247 245 / 0.28);
  border-radius: 2px;
}

.nle-keys i:nth-child(3) {
  background: var(--ae-red);
  border-color: var(--ae-red);
}

.nle-mid {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) 6.4rem;
  min-height: 9.2rem;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.nle-bin,
.nle-ins {
  padding: 0.55rem 0.6rem;
  background: #0e1014;
}

.nle-ins {
  border-left: 1px solid rgb(255 255 255 / 0.06);
}

.nle-bin strong,
.nle-ins strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #f4f4f1;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nle-bin ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nle-bin li,
.nle-ins p,
.ae-mini li {
  margin: 0;
  padding: 0.18rem 0;
  color: #b7b7b1;
}

.nle-bin .is-on,
.ae-mini .is-on,
.ae-bins .is-on {
  color: #fff;
  box-shadow: inset 2px 0 0 var(--ae-red);
  padding-left: 0.4rem;
}

.nle-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem;
  margin-top: 0.45rem;
}

.nle-thumbs i {
  display: block;
  height: 1.35rem;
  background:
    linear-gradient(135deg, rgb(255 48 56 / 0.85), transparent 55%),
    #2a2d33;
}

.nle-view {
  display: flex;
  flex-direction: column;
  background: #08090b;
}

.nle-frame {
  position: relative;
  flex: 1;
  margin: 0.45rem;
  background:
    linear-gradient(160deg, #3a3a3a 0 38%, transparent 38% 62%, #ff3038 62% 70%, transparent 70%),
    #161616;
}

.nle-frame span {
  position: absolute;
  top: 0.35rem;
  left: 0.4rem;
  color: #fff;
  font-weight: 700;
}

.nle-viewbar {
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.nle-ins b {
  color: #f4f4f1;
  font-weight: 600;
}

.nle-tl {
  position: relative;
  border-top: 1px solid rgb(255 255 255 / 0.06);
  background: #0c0e12;
}

.nle-ruler {
  justify-content: space-between;
  min-height: 1.4rem;
  padding-left: 2.4rem;
  color: #8e8e88;
  font-variant-numeric: tabular-nums;
}

.nle-track {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.7rem;
  padding: 0.18rem 0.45rem 0.18rem 0.3rem;
}

.nle-track em {
  color: #8e8e88;
  font-style: normal;
  font-size: 0.62rem;
}

.nle-track .c,
.nle-track .a {
  display: block;
  height: 1.25rem;
  border-radius: 2px;
}

.nle-v {
  grid-template-columns: 2.1rem minmax(0, 1.15fr) minmax(0, 1.45fr) minmax(0, 1fr);
}

.c1 { background: #ff3038; color: #1a0708; }
.c2 { background: #3a3a3a; color: #f4f4f1; }
.c3 { background: #8d2f34; color: #f4f4f1; }
.a1, .a2 {
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, rgb(255 255 255 / 0.35) 3px 4px),
    #2d5a40;
}
.a2 { background-color: #3d5344; }

.c, .a {
  overflow: hidden;
  padding: 0.15rem 0.3rem;
  color: #1a0708;
  font-weight: 700;
  line-height: 1.25rem;
}

.nle-play {
  position: absolute;
  top: 1.35rem;
  bottom: 0.2rem;
  left: 46%;
  width: 2px;
  background: var(--ae-red);
  animation: ae-play 9s linear infinite;
}

.nle-play::before {
  content: "";
  position: absolute;
  top: -0.28rem;
  left: -0.22rem;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.38rem solid var(--ae-red);
}

@keyframes ae-play {
  from { left: 28%; }
  to { left: 78%; }
}

.ae-stage figcaption {
  margin: 0.55rem 0 0;
  color: var(--ae-dim);
  font-size: 0.78rem;
}

.ae-flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13.5rem, 78%);
  gap: 0.75rem;
  margin-top: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
}

.ae-flow article {
  scroll-snap-align: start;
}

.ae-mini {
  height: 9.2rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgb(247 247 245 / 0.14);
  border-radius: 0.55rem;
  background: #121418;
  overflow: hidden;
  color: #c8c8c2;
  font-size: 0.72rem;
}

.ae-mini header b {
  color: #f4f4f1;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ae-mini ul {
  margin: 0;
  padding: 0.45rem 0.7rem;
  list-style: none;
}

.ae-mini li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ae-mini li i {
  width: 0.85rem;
  height: 0.55rem;
  background: #3a3a3a;
}

.ae-mini .is-on i { background: var(--ae-red); }

.ae-bins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.7rem;
}

.ae-bins span {
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  background: #1c1f25;
  text-align: center;
}

.ae-tl {
  position: relative;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  height: calc(100% - 2rem);
  padding: 0.7rem;
}

.ae-tl .c {
  height: 2.4rem;
  flex: 1;
}

.ae-tl i {
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: 58%;
  width: 2px;
  background: var(--ae-red);
}

.ae-grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  height: calc(100% - 2rem);
  padding: 0.8rem;
}

.ae-grade span {
  border-radius: 50%;
  background: conic-gradient(from 20deg, #ff3038, #f4f4f1, #3a3a3a, #ff3038);
}

.ae-flow h3 {
  margin: 0;
  font-size: 1rem;
}

.ae-flow p {
  margin: 0.25rem 0 0;
  color: var(--ae-dim);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .ae-subnav {
    flex-wrap: wrap;
    height: auto;
    padding-block: 0.4rem;
    row-gap: 0.15rem;
  }

  .ae-subnav-cta {
    margin-left: 0;
  }

  .nle-mid {
    grid-template-columns: 1fr;
  }

  .nle-ins {
    display: none;
  }

  .nle-top span:not(.nle-tc):not(.nle-keys) {
    display: none;
  }
}

@media (min-width: 960px) {
  .ae-stage {
    margin: 0 calc(50% - 50vw) 0 0;
  }

  .ae-ui-crop {
    height: 26rem;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%);
    mask-image: linear-gradient(90deg, transparent, #000 12%);
  }

  .ae-ui-crop img {
    width: 128%;
    margin-left: 0;
    margin-top: -36%;
  }
}
