/* Bricolage Grotesque, self-hosted (SIL Open Font License 1.1) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  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 {
  --void: #070d24;   /* night lapis, the ground */
  --lapis: #16285f;
  --line: #9db0ee;   /* petal blue, all linework */
  --mist: #dbe2fa;   /* primary text */
  --dim: #7f8fc4;    /* secondary text */
  --gold: #e8b64c;   /* the single point of light */

  --gutter: clamp(1rem, 4vw, 3.5rem);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 60% 50% at 50% 48%, rgba(36, 57, 124, 0.45), transparent 70%),
    var(--void);
  color: var(--mist);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(157, 176, 238, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
a:hover { color: #fff; text-decoration-color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Home ---------- */

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "lotus lotus"
    "ident links";
  align-items: end;
  gap: 2rem 2rem;
  padding: var(--gutter);
}

.lotus {
  grid-area: lotus;
  justify-self: center;
  align-self: center;
  width: min(100%, 60rem);
  max-height: 62svh;
  overflow: visible;
}

.lotus path,
.lotus circle { vector-effect: non-scaling-stroke; }

.lotus .guide {
  fill: none;
  stroke: var(--line);
  stroke-opacity: 0.22;
  stroke-width: 1;
  stroke-dasharray: 2 7;
  animation: fade 1.2s ease 0.2s both;
}
.lotus .guide + .guide { stroke-opacity: 0.14; }

.lotus .back path {
  fill: none;
  stroke: var(--line);
  stroke-opacity: 0.5;
  stroke-width: 1;
}
.lotus .front path {
  fill: var(--void);
  stroke: var(--mist);
  stroke-width: 1.25;
}

/* One orchestrated moment: the drawing constructs itself, then the core lights */
.lotus .back path,
.lotus .front path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.9s cubic-bezier(0.6, 0, 0.2, 1) both;
}
.lotus .front path:nth-child(1),
.lotus .front path:nth-child(2) { animation-delay: 0.45s; }
.lotus .front path:nth-child(3),
.lotus .front path:nth-child(4) { animation-delay: 0.3s; }
.lotus .back path:nth-child(1),
.lotus .back path:nth-child(2) { animation-delay: 1.1s; }
.lotus .back path:nth-child(3),
.lotus .back path:nth-child(4) { animation-delay: 0.95s; }
.lotus .back path:nth-child(5),
.lotus .back path:nth-child(6) { animation-delay: 0.8s; }
.lotus .back path:nth-child(7),
.lotus .back path:nth-child(8) { animation-delay: 0.65s; }
.lotus .back path:nth-child(9)  { animation-delay: 0.5s; }

.lotus .horizon {
  stroke: url(#horizon);
  stroke-width: 1;
  transform-box: view-box;
  transform-origin: 400px 360px;
  animation: extend 1.4s cubic-bezier(0.6, 0, 0.2, 1) both;
}
.lotus .core { fill: var(--gold); animation: fade 0.8s ease 2.2s both; }
.lotus .glow { animation: fade 1.6s ease 2.3s both; }

@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes fade   { from { opacity: 0; } }
@keyframes extend { from { transform: scaleX(0); } }

.ident { grid-area: ident; }
.ident h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 8.5rem);
  font-weight: 300;
  font-stretch: 78%;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: #fff;
}
.ident p {
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.35;
  color: var(--mist);
}
.ident p span { color: var(--dim); }

.links {
  grid-area: links;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  padding-bottom: 0.2rem;
  font-size: 1.05rem;
}
.links a:first-child { font-size: clamp(1.25rem, 2vw, 1.6rem); color: #fff; }
.links a + a { color: var(--dim); font-size: 0.95rem; }

/* ---------- Privacy policy ---------- */

.page-header,
.page-footer,
.policy {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page-header { padding-block: 2rem 0; }
.page-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-stretch: 85%;
  text-decoration: none;
  color: #fff;
}
.page-header svg { width: 2rem; height: 1.4rem; overflow: visible; }
.page-header svg path { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.page-header svg circle { fill: var(--gold); }

.policy { padding-block: clamp(3rem, 8vw, 5rem) 3rem; }
.policy h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 300;
  font-stretch: 80%;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.policy .updated { margin: 0 0 2.5rem; color: var(--dim); }
.policy .lead {
  margin: 0 0 1rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 1px solid var(--gold);
  font-size: 1.2rem;
  line-height: 1.5;
  color: #fff;
}
.policy h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
}
.policy p,
.policy li,
.policy address { color: var(--mist); }
.policy ul { padding-left: 1.25rem; }
.policy li { margin-bottom: 0.4rem; }
.policy li::marker { color: var(--line); }
.policy address { font-style: normal; padding-left: 1.5rem; border-left: 1px solid rgba(157, 176, 238, 0.3); }

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid rgba(157, 176, 238, 0.2);
  color: var(--dim);
  font-size: 0.95rem;
}
.page-footer p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lotus"
      "ident"
      "links";
    gap: 1.75rem;
  }
  .lotus { max-height: 48svh; }
  .links { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .lotus * { animation: none !important; stroke-dashoffset: 0 !important; }
}
