/* XtreamPortal, the page at the top of the portal's own domain. It names the portal, says how the
   portal keeps clients private and offers one way to write to us. Every font and image is this
   page's own file; nothing is loaded from anywhere else. Motion plays once, never in a loop, and
   not at all for people who turn animations off. */

/* Geist, OFL licence (fonts/OFL.txt). */
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --raised: #181818;
  --raised-2: #1f1f1f;
  --line: #272727;
  --line-2: #313131;
  --fg: #f4f4f5;
  --sub: #a6a6ad;
  --mute: #7d7d86;
  --brand: #3fae6e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
/* Geist has no Arabic letters; Arabic falls back to the system's own Arabic face, Latin stays Geist. */
:root[lang="ar"] {
  --font: "Geist Variable", "Segoe UI", "SF Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-synthesis: none;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 8px;
}
main:focus {
  outline: none;
}
::selection {
  background: var(--brand);
  color: #000;
}

/* --- Text styles ------------------------------------------------------------------------------- */
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.015em; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.button-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Phosphor regular icons, drawn on their 256 grid. */
.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i .f {
  fill: currentColor;
  stroke: none;
}

.skip {
  position: fixed;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--fg);
  color: #000;
  transform: translateY(-80px);
  transition: transform 300ms var(--ease);
}
.skip:focus-visible {
  transform: none;
}

/* --- Hero: the name ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  text-align: center;
}
.stage {
  width: clamp(160px, 20vw, 232px);
  aspect-ratio: 1;
  margin-bottom: 48px;
  perspective: 900px;
}
.tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease);
  will-change: transform;
}
.grid,
.mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.grid path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-width: 1;
}
.grid .minor { stroke: rgba(255, 255, 255, 0.055); }
.grid .major { stroke: rgba(255, 255, 255, 0.11); }
.grid .ticks { stroke: rgba(255, 255, 255, 0.4); }
.mark {
  transform: translateZ(36px);
  fill: var(--brand);
}
.mark .pc {
  display: none;
}

.name {
  line-height: 0;
}
.word {
  width: clamp(264px, 46vw, 520px);
  height: auto;
  overflow: visible;
}
.tag {
  margin-top: 24px;
  color: var(--sub);
}
.hint {
  margin-top: 8px;
  max-width: 400px;
  color: var(--mute);
  text-wrap: balance;
}
.cta {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--fg);
  color: #000;
  transition: background-color 300ms var(--ease), transform 500ms var(--ease);
}
.btn .i {
  width: 24px;
  height: 24px;
}
.btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.98);
  transition-duration: 200ms;
}
.btn:focus-visible {
  border-radius: 12px;
}
.alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  color: var(--mute);
}
.addr {
  color: var(--sub);
  user-select: all;
  -webkit-user-select: all;
}
.copy {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--mute);
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 500ms var(--ease);
}
.copy:hover {
  background: var(--raised);
  color: var(--fg);
}
.copy:active {
  transform: scale(0.94);
  transition-duration: 200ms;
}
.copy .i {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}
.copy .on-done {
  opacity: 0;
  transform: scale(0.6);
  color: var(--brand);
}
.copy.done .on-idle {
  opacity: 0;
  transform: scale(0.6);
}
.copy.done .on-done {
  opacity: 1;
  transform: none;
}

.cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--mute);
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 300ms var(--ease);
}
.cue .i {
  width: 16px;
  height: 16px;
  transition: transform 500ms var(--ease);
}
.cue:hover {
  color: var(--fg);
}
.cue:hover .i {
  transform: translateY(4px);
}

/* --- The privacy note, word by word ------------------------------------------------------------ */
.manifesto {
  position: relative;
  padding: 96px 24px;
}
.pin {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
}
.label .i {
  width: 16px;
  height: 16px;
  color: var(--brand);
}
.say {
  margin-top: 32px;
  max-width: 680px;
  white-space: pre-line;
}
.say .ln {
  display: block;
}
.say .w {
  transition: opacity 500ms var(--ease);
}
.lede {
  margin-top: 40px;
  max-width: 560px;
  color: var(--sub);
}

/* --- The notes --------------------------------------------------------------------------------- */
.notes {
  padding: 32px 24px 96px;
}
.cards {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  transition: border-color 300ms var(--ease), transform 500ms var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--raised-2);
  border: 1px solid var(--line);
  color: var(--sub);
  transition: color 300ms var(--ease);
}
.card:hover .ico {
  color: var(--fg);
}
.card h3 {
  margin-top: 24px;
}
.card p {
  margin-top: 8px;
  color: var(--sub);
}

/* --- Footer ------------------------------------------------------------------------------------ */
.foot {
  padding: 48px 24px 64px;
}
.foot-in {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 32px;
}
.sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
}
.mini {
  width: 20px;
  height: 20px;
  fill: var(--brand);
}
.note {
  color: var(--mute);
  justify-self: end;
  text-align: end;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-inline-start: -12px;
}
.langs button {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--mute);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.langs button:hover {
  color: var(--fg);
  background: var(--raised);
}
.langs button[aria-pressed="true"] {
  color: var(--fg);
}
.rights {
  color: var(--mute);
  justify-self: end;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 20;
  max-width: calc(100vw - 48px);
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--raised-2);
  color: var(--fg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- The page that is not here ---------------------------------------------------------------- */
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  text-align: center;
}
.lost .mini {
  width: 48px;
  height: 48px;
}
.lost h1 {
  margin-top: 40px;
  max-width: 680px;
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lost p {
  margin-top: 16px;
  max-width: 480px;
  color: var(--sub);
}
.ghost {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--fg);
  transition: background-color 300ms var(--ease), transform 500ms var(--ease);
}
.ghost .i {
  width: 16px;
  height: 16px;
}
.ghost:hover {
  background: var(--raised);
  transform: translateY(-2px);
}
.ghost:active {
  transform: scale(0.98);
  transition-duration: 200ms;
}
:root[dir="rtl"] .ghost .i {
  transform: scaleX(-1);
}

/* --- Motion: only once the page's script runs, so the page reads fully without it -------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(var(--from, 24px)); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes from-left {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes from-right {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes key {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: none; }
}

.js:not(.still) .grid .major,
.js:not(.still) .grid .ticks,
.js:not(.still) .grid .minor,
.js:not(.still) .word .l,
.js:not(.still) .enter,
.js:not(.still) .rise {
  opacity: 0;
}
.js:not(.still) .mark .whole {
  opacity: 0;
}
.js:not(.still) .mark .pc {
  display: inline;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.ready:not(.still) .grid .major { animation: fade 900ms var(--ease) 0ms both; }
.ready:not(.still) .grid .ticks { animation: fade 900ms var(--ease) 120ms both; }
.ready:not(.still) .grid .minor { animation: fade 1200ms var(--ease) 240ms both; }
.ready:not(.still) .mark .p1 { animation: drop 800ms var(--ease) 300ms both; }
.ready:not(.still) .mark .p2 { animation: from-left 800ms var(--ease) 420ms both; }
.ready:not(.still) .mark .p3 { animation: from-right 800ms var(--ease) 420ms both; }
.ready:not(.still) .mark .p4 { animation: key 700ms var(--ease) 760ms both; }
.ready:not(.still) .word .l { --from: 28px; animation: rise 800ms var(--ease) both; animation-delay: calc(560ms + var(--i, 0) * 40ms); }
.ready:not(.still) .tag { animation: rise 800ms var(--ease) 1000ms both; }
.ready:not(.still) .hint { animation: rise 800ms var(--ease) 1060ms both; }
.ready:not(.still) .cta { animation: rise 800ms var(--ease) 1100ms both; }
.ready:not(.still) .cue { --from: 0px; animation: fade 800ms var(--ease) 1400ms both; }
.word .l {
  transform-box: fill-box;
}
/* Once the gate stands, it is one shape again, with no seams between its parts. */
.js.built .mark .whole { opacity: 1; }
.js.built .mark .pc { visibility: hidden; }

.js:not(.still) .rise.seen { opacity: 1; }
.js:not(.still) .rise.in { animation: rise 700ms var(--ease) both; --from: 32px; animation-delay: var(--delay, 0ms); }

/* The privacy note is held on screen while it is read, and each word lights up in turn. */
.js:not(.still) .manifesto {
  height: 200vh;
  height: 200svh;
  padding: 0 24px;
}
.js:not(.still) .pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding: 96px 0;
}
.js:not(.still) .say .w {
  opacity: 0.3;
}
.js:not(.still) .say .w.on {
  opacity: 1;
}
.js:not(.still) .lede {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js:not(.still) .lede.on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 200ms !important;
    transition-property: opacity, color, background-color, border-color !important;
  }
}

/* --- Phones and small windows ----------------------------------------------------------------- */
@media (max-width: 767px) {
  .say {
    font-size: 1.875rem;
    line-height: 2.25rem;
    letter-spacing: -0.015em;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: 24px;
  }
  .foot-in {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .note,
  .rights {
    justify-self: center;
    text-align: center;
  }
  .langs {
    justify-content: center;
    margin-inline-start: 0;
  }
  .js:not(.still) .manifesto {
    height: 170vh;
    height: 170svh;
  }
}
@media (max-height: 640px) {
  .stage {
    width: 176px;
    margin-bottom: 32px;
  }
  .cta {
    margin-top: 32px;
  }
  .cue {
    display: none;
  }
}

