:root {
    --dark: #1b201e;
    --paper: #f2efe6;
    --ink: #1b201e;
    --orange: #ff692f;
    --mint: #99d6bb;
    --blue: #9db9ff;
    --yellow: #eac762;
    --rule: #b6b3a7;
    --mono: ui-monospace, Consolas, monospace
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.55 system-ui, sans-serif
}

a {
    color: inherit;
    text-underline-offset: 4px
}

a:focus-visible {
    outline: 3px solid #bb480f;
    outline-offset: 4px
}

.map a:focus-visible {
    outline-color: #fff
}

.skip {
    position: absolute;
    top: 0;
    left: 12px;
    background: var(--paper);
    padding: 10px;
    transform: translateY(-110%);
    z-index: 3
}

.skip:focus {
    transform: none
}

.mast,
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px clamp(20px, 5vw, 80px)
}

.mast {
    position: relative;
    z-index: 1000;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    min-height: 72px
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 950;
    letter-spacing: -.08em;
    font-size: 26px;
    line-height: 1;
    text-decoration: none
}

.logo span {
    color: #a83200
}

.footer-top img {
    border-radius: 4px;
    width: 160px;
}

.logo img {
    width: clamp(140px, 36vw, 210px);
    height: auto;
    display: block;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    background: transparent;
    border: 1.5px solid var(--ink);
    padding: 7px 11px;
    cursor: pointer;
    font: 700 11px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    border-radius: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 38px;
}

.menu-toggle:hover {
    background: var(--ink);
    color: var(--paper);
}

.menu-toggle:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.menu-toggle[aria-expanded="true"] {
    background: var(--ink);
    color: var(--paper);
}

.menu-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 15px;
    height: 11px;
}

.menu-toggle-bars .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.22s ease, opacity 0.2s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 14px;
    font-weight: 700
}

nav a {
    text-decoration: none
}

nav a:hover,
nav a[aria-current=page] {
    text-decoration: underline
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    letter-spacing: -.055em;
    line-height: 1.03
}

h1 {
    font-size: clamp(50px, 9.4vw, 146px);
    margin-bottom: 20px;
    font-weight: 790
}

h2 {
    font-size: clamp(30px, 5vw, 74px);
    margin-bottom: 15px
}

h3 {
    font-size: clamp(20px, 2.5vw, 32px);
    margin-bottom: 10px
}

.label {
    font: 700 11px/1.4 var(--mono);
    letter-spacing: .10em
}

.map {
    background: repeating-linear-gradient(90deg, transparent 0 47px, #ffffff0b 47px 48px), repeating-linear-gradient(0deg, transparent 0 47px, #ffffff0b 47px 48px), var(--dark);
    color: var(--paper)
}

.map-note {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 13px clamp(20px, 5vw, 80px);
    border-bottom: 1px solid #ffffff38;
    color: #cdd0c4
}

.bottom span:first-child {
    color: var(--orange)
}

.map-head {
    padding: clamp(30px, 6vw, 82px) clamp(20px, 5vw, 80px) 0
}

.map-head h1 span {
    color: var(--orange)
}

.map-head>p:last-child,
.intro>p:last-child {
    max-width: 49ch;
    font-size: clamp(17px, 2vw, 23px)
}

.map-network {
    position: relative;
    padding: 52px clamp(20px, 5vw, 80px) 40px
}

.map-network svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.map-network path {
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    fill: none
}

.path-a {
    stroke: var(--orange)
}

.path-b {
    stroke: var(--mint)
}

.path-c {
    stroke: var(--blue)
}

.path-d {
    stroke: var(--yellow)
}

.stops {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start
}

.google-ads {
    --line: var(--orange)
}

.social {
    --line: var(--mint)
}

.display {
    --line: var(--blue)
}

.content {
    --line: var(--yellow)
}

.stop {
    display: flex;
    gap: 9px;
    align-items: center;
    min-height: 52px;
    padding: 8px;
    background: var(--dark);
    border: 2px solid var(--line);
    text-decoration: none;
    font-weight: 750
}

.stop:nth-child(even) {
    margin-top: 28px
}

.stop:hover {
    background: var(--line);
    color: var(--dark)
}

.stop b {
    margin-left: auto
}

.stop-number {
    padding: 3px 5px;
    background: var(--line);
    color: var(--dark);
    font: 700 11px var(--mono)
}

.bottom {
    border-block: 1px solid #ffffff38
}

.bottom a {
    color: var(--paper)
}

.manifest,
.feature,
.intro,
.service,
.timeline,
.contact,
.end {
    padding: clamp(28px, 5vw, 76px) clamp(20px, 5vw, 80px);
    border-bottom: 1px solid var(--rule)
}

.manifest {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1.7fr;
    gap: 20px
}

.manifest h2 {
    font-size: clamp(32px, 4.3vw, 62px)
}

.manifest-body>div {
    border-top: 1px solid var(--rule);
    padding: 15px 0
}

.manifest-body p,
.service p {
    margin-bottom: 10px
}

.feature,
.end {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 20px;
    background: #e7e3d7
}

.feature h2 {
    max-width: 16ch
}

.feature p:not(.label),
blockquote {
    max-width: 58ch
}

.feature a,
.manifest a,
.service a {
    font-weight: 750
}

.end {
    grid-template-columns: 1fr auto;
    align-items: center;
    background: var(--orange);
    border-color: var(--dark)
}

.end h2 {
    margin: 0
}

.button {
    display: inline-block;
    padding: 12px 17px;
    background: var(--dark);
    color: var(--paper);
    font-weight: 750;
    text-decoration: none
}

.button:hover {
    background: #454b46
}

.intro {
    background: #e7e3d7
}

.intro h1 {
    font-size: clamp(46px, 8vw, 112px);
    max-width: 15ch
}

.intro p:last-child {
    margin-bottom: 0
}

.service {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.7fr;
    gap: 20px;
    scroll-margin-top: 12px
}

.service h2 {
    font-size: clamp(30px, 4vw, 52px)
}

.service:target {
    box-shadow: inset 7px 0 var(--line)
}

.line-key {
    display: inline-block;
    width: 25px;
    height: 8px;
    background: var(--line);
    margin-right: 7px
}

.service-lead {
    font-weight: 750
}

.measure {
    padding: 9px 12px;
    background: #e7e3d7
}

.timeline article {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 22px;
    border-bottom: 1px solid var(--rule);
    padding: 18px 0
}

.timeline article span {
    font: 700 14px var(--mono);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--orange)
}

.timeline h2,
.contact h2 {
    font-size: clamp(28px, 4vw, 52px)
}

.timeline p {
    max-width: 65ch;
    margin-bottom: 0
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.contact ol {
    padding-left: 20px
}

.fine {
    font-size: 14px;
    margin: 10px 0 0
}

blockquote {
    margin: 0
}

footer {
    background: var(--dark);
    color: var(--paper)
}

footer p {
    margin: 0
}

footer .logo span {
    color: var(--orange)
}

@media(max-width:850px) {

    .manifest,
    .service {
        grid-template-columns: 1fr 1fr
    }

    .manifest>.label,
    .service-index {
        grid-column: 1/-1
    }

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

    .stop:nth-child(even) {
        margin-top: 0
    }
}

@media(max-width:768px) {
    .mast {
        padding: 14px clamp(16px, 4vw, 80px);
        min-height: 64px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(27, 32, 30, 0.45);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-backdrop.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .js-enabled nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 2px solid var(--ink);
        box-shadow: 0 16px 28px rgba(27, 32, 30, 0.16);
        flex-direction: column;
        gap: 0;
        padding: 0;
        z-index: 999;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease,
                    visibility 0.3s ease;
    }

    .js-enabled nav.is-open {
        max-height: calc(100vh - 64px);
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px clamp(20px, 5vw, 80px);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-decoration: none;
        color: var(--ink);
        border-top: 1px solid var(--rule);
        min-height: 52px;
        transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    nav a:first-child {
        border-top: none;
    }

    nav a:hover,
    nav a:focus-visible {
        background: #e8e3d5;
        color: var(--orange);
        text-decoration: none;
        padding-left: calc(clamp(20px, 5vw, 80px) + 6px);
        outline: none;
    }

    nav a:focus-visible {
        outline: 2px solid var(--orange);
        outline-offset: -2px;
    }

    nav a::after {
        content: "↗";
        font-family: var(--mono);
        font-size: 14px;
        opacity: 0.55;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

    nav a:hover::after,
    nav a:focus-visible::after {
        opacity: 1;
        transform: translate(2px, -2px);
    }

    nav a[aria-current=page],
    nav a[aria-current="page"] {
        background: #e6e0d0;
        color: var(--orange);
        border-left: 4px solid var(--orange);
        text-decoration: none;
        font-weight: 800;
    }

    nav a[aria-current=page]::after,
    nav a[aria-current="page"]::after {
        content: "CURRENT";
        font: 700 10px/1.4 var(--mono);
        letter-spacing: 0.08em;
        background: var(--orange);
        color: var(--paper);
        padding: 2px 6px;
        opacity: 1;
        transform: none;
    }

    /* Fallback if JS is disabled */
    :root:not(.js-enabled) .menu-toggle {
        display: none;
    }

    :root:not(.js-enabled) nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
        padding: 8px 0;
    }

    :root:not(.js-enabled) nav a {
        display: inline;
        border: none;
        padding: 4px 8px;
        min-height: auto;
    }

    :root:not(.js-enabled) nav a::after {
        display: none;
    }
}

@media(max-width:580px) {

    .footer-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px
    }

    .map-head h1 br {
        display: none
    }

    .map-head h1 {
        font-size: clamp(42px, 11vw, 64px)
    }

    .map-network {
        padding-block: 24px
    }

    .map-note {
        font-size: 9px
    }

    .stop {
        font-size: 13px
    }

    .stop b {
        display: none
    }

    .manifest,
    .service,
    .feature,
    .contact,
    .end {
        grid-template-columns: 1fr
    }

    .end .button {
        justify-self: start
    }

    .timeline article {
        grid-template-columns: 40px 1fr;
        gap: 10px
    }
}

@media (prefers-reduced-motion: reduce) {
    nav,
    .menu-toggle-bars .bar,
    .nav-backdrop {
        transition: none !important;
    }
}