:root {
  --ink: #121820;
  --ink-soft: #44505e;
  --muted: #6e7a88;
  --paper: #e8eef2;
  --line: rgba(18, 24, 32, 0.1);
  --signal: #c45c26;
  --steel: #2f6f8f;
  --glow-a: rgba(196, 92, 38, 0.22);
  --glow-b: rgba(47, 111, 143, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 56rem;
  --pad: clamp(1rem, 3.5vw, 1.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--paper);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

/* --- Atmosphere --- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 70% at 50% -8%, #f5f8fa 0%, transparent 55%),
    linear-gradient(165deg, #edf3f7 0%, #dce6ee 50%, #d0dde6 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(196, 92, 38, 0.06) 40%,
    transparent 68%
  );
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 65% 50% at 50% 28%,
    #000 15%,
    transparent 72%
  );
  transform: perspective(600px) rotateX(58deg) scale(1.3);
  transform-origin: center 18%;
  animation: grid-drift 28s linear infinite;
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
}

.atmosphere__glow--a {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  top: 10%;
  left: 6%;
  background: var(--glow-a);
  animation: glow-a 14s var(--ease) infinite alternate;
}

.atmosphere__glow--b {
  width: min(38vw, 320px);
  height: min(38vw, 320px);
  top: 16%;
  right: 6%;
  background: var(--glow-b);
  animation: glow-b 18s var(--ease) infinite alternate;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 56px, 56px 0;
  }
}

@keyframes glow-a {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translate(5%, 8%) scale(1.08);
    opacity: 1;
  }
}

@keyframes glow-b {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }
  to {
    transform: translate(-6%, 5%) scale(1.06);
    opacity: 0.95;
  }
}

/* --- Hero --- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vh, 3rem) var(--pad);
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(9.5rem, 0.7fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
  align-content: center;
}

.hero__copy {
  min-width: 0;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.85s var(--ease) 0.16s forwards;
}

.hero__wave {
  font-size: 0.72em;
  letter-spacing: 0;
}

.hero__headline {
  margin: 0.85rem 0 0;
  max-width: 28ch;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s var(--ease) 0.28s forwards;
}

.hero__support {
  margin: 0.7rem 0 0;
  max-width: 36ch;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s var(--ease) 0.38s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s var(--ease) 0.48s forwards;
}

.hero__portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 15.5rem);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: rise-scale 0.95s var(--ease) 0.3s forwards;
}

.hero__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(18, 24, 32, 0.08);
  box-shadow: 0 18px 40px rgba(18, 24, 32, 0.12);
  background: #f3f1ec;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-scale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn--x,
.btn--linkedin,
.btn--instagram {
  color: #fff;
}

.btn--x {
  background: #111;
  border-color: #111;
}

.btn--x:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.btn--linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
}

.btn--linkedin:hover {
  background: #004182;
  border-color: #004182;
  color: #fff;
}

.btn--instagram {
  background: #833ab4;
  border-color: #833ab4;
}

.btn--instagram:hover {
  background: #6a2d96;
  border-color: #6a2d96;
  color: #fff;
}

/* --- Timeline --- */

.journey {
  --dot-x: 0.35rem;
  --dot-y: 1.75rem;
  --gutter: 2.6rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) var(--pad) clamp(2.5rem, 8vh, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr);
  gap: clamp(1.75rem, 5vw, 3.75rem);
  align-items: start;
}

.journey__intro {
  position: sticky;
  top: clamp(4rem, 22vh, 11rem);
}

.journey__eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}

.journey__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.journey__lede {
  margin: 0.95rem 0 0;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.journey__counter {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.journey__counter-now {
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--signal);
}

.journey__counter-total {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.journey__track {
  position: relative;
}

.journey__rail {
  position: absolute;
  left: var(--dot-x);
  top: var(--dot-y);
  width: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: rgba(18, 24, 32, 0.1);
  overflow: hidden;
}

.journey__fill {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--steel), var(--signal));
}

.journey__list {
  list-style: none;
  margin: 0;
  padding: 0 0 38vh var(--gutter);
}

.journey__item {
  position: relative;
  margin-bottom: clamp(1.25rem, 6vh, 3rem);
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 16px;
  opacity: 0.42;
  transform: translateX(0);
  transition: opacity 0.5s var(--ease), background 0.5s var(--ease),
    border-color 0.5s var(--ease), box-shadow 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.journey__item:last-child {
  margin-bottom: 0;
}

.journey__item.is-done {
  opacity: 0.62;
}

.journey__item.is-current {
  opacity: 1;
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(18, 24, 32, 0.04),
    0 26px 48px -30px rgba(18, 24, 32, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.journey__item::before {
  content: "";
  position: absolute;
  left: calc(var(--dot-x) - var(--gutter));
  top: var(--dot-y);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  border: 2px solid rgba(47, 111, 143, 0.55);
  box-shadow: 0 0 0 5px rgba(232, 238, 242, 0.9);
  z-index: 1;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.journey__item.is-done::before {
  background: var(--steel);
  border-color: var(--steel);
}

.journey__item.is-current::before {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 0 5px rgba(232, 238, 242, 0.9),
    0 0 0 10px rgba(196, 92, 38, 0.16);
}

.journey__when {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.4s var(--ease);
}

.journey__item.is-current .journey__when {
  color: var(--signal);
}

.journey__what {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.journey__body {
  margin: 0.6rem 0 0;
  max-width: 46ch;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- Mobile --- */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    gap: 1.35rem;
    justify-items: start;
  }

  .hero__portrait {
    order: -1;
    justify-self: start;
    width: min(42vw, 8.75rem);
  }

  .hero__brand {
    font-size: clamp(1.7rem, 7.5vw, 2.15rem);
  }

  .hero__headline {
    max-width: none;
  }

  .hero__support {
    max-width: none;
  }

  .journey {
    --gutter: 1.9rem;
    --dot-y: 1.45rem;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: clamp(2rem, 7vh, 3rem);
  }

  .journey__intro {
    position: static;
  }

  .journey__counter {
    display: none;
  }

  .journey__item {
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 14px;
  }

  .journey__item.is-current {
    transform: none;
  }

  .journey__what {
    font-size: clamp(1.3rem, 6vw, 1.55rem);
  }

  .atmosphere__grid {
    opacity: 0.18;
  }
}

@media (max-width: 400px) {
  .btn {
    flex: 1 1 auto;
  }
}

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

  .atmosphere__grid,
  .atmosphere__glow--a,
  .atmosphere__glow--b,
  .hero__brand,
  .hero__headline,
  .hero__support,
  .hero__cta,
  .hero__portrait {
    animation: none !important;
  }

  .hero__brand,
  .hero__headline,
  .hero__support,
  .hero__cta,
  .hero__portrait {
    opacity: 1;
    transform: none;
  }

  .journey__fill {
    height: 100%;
  }

  .journey__item,
  .journey__item.is-done {
    opacity: 1;
    transition: none;
  }
}
