/* Aether Labs site styles.
   Values are carried over from the design-tool export in design/ (inline styles
   and style-hover/style-focus attributes), gathered here so every page shares them.
   Text colours were raised where the export fell below readable contrast. */

html, body { margin: 0; padding: 0; background: #05060e; }
body {
  color: #e9e8f2;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a { color: #cdd3ee; }
a:hover { color: #ffffff; }
::selection { background: rgba(143, 123, 255, 0.35); color: #ffffff; }
:focus-visible { outline: 1px solid rgba(143, 123, 255, 0.75); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: #05060e; color: #ffffff; padding: 8px 14px; border: 1px solid rgba(143, 123, 255, 0.75);
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- sky ---------- */
.sky-base {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(120% 85% at 50% 112%, rgba(128, 86, 42, 0.22), transparent 56%),
              linear-gradient(180deg, #04050c 0%, #070818 55%, #0d0a1d 100%);
}
.sky {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 2.6s ease;
}
.motif {
  position: absolute; top: 16vh; right: 4vw; z-index: 1; width: min(420px, 38vw);
  pointer-events: none;
}

/* ---------- page shell ---------- */
.shell {
  position: relative; z-index: 2; max-width: 1160px; margin: 0 auto;
  padding: 34px clamp(22px, 5vw, 52px) 26px; box-sizing: border-box;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
.shell.wide { max-width: none; }
main { flex: 1; display: flex; flex-direction: column; }

/* ---------- header and navigation ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 4px 0; }
.brand:hover { opacity: 0.85; }
.brand-mark {
  width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); display: inline-block;
  background: linear-gradient(135deg, #5ee0c4, #8f7bff);
}
.brand-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 21px;
  letter-spacing: 0.05em; color: #f0eff8;
}
.header-email {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  color: #b9c0dc; text-decoration: none; border-bottom: 1px solid rgba(185, 192, 220, 0.3); padding-bottom: 3px;
}
.header-email:hover { color: #ffffff; border-bottom-color: rgba(143, 123, 255, 0.8); }
.site-nav { flex-basis: 100%; }
.site-nav ul {
  list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px;
  border-top: 1px solid rgba(233, 232, 242, 0.13);
}
.site-nav a, .footer-nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(203, 207, 226, 0.78); text-decoration: none; padding: 4px 0; display: inline-block;
}
.site-nav a:hover, .footer-nav a:hover { color: #e9e8f2; }
.site-nav a[aria-current="page"], .footer-nav a[aria-current="page"] { color: #ffffff; box-shadow: 0 1px 0 rgba(143, 123, 255, 0.8); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(48px, 9vh, 92px); border-top: 1px solid rgba(233, 232, 242, 0.13); padding: 14px 2px 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.2em; color: rgba(190, 196, 215, 0.72);
}
.footer-nav ul { list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; padding-top: 4px; }
.footer-meta .upper { text-transform: uppercase; }
.footer-meta a { color: rgba(214, 219, 236, 0.85); letter-spacing: 0.08em; text-decoration: none; border-bottom: 1px solid rgba(185, 192, 220, 0.3); }
.footer-meta a:hover { color: #ffffff; }

/* ---------- shared type ---------- */
.rule { width: 44px; height: 1px; background: rgba(233, 232, 242, 0.25); display: inline-block; flex: none; }
.rule.short { width: 34px; }
.kicker-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kicker {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.5em; text-indent: 0.5em;
  color: rgba(233, 232, 242, 0.66);
}
.kicker.teal { color: rgba(111, 230, 201, 0.85); }
.kicker.violet { color: rgba(170, 154, 255, 0.9); }
.kicker.gold { color: rgba(216, 178, 106, 0.9); }
.badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.26em; text-indent: 0.26em;
  text-transform: uppercase; color: rgba(233, 232, 242, 0.75); border: 1px solid rgba(233, 232, 242, 0.25);
  border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.grad { background: linear-gradient(92deg, #6fe6c9 0%, #8f7bff 55%, #c9a0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-teal { background: linear-gradient(92deg, #6fe6c9 0%, #8f7bff 80%); }
.grad-violet { background: linear-gradient(92deg, #8f7bff 0%, #c9a0ff 80%); }
.grad-gold { background: linear-gradient(92deg, #d8b26a 0%, #e8d3a8 80%); }
.grad-teal, .grad-violet, .grad-gold { -webkit-background-clip: text; background-clip: text; color: transparent; }

.pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.28em; text-indent: 0.28em;
  color: #dfe3f5; text-decoration: none; padding: 13px 27px; border: 1px solid rgba(233, 232, 242, 0.22);
  border-radius: 999px; transition: border-color 0.35s, background 0.35s, color 0.35s; display: inline-block;
}
.pill:hover, .pill:focus-visible { border-color: rgba(143, 123, 255, 0.75); background: rgba(143, 123, 255, 0.08); color: #ffffff; }
.action-row {
  padding: clamp(40px, 8vh, 84px) 0 0; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.action-note { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: rgba(190, 196, 215, 0.7); }

/* ---------- home ---------- */
.hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 24px; max-width: 940px; margin: 0 auto; padding: clamp(48px, 9vh, 96px) 0 clamp(40px, 7vh, 80px);
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.55em; text-indent: 0.55em;
  color: rgba(233, 232, 242, 0.62);
}
.hero-fact {
  margin: 0; font-weight: 400; font-size: 18px; line-height: 1.55; letter-spacing: 0.01em;
  color: rgba(236, 238, 248, 0.92); max-width: 620px;
}
.display {
  margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: clamp(56px, 8vw, 116px); line-height: 0.98; letter-spacing: -0.01em; color: #efeef8; text-wrap: balance;
}
.hero-body {
  margin: 0; font-weight: 300; font-size: 17px; line-height: 1.65; letter-spacing: 0.015em;
  color: rgba(224, 226, 240, 0.8); max-width: 540px;
}
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(233, 232, 242, 0.13); }
.cards > li + li { border-left: 1px solid rgba(233, 232, 242, 0.13); }
.card {
  padding: 22px 28px 18px; display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box;
  transition: background 0.4s; text-decoration: none; color: inherit;
}
.card:hover, .card:focus-visible { background: rgba(233, 232, 242, 0.045); color: inherit; }
.card:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgba(143, 123, 255, 0.65); }
.card-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.32em; }
.card-kicker.teal { color: rgba(111, 230, 201, 0.82); }
.card-kicker.violet { color: rgba(170, 154, 255, 0.88); }
.card-kicker.gold { color: rgba(216, 178, 106, 0.88); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-name { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 27px; color: #f0eff8; }
.card-line { margin: 0; font-weight: 300; font-size: 14px; line-height: 1.55; color: rgba(214, 218, 234, 0.78); }

/* ---------- profile and document pages ---------- */
.intro { padding: clamp(56px, 12vh, 120px) 0 clamp(40px, 7vh, 76px); max-width: 640px; }
.product-title {
  margin: 22px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: clamp(60px, 9vw, 118px); line-height: 0.98; letter-spacing: -0.01em; color: #efeef8;
}
.page-title {
  margin: 22px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: clamp(44px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -0.01em; color: #efeef8; text-wrap: balance;
}
.tagline {
  margin: 20px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.2; text-wrap: balance;
}
.oneliner { margin: 14px 0 0; font-weight: 400; font-size: 15px; letter-spacing: 0.02em; color: rgba(214, 218, 234, 0.82); }
.prose p {
  margin: 18px 0 0; font-weight: 300; font-size: 16.5px; line-height: 1.7; letter-spacing: 0.015em;
  color: rgba(224, 226, 240, 0.82); max-width: 560px; text-wrap: pretty;
}
.prose p.first { margin-top: 30px; }

.rail {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid rgba(233, 232, 242, 0.13); border-radius: 14px; background: rgba(233, 232, 242, 0.03);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); overflow: hidden;
}
.rail > li {
  padding: 24px 28px; display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid rgba(233, 232, 242, 0.09); border-bottom: 1px solid rgba(233, 232, 242, 0.09);
}
.rail-num { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.3em; }
.rail-num.teal { color: rgba(111, 230, 201, 0.75); }
.rail-num.violet { color: rgba(170, 154, 255, 0.82); }
.rail-num.gold { color: rgba(216, 178, 106, 0.8); }
.rail-num.plain { color: rgba(233, 232, 242, 0.66); }
.rail-text { font-weight: 300; font-size: 15.5px; line-height: 1.6; color: rgba(230, 232, 244, 0.88); overflow-wrap: anywhere; }
.rail-text a { color: #e6e9f8; }

.values { display: flex; flex-direction: column; gap: 24px; max-width: 660px; padding: 10px 0; margin: 0; }
.values > div { display: flex; align-items: baseline; gap: 10px 22px; flex-wrap: wrap; }
.values dt { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.32em; flex: 0 0 128px; }
.values dt.teal { color: rgba(111, 230, 201, 0.82); }
.values dt.violet { color: rgba(170, 154, 255, 0.88); }
.values dt.gold { color: rgba(216, 178, 106, 0.88); }
.values dd { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 21px; line-height: 1.35; color: rgba(230, 232, 244, 0.9); flex: 1; min-width: 220px; }

.doc { max-width: 680px; }
.doc h2 {
  margin: 44px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: 30px; line-height: 1.2; color: #efeef8;
}
.doc p, .doc li { font-weight: 300; font-size: 16.5px; line-height: 1.7; letter-spacing: 0.01em; color: rgba(224, 226, 240, 0.86); }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc .meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.16em; color: rgba(214, 218, 234, 0.8); }
.doc a, .prose a { color: #e6e9f8; }

.page-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.page-list a { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- draft-mode placeholders (never present in a production build) ---------- */
.draft-banner {
  position: relative; z-index: 5; background: #ffe14d; color: #1a1600; padding: 10px 16px;
  font: 600 13px/1.4 system-ui, sans-serif; text-align: center;
}
.fact-draft {
  background: #ffe14d; color: #1a1600; border: 1px dashed #8a6d00; border-radius: 3px; padding: 0 4px;
  -webkit-text-fill-color: #1a1600; font-style: normal; text-indent: 0; letter-spacing: normal;
}
.fact-draft .fact-draft-label { font: 700 10px/1.2 system-ui, sans-serif; letter-spacing: 0.04em; margin-right: 4px; }
div.fact-draft { display: block; padding: 10px 14px; margin-top: 14px; }
div.fact-draft p, div.fact-draft li { color: #1a1600; font-weight: 400; }

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .cards > li + li { border-left: 0; border-top: 1px solid rgba(233, 232, 242, 0.13); }
  .card { padding: 18px 6px 16px; }
  .hero { padding-top: 40px; }
  .site-nav ul { gap: 6px 18px; }
  .footer-meta { flex-direction: column; }
}
@media (max-width: 480px) {
  .eyebrow { letter-spacing: 0.3em; text-indent: 0.3em; }
  .hero .rule { width: 22px; }
  .rail > li { padding: 20px 20px; }
  .values dt { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sky { transition: none; }
  .pill, .card { transition: none; }
}
