:root {
    --paper: #f3f0e9;
    --white: #fff;
    --ink: #181818;
    --muted: #68625b;
    --line: #d8d2c9;
    --accent: #9a7f61
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, sans-serif
}

a {
    text-decoration: none;
    color: inherit
}

.section {
    padding: 4rem 5vw
}

.paper {
    background: var(--paper)
}

.white {
    background: #fff
}

.eyebrow {
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .12em;
    font-weight: 600;
    margin: 0 0 1rem
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    font-weight: 500
}

.about {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 5vw;
    align-items: center;
    min-height: 580px
}

.about h1 {
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: .96;
    margin: 0 0 1.7rem
}

.about p {
    max-width: 570px;
    line-height: 1.7;
    color: #403b36
}

.portrait {
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, #293033, #121414);
    color: #777;
    display: grid;
    place-items: center;
    letter-spacing: .18em;
    max-width: 520px;
    justify-self: end;
    width: 100%
}

.journey {
    padding-top: 3rem;
    padding-bottom: 0
}

.journey-title h2 {
    font-size: 2.6rem;
    line-height: 1.05;
    margin: 0
}

.journey-stage {
    position: relative;
    margin-top: 1.2rem
}

.journey-sticky {
    position: sticky;
    top: 74px;
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: minmax(160px, .65fr) minmax(280px, .8fr) minmax(320px, 1fr);
    gap: 4vw;
    align-items: center;
    border-top: 1px solid var(--line);
    background: #fff
}

.journey-year {
    justify-self: end;
    text-align: right;
    color: var(--accent);
    font-size: .84rem;
    transition: .3s
}

.rail {
    height: 58vh;
    position: relative;
    display: grid;
    place-items: center
}

.rail-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line)
}

.circle {
    width: min(29vw, 300px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px;
    position: relative;
    z-index: 2
}

.circle-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #3a4548, #151718 70%);
    color: #aaa;
    letter-spacing: .16em;
    font-size: .75rem;
    transition: .3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.node {
    position: absolute;
    left: -15px;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    border: 5px solid #fff;
    outline: 1px solid var(--line);
    transform: translateY(-50%)
}

.journey-copy {
    max-width: 470px;
    position: relative;
    padding-right: 3rem;
    transition: .3s
}

.num {
    font-family: "Playfair Display", serif;
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: .8rem
}

.journey-copy h3 {
    font-size: clamp(3rem, 5vw, 4.7rem);
    line-height: .95;
    margin: 0 0 1.2rem
}

.journey-copy p {
    line-height: 1.75;
    color: #403b36
}

.dots {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 11px
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid #b8b0a6;
    background: transparent;
    padding: 0
}

.dot.active {
    background: #181818;
    border-color: #181818
}

.is-changing {
    opacity: 0;
    transform: translateY(14px)
}

.steps {
    position: relative;
    z-index: -1
}

.step {
    min-height: 62vh
}

.step:last-child {
    min-height: 60vh
}

.how {
    display: grid;
    grid-template-columns: 1.05fr repeat(3, 1fr);
    gap: 0;
    padding-top: 3rem;
    padding-bottom: 3rem
}

.how-heading {
    padding-right: 2.2rem
}

.how-heading h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin: 0
}

.how article {
    padding: 0 2.2rem;
    border-left: 1px solid var(--line)
}

.how article h3 {
    font-size: 1.45rem;
    margin: .9rem 0 .6rem
}

.how article p {
    font-size: .87rem;
    line-height: 1.65;
    color: #403b36
}

.icon {
    width: 38px;
    height: 38px
}

.cube {
    border: 1px solid #181818;
    transform: rotate(30deg);
    width: 32px;
    height: 32px;
    margin: 4px
}

.bolt {
    font-size: 2rem;
    display: grid;
    place-items: center
}

.magnify {
    width: 28px;
    height: 28px;
    border: 1px solid;
    border-radius: 50%;
    position: relative;
    margin: 4px
}

.magnify:after {
    content: "";
    position: absolute;
    width: 18px;
    height: 1px;
    background: #181818;
    right: -13px;
    bottom: -7px;
    transform: rotate(45deg)
}

.beyond {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 6vw;
    align-items: center
}

.beyond-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: grid;
}

.beyond-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beyond h2,
.short h2 {
    font-size: 2rem;
    margin: 0
}

.beyond p {
    line-height: 1.7;
    color: #403b36
}

.outline,
.solid,
.light {
    display: inline-block;
    padding: 13px 18px;
    text-transform: uppercase;
    font-size: .68rem;
    letter-spacing: .08em
}

.outline {
    border: 1px solid
}

.solid {
    background: #171717;
    color: #fff
}

.short {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem
}

.resume-icon {
    font-size: 2.5rem
}

#resume-modal {
  width: min(1000px, 92vw);
  height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

#resume-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#resume-modal::backdrop {
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(5px);
}

#resume-close {
  position: absolute;
  top: 10px;
  right: 21px;

  z-index: 999;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid #ccc;
  border-radius: 50%;

  background: #fff;
  color: #111;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

#resume-close:hover {
  background: #f2f2f2;
}

.short p:last-child {
    margin: .4rem 0 0
}

.actions {
    display: flex;
    gap: 1rem
}

.lab-cta {
    background: #171717;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 3rem;
    padding: 4rem 7vw
}

.lab-cta h2 {
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 1.05;
    margin: 0
}

.lab-cta em {
    font-family: "Playfair Display", serif;
    color: #d6c7b6;
    font-size: 2.4rem
}

.divider {
    background: #ffffff55
}

.lab-cta>div:last-child {
    align-self: center;
    max-width: 500px
}

.lab-cta>div:last-child p {
    line-height: 1.7
}

.light {
    background: #fff;
    color: #181818
}

@media(max-width:900px) {
    .about,
    .beyond {
        grid-template-columns: 1fr
    }

    .journey-sticky {
    grid-template-columns: 1fr;
    grid-template-areas:
        "copy"
        "rail"
        "year";

    gap: 1.5rem;
    align-items: start;
    padding: 2rem 5vw 3rem;
    }

    .journey-copy {
        grid-area: copy;
        width: 100%;
        max-width: none;
        padding-right: 0;
    }

    .rail {
        grid-area: rail;
        width: 100%;
        height: auto;
        min-height: 280px;
    }

    .circle {
        width: min(70vw, 300px);
    }

    .journey-year {
        grid-area: year;
        justify-self: start;
        text-align: left;
        font-size: .9rem;
    }

    .journey-copy h3 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .dots {
        position: static;
        transform: none;
        display: flex;
        gap: 10px;
        margin-top: 1.5rem;
    }

    .how {
        grid-template-columns: 1fr
    }

    .how article {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 1.5rem 0
    }

    .short {
        grid-template-columns: 1fr
    }

    .actions {
        flex-wrap: wrap
    }

    .lab-cta {
        grid-template-columns: 1fr
    }

    .divider {
        height: 1px
    }
}