:root {
  --abyss: #06121f;
  --deep: #082a3d;
  --lagoon: #0b4a52;
  --glow: #62e0d0;
  --blue: #3b8fd9;
  --foam: #e8f3f2;
  --mist: #a3bcc6;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* One continuous gradient: the page itself is the river's descent. */
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--foam);
  background: linear-gradient(180deg, var(--abyss) 0%, var(--deep) 55%, var(--lagoon) 100%);
}

a:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

/* Hero */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 18vh 1.5rem 6rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.lead {
  max-width: 34em;
  font-size: 1.25rem;
  color: var(--mist);
  margin-bottom: 1.75rem;
}
.focus {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-bottom: 2.25rem;
  font-weight: 500;
}
.focus li { padding-left: 1rem; position: relative; }
.focus li::before {
  content: "";
  position: absolute; left: 0; top: 0.65em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--glow);
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: inherit; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--glow);
  color: var(--abyss);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--glow);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: #8cf0e2; border-color: #8cf0e2; }
.btn.ghost { background: transparent; color: var(--foam); border-color: rgba(232, 243, 242, 0.4); }
.btn.ghost:hover { border-color: var(--glow); color: var(--glow); }

/* Section intro */
.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
  text-align: center;
}
.intro h2, .block h2, #contact h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.intro p { color: var(--mist); }

/* The river */
.river {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
}
.river-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 60px; height: 100%;
  transform: translateX(-50%);
  overflow: visible;
}
.river-line path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bed { stroke: var(--blue); stroke-opacity: 0.16; stroke-width: 22; }
.stream {
  stroke: url(#flow);
  stroke-width: 3;
  stroke-dasharray: 2 12;
  animation: flow 1.6s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -14; } }

/* Stops along the river */
.stop {
  position: relative;
  width: 50%;
  padding: 0 3.25rem 5rem 0;
  scroll-margin-top: 2rem;
}
.stop:nth-of-type(even) { margin-left: 50%; padding: 0 0 5rem 3.25rem; }
.stop::before {
  content: "";
  position: absolute; top: 0.55rem; right: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--abyss);
  border: 3px solid var(--glow);
  box-shadow: 0 0 0 6px rgba(98, 224, 208, 0.14);
}
.stop:nth-of-type(even)::before { right: auto; left: -8px; }
.stop.current::before { background: var(--glow); }

.stop h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.where { color: var(--glow); font-weight: 500; margin-bottom: 0.75rem; }
.stop p:not(.where) { max-width: 34em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tags li {
  font-size: 0.9rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(98, 224, 208, 0.1);
  color: var(--foam);
}

/* Content sections after the timeline */
.block {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 3rem;
}
.group h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.marked { list-style: none; display: grid; gap: 0.9rem; }
.marked li { position: relative; padding-left: 1.75rem; font-weight: 500; }
.marked li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--abyss);
  border: 3px solid var(--glow);
  box-sizing: content-box; margin-top: -3px;
}
.marked span { color: var(--glow); font-weight: 400; margin-left: 0.5rem; }

.links { list-style: none; display: grid; gap: 2rem; }
.links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--foam);
  text-decoration-color: var(--glow);
  text-underline-offset: 0.25em;
}
.links a:hover { color: var(--glow); }
.source { margin-left: 0.75rem; color: var(--glow); font-weight: 500; }
.links p { color: var(--mist); max-width: 34em; margin-top: 0.25rem; }

/* Optional logos inside a tag: <li><img src="logos/okta.svg" alt="">Okta</li> */
.tags li { display: inline-flex; align-items: center; }
.tags img {
  height: 1.05em; width: auto;
  margin-right: 0.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Where the river ends */
#contact {
  text-align: center;
  padding: 5rem 1.5rem 6rem;
}
#contact p { color: var(--mist); margin: 0 auto 1.75rem; max-width: 30em; }
#contact .actions { justify-content: center; }

/* Mobile: the river runs down the left edge */
@media (max-width: 720px) {
  .hero { padding-top: 12vh; }
  .river { padding-left: 0.5rem; }
  .river-line { left: 0.5rem; transform: none; }
  .stop, .stop:nth-of-type(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 3.5rem 4.25rem;
  }
  .stop::before, .stop:nth-of-type(even)::before { left: 22px; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stream { animation: none; }
}
