/* Barlow for text, Barlow Condensed for headings, menus and buttons (SIL Open Font Licence). */
@font-face {
    font-family: 'Barlow';
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow Condensed';
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow Condensed';
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
}

:root {
    --haven: #3d3a8c;
    --haven-dark: #2b2970;
    --haven-deep: #16153d;
    --haven-night: #0e0d29;
    --haven-glow: #8f8ae8;
    --haven-tint: #ecebfa;
    --haven-soft: #f5f5fb;
    --grey: #5c5c5c;
    --ink: #17172a;
    --line: #e1e0ee;
    --white: #ffffff;
    --radius: 6px;
    --wrap: 1240px;
    --shadow: 0 18px 40px -18px rgba(22, 21, 61, 0.35);
    --text: 'Barlow', ui-sans-serif, system-ui, sans-serif;
    --display: 'Barlow Condensed', 'Arial Narrow', ui-sans-serif, sans-serif;
    --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--text);
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--haven);
}
h1,
h2,
h3 {
    font-family: var(--display);
    text-transform: uppercase;
    line-height: 0.98;
    letter-spacing: 0.005em;
    margin: 0 0 0.45em;
    color: var(--haven-deep);
}
h1 {
    font-size: clamp(3rem, 7vw, 5.75rem);
    font-weight: 700;
}
h2 {
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
    font-weight: 700;
}
h3 {
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.01em;
}
p {
    margin: 0 0 1em;
}
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}
.muted {
    color: var(--grey);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1em;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--haven);
}
.eyebrow::before {
    content: '';
    width: 34px;
    height: 3px;
    background: currentColor;
}
.lead {
    font-size: 1.25rem;
}
.skip {
    position: absolute;
    left: -999px;
}
.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--white);
    padding: 8px 12px;
}

/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.85em 1.6em;
    border-radius: var(--radius);
    border: 2px solid var(--haven);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.1;
    background: var(--haven);
    color: var(--white);
    transition:
        color 0.3s var(--ease),
        border-color 0.3s var(--ease);
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--haven-deep);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn:hover {
    border-color: var(--haven-deep);
}
.btn svg {
    width: 1.15em;
    height: 1.15em;
    transition: transform 0.3s var(--ease);
}
.btn:hover svg {
    transform: translateX(4px);
}
.btn.ghost {
    background: transparent;
    color: var(--haven);
}
.btn.ghost::before {
    background: var(--haven);
}
.btn.ghost:hover {
    color: var(--white);
    border-color: var(--haven);
}
.btn.light {
    background: var(--white);
    color: var(--haven-deep);
    border-color: var(--white);
}
.btn.light::before {
    background: var(--haven-glow);
}
.btn.light:hover {
    border-color: var(--haven-glow);
    color: var(--haven-night);
}
.btn.outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}
.btn.outline-light::before {
    background: var(--white);
}
.btn.outline-light:hover {
    color: var(--haven-deep);
    border-color: var(--white);
}

/* Utility bar and header */
.topbar {
    background: var(--haven-night);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}
.topbar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 40px;
}
.topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.topbar a:hover {
    color: var(--white);
}
.topbar .links {
    display: flex;
    gap: 22px;
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.topbar .info {
    display: flex;
    gap: 22px;
    align-items: center;
}
.topbar .info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.topbar svg {
    width: 15px;
    height: 15px;
}
@media (max-width: 760px) {
    .topbar .info span.place {
        display: none;
    }
    .topbar .links a:not(:last-child) {
        display: none;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
    box-shadow: 0 8px 24px -16px rgba(22, 21, 61, 0.45);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 88px;
    transition: height 0.3s var(--ease);
}
.site-header.scrolled .wrap {
    height: 70px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    text-decoration: none;
    font-size: 15px;
}
.logo svg {
    height: 2.7em;
    width: auto;
    fill: var(--haven);
}
.logo span {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    text-transform: uppercase;
    font-family: var(--display);
}
.logo b {
    font-size: 1.75em;
    color: var(--haven);
    letter-spacing: 0.03em;
    font-weight: 700;
}
.logo small {
    font-size: 0.95em;
    color: var(--grey);
    font-weight: 600;
    letter-spacing: 0.06em;
}
.logo.light svg {
    fill: var(--white);
}
.logo.light b {
    color: var(--white);
}
.logo.light small {
    color: rgba(255, 255, 255, 0.7);
}
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav a:not(.btn) {
    position: relative;
    text-decoration: none;
    color: var(--haven-deep);
    padding: 0.5em 0.9em;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0.9em;
    right: 0.9em;
    bottom: 0.1em;
    height: 3px;
    background: var(--haven);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a[aria-current='page']::after {
    transform: scaleX(1);
}
.nav a:not(.btn)[aria-current='page'] {
    color: var(--haven);
}
.nav .btn[aria-current='page'] {
    background: var(--haven-deep);
    border-color: var(--haven-deep);
    color: var(--white);
}
.nav .btn {
    margin-left: 14px;
    padding: 0.7em 1.3em;
}
.menu-btn {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
    color: var(--haven-deep);
}
.menu-btn svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 960px) {
    .menu-btn {
        display: block;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border-top: 1px solid var(--line);
        padding: 12px 24px 24px;
        gap: 0;
        display: none;
        box-shadow: var(--shadow);
    }
    .nav.open {
        display: flex;
        animation: menu-in 0.3s var(--ease);
    }
    .nav a:not(.btn) {
        padding: 0.85em 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.3rem;
    }
    .nav a:not(.btn)::after {
        display: none;
    }
    .nav .btn {
        margin: 18px 0 0;
        justify-content: center;
    }
}
@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Home hero: rotating photos beside the headline */
.hero {
    position: relative;
    background: var(--haven-night);
    color: var(--white);
    overflow: hidden;
}
.hero .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    min-height: min(720px, calc(100vh - 128px));
}
.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 24px 96px max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
}
.hero-copy::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 90% at 0% 0%, #2a2770 0%, transparent 60%),
        var(--haven-night);
}
.hero h1 {
    color: var(--white);
    margin-bottom: 0.3em;
}
.hero h1 em {
    font-style: normal;
    color: var(--haven-glow);
    display: block;
}
.hero .eyebrow {
    color: var(--haven-glow);
}
.hero p.lead {
    color: rgba(255, 255, 255, 0.82);
    max-width: 30em;
}
.hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}
.hero-copy > * {
    animation: rise 0.9s var(--ease) both;
}
.hero-copy > *:nth-child(2) {
    animation-delay: 0.1s;
}
.hero-copy > *:nth-child(3) {
    animation-delay: 0.2s;
}
.hero-copy > *:nth-child(4) {
    animation-delay: 0.3s;
}
.hero-copy > *:nth-child(5) {
    animation-delay: 0.4s;
}

.slides {
    position: relative;
    overflow: hidden;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -12%;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.slide.on {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
}
.slide.on img {
    animation: drift 7s linear forwards;
}
@keyframes drift {
    from {
        transform: scale(1.12) translate(1.5%, 0);
    }
    to {
        transform: scale(1) translate(0, 0);
    }
}
.slides::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(14, 13, 41, 0.55), transparent 35%),
        linear-gradient(0deg, rgba(14, 13, 41, 0.75), transparent 40%);
}
.slide figcaption {
    position: absolute;
    left: 16%;
    right: 32px;
    bottom: 74px;
    z-index: 2;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.6s 0.4s,
        transform 0.6s 0.4s var(--ease);
}
.slide.on figcaption {
    opacity: 1;
    transform: none;
}
.slide-dots {
    position: absolute;
    left: 16%;
    bottom: 36px;
    z-index: 3;
    display: flex;
    gap: 10px;
}
.slide-dots button {
    position: relative;
    width: 56px;
    height: 4px;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
}
.slide-dots button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
}
.slide-dots button.on::after {
    animation: fill 6s linear forwards;
}
.slide-dots button.done::after {
    transform: scaleX(1);
}
@keyframes fill {
    to {
        transform: scaleX(1);
    }
}
.hero .bars {
    position: absolute;
    right: -40px;
    top: -60px;
    width: 320px;
    opacity: 0.08;
    fill: var(--white);
    z-index: 1;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}
@keyframes float {
    50% {
        transform: translateY(24px);
    }
}

@media (max-width: 960px) {
    .hero .stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero-copy {
        padding: 56px 24px 48px;
    }
    .slides {
        margin: 0;
        clip-path: none;
        height: 64vw;
        min-height: 300px;
    }
    .slides::after {
        background: linear-gradient(
            0deg,
            rgba(14, 13, 41, 0.75),
            transparent 45%
        );
    }
    .slide figcaption,
    .slide-dots {
        left: 24px;
    }
}

/* Band under the hero, like a ribbon of three promises */
.band {
    background: var(--haven);
    color: var(--white);
    padding: 0;
}
.band .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.band .item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 34px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.band .item:first-child {
    border-left: 0;
    padding-left: 0;
}
.band svg {
    flex: none;
    width: 40px;
    height: 40px;
    color: var(--haven-glow);
}
.band strong {
    display: block;
    font-family: var(--display);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 4px;
}
.band span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
}
@media (max-width: 860px) {
    .band .wrap {
        grid-template-columns: 1fr;
    }
    .band .item,
    .band .item:first-child {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        padding: 24px 0;
    }
    .band .item:first-child {
        border-top: 0;
    }
}

/* Scrolling ribbon of service names */
.marquee {
    background: var(--haven-night);
    color: var(--white);
    overflow: hidden;
    padding: 22px 0;
}
.marquee .track {
    display: flex;
    width: max-content;
    animation: slide 38s linear infinite;
}
.marquee:hover .track {
    animation-play-state: paused;
}
.marquee span {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    white-space: nowrap;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.marquee span::after {
    content: '';
    width: 14px;
    height: 24px;
    background: var(--haven-glow);
    transform: skewY(-30deg);
}
.marquee span:nth-child(even) {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
}
@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

/* Numbers */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat {
    padding: 40px 24px;
    border-left: 1px solid var(--line);
}
.stat:first-child {
    border-left: 0;
}
.stat b {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 4.6rem);
    line-height: 1;
    color: var(--haven);
}
.stat span {
    display: block;
    margin-top: 8px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--haven-deep);
}
@media (max-width: 860px) {
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .stat:nth-child(3) {
        border-left: 0;
    }
    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

/* Inner page heading over a photo */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--haven-night);
    color: var(--white);
    padding: 110px 0 96px;
}
.page-hero .bg {
    position: absolute;
    inset: 0;
}
.page-hero .bg img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center 30%;
    will-change: transform;
}
.page-hero .bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(14, 13, 41, 0.95) 0%,
        rgba(22, 21, 61, 0.82) 45%,
        rgba(61, 58, 140, 0.45) 100%
    );
}
.page-hero .wrap {
    position: relative;
}
.page-hero h1 {
    color: var(--white);
    max-width: 14em;
}
.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    max-width: 36em;
    margin: 0;
}
.page-hero .eyebrow {
    color: var(--haven-glow);
}
.page-hero .wrap > * {
    animation: rise 0.9s var(--ease) both;
}
.page-hero .wrap > *:nth-child(2) {
    animation-delay: 0.1s;
}
.page-hero .wrap > *:nth-child(3) {
    animation-delay: 0.2s;
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Sections */
section {
    padding: 110px 0;
}
section.tint {
    background: var(--haven-soft);
}
section.dark {
    background: var(--haven-deep);
    color: rgba(255, 255, 255, 0.82);
}
section.dark h2,
section.dark h3 {
    color: var(--white);
}
section.dark .eyebrow {
    color: var(--haven-glow);
}
.section-head {
    max-width: 46em;
    margin-bottom: 56px;
}
.section-head p {
    color: var(--grey);
    font-size: 1.15rem;
}
.section-head.row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    flex-wrap: wrap;
}
.section-head.row > div {
    max-width: 40em;
}
.grid {
    display: grid;
    gap: 24px;
}
.grid.three {
    grid-template-columns: repeat(3, 1fr);
}
.grid.two {
    grid-template-columns: repeat(2, 1fr);
}
.grid.four {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
    .grid.four {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 860px) {
    .grid.three,
    .grid.two {
        grid-template-columns: 1fr;
    }
    section {
        padding: 72px 0;
    }
}
@media (max-width: 520px) {
    .grid.four {
        grid-template-columns: 1fr;
    }
}

.card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
}
.card p {
    color: var(--grey);
    margin: 0;
    font-size: 1.02rem;
}
.card h3 {
    margin-top: 4px;
}
.card .icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--haven-tint);
    color: var(--haven);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    transition:
        background 0.4s var(--ease),
        color 0.4s var(--ease);
}
.card .icon svg {
    width: 28px;
    height: 28px;
}
a.card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition:
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}
a.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, var(--haven), var(--haven-deep));
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}
a.card:hover::before {
    transform: none;
}
a.card:hover {
    box-shadow: var(--shadow);
}
a.card:hover h3,
a.card:hover .more {
    color: var(--white);
}
a.card:hover p {
    color: rgba(255, 255, 255, 0.8);
}
a.card:hover .icon {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}
a.card h3,
a.card p {
    transition: color 0.4s var(--ease);
}
a.card .more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--haven);
    transition:
        color 0.4s var(--ease),
        gap 0.3s var(--ease);
}
a.card:hover .more {
    gap: 12px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.split.flip > :first-child {
    order: 2;
}
.split img {
    border-radius: var(--radius);
    width: 100%;
}
.split img.portrait {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 16%;
}
.framed {
    position: relative;
}
.framed::before {
    content: '';
    position: absolute;
    inset: 28px -28px -28px 28px;
    border: 3px solid var(--haven);
    border-radius: var(--radius);
    z-index: -1;
}
.framed {
    isolation: isolate;
}
.split.flip .framed::before {
    inset: 28px 28px -28px -28px;
}
@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .split.flip > :first-child {
        order: 0;
    }
    .framed::before,
    .split.flip .framed::before {
        inset: 16px -12px -16px 12px;
    }
}

/* Photo with a reveal wipe */
.wipe {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.wipe::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--haven);
    transform-origin: right;
    transition: transform 1s var(--ease);
}
.wipe.shown::after {
    transform: scaleX(0);
}
.wipe img {
    transform: scale(1.15);
    transition: transform 1.6s var(--ease);
}
.wipe.shown img {
    transform: none;
}

.gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 16px;
}
.gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
}
.gallery figure:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
}
.gallery figure:nth-child(4) {
    grid-column: 2 / span 2;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.9s var(--ease);
}
.gallery figure:hover img {
    transform: scale(1.06);
}
.gallery figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 16px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(14, 13, 41, 0.85), transparent);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease);
}
.gallery figure:hover figcaption {
    transform: none;
}
@media (max-width: 860px) {
    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .gallery figure,
    .gallery figure:first-child,
    .gallery figure:nth-child(4) {
        height: 260px;
        grid-row: auto;
        grid-column: auto;
    }
    .gallery figcaption {
        transform: none;
    }
}

.faq details {
    border-bottom: 1px solid var(--line);
}
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--haven-deep);
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: '+';
    font-size: 1.8rem;
    line-height: 1;
    color: var(--haven);
    transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}
.faq details p {
    color: var(--grey);
    margin: 0 0 22px;
    animation: rise 0.4s var(--ease);
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}
.ticks li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 18px;
    color: var(--grey);
}
.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: var(--haven)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")
        center / 16px no-repeat;
}
.ticks strong {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--haven-deep);
}

.steps {
    counter-reset: step;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    margin: 0;
}
.steps li {
    position: relative;
    list-style: none;
    counter-increment: step;
    padding: 28px 0 0;
    border-top: 3px solid var(--line);
}
.steps li::after {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    height: 3px;
    width: 0;
    background: var(--haven);
    transition: width 1s var(--ease) var(--d, 0ms);
}
.steps li.shown::after {
    width: 100%;
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--haven);
    margin-bottom: 14px;
}
.steps p {
    color: var(--grey);
    margin: 0;
    font-size: 1rem;
}
@media (max-width: 860px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Call to action over a photo */
.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
    padding: 110px 0;
    background: var(--haven-deep);
}
.cta .bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.cta .bg img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center 30%;
}
.cta .bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(61, 58, 140, 0.96),
        rgba(22, 21, 61, 0.85) 60%,
        rgba(22, 21, 61, 0.6)
    );
}
.cta .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta h2 {
    color: var(--white);
    margin: 0 0 0.2em;
    max-width: 14em;
}
.cta p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 1.2rem;
}
.cta .actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Forms */
.form {
    display: grid;
    gap: 18px;
}
.form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 600px) {
    .form .row {
        grid-template-columns: 1fr;
    }
}
.form label {
    display: grid;
    gap: 8px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--haven-deep);
}
.form input,
.form select,
.form textarea {
    font: inherit;
    font-family: var(--text);
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: none;
    padding: 0.85em 1em;
    border: 1px solid #cfcde3;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    width: 100%;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 0;
    border-color: var(--haven);
    box-shadow: 0 0 0 4px rgba(61, 58, 140, 0.18);
}
.form textarea {
    min-height: 160px;
    resize: vertical;
}
.form .note {
    font-size: 0.95rem;
    color: var(--grey);
    margin: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 22px;
}
.contact-list li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: start;
}
.contact-list .icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--haven);
    color: var(--white);
    display: grid;
    place-items: center;
}
.contact-list .icon svg {
    width: 24px;
    height: 24px;
}
.contact-list strong {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--haven-deep);
}
.contact-list span {
    color: var(--grey);
}

/* Sign-in doors */
.doors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.door {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    gap: 14px;
    align-content: start;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
    min-height: 300px;
    transition:
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}
.door::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, var(--haven), var(--haven-deep));
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}
.door:hover::before {
    transform: none;
}
.door .icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--haven);
    color: var(--white);
    display: grid;
    place-items: center;
    transition: background 0.4s;
}
.door .icon svg {
    width: 30px;
    height: 30px;
}
.door h2 {
    margin: 8px 0 0;
    font-size: 2.3rem;
    transition: color 0.4s;
}
.door p {
    color: var(--grey);
    margin: 0;
    transition: color 0.4s;
}
.door .more {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--haven);
    margin-top: auto;
    transition: color 0.4s;
}
.door:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.door:hover h2,
.door:hover .more {
    color: var(--white);
}
.door:hover p {
    color: rgba(255, 255, 255, 0.82);
}
.door:hover .icon {
    background: rgba(255, 255, 255, 0.16);
}
@media (max-width: 860px) {
    .doors {
        grid-template-columns: 1fr;
    }
    .door {
        min-height: 0;
    }
}

/* Footer */
.site-footer {
    background: var(--haven-night);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 32px;
}
.site-footer .cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.site-footer h3 {
    color: var(--white);
    font-size: 1.3rem;
    letter-spacing: 0.06em;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition:
        color 0.2s,
        padding 0.2s;
}
.site-footer ul a:hover {
    color: var(--white);
    padding-left: 6px;
}
.site-footer .base {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 56px;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}
@media (max-width: 860px) {
    .site-footer .cols {
        grid-template-columns: 1fr 1fr;
    }
    .site-footer .cols > :first-child {
        grid-column: 1 / -1;
    }
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: var(--radius);
    background: var(--haven);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition:
        opacity 0.3s,
        transform 0.3s var(--ease),
        background 0.2s;
}
.to-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.to-top:hover {
    background: var(--haven-deep);
}
.to-top svg {
    width: 22px;
    height: 22px;
}

/* Scroll reveals (added by js/site.js) */
.rise {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s var(--ease),
        transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
}
.rise.shown {
    opacity: 1;
    transform: none;
}
a.card.rise.shown:hover,
.door.rise.shown:hover {
    transform: translateY(-8px);
}

:focus-visible {
    outline: 3px solid var(--haven-glow);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    .rise {
        opacity: 1;
        transform: none;
    }
    .slide.on img {
        transform: none;
    }
    .wipe::after {
        display: none;
    }
    .wipe img {
        transform: none;
    }
}
