:root {
  --ink: #190d22;
  --plum: #28122f;
  --deep: #0d0713;
  --paper: #f4efe5;
  --paper-2: #e8dfd4;
  --cyan: #60f4ed;
  --pink: #ff4ea7;
  --amber: #ffca68;
  --muted: #776b78;
  --line: rgba(25, 13, 34, .2);
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { color: var(--deep); background: var(--cyan); }

.skip {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: var(--deep);
  background: var(--cyan);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

.progress {
  position: fixed;
  z-index: 900;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--amber));
}

body > header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: .75rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand i {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: inset 1rem 0 0 var(--cyan);
}
.brand i::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--deep);
}
.brand b { font-size: 1.04rem; }
body > header nav { display: flex; align-items: center; gap: 1.35rem; }
body > header nav a {
  position: relative;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
body > header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.38rem;
  left: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
body > header nav a:hover::after,
body > header nav a[aria-current="page"]::after { transform: scaleX(1); }
body > header > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.menu { display: none; }

main { min-height: 62vh; }
.shell { width: min(calc(100% - 2.8rem), var(--max)); margin-inline: auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  min-height: 680px;
  max-width: var(--max);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hero > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3.5rem, 8vw, 8rem) clamp(1.5rem, 6vw, 5.4rem);
}
.hero > div > span,
.pagehead > span {
  margin-bottom: 1.35rem;
  color: #8b2362;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .19em;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1,
.pagehead h1,
.articlehead h1,
.missing h1 {
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.055em;
}
.hero h1 { max-width: 680px; font-size: clamp(3.6rem, 7.4vw, 7rem); }
.hero > div > p { max-width: 590px; margin-bottom: 2.15rem; font-size: 1.12rem; }
.button {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  padding: .75rem 1.1rem;
  border: 1px solid var(--ink);
  background: var(--cyan);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.button:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }

.spectrum {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    radial-gradient(circle at 53% 48%, rgba(255,255,255,.92) 0 4%, rgba(96,244,237,.85) 5% 11%, rgba(255,78,167,.68) 19%, transparent 38%),
    conic-gradient(from 210deg at 51% 48%, var(--deep), #7b1c7a, var(--pink), var(--amber), var(--cyan), #16609a, var(--deep));
}
.spectrum::before,
.spectrum::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  mix-blend-mode: screen;
}
.spectrum::before { inset: 18%; }
.spectrum::after { inset: 31%; }
.spectrum i {
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(255,255,255,.5);
  transform: rotate(18deg);
}
.spectrum i:nth-child(1) { left: 30%; }
.spectrum i:nth-child(2) { left: 50%; }
.spectrum i:nth-child(3) { left: 70%; }
.spectrum b {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: .42rem .65rem;
  color: var(--paper);
  background: var(--deep);
  font-size: .66rem;
  letter-spacing: .13em;
}

.dark {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 2rem;
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) max(1.4rem, calc((100vw - var(--max)) / 2 + 1.4rem));
  color: var(--paper);
  background: var(--deep);
}
.dark h2 { max-width: 780px; margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.dark p { max-width: 420px; margin: 0; color: #cfc1d3; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border-left: 1px solid var(--line);
}
.card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .25s ease, background .25s ease;
}
.card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .18;
  transition: transform .5s var(--ease);
}
.card:hover { color: var(--paper); background: var(--plum); }
.card:hover::after { transform: scale(1.8); }
.card > span { align-self: flex-end; font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.card > b { margin-top: 3.2rem; color: #8b2362; font-size: .7rem; letter-spacing: .16em; }
.card:hover > b { color: var(--cyan); }
.card h3 { max-width: 280px; margin: .75rem 0 .9rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.08; }
.card p { color: var(--muted); font-size: .91rem; line-height: 1.55; }
.card:hover p { color: #d9cddd; }
.card > i { margin-top: auto; font-size: .72rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin: clamp(4rem, 9vw, 8rem) auto;
  padding-inline: 1.4rem;
}
.steps div { min-height: 230px; padding: 1.5rem; border-top: 1px solid var(--ink); border-right: 1px solid var(--line); }
.steps div:last-child { border-right: 0; }
.steps b { color: #8b2362; font-size: .7rem; letter-spacing: .16em; }
.steps h3 { margin: 4rem 0 .35rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.steps p { color: var(--muted); }
.final {
  padding: clamp(4rem, 8vw, 7rem) max(1.4rem, calc((100vw - var(--max)) / 2 + 1.4rem));
  color: var(--deep);
  background: var(--cyan);
}
.final h2 { max-width: 900px; margin-bottom: 1rem; font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.7rem); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.final p { max-width: 660px; }
.final a { font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.pagehead { max-width: 920px; padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); }
.pagehead h1 { margin-bottom: 1.25rem; font-size: clamp(3.3rem, 7vw, 6.5rem); }
.pagehead p { max-width: 720px; color: var(--muted); font-size: 1.18rem; }
.shell > .grid { margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); padding-inline: max(0px, calc((100vw - var(--max)) / 2)); }

.articlehead {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.articlehead > div { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.articlehead > div span { font-family: var(--serif); font-size: clamp(4rem, 8vw, 7rem); line-height: .8; }
.articlehead > div b { color: #8b2362; font-size: .7rem; letter-spacing: .18em; }
.articlehead h1 { max-width: 850px; font-size: clamp(3.2rem, 7vw, 6.6rem); }
.articlehead section > p { max-width: 700px; color: var(--muted); font-size: 1.18rem; }

.diagram {
  position: relative;
  height: clamp(260px, 44vw, 500px);
  margin-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  color: var(--paper);
  background: var(--deep);
}
.diagram::before, .diagram::after, .diagram i { content: ""; position: absolute; display: block; }
.diagram b { position: absolute; right: 1rem; bottom: 1rem; z-index: 4; font-size: .64rem; letter-spacing: .16em; }
.diagram.surface { background: repeating-linear-gradient(170deg, var(--deep) 0 18px, #321438 19px 20px); }
.diagram.surface::before { inset: -30% 44% -30% 18%; background: linear-gradient(90deg, transparent, var(--cyan), #fff, transparent); transform: rotate(14deg); filter: blur(12px); opacity: .82; }
.diagram.surface i { left: 58%; width: 1px; height: 130%; background: var(--pink); transform: rotate(14deg); }
.diagram.surface i:nth-child(2) { left: 67%; opacity: .45; }
.diagram.surface i:nth-child(3) { left: 76%; opacity: .2; }
.diagram.colour { background: linear-gradient(105deg, var(--deep) 0 12%, #4d1560 30%, var(--pink) 52%, var(--amber) 70%, var(--cyan)); }
.diagram.colour::before { inset: 12% 14%; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }
.diagram.colour::after { inset: 26% 25%; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(20px); }
.diagram.colour i { inset: 0 auto 0 33%; width: 1px; background: rgba(255,255,255,.55); transform: rotate(20deg); }
.diagram.colour i:nth-child(2) { left: 50%; }
.diagram.colour i:nth-child(3) { left: 67%; }
.diagram.shadow { background: var(--amber); }
.diagram.shadow::before { inset: 16% auto 16% 24%; width: 26%; background: var(--pink); border-radius: 48% 52% 45% 55%; box-shadow: 8rem 3rem 0 var(--deep); }
.diagram.shadow::after { top: 8%; left: 10%; width: 4rem; height: 4rem; border-radius: 50%; background: var(--paper); box-shadow: 0 0 3rem #fff; }
.diagram.shadow i { top: 12%; bottom: 12%; left: 62%; width: 1px; background: rgba(25,13,34,.3); transform: rotate(42deg); }
.diagram.shadow i:nth-child(2) { left: 70%; }.diagram.shadow i:nth-child(3) { left: 78%; }
.diagram.translucency { background: linear-gradient(145deg, #111421, #222351); }
.diagram.translucency::before { inset: 12% 28%; border: 1px solid rgba(255,255,255,.85); border-radius: 48% 52% 20% 20%; background: linear-gradient(90deg, rgba(255,78,167,.35), rgba(96,244,237,.48)); box-shadow: 0 0 4rem rgba(96,244,237,.35); }
.diagram.translucency::after { inset: 30% 40%; border-radius: 50%; background: rgba(255,255,255,.6); filter: blur(18px); }
.diagram.translucency i { top: 0; bottom: 0; left: 18%; width: 2px; background: linear-gradient(transparent, var(--cyan), transparent); transform: rotate(-25deg); }
.diagram.translucency i:nth-child(2) { left: 50%; }.diagram.translucency i:nth-child(3) { left: 82%; }
.diagram.low-light { background: radial-gradient(circle at 42% 50%, #7c376a 0 1%, #26112e 14%, #100815 40%); }
.diagram.low-light::before { inset: 25%; border: 1px solid rgba(96,244,237,.35); border-radius: 50%; }
.diagram.low-light::after { inset: 38%; border: 1px solid rgba(255,78,167,.5); border-radius: 50%; }
.diagram.low-light i { top: 50%; left: 42%; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 5rem -4rem 0 var(--cyan), -7rem 3rem 0 var(--pink), 9rem 5rem 0 var(--amber); }
.diagram.imaging { background: #071f27; }
.diagram.imaging::before { inset: 12%; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(96,244,237,.18) 23px 24px), repeating-linear-gradient(90deg, transparent 0 22px, rgba(96,244,237,.18) 23px 24px); }
.diagram.imaging::after { top: 18%; bottom: 18%; left: 47%; width: 16%; border: 1px solid var(--cyan); border-radius: 50% 45% 48% 52%; background: rgba(255,78,167,.18); box-shadow: 0 0 2rem var(--cyan); }
.diagram.imaging i { top: 10%; bottom: 10%; left: 20%; width: 1px; background: var(--pink); }
.diagram.imaging i:nth-child(2) { left: 50%; }.diagram.imaging i:nth-child(3) { left: 80%; }

.layout { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: clamp(2rem, 7vw, 7rem); justify-content: center; }
.layout aside { position: sticky; top: 2rem; align-self: start; padding-top: 1.2rem; border-top: 1px solid var(--ink); }
.layout aside b { color: #8b2362; font-size: .68rem; letter-spacing: .17em; }
.layout aside p { margin: .6rem 0; color: var(--muted); font-size: .82rem; }
.prose { font-family: var(--serif); font-size: 1.09rem; line-height: 1.78; }
.prose .lead { margin-bottom: 3.1rem; font-size: 1.34rem; line-height: 1.55; }
.prose section { margin-bottom: 3.1rem; }
.prose h2, .legal h2, .directory h2 { margin-bottom: .8rem; font-family: var(--sans); font-size: .82rem; font-weight: 800; letter-spacing: .09em; line-height: 1.35; text-transform: uppercase; }
.prose p { margin-bottom: 1.2rem; }
.compact { max-width: 720px; margin: 0 auto; padding-bottom: clamp(4rem, 8vw, 7rem); }
.note { margin: 4rem 0 1rem; padding: 1.4rem; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 7px 7px 0 var(--ink); font-family: var(--sans); }
.note b { color: #8b2362; font-size: .66rem; letter-spacing: .17em; }
.note p { margin: .6rem 0 0; font-size: .9rem; line-height: 1.6; }
.next { display: block; max-width: 930px; margin: clamp(4rem, 8vw, 7rem) auto; padding: 1.4rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2.3rem); text-decoration: none; }
.next:hover { color: #8b2362; }

.directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 clamp(4rem, 8vw, 7rem);
  padding: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}
.directory li { min-height: 175px; padding: 1.35rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.directory h2 { margin-top: .25rem; font-size: 1rem; }
.directory a { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal { max-width: 820px; padding-bottom: clamp(4rem, 8vw, 7rem); }
.legal .pagehead { padding-bottom: 2rem; }
.legal h2 { margin-top: 2.5rem; }
.legal p { color: #4f4652; }
.missing { display: grid; min-height: 70vh; place-items: start; align-content: center; gap: 1rem; max-width: var(--max); margin: 0 auto; padding: 3rem 1.4rem; }
.missing > b { color: #8b2362; font-size: .72rem; letter-spacing: .17em; }
.missing h1 { max-width: 760px; margin: 0; font-size: clamp(4rem, 9vw, 8rem); }

footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 4rem max(1.4rem, calc((100vw - var(--max)) / 2 + 1.4rem)) 2rem;
  color: #d9cfdd;
  background: var(--deep);
}
footer b { color: var(--paper); font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
footer p { max-width: 340px; margin-top: .5rem; color: #a99eac; font-size: .86rem; }
footer > div:not(:first-child) { display: flex; flex-direction: column; gap: .55rem; }
footer a { width: max-content; font-size: .76rem; text-decoration: none; }
footer a:hover { color: var(--cyan); }
footer small { grid-column: 1 / -1; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); color: #807683; font-size: .67rem; letter-spacing: .08em; }

@media (max-width: 1000px) {
  body > header { grid-template-columns: 1fr auto; }
  .menu {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    place-content: center;
    gap: .38rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }
  .menu span { display: block; width: 1.2rem; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(.22rem) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-.22rem) rotate(-45deg); }
  body > header nav {
    display: none;
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: .5rem;
  }
  body > header nav.open { display: flex; }
  body > header nav a { padding: .9rem 0; border-top: 1px solid var(--line); }
  body > header nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero > div:first-child { min-height: 590px; }
  .spectrum { min-height: 430px; }
  .dark { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .articlehead { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  body > header { padding-inline: 1rem; }
  .brand b { font-size: .95rem; }
  .shell { width: min(calc(100% - 2rem), var(--max)); }
  .hero { border: 0; }
  .hero > div:first-child { min-height: 540px; padding: 4rem 1rem; }
  .hero h1 { font-size: clamp(3.55rem, 17vw, 5.2rem); }
  .spectrum { min-height: 360px; }
  .dark { padding-inline: 1rem; }
  .grid { grid-template-columns: 1fr; border-left: 0; }
  .card { min-height: 315px; border-left: 1px solid var(--line); }
  .shell > .grid { margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); padding-inline: 0; }
  .steps { grid-template-columns: 1fr; margin-block: 4rem; padding-inline: 1rem; }
  .steps div { min-height: 170px; border-right: 0; }
  .steps h3 { margin-top: 2.2rem; }
  .final { padding-inline: 1rem; }
  .pagehead { padding-block: 4rem 3rem; }
  .pagehead h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .articlehead { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 4rem; }
  .articlehead > div { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .articlehead h1 { font-size: clamp(3.2rem, 14vw, 5rem); }
  .diagram { width: calc(100% + 2rem); margin-left: -1rem; }
  .layout { grid-template-columns: 1fr; }
  .layout aside { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
  .layout aside b { grid-column: 1 / -1; }
  .prose .lead { font-size: 1.2rem; }
  .directory { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; padding-inline: 1rem; }
  footer > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
