/* ============================================
   Onboard Turningpoint — design tokens
   ============================================ */
:root {
    --ink: #10262B;
    /* deep sea night */
    --teal: #1E4E4A;
    /* main sea teal */
    --teal-light: #2F6B62;
    /* lighter wave teal */
    --sand: #F1E6CF;
    /* deck sand */
    --foam: #FBF7EF;
    /* sea foam white */
    --brass: #B98544;
    /* brass fitting */
    --coral: #C1573A;
    /* sunset hull */

    --display: 'Fraunces', serif;
    --body: 'Work Sans', sans-serif;
    --mono: 'Space Mono', monospace;

    --wrap: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--foam);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 32px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.05;
    margin: 0 0 .4em;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: .5em;
}

em {
    font-style: italic;
    color: var(--coral);
}

p {
    margin: 0 0 1em;
}

p.lede {
    font-size: 1.15rem;
    max-width: 46ch;
    color: #2c3f3d;
}

.eyebrow {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 1.1em;
}

.eyebrow.center {
    text-align: center;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ============ buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-family: var(--mono);
    font-size: .92rem;
    letter-spacing: .02em;
    padding: .85em 1.5em;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral);
    color: var(--foam);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #a8492f;
}

.btn-ghost {
    border-color: rgba(16, 38, 43, .25);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--ink);
}

.btn-text {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: .85em .2em;
}

.btn-lg {
    padding: 1.1em 2.1em;
    font-size: 1rem;
}

/* ============ ambient wake line ============ */
.wake-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .05;
}

.wake-line svg {
    width: 100%;
    height: 100%;
}

.wake-line path {
    fill: none;
    stroke: var(--teal);
    stroke-width: 2.5;
    stroke-dasharray: 10 10;
}

/* ============ topbar ============ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 247, 239, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 38, 43, .08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .5em;
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
}

.brand-mark {
    color: var(--coral);
    font-size: 1.2rem;
}

.brand-name em {
    font-style: normal;
    color: var(--teal);
}

.nav {
    display: flex;
    gap: 2.2em;
    font-family: var(--mono);
    font-size: .85rem;
}

.nav a {
    opacity: .75;
    transition: opacity .15s;
}

.nav a:hover {
    opacity: 1;
}

.nav-cta {
    padding: .6em 1.3em;
    font-size: .85rem;
}

@media (max-width:760px) {
    .nav {
        display: none;
    }
}

/* ============ hero ============ */
.hero {
    position: relative;
    padding: 80px 0 0;
    background: linear-gradient(180deg, var(--foam) 0%, #f4ecdb 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.hero-copy h1 {
    margin-bottom: .3em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.6em;
    margin: 1.8em 0 1.6em;
    flex-wrap: wrap;
}

.coords {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--teal);
    opacity: .7;
    display: flex;
    gap: .6em;
}

.coords .dot {
    opacity: .5;
}

.hero-portrait {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-self: stretch;
}

.portrait-ring {
    position: relative;
    width: clamp(320px, 38vw, 620px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    padding: 10px;
    background: conic-gradient(from 200deg, var(--teal), var(--brass), var(--coral), var(--teal));
    box-shadow: 0 30px 60px -20px rgba(16, 38, 43, .35);
    overflow: hidden;
    isolation: isolate;
}

.portrait-ring img,
.portrait-ring video {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 6px solid var(--foam);
    background: var(--sand);
}

.portrait-tag {
    margin-top: 1.1em;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brass);
    background: rgba(185, 133, 68, .12);
    padding: .5em 1.1em;
    border-radius: 100px;
}

.hero-horizon {
    display: block;
    width: 100%;
    height: 80px;
    position: relative;
    z-index: 1;
}

.hero-horizon path {
    fill: var(--teal);
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 50px;
    }

    .hero-copy {
        order: 2;
    }

    .hero-portrait {
        order: 1;
    }

    .hero-actions {
        justify-content: center;
    }

    .coords {
        justify-content: center;
    }

    p.lede {
        margin-left: auto;
        margin-right: auto;
    }

    .portrait-ring {
        width: min(320px, 80vw);
    }
}

/* ============ porthole video section ============ */
.porthole-section {
    background: var(--teal);
    color: var(--foam);
    padding: 100px 0;
    position: relative;
}

.porthole-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.porthole-text h2 {
    color: var(--foam);
}

.porthole-text p {
    color: #dfeee9;
    max-width: 42ch;
}

.porthole-text .eyebrow {
    color: var(--sand);
}

.porthole-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

.porthole-rim {
    position: relative;
    width: min(380px, 80vw);
    aspect-ratio: 1/1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, #e8cf9c, #a97a3f 45%, #6b4c26 100%);
    padding: 22px;
    box-shadow:
        0 40px 70px -20px rgba(0, 0, 0, .5),
        inset 0 0 0 2px rgba(255, 255, 255, .15);
    overflow: hidden;
    isolation: isolate;
}

.porthole-rim::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 0, 0, .18);
    pointer-events: none;
}

.porthole-video {
    position: absolute;
    inset: 22px;
    width: calc(100% - 44px);
    height: calc(100% - 44px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 6px solid #1a1a1a;
    background: #1a1a1a;
}

.porthole-glare {
    position: absolute;
    top: 8%;
    left: 14%;
    width: 38%;
    height: 22%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    border-radius: 50%;
    transform: rotate(-25deg);
    pointer-events: none;
}

.mute-toggle {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(16, 38, 43, .75);
    border: 1px solid rgba(255, 255, 255, .3);
    color: var(--foam);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}

.mute-toggle:hover {
    background: rgba(16, 38, 43, .95);
}

.mute-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mute-toggle .icon-mute path {
    fill: currentColor;
    stroke: none;
}

.mute-toggle .icon-sound path:first-child {
    fill: currentColor;
    stroke: none;
}

.porthole-caption {
    margin-top: 1.3em;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--sand);
    opacity: .8;
}

@media (max-width:900px) {
    .porthole-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .porthole-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============ logboek / pillars ============ */
.logboek {
    padding: 110px 0;
    background: var(--foam);
}

.log-entries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(16, 38, 43, .12);
    margin-top: 60px;
    border-top: 1px solid rgba(16, 38, 43, .12);
    border-bottom: 1px solid rgba(16, 38, 43, .12);
}

.log-entry {
    background: var(--foam);
    padding: 44px 36px;
}

.log-time {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--coral);
    letter-spacing: .04em;
    margin-bottom: 1.2em;
}

.log-entry p:not(.log-time) {
    color: #3a4c4a;
    font-size: .98rem;
}

@media (max-width:800px) {
    .log-entries {
        grid-template-columns: 1fr;
    }
}

/* ============ crew section ============ */
.crew {
    padding: 100px 0;
    background: var(--sand);
}

.crew-circles {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(20px, 4vw, 56px);
    margin: 56px 0 50px;
    flex-wrap: wrap;
}

.crew-circle {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.crew-circle img,
.crew-circle video {
    width: clamp(150px, 20vw, 260px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    padding: 8px;
    background: conic-gradient(from 200deg, var(--teal), var(--brass), var(--coral), var(--teal));
    box-shadow: 0 20px 40px -16px rgba(16, 38, 43, .3);
    border: 6px solid var(--sand);
    background-clip: padding-box;
}

/* the middle circle (the dog) sits slightly larger and raised, like the star of the crew */
.crew-circle:nth-child(2) img,
.crew-circle:nth-child(2) video {
    width: clamp(170px, 24vw, 300px);
}

.crew-circle figcaption {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brass);
    background: rgba(185, 133, 68, .14);
    padding: .4em 1em;
    border-radius: 100px;
}

.crew-lede {
    color: #3a4c4a;
    max-width: 56ch;
}

@media (max-width:700px) {
    .crew-circles {
        gap: 24px;
    }

    .crew-circle:nth-child(2) img,
    .crew-circle:nth-child(2) video {
        width: clamp(150px, 26vw, 220px);
    }
}

/* ============ final CTA ============ */
.cta-final {
    position: relative;
    background: var(--ink);
    color: var(--foam);
    padding: 60px 0 110px;
    text-align: center;
}

.cta-horizon {
    display: block;
    width: 100%;
    height: 60px;
}

.cta-horizon path {
    fill: var(--ink);
}

.cta-final h2 {
    color: var(--foam);
}

.cta-final .eyebrow {
    color: var(--brass);
}

.cta-lede {
    color: #cfe0dc;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

/* ============ footer ============ */
.site-footer {
    background: var(--ink);
    color: var(--foam);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 32px 0;
    font-family: var(--mono);
    font-size: .78rem;
    opacity: .7;
    flex-wrap: wrap;
    gap: .6em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding: 18px 32px 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--foam);
    opacity: .55;
    flex-wrap: wrap;
    gap: .6em;
}

.footer-credit a {
    color: var(--sand);
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 1;
    transition: color .15s;
}

.footer-credit a:hover {
    color: var(--brass);
}

/* ============ scroll reveal ============ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}