.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem max(1.25rem, calc((100% - var(--wrap)) / 2));
    background: var(--rose-50);
    color: var(--ink);
    border-bottom: 2px dotted var(--rose-200);
    transition: box-shadow 0.2s ease;
}

.topbar.lifted {
    box-shadow: 0 6px 18px hsla(343, 26%, 11%, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--head);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
}

.brand svg {
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    color: var(--rose-500);
}

.brand small {
    display: block;
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.lang {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.2rem;
    font-family: var(--head);
    font-size: 0.85rem;
    font-weight: 800;
}

.lang a {
    padding: 0.3rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
}

.lang a:hover {
    border-color: var(--rose-200);
}

.lang a[aria-current] {
    background: var(--rose-500);
    color: #fff;
}

.lang span {
    color: var(--rose-200);
}

section,
footer {
    position: relative;
    padding: clamp(3.5rem, 9vw, 6.5rem) max(1.25rem, calc((100% - var(--wrap)) / 2));
    scroll-margin-top: 3.6rem;
    overflow: hidden;
}

section > *,
footer > * {
    position: relative;
}

.night {
    background: var(--rose-800);
    color: var(--snow);
}

.night p {
    color: var(--snow-soft);
}

.day {
    background: var(--rose-50);
    color: var(--ink);
}

.day p {
    color: var(--ink-soft);
}

.night::before,
footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(45%, 26rem);
    height: 70%;
    background: url("dots-light.svg");
    border-bottom-left-radius: 4rem;
    pointer-events: none;
}

.day::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: min(35%, 20rem);
    height: 55%;
    background: url("dots-dark.svg");
    border-top-right-radius: 4rem;
    pointer-events: none;
}

.tag {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: var(--head);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-600);
}

.night .tag {
    color: var(--teal-300);
}

.intro {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.lead {
    font-size: 1.2rem;
    max-width: 36rem;
}

.split {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 span {
    color: var(--teal-300);
}

.art {
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.art .ln-a {
    stroke: var(--teal-300);
    stroke-width: 3;
}

.art .ln-b {
    stroke: var(--rose-200);
    stroke-width: 4.5;
    stroke-dasharray: 0.5 12;
}

.art .ln-c {
    stroke: hsl(343, 18%, 52%);
    stroke-width: 2;
}

.art .dot {
    fill: var(--rose-800);
    stroke: var(--teal-300);
    stroke-width: 3;
}

.icon {
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1rem;
    fill: none;
    stroke: var(--rose-500);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trio {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.trio li {
    padding: 1.6rem 1.5rem;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--rose-200);
    border-radius: 0 1.75rem;
}

.trio li p {
    margin: 0;
    color: var(--ink-soft);
}

.figures {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.figures li {
    padding: 1.5rem;
    background: var(--rose-50);
    color: var(--ink);
    border-radius: 1.75rem 1.75rem 1.75rem 0;
}

.figures b {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--head);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rose-500);
}

.figures span {
    color: var(--ink-soft);
}

.ways {
    display: grid;
    gap: 1.75rem 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.ways li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 0.25rem 0 0.25rem 1.1rem;
    border-left: 3px dotted var(--teal-600);
}

.ways .icon {
    margin: 0;
}

.ways h3 {
    margin-bottom: 0.25rem;
}

.ways p {
    margin: 0;
}

.person {
    display: grid;
    gap: 1.5rem;
    max-width: 46rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--rose-50);
    color: var(--ink);
    border-radius: 0 3rem 0 0;
}

.person .icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0;
    stroke: var(--teal-600);
}

.person h3 {
    margin-bottom: 0.15rem;
    font-size: 1.5rem;
}

.night .person p {
    color: var(--ink-soft);
}

.night .person .role {
    margin-bottom: 0.9rem;
    font-weight: 700;
    color: var(--teal-600);
}

.night .person p:last-child {
    margin-bottom: 0;
}

.route {
    display: grid;
    max-width: 40rem;
    counter-reset: stop;
}

.route li {
    position: relative;
    padding: 0 0 2rem 4rem;
    counter-increment: stop;
}

.route li::before {
    content: counter(stop, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    font-family: var(--head);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--rose-500);
    background: var(--rose-50);
    border: 2px solid var(--rose-500);
    border-radius: 50% 50% 50% 0;
}

.route li::after {
    content: "";
    position: absolute;
    top: 3.1rem;
    bottom: 0.3rem;
    left: 1.3rem;
    border-left: 3px dotted var(--rose-200);
}

.route li:last-child {
    padding-bottom: 0;
}

.route li:last-child::after {
    display: none;
}

.route h3 {
    margin-bottom: 0.25rem;
    padding-top: 0.4rem;
}

.route p {
    margin: 0;
}

.reach {
    max-width: 44rem;
    padding: clamp(1.75rem, 5vw, 3rem);
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--rose-200);
    border-radius: 3rem 0 3rem 0;
}

.reach p {
    color: var(--ink-soft);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding: 0.9rem 1.6rem;
    font-family: var(--head);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    background: var(--rose-500);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.call:hover {
    background: var(--teal-600);
}

.call svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reach .aside {
    margin: 1.5rem 0 0;
    font-size: 0.98rem;
}

.reach .aside a {
    color: var(--teal-600);
    font-weight: 700;
    text-underline-offset: 3px;
}

.policy {
    max-width: 46rem;
}

.policy h2 {
    margin: 2.4rem 0 0.6rem;
    font-size: 1.35rem;
    color: var(--ink);
}

.policy h2:first-child {
    margin-top: 0;
}

.policy a {
    color: var(--teal-600);
    font-weight: 700;
    text-underline-offset: 3px;
}

.policy address {
    font-style: normal;
    color: var(--ink-soft);
}

.stamp {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    font-family: var(--head);
    font-weight: 800;
    color: var(--ink);
    background: var(--teal-300);
    border-radius: 0 999px 999px 0;
}

footer {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    background: var(--rose-900);
    color: var(--snow);
}

.foot {
    display: grid;
    gap: 2.25rem;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}

footer .brand {
    margin-bottom: 1.1rem;
    color: var(--snow);
}

footer .brand svg {
    color: var(--teal-300);
}

footer .brand small {
    color: var(--snow-soft);
}

footer address {
    font-style: normal;
    line-height: 1.7;
    color: var(--snow-soft);
}

footer h2 {
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-300);
}

footer li {
    margin-bottom: 0.4rem;
    color: var(--snow-soft);
}

footer a {
    color: var(--snow);
    text-decoration-color: var(--teal-300);
    text-underline-offset: 3px;
}

footer a:hover {
    color: var(--teal-300);
}

footer :focus-visible {
    outline-color: var(--teal-300);
}

.legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--snow-soft);
    border-top: 2px dotted hsla(343, 30%, 95%, 0.22);
}

.legal p {
    margin: 0;
}

.night :focus-visible {
    outline-color: var(--teal-300);
}

.night .person :focus-visible {
    outline-color: var(--teal-600);
}

@media (min-width: 52rem) {
    .split {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .split.flip {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }

    .person {
        grid-template-columns: auto 1fr;
    }
}

@media (max-width: 26rem) {
    body {
        font-size: 1rem;
    }

    .brand small {
        display: none;
    }

    .brand svg {
        width: 2rem;
        height: 2rem;
    }

    .lang a {
        padding: 0.25rem 0.5rem;
    }

    .route li {
        padding-left: 3.5rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
