/* Layout Structure */
.wrap {
    width: calc(100% - 72px);
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

.skip {
    position: absolute;
    left: 15px;
    top: -100px;
    background: var(--white);
    color: var(--navy);
    padding: 15px 20px;
    z-index: 999;
    font-size: 13px;
    font-weight: 600;
}

.skip:focus {
    top: 15px;
}

.topline {
    display: none;
    background: var(--navy);
    color: #dceaf1;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 10px 0;
}

.topline .wrap {
    display: flex;
    justify-content: space-between;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    color: var(--white);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header .header-inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled Header State */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header.scrolled .header-inner {
    height: 80px;
    border-bottom-color: transparent;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header .logo {
    width: auto;
    max-width: 220px;
    height: 60px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
}

/* Default / Top of Page: White logo visible, Dark logo hidden */
.header .logo--light {
    display: block;
}

.header .logo--dark {
    display: none;
}

/* On Scroll: Dark logo visible, White logo hidden */
.header.scrolled .logo--light {
    display: none;
}

.header.scrolled .logo--dark {
    display: block;
    height: 60px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 29px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav a {
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav a.active {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* Scrolled Nav Links */
.header.scrolled .nav a {
    color: #111719;
}

.header.scrolled .nav a:hover,
.header.scrolled .nav a[aria-current="page"],
.header.scrolled .nav a.active {
    color: #0088b3;
    border-color: #0088b3;
}

.header .button {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header .button:hover {
    background: var(--cyan);
    color: #082830;
    border-color: var(--cyan);
}

/* Scrolled Header Button */
.header.scrolled .button {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.header.scrolled .button:hover {
    background: #0088b3;
    color: var(--white);
    border-color: #0088b3;
}

.menu {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 14px;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-none);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--cyan);
}

/* Scrolled Mobile Menu Button */
.header.scrolled .menu {
    color: var(--navy);
    border-color: rgba(17, 23, 25, 0.25);
    background: rgba(17, 23, 25, 0.05);
}

.header.scrolled .menu:hover {
    background: rgba(17, 23, 25, 0.1);
    border-color: #0088b3;
}

.section {
    padding: 105px 0;
}

.section-head {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: end;
    margin-bottom: 45px;
}

.section-head > p {
    max-width: 390px;
    justify-self: end;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Pale background section modifier */
.pale {
    background: var(--navy);
    color: var(--white);
}

.pale p {
    color: #b7c3c8;
}

.pale .content-row,
.pale .content-list {
    border-color: #39454a;
}

.pale .step {
    background: #242d31;
}

.pale .step span {
    color: #b9c6cb;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 66px 0 24px;
    overflow: hidden;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
}

.footer .logo {
    width: 180px;
    margin-bottom: 20px;
}

.footer p {
    font-size: 12px;
    color: #a5b1b5;
    max-width: 310px;
    line-height: 1.6;
}

.footer h3 {
    color: #a5b1b5;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
}

.footer a:not(.brand) {
    display: block;
    font-size: 11px;
    color: #d7e3ee;
    margin-bottom: 15px;
}

.footer a:not(.brand):hover {
    color: var(--cyan);
}

.footer-wordmark {
    font-size: clamp(74px, 19.1vw, 310px);
    line-height: 1;
    letter-spacing: -0.065em;
    font-weight: 400;
    margin: 80px 0 10px;
    white-space: nowrap;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    user-select: none;
}

.footer-wordmark > span {
    font-size: 20px;
    display: inline-block;
    vertical-align: top;
    margin: 1.6em 0 0 0.8em;
    letter-spacing: 0;
}

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 24px;
    font-size: 9px;
    color: #afc2d5;
}

.notice {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #aab7bc;
    padding: 13px 36px;
    font-size: 10px;
    text-align: left;
    line-height: 1.6;
}
