@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

:root {
    --yellow: #DC722A;
    --navy: #062b3d;
    --content-pad: clamp(35px, 6vw, 95px);
    --brand-width: 190px
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "DM Sans", Arial, sans-serif;
    overflow-x: hidden
}

body {
    background: var(--yellow);
    color: var(--navy);
}

.hero {
    height: 100svh;
    min-height: 0;
    display: grid;
    grid-template-columns: 43% 57%;
    overflow: hidden
}

.photo {
    position: relative;
    min-height: 0;
    background: #DC722A;
    overflow: hidden
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: grayscale(1) contrast(1.06);
    /* border-radius: 2.5px 2.5px 0 0; */
}

.photo:after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .28)) */
}

.photo-label {
    position: absolute;
    z-index: 2;
    left: 150px;
    bottom: 34px;
    color: var(--yellow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em
}

.photo-label i,
.top i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    margin-right: 8px
}

.content {
    position: relative;
    min-height: 0;
    height: 100%;
    padding: 34px var(--content-pad);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--yellow)
}

.map-layer {
    position: absolute;
    z-index: 3;
    inset: 8% 5% 3% 28%;
    opacity: .5;
    transform: translate3d(0, 0, 0) rotate(7deg);
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none
}

.thailand-map {
    width: 100%;
    height: 100%;
    overflow: visible
}

.map-outline,
.map-route,
.map-river {
    fill: none;
    stroke: var(--navy);
    stroke-linecap: round;
    stroke-linejoin: round
}

.map-outline {
    stroke-width: 2.5
}

.map-route {
    stroke-width: 1.5;
    stroke-dasharray: 3 10;
    animation: route-flow 12s linear infinite
}

.map-route.secondary {
    stroke-width: 1;
    stroke-dasharray: 2 8;
    opacity: .7
}

.map-river {
    stroke-width: 1;
    opacity: .4;
    stroke-dasharray: 1 7
}

.map-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    pointer-events: auto;
    cursor: pointer
}

.map-pin span,
.map-pin:after {
    position: absolute;
    display: block;
    border-radius: 50%;
    content: ""
}

.map-pin span {
    inset: 9px;
    background: var(--navy);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s ease
}

.map-pin:after {
    inset: 3px;
    border: 1px solid var(--navy);
    opacity: .6;
    animation: pin-pulse 2.4s infinite;
    transition: opacity .3s ease
}

.map-pin:hover span,
.map-pin:focus-visible span,
.map-pin.active span {
    transform: scale(1.65);
    background: var(--yellow);
    filter: drop-shadow(0 0 12px rgba(220, 114, 42, .4))
}

.map-pin:hover:after,
.map-pin:focus-visible:after {
    opacity: .9
}

.map-pin:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 4px
}

.pin-bangkok {
    left: 49%;
    top: 31%
}

.pin-chiang-mai {
    left: 51%;
    top: 13%
}

.pin-phuket {
    left: 41%;
    top: 66%
}

.pin-koh-samui {
    left: 56%;
    top: 57%
}

.map-readout {
    position: absolute;
    right: 2%;
    bottom: 4%;
    display: grid;
    gap: 5px;
    text-align: right;
    pointer-events: none
}

.map-readout b {
    font-size: 9px;
    letter-spacing: .18em
}

.map-readout span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .04em
}

.top {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em
}
.hero > section {
    animation: section-enter .8s cubic-bezier(.2, .8, .2, 1) both;
}

.photo img {
    animation: image-enter 1.1s cubic-bezier(.2, .8, .2, 1) .1s both;
}

.photo-label,
.content > .top,
.content > .brand,
.content > .copy,
.content > footer,
.content > .waves,
.content > .map-layer,
.copy > *,
.modal-card > * {
    animation: reveal-up .75s cubic-bezier(.2, .8, .2, 1) both;
}

.photo-label { animation-delay: .55s }
.content > .map-layer { animation-name: map-enter; animation-delay: .1s }
.content > .top { animation-delay: .15s }
.content > .brand { animation-delay: .25s }
.content > .copy { animation-delay: .35s }
.copy > .eyebrow { animation-delay: .45s }
.copy > h1 { animation-delay: .52s }
.copy > .location { animation-delay: .59s }
.copy > .statement { animation-delay: .66s }
.copy > .flight { animation-delay: .73s }
.copy > .cta { animation-delay: .8s }
.content > footer { animation-delay: .9s }
.content > .waves { animation-delay: 1s }
.modal-card > * { animation-delay: .08s }
.modal-card > .eyebrow { animation-delay: .14s }
.modal-card > h2 { animation-delay: .2s }
.modal-card > p { animation-delay: .26s }
.modal-card > .waitlist-form { animation-delay: .32s }

.top i {
    width: 6px;
    height: 6px;
    background: var(--navy);
    animation: pulse 1.8s infinite
}

.brand {
    width: var(--brand-width);
    margin: 24px auto 0
}

.brand img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply
}

.copy {
    position: relative;
    max-width: 760px;
    margin: auto 0;
    padding: 20px 0 35px;
    z-index: 2
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .19em;
    margin: 0 0 20px
}

h1 {
    font-size: clamp(54px, 6.3vw, 102px);
    line-height: .91;
    letter-spacing: -.065em;
    margin: 0;
    font-weight: 700
}

h1 em {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    font-style: italic
}

.location {
    margin-top: 42px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    gap: 13px;
    align-items: center
}

.location b {
    font-size: 28px
}

.statement {
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.2;
    margin: 17px 0 0;
    max-width: 590px;
    letter-spacing: -.03em;
    font-weight: 400
}

.statement strong {
    position: relative
}

.statement strong:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--navy);
    transform: rotate(-1.5deg)
}

.statement strong {
    font-weight: 700
}

.script-accent {
    font-family: Lobster, cursive;
    font-weight: 400
}

.flight {
    position: absolute;
    right: -55px;
    bottom: 10px;
    width: min(44vw, 520px);
    height: 150px;
    opacity: .55;
    pointer-events: none
}

.flight svg {
    width: 100%;
    height: 100%
}

.flight-route {
    fill: none;
    stroke: var(--navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 14;
    animation: flight-dashes 7s linear infinite
}

.flight-mask {
    fill: none;
    stroke: #fff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 1000 1000;
    stroke-dashoffset: 1000;
    animation: flight-trail 7s linear infinite
}

.flight-plane {
    fill: var(--navy);
    font-size: 30px;
    font-family: Arial, sans-serif
}

.flight-destination {
    fill: none;
    opacity: .8
}

.flight-location-pin {
    fill: var(--yellow);
    stroke: var(--navy);
    stroke-width: 1.5
}

.flight-location-dot {
    fill: var(--navy)
}

.flight-wordmark {
    fill: var(--navy);
    font-size: 9px;
    font-family: "DM Sans", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 2px
}

.cta {
    width: fit-content;
    min-width: 310px;
    margin-top: 48px;
    padding: 17px 20px 17px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--yellow);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all .35s cubic-bezier(.2, .8, .2, 1)
}

.cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(6, 43, 61, .3), 0 0 20px rgba(220, 114, 42, .2);
    background: #031d2a
}

.cta:active {
    transform: translateY(-2px) scale(0.98)
}

.cta b {
    width: 32px;
    height: 32px;
    border: 1px solid var(--yellow);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all .35s cubic-bezier(.2, .8, .2, 1)
}

.cta:hover b {
    transform: translateX(3px) rotate(45deg);
    border-color: #fff;
    box-shadow: 0 0 12px rgba(220, 114, 42, .4)
}

footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(6, 43, 61, .22);
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: .14em;
    z-index: 3
}

@media (max-width:319px) {
    :root {
        --content-pad: 16px;
        --brand-width: 122px
    }
}

@media (min-width:320px) {
    :root {
        --content-pad: 18px;
        --brand-width: 126px
    }
}

@media (min-width:360px) {
    :root {
        --content-pad: 20px;
        --brand-width: 134px
    }
}

@media (min-width:375px) {
    :root {
        --content-pad: 22px;
        --brand-width: 140px
    }
}

@media (min-width:390px) {
    :root {
        --content-pad: 24px;
        --brand-width: 148px
    }
}

@media (min-width:412px) {
    :root {
        --content-pad: 26px;
        --brand-width: 156px
    }
}

@media (min-width:430px) {
    :root {
        --content-pad: 28px;
        --brand-width: 164px
    }
}

@media (min-width:480px) {
    :root {
        --content-pad: 32px;
        --brand-width: 174px
    }
}

@media (min-width:600px) {
    :root {
        --content-pad: 38px;
        --brand-width: 182px
    }
}

@media (min-width:768px) {
    :root {
        --content-pad: 46px;
        --brand-width: 188px
    }
}

@media (min-width:820px) {
    :root {
        --content-pad: 52px
    }
}

@media (min-width:834px) {
    :root {
        --content-pad: 58px
    }
}

@media (min-width:1024px) {
    :root {
        --content-pad: 42px;
        --brand-width: 178px
    }

    .content {
        padding-top: 30px;
        padding-bottom: 30px
    }
}

@media (min-width:1280px) {
    :root {
        --content-pad: 50px;
        --brand-width: 188px
    }
}

@media (min-width:1366px) {
    :root {
        --content-pad: 58px;
        --brand-width: 198px
    }
}

@media (min-width:1440px) {
    :root {
        --content-pad: 68px;
        --brand-width: 208px
    }
}

@media (min-width:1536px) {
    :root {
        --content-pad: 78px;
        --brand-width: 220px
    }
}

@media (min-width:1920px) {
    :root {
        --content-pad: 92px;
        --brand-width: 236px
    }
}

@media (min-width:2560px) {
    :root {
        --content-pad: 112px;
        --brand-width: 260px
    }

    h1 {
        font-size: clamp(80px, 5.5vw, 132px)
    }
}

@media (min-width:3840px) {
    :root {
        --content-pad: 148px;
        --brand-width: 300px
    }

    h1 {
        font-size: 148px
    }
}

.waves {
    position: absolute;
    width: 800px;
    height: 240px;
    right: -180px;
    bottom: -140px;
    border-radius: 50%;
    border: 1px solid rgba(6, 43, 61, .18);
    transform: rotate(-13deg);
    box-shadow: 0 -12px 0 -10px var(--yellow), 0 -25px 0 -23px rgba(6, 43, 61, .16), 0 -38px 0 -36px var(--yellow), 0 -51px 0 -49px rgba(6, 43, 61, .13), 0 -64px 0 -62px var(--yellow)
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(3, 29, 42, .55);
    backdrop-filter: blur(8px);
    z-index: 20
}

.modal.open {
    display: grid
}

.modal-card {
    width: min(470px, 100%);
    padding: 44px;
    background: var(--navy);
    color: var(--yellow);
    border-radius: 28px;
    position: relative
}

.modal-card h2 {
    font-size: 42px;
    line-height: .98;
    letter-spacing: -.05em;
    margin: 0 0 15px;
    font-weight: 700
}

.waitlist-form {
    margin-top: 28px;
    color: #fff
}

.waitlist-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase
}

.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px
}

.form-field input {
    width: 100%;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(220, 114, 42, .5);
    border-radius: 4px;
    background: rgba(220, 114, 42, .08);
    color: #fff;
    font: inherit
}

.form-field input::placeholder {
    color: #fff;
    opacity: 1
}

.email-field {
    display: flex;
    gap: 8px
}

.email-field input {
    min-width: 0;
    flex: 1;
    padding: 14px 15px;
    border: 1px solid rgba(220, 114, 42, .5);
    border-radius: 4px;
    background: rgba(220, 114, 42, .08);
    color: #fff;
    font: inherit
}

.email-field input::placeholder {
    color: #fff;
    opacity: 1
}

.form-field input:focus-visible,
.ready:focus-visible,
.close:focus-visible,
.cta:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 4px
}

.form-field input[aria-invalid="true"] {
    border-color: #ff8f8f
}

.form-message {
    min-height: 20px;
    margin: 9px 0 0 !important;
    font-size: 12px;
    line-height: 1.35 !important
}

.form-message[data-state="error"] {
    color: #ffb0a8
}

.form-message[data-state="success"] {
    color: #b9f5a8
}

.ready {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    cursor: pointer
}

.ready:disabled {
    cursor: wait;
    opacity: .65
}

.modal-card p:not(.eyebrow) {
    line-height: 1.6;
    font-weight: 400;
    opacity: .86
}

.close {
    position: absolute;
    right: 18px;
    top: 15px;
    border: 0;
    background: transparent;
    color: var(--yellow);
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .3s cubic-bezier(.2, .8, .2, 1);
}

.close:hover {
    transform: rotate(90deg) scale(1.15);
    background: rgba(220, 114, 42, .15);
    box-shadow: 0 0 15px rgba(220, 114, 42, .25)
}

.close:active {
    transform: rotate(90deg) scale(0.95)
}

.ready {
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
    transition: all .3s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 4px 15px rgba(220, 114, 42, .2)
}

.ready:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 114, 42, .35);
    background: #f0865c
}

.ready:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(220, 114, 42, .2)
}

@keyframes pulse {
    50% {
        opacity: .35;
        transform: scale(.7)
    }
}

@keyframes route-flow {
    to {
        stroke-dashoffset: -120
    }
}

@keyframes pin-pulse {
    50% {
        transform: scale(1.35);
        opacity: .15
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }

    .map-layer {
        transform: rotate(7deg) !important
    }

    .flight-plane { display: none }
}

@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
        height: auto;
        overflow: visible
    }

    .photo {
        min-height: 46vh
    }

    .photo img {
        border-radius: 0 0 5% 5%
    }

    .content {
        min-height: auto;
        height: auto;
        overflow: visible;
        text-align: center;
        padding: 28px var(--content-pad)
    }

    .map-layer {
        inset: 8% 8% 8% 22%;
        opacity: .5
    }

    .copy {
        margin: 55px 0 25px;
        text-align: center
    }
}

@media(max-width:560px) {
    .hero {
        grid-template-rows: auto auto
    }

    .photo {
        min-height: 43vh
    }

    .photo-label {
        left: 22px;
        bottom: 22px
    }

    .content {
        height: auto;
        padding: 23px var(--content-pad)
    }

    .map-layer {
        inset: 9% -5% 7% 12%;
        opacity: .5;
        transform: rotate(6deg) scale(.96)
    }

    .map-readout {
        right: 4%;
        bottom: 3%
    }

    .brand {
        width: var(--brand-width)
    }

    .copy {
        margin: 42px 0 20px
    }

    h1 {
        font-size: clamp(48px, 15vw, 72px)
    }

    .location {
        margin-top: 30px;
        font-size: 16px
    }

    .statement {
        font-size: 20px
    }

    .flight {
        opacity: .25;
        right: 0;
        width: 100%;
        max-width: 380px
    }

    .cta {
        min-width: 100%;
        margin-top: 38px
    }

    .name-fields,
    .email-field {
        display: grid
    }

    .email-field .ready {
        justify-content: center
    }

    footer {
        font-size: 7px;
        gap: 20px
    }
}

@keyframes section-enter {
    from { opacity: 0 }
    to { opacity: 1 }
}

@keyframes image-enter {
    from { opacity: 0; transform: scale(1.04) }
    to { opacity: 1; transform: scale(1) }
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(18px) }
    to { opacity: 1; transform: translateY(0) }
}

@keyframes map-enter {
    from { opacity: 0; transform: rotate(7deg) scale(1.03) }
    to { opacity: .5; transform: rotate(7deg) scale(1) }
}

@keyframes flight-trail {
    0% {
        stroke-dashoffset: 1000
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes flight-dashes {
    to { stroke-dashoffset: -154 }
}