:root {
  --paper: #f5ecdc;
  --ink: #25231f;
  --muted: #645e56;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; }

.page {
  width: 100%;
  min-height: 100vh;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(64, 127, 169, .20), transparent 25rem),
    radial-gradient(circle at 8% 88%, rgba(138, 106, 61, .13), transparent 26rem),
    var(--paper);
}

.shell { width: 100%; max-width: 630px; margin: 0 auto; padding: clamp(34px, 6vw, 70px) 0 30px; }
.header { max-width: 510px; margin: 0 auto 38px; text-align: center; }
.avatar {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 21px;
  overflow: hidden;
  border: 3px solid rgba(255, 252, 245, .9);
  border-radius: 50%;
  outline: 1px solid rgba(37, 35, 31, .15);
  box-shadow: 0 14px 30px rgba(48, 41, 31, .16);
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 49% 40%; }
.welcome { margin: 0 0 12px; color: #3976a0; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .16em; }
h1 { margin: 0; font: 600 clamp(49px, 9vw, 74px) /.89 var(--display); letter-spacing: -.065em; }
h1 em { color: #3976a0; font-style: normal; }
.intro { max-width: 430px; margin: 20px auto 0; color: var(--muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }

.paths { display: grid; width: 100%; min-width: 0; gap: 16px; }
.path {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 255px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 24px;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 18px 34px rgba(47, 39, 28, .16);
  text-decoration: none;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), box-shadow .38s cubic-bezier(.2, .8, .2, 1);
}
.path img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.veil { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(15, 19, 19, .88) 0%, rgba(15, 19, 19, .54) 55%, rgba(15, 19, 19, .08) 100%); }
.path-content { display: flex; min-height: 255px; padding: 24px 25px 21px; flex-direction: column; align-items: flex-start; }
.path-number { color: rgba(255, 255, 255, .74); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .1em; }
.path strong { max-width: 415px; margin: auto 0 16px; font: 600 clamp(31px, 5.9vw, 41px) /.93 var(--display); letter-spacing: -.055em; }
.path-footer { display: grid; gap: 3px; }
.path-footer b { font-size: 13px; font-weight: 700; letter-spacing: -.015em; }
.path-footer i { color: rgba(255, 255, 255, .72); font-size: 10px; font-style: normal; }

.path--arrival { box-shadow: 13px 15px 0 rgba(57, 118, 160, .20), 0 18px 34px rgba(47, 39, 28, .16); }
.path--arrival .veil { background: linear-gradient(90deg, rgba(16, 33, 43, .91), rgba(16, 33, 43, .55) 56%, rgba(16, 33, 43, .04)); }
.path--faith { box-shadow: 13px 15px 0 rgba(138, 106, 61, .19), 0 18px 34px rgba(47, 39, 28, .16); }
.path--faith .veil { background: linear-gradient(90deg, rgba(52, 40, 25, .91), rgba(52, 40, 25, .55) 56%, rgba(52, 40, 25, .06)); }
.path--partnership { box-shadow: 13px 15px 0 rgba(91, 107, 79, .21), 0 18px 34px rgba(47, 39, 28, .16); }
.path--partnership .veil { background: linear-gradient(90deg, rgba(27, 38, 28, .91), rgba(27, 38, 28, .53) 56%, rgba(27, 38, 28, .06)); }

.path:hover, .path:focus-visible { transform: translateY(-5px); outline: none; }
.path:hover img, .path:focus-visible img { transform: scale(1.055); }
.path--arrival:hover, .path--arrival:focus-visible { box-shadow: 18px 21px 0 rgba(57, 118, 160, .22), 0 25px 42px rgba(47, 39, 28, .20); }
.path--faith:hover, .path--faith:focus-visible { box-shadow: 18px 21px 0 rgba(138, 106, 61, .22), 0 25px 42px rgba(47, 39, 28, .20); }
.path--partnership:hover, .path--partnership:focus-visible { box-shadow: 18px 21px 0 rgba(91, 107, 79, .23), 0 25px 42px rgba(47, 39, 28, .20); }

.footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 31px; color: #81796f; font-family: "DM Mono", monospace; font-size: 10px; }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .68s cubic-bezier(.2, .8, .2, 1), transform .68s cubic-bezier(.2, .8, .2, 1); }
.delay-1 { transition-delay: 90ms !important; }
.delay-2 { transition-delay: 170ms !important; }
.delay-3 { transition-delay: 250ms !important; }

@media (max-width: 520px) {
  .page { padding: 16px; }
  .shell { width: calc(100vw - 32px); max-width: none; padding-top: 38px; }
  .header { margin-bottom: 29px; }
  .avatar { width: 78px; height: 78px; margin-bottom: 18px; }
  h1 { font-size: clamp(47px, 13vw, 59px); }
  .intro { max-width: 350px; margin-top: 17px; font-size: 14px; }
  .paths { gap: 14px; }
  .path, .path-content { min-height: 238px; }
  .path { border-radius: 21px; }
  .path-content { padding: 21px 20px 18px; }
  .path strong { font-size: clamp(30px, 9.2vw, 39px); }
  .footer { margin-top: 26px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .path, .path img { transition: none; }
}
