/* Sigalion Labs. No frameworks, no external fonts, no third-party requests. */

:root {
  --ink: #06080c;
  --ink-2: #0c1017;
  --line: rgba(160, 190, 200, 0.14);
  --text: #d9e2e5;
  --dim: #8a979d;
  --teal: #7fd1c7;
  --gold: #ffc857;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --slide: 950ms;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

/* ---------- atmosphere ---------- */

#veil {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 0%, transparent 42%, rgba(3, 4, 7, 0.86) 100%);
}

/* The bar of light that crosses the screen while panels change. */
.wipe {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, transparent, var(--teal) 30%, #fff 50%, var(--teal) 70%, transparent);
  box-shadow: 0 0 28px 6px rgba(127, 209, 199, 0.35);
}
.wipe.run { animation: wipe var(--slide) var(--ease); }
.wipe.run.back { animation-name: wipe-back; }
@keyframes wipe {
  0% { transform: translateX(100vw); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}
@keyframes wipe-back {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* ---------- header ---------- */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.sigil {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.sigil .dot { fill: var(--teal); stroke: none; }
.sigil circle:first-child, .sigil path {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw 2.4s var(--ease) 0.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.index {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.index a {
  position: relative;
  padding: 6px 0;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}
.index a i {
  font-style: normal;
  margin-right: 7px;
  color: rgba(127, 209, 199, 0.55);
}
.index a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.index a:hover, .index a:focus-visible, .index a.on { color: var(--text); }
.index a.on::after { transform: scaleX(1); }

/* ---------- deck ---------- */

.deck { position: relative; z-index: 2; }

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
}

.scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 104px clamp(20px, 5vw, 72px) 110px;
}

.inner { width: min(1040px, 100%); min-width: 0; }
.inner.wide { width: min(1320px, 100%); }
.inner.wide .title { max-width: none; }
.inner.hero { text-align: center; }

/* With scripting on, the panels sit side by side and the track slides. */
.js body, body.js { overflow: hidden; }
body.js .deck { position: fixed; inset: 0; overflow: hidden; }
body.js .track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform var(--slide) var(--ease);
}
body.js .panel { flex: 0 0 100vw; width: 100vw; height: 100%; min-height: 0; overflow: hidden; }
body.js .scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 209, 199, 0.25) transparent;
}
/* Centre short panels, but let tall ones scroll from the top. */
body.js .scroll { align-items: flex-start; }
body.js .inner { margin-block: auto; }

/* ---------- reveal ---------- */

body.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(6px);
  transition: opacity 0.9s ease, transform 1.1s var(--ease), filter 0.9s ease;
  transition-delay: 0s;
}
body.js .panel.is-active .reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: calc(260ms + var(--i, 0) * 95ms);
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}
.eyebrow b { color: var(--teal); font-weight: 400; margin-right: 12px; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 15vw, 212px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #f3f7f8 10%, #8fb7b3 70%, #3d5a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(127, 209, 199, 0.16);
  overflow-wrap: anywhere;
}
.display.small { font-size: clamp(56px, 11vw, 150px); }

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: #eef3f4;
  margin-bottom: 20px;
  max-width: 18ch;
}

.greek {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: italic;
  color: var(--teal);
}
.greek span {
  display: inline-block;
  margin-left: 14px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  vertical-align: middle;
}

.lede {
  font-size: clamp(16px, 1.45vw, 20px);
  color: #b9c5c9;
  max-width: 58ch;
}
.hero .lede { margin: 26px auto 0; }

.aside, .fine {
  margin-top: 30px;
  font-size: 14px;
  color: var(--dim);
  max-width: 78ch;
}
.aside strong { color: var(--text); font-weight: 600; }

/* ---------- buttons ---------- */

.cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid rgba(127, 209, 199, 0.55);
  color: #eaf6f4;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(127, 209, 199, 0.1), rgba(127, 209, 199, 0.02));
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s, color 0.3s;
}
.button svg { width: 16px; height: 16px; fill: var(--teal); flex: none; }
.button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.8s var(--ease);
}
.button:hover::before, .button:focus-visible::before { left: 120%; }
.button:hover, .button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 34px rgba(127, 209, 199, 0.22), inset 0 0 18px rgba(127, 209, 199, 0.08);
  outline: none;
}
.button.ghost {
  border-color: var(--line);
  color: var(--dim);
  background: none;
  cursor: default;
}
.button.ghost svg { fill: var(--dim); }
.button.ghost::before { display: none; }

.platform {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}
.platform span { color: var(--dim); }

.hint {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 34px;
  z-index: 3;
  display: none;
  border: 0;
  background: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
}
.hint span { display: inline-block; margin-left: 8px; color: var(--teal); animation: nudge 1.800s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
body.js .hint { display: block; }

/* ---------- grids ---------- */

.grid {
  display: grid;
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.cell {
  padding: 26px 24px 30px;
  background: rgba(8, 11, 16, 0.82);
  transition: background 0.4s;
}
.cell:hover { background: rgba(16, 24, 30, 0.9); }
.cell h3, .clock h3, .level h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: #eef3f4;
  margin-bottom: 10px;
}
.cell p, .clock p { font-size: 14.5px; color: #a4b1b6; }

/* ---------- the sender's clock ---------- */

.clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.clock li { padding-top: 22px; border-top: 1px solid var(--line); position: relative; }
.clock li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--teal);
}
.when {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ---------- levels ---------- */

.levels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 38px;
  align-items: stretch;
}

.level {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 16, 23, 0.9), rgba(6, 8, 12, 0.94));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s;
}
.level::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c);
  box-shadow: 0 0 22px 1px var(--c);
  opacity: 0.85;
}
.level::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--c), transparent 62%);
  opacity: 0.07;
  transition: opacity 0.5s;
  pointer-events: none;
}
.level:hover { border-color: var(--c); transform: translateY(-8px); box-shadow: 0 24px 60px -30px var(--c); }
.level:hover::after { opacity: 0.18; }

.rank {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--c);
  margin-bottom: 16px;
}
.level h3 { margin-bottom: 2px; }
.lvl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}
.price { margin: 20px 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.per { margin-bottom: 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); min-height: 1.6em; }
.price b { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; color: #f4f7f8; }
.price span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.spec {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--c);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.note { margin-top: 14px; font-size: 13.5px; color: #a4b1b6; }
.level.apex { border-color: rgba(255, 200, 87, 0.42); }
.level.apex::after { opacity: 0.13; }

/* ---------- monthly or yearly ---------- */

.billing { display: none; margin-top: 30px; border: 1px solid var(--line); width: max-content; max-width: 100%; }
body.js .billing { display: inline-flex; }
.billing button {
  padding: 11px 20px;
  border: 0;
  background: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}
.billing button + button { border-left: 1px solid var(--line); }
.billing button em { font-style: normal; color: var(--gold); margin-left: 8px; letter-spacing: 0.14em; }
.billing button:hover { color: var(--text); }
.billing button.on { color: #06231f; background: var(--teal); }
.billing button.on em { color: #06231f; }
.billing + .levels { margin-top: 22px; }

/* ---------- the wire ---------- */

.wire {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1px;
  margin: 8px 0 28px;
  border: 1px solid var(--line);
  background: var(--line);
}
.wire > div { padding: 20px 20px 22px; background: rgba(8, 11, 16, 0.86); min-height: 132px; }
.wire span {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}
.wire p { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: #eef3f4; min-height: 2.6em; }
.wire .mid p {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--teal);
  word-break: break-all;
  text-shadow: 0 0 14px rgba(127, 209, 199, 0.35);
}
.wire .mid { background: rgba(10, 18, 20, 0.9); }

/* ---------- footer ---------- */

.foot { margin-top: 56px; font-size: 12.5px; color: var(--dim); }
.foot p + p { margin-top: 6px; }
.foot .links { margin-bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.foot .links a { display: inline-block; margin: 0 12px 6px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.foot .links a:hover, .foot .links a:focus-visible { color: var(--teal); border-color: var(--teal); }
.foot .links a[href^="mailto"] { text-transform: none; letter-spacing: 0.06em; }

/* ---------- controls ---------- */

/* Text that scrolls under the controls fades out instead of colliding with them. */
body.js .deck::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 104px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 8, 12, 0.96) 22%, rgba(6, 8, 12, 0));
}

.controls {
  position: fixed;
  left: clamp(20px, 4vw, 56px);
  bottom: 26px;
  z-index: 8;
  display: none;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
}
body.js .controls { display: flex; }
.controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.6);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, opacity 0.3s;
}
.controls button:hover, .controls button:focus-visible { border-color: var(--teal); color: var(--teal); outline: none; }
.controls button:disabled { opacity: 0.28; cursor: default; border-color: var(--line); color: var(--dim); }
.count { font-size: 12px; letter-spacing: 0.2em; color: var(--dim); min-width: 74px; text-align: center; }
.count b { color: var(--teal); font-weight: 400; margin-right: 6px; }

:focus-visible { outline: 1px solid var(--teal); outline-offset: 3px; }

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
  .index { display: none; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .level.apex { grid-column: 1 / -1; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .clock { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .scroll { padding: 88px 20px 104px; }
  .levels, .grid.four, .grid.two, .clock { grid-template-columns: 1fr; }
  .wire { grid-template-columns: 1fr; }
  .wire > div { min-height: 0; }
  .level:hover { transform: none; }
  .controls { left: 50%; transform: translateX(-50%); bottom: 18px; }
  .hint { display: none !important; }
  .greek span { display: block; margin: 8px 0 0; }
  .title { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --slide: 1ms; }
  body.js .reveal { transition: none; filter: none; transform: none; }
  .sigil circle:first-child, .sigil path { animation: none; stroke-dashoffset: 0; }
  .wipe { display: none; }
  .hint span { animation: none; }
}
