/* nosyntax landing: a sticky thesis beside the research process. Tokens follow the app's light theme. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f6f7f9;
  --panel: #ffffff;
  --line: #dde1e8;
  --ink: #11151d;
  --ink-muted: #586174;
  --ink-faint: #8a92a3;
  --accent: #1f56e0;
  --accent-strong: #1846bd;
  /* The logo's sweep: violet to blue to sky. */
  --sweep: linear-gradient(180deg, #7024f5 0%, #3150f4 55%, #5eb6f4 100%);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --rail-x: 5px;
  --text-x: 44px;
  --step-gap: clamp(64px, 10vh, 112px);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--panel);
}

/* --- layout */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1360px;
  margin: 0 auto;
}

.thesis {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px var(--gutter);
  border-right: 1px solid var(--line);
}

.process {
  padding: 40vh var(--gutter) 0;
}

/* --- thesis */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark {
  width: 28px;
  height: 28px;
}
.brand__name {
  font: 600 20px/1 var(--sans);
  letter-spacing: -0.03em;
}

.thesis__body {
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 20px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.headline {
  margin: 0 0 28px;
  font: 600 clamp(36px, 4.4vw, 60px)/1.02 var(--sans);
  letter-spacing: -0.045em;
}
.headline__quiet {
  display: block;
  color: var(--ink-faint);
}

.lede {
  margin: 0 0 36px;
  max-width: 31rem;
  color: var(--ink-muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--panel);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover {
  background: var(--accent);
}

.thesis__foot {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font: 400 12px/1 var(--mono);
  color: var(--ink-faint);
}

/* --- the trace: one grey track behind the stages, and a fill in the logo's sweep that
   follows a line 60% down the screen. Each stage's dot fills as the line reaches it. */

.trace {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  view-timeline: --trace block;
}
.trace::before,
.trace::after {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: 8px;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
}
.trace::before {
  background: var(--line);
}
.trace::after {
  background: var(--sweep);
  transform-origin: top;
  transform: scaleY(1);
}

.stage {
  position: relative;
  padding: 0 0 var(--step-gap) var(--text-x);
  max-width: 32rem;
}
.stage:last-child {
  z-index: 1;
  padding-bottom: 0;
}
/* The trace runs to the bottom of the list; mask it below the last dot. */
.stage:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 0;
  width: 14px;
  background: var(--canvas);
}
.stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--rail-x) - 5px);
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3150f4;
  border: 2px solid var(--canvas);
  box-shadow: 0 0 0 1px #3150f4;
}

.stage__who {
  margin: 0 0 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.stage__title {
  margin: 0 0 12px;
  font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--sans);
  letter-spacing: -0.035em;
}

.stage__text {
  margin: 0;
  color: var(--ink-muted);
}

/* --- footer */

.colophon {
  margin-top: var(--step-gap);
  padding: 8vh 0 40px var(--text-x);
  border-top: 1px solid var(--line);
}
.colophon__links {
  display: flex;
  gap: 20px;
  margin: 28px 0 0;
  font: 400 12px/1 var(--mono);
  color: var(--ink-faint);
}
.colophon__links a {
  text-decoration: none;
}
.colophon__links a:hover {
  color: var(--ink);
}

/* --- scroll-driven motion, CSS-only (the CSP forbids scripts). Without support, or with
   reduced motion, the line is drawn in full and every stage sits at rest. The fill tracks a line
   60% down the screen, low enough that the last stage reaches it before the page ends. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .trace::after {
      animation: draw linear both;
      animation-timeline: --trace;
      animation-range: cover 40vh cover calc(100% - 60vh);
    }

    .stage {
      animation: arrive linear both;
      animation-timeline: view();
      animation-range: cover calc(40vh - 120px) cover 40vh;
    }
    .stage::before {
      animation: tick linear both;
      animation-timeline: view();
      animation-range: cover calc(40vh - 4px) cover calc(40vh + 4px);
    }
  }
}

@keyframes draw {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes arrive {
  from { opacity: 0.25; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes tick {
  from { background: var(--canvas); box-shadow: 0 0 0 1px var(--line); }
  to { background: #3150f4; box-shadow: 0 0 0 1px #3150f4; }
}

/* --- narrow screens: stack, thesis first */

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .thesis {
    position: static;
    height: auto;
    min-height: 92svh;
    gap: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-top: 24px;
  }
  .process {
    padding-top: 20vh;
  }
  .actions {
    flex-wrap: wrap;
  }
}
