/* Aratus Minerals. Fonts are served from this site; nothing is fetched from another server to draw the page. */

@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #17406D;
  --deep: #0B2140;
  --night: #081A33;
  --text: #E4ECF7;
  --muted: #A8B9D1;
  --pale: #C9D6E8;
  --green: #3F8F7B;
  --mint: #6FC3AA;
  --rule: rgba(201, 214, 232, .18);
  --panel: rgba(9, 27, 52, .66);

  --mark: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --display: "Sora", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--deep);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

/* Smooth scrolling is switched on only after the page has loaded (see site.js), so a link that
   arrives with a section address, such as /#contact, jumps straight to that section. */
@media (prefers-reduced-motion: no-preference) {
  html.ready { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: var(--mint); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mint); color: var(--night); }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: .6rem 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Backdrop: one fixed stage, four scenes that fade and sharpen ---------- */

.stage {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--deep);
}
.scene {
  position: absolute;
  inset: -5%;
  background: center / cover no-repeat;
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.07);
  transition: opacity 1.1s ease, filter 1.5s ease, transform 2.2s ease;
  will-change: opacity, filter, transform;
}
.scene.is-on { opacity: 1; filter: blur(0); transform: scale(1); }
.scene-sky { background-image: url("/img/sky.webp"); }
.scene-terrain { background-image: url("/img/terrain.webp"); }
.scene-crystals { background-image: url("/img/crystals.webp"); }
.scene-globe { background-image: url("/img/globe.webp"); }
.veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 26, 51, .90) 0%, rgba(8, 26, 51, .74) 48%, rgba(8, 26, 51, .40) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .scene { filter: none; transform: none; transition: opacity .4s linear; }
}

/* ---------- Top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 26, 51, .86);
  border-bottom: 1px solid var(--rule);
  transition: background-color .35s ease, border-color .35s ease;
}
.js .top { background: transparent; border-bottom-color: transparent; }
.js.scrolled .top {
  background: rgba(8, 26, 51, .86);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: .95rem;
}

/* The wordmark is the original from the Material Availability Brief, placed as a picture. */
.brand { display: block; margin-right: auto; }
.brand img { display: block; width: 16.5rem; height: auto; }

.nav { display: flex; gap: 1.6rem; }
.nav a {
  color: var(--pale);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--mint); }

/* On small screens the section links fold into a menu. It is a plain <details>, so it opens without script. */
.menu { display: none; position: relative; }
.menu summary {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(201, 214, 232, .5);
  border-radius: 2px;
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span,
.menu summary span::before,
.menu summary span::after { display: block; width: 1.1rem; height: 1.5px; background: #fff; }
.menu summary span { position: relative; }
.menu summary span::before,
.menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -.4rem; }
.menu summary span::after { top: .4rem; }
.menu summary:hover,
.menu[open] summary { background: rgba(201, 214, 232, .12); border-color: #fff; }
.menu-list {
  position: absolute;
  top: calc(100% + .7rem);
  right: 0;
  width: min(17rem, calc(100vw - 2.5rem));
  background: #0A1E3B;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.menu-list a {
  display: block;
  padding: .95rem 1.2rem;
  color: var(--pale);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu-list a + a { border-top: 1px solid var(--rule); }
.menu-list a:hover { background: rgba(201, 214, 232, .08); color: #fff; }
.menu-list a:last-child { color: var(--mint); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border: 1px solid var(--mint);
  border-radius: 2px;
  background: var(--mint);
  color: var(--night);
  font: 700 .8rem/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #8AD8BD; border-color: #8AD8BD; }
.btn-ghost { background: transparent; border-color: rgba(201, 214, 232, .5); color: #fff; }
.btn-ghost:hover { background: rgba(201, 214, 232, .12); border-color: #fff; }
.btn-small { padding: .6rem 1.05rem; font-size: .74rem; }

/* ---------- Hero ---------- */

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 2.5rem;
}
.hero-body {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 13vh, 8rem) clamp(4rem, 13vh, 8rem);
}

/* The rings and faint stars spill past the drawing's own box. */
.chart { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }

.eyebrow {
  color: var(--mint);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow .nb { white-space: nowrap; }
sub { font-size: .72em; line-height: 0; }
.eyebrow .dot { margin-inline: .5em; color: var(--pale); }

h1 {
  margin-top: 1.4rem;
  color: #fff;
  font: 600 clamp(1.95rem, 3.7vw, 2.75rem)/1.16 var(--display);
  letter-spacing: -.022em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 36rem;
  margin-top: 1.75rem;
  color: #DCE5F1;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

/* ---------- At a glance ---------- */

.glance {
  border-block: 1px solid var(--rule);
  background: rgba(8, 26, 51, .55);
}
.glance dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glance dl > div { padding: 1.6rem 1.5rem 1.7rem 0; }
.glance dl > div + div { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.glance dt {
  color: var(--mint);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.glance dd { margin-top: .5rem; color: #fff; font: 500 .98rem/1.45 var(--sans); }

/* ---------- Sections ---------- */

.row { padding-block: clamp(4.5rem, 13vh, 8rem); }

.grid {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}

.label {
  display: flex;
  padding-top: .55rem;
  color: var(--pale);
  font: 600 .78rem/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.num { flex: none; min-width: 2.4em; color: var(--mint); font-variant-numeric: tabular-nums; }

.body > p { max-width: 40rem; }
.body > p + p { margin-top: 1.1rem; }

.lede {
  color: #fff;
  font: 500 clamp(1.3rem, 2.2vw, 1.7rem)/1.3 var(--display);
  letter-spacing: -.012em;
  text-wrap: balance;
}
.body > .lede + p { margin-top: 1.5rem; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

h3 { color: #fff; font: 600 1rem/1.4 var(--display); letter-spacing: -.005em; }
h3 + p { margin-top: .3rem; color: var(--text); font-size: .98rem; line-height: 1.6; }

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .86rem;
}
.body > p + .sources { margin-top: 1.8rem; }

/* Supply chain */

.chain { max-width: 42rem; margin-top: 2.75rem; }
.chain li { position: relative; padding: 0 0 1.6rem 2.1rem; }
.chain li:last-child { padding-bottom: 0; }
.chain li::before {
  content: "";
  position: absolute;
  top: .55rem;
  bottom: -.55rem;
  left: .3rem;
  width: 1px;
  background: rgba(201, 214, 232, .45);
}
.chain li:last-child::before { display: none; }
.chain li::after {
  content: "";
  position: absolute;
  top: .42rem;
  left: 0;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #fff;
}
.chain li:first-child::after { background: var(--mint); box-shadow: 0 0 0 5px rgba(111, 195, 170, .22); }
.chain p { color: var(--text); font-size: .96rem; line-height: 1.55; }

/* Facts table */

.facts {
  margin-top: 2.25rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
}
.facts > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: .25rem 1.5rem;
  padding: 1.05rem 1.4rem;
}
.facts > div + div { border-top: 1px solid var(--rule); }
.facts dt {
  padding-top: .28rem;
  color: var(--mint);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.facts dd { max-width: 36rem; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 2.25rem;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}
.steps li {
  position: relative;
  padding: 1.35rem 0 1.35rem 3.1rem;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.05rem;
  color: var(--mint);
  font: 300 1.9rem/1.2 var(--display);
}

/* Standards */

.standards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 3rem;
}
.standards li { padding-top: 1rem; border-top: 3px solid var(--green); }

/* Questions */

.faq { max-width: 44rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  color: #fff;
  font: 500 1.08rem/1.4 var(--display);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 1rem;
  color: var(--mint);
  font: 300 1.5rem/1.2 var(--sans);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--mint); }
.faq details p { max-width: 40rem; padding: 0 0 1.4rem; }

/* Contact */

.mail a {
  color: #fff;
  font: 500 clamp(1.15rem, 2.6vw, 1.5rem)/1.3 var(--display);
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
  overflow-wrap: anywhere;
}
.mail a:hover { text-decoration-color: #fff; }
.body > p + .mail { margin-top: 1.6rem; }

.form {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
  max-width: 40rem;
  margin-top: 2.5rem;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
}
.js .form { display: grid; }
.field-wide { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: .4rem;
  color: var(--pale);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid rgba(201, 214, 232, .32);
  border-radius: 2px;
  background: rgba(8, 26, 51, .6);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--pale) 50%), linear-gradient(135deg, var(--pale) 50%, transparent 50%); background-position: calc(100% - 1.05rem) 55%, calc(100% - .7rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.field select:invalid { color: var(--muted); }
.field option { background: var(--night); color: #fff; }
.field ::placeholder { color: #7F92AE; opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--mint); outline-offset: 0; border-color: var(--mint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:empty { display: none; }
.btn:disabled { opacity: .6; cursor: default; }
.field .is-missing { border-color: #F0A3A3; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.form-note { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.form-status { color: var(--mint); font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #F4B4B4; }

.caution strong { color: var(--pale); font-weight: 600; }
.caution {
  max-width: 40rem;
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--green);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.foot {
  background: rgba(6, 20, 40, .92);
  border-top: 1px solid var(--rule);
  color: var(--pale);
  padding-block: clamp(2.75rem, 6vw, 4rem) 2.25rem;
  font-size: .92rem;
  line-height: 1.6;
}
.foot a { color: var(--pale); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem 4rem; }
.foot-brand { color: #fff; font: 400 1.15rem/1 var(--mark); letter-spacing: .3em; text-transform: uppercase; }
.foot-line { margin-top: .7rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; }
.foot-nav h2 {
  margin-bottom: .7rem;
  color: var(--mint);
  font: 600 .72rem/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.foot-nav a { display: block; padding-block: .18rem; }
.foot-note {
  max-width: 46rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  color: #93A6C2;
  font-size: .85rem;
}
.copy { margin-top: 1rem; color: #93A6C2; font-size: .82rem; }
.copy span { margin-inline: .4em; }

/* ---------- Text pages ---------- */

.doc { padding-block: clamp(3.5rem, 10vh, 6rem) clamp(4rem, 10vh, 6rem); }
.doc .wrap { max-width: 50rem; }
.doc h1 { margin-top: 1rem; }
.doc-date { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.doc h2 { margin-top: 2.6rem; color: #fff; font: 600 1.25rem/1.3 var(--display); letter-spacing: -.01em; }
.doc ul { margin-top: 1rem; padding-left: 1.2rem; list-style: disc; }
.doc li + li { margin-top: .7rem; }
.doc li::marker { color: var(--mint); }
.doc ul + p { margin-top: 1rem; }
.doc p + ul { margin-top: .8rem; }
.doc h2 + p { margin-top: .8rem; }
.doc p + p { margin-top: 1rem; }
.lost { min-height: 70vh; display: flex; align-items: center; }
.lost .wrap { width: 100%; }
.lost h1 + p { margin-top: 2.25rem; }

/* ---------- Narrow screens ---------- */

@media (max-width: 60rem) {
  .nav { display: none; }
  .menu { display: block; }
  .bar { column-gap: 1rem; }
}

@media (max-width: 52rem) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .label { padding-top: 0; }
  .hero-main { grid-template-columns: minmax(0, 1fr); }
  .hero-body { padding-bottom: 2.5rem; }
  .chart { width: min(82%, 26rem); margin: 0 0 3.25rem auto; }
  .glance dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance dl > div { padding: 1.2rem 1rem 1.3rem 0; }
  .glance dl > div + div { padding-left: 0; border-left: 0; }
  .glance dl > div:nth-child(even) { padding-left: 1.1rem; border-left: 1px solid var(--rule); }
  .glance dl > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .standards { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
  .veil { background: linear-gradient(180deg, rgba(8, 26, 51, .84) 0%, rgba(8, 26, 51, .72) 100%); }
}

@media (max-width: 34rem) {
  .brand img { width: 14.8rem; }
  .eyebrow .nb { display: block; }
  .eyebrow .nb + .dot { display: none; }
  .eyebrow .nb:last-child { margin-top: .3rem; color: var(--pale); }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .facts > div { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.1rem; }
  .facts dt { padding-top: 0; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 1.3rem 1.1rem; }
  /* The bar has no room for the button beside the wordmark; Contact is the last entry in the menu. */
  .bar .btn-small { display: none; }
}

@media (max-width: 22rem) {
  .brand img { width: 12.6rem; }
}

@media print {
  .stage, .top, .skip, .chart, .form, .actions { display: none; }
  html, body { background: #fff; color: #000; }
  h1, h3, .lede, .glance dd, .faq summary, .mail a, .doc h2 { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
