/* Silent Ocean - landing page. Artwork is background + logo; all wording is live text. */

:root {
    --leaf: #2f9d47;
    --sub: #d3f5a6;
    --ink: #fff;
    --night: 6, 28, 14;
    --serif: 'EB Garamond', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --text-shadow: 0 1px 2px rgba(var(--night), .55), 0 2px 22px rgba(var(--night), .5);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: #1c3a24; /* shown for a blink before the photo arrives */
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    background: #1c3a24;
    -webkit-font-smoothing: antialiased;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- stage ------------------------------------------------------------ */

.landing {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(28px, 6vh, 72px) max(20px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    overflow: hidden;
    text-align: center;
}

.landing__bg,
.landing__bg img,
.landing__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.landing__bg { z-index: -2; }

.landing__bg img {
    display: block;
    object-fit: cover;
    object-position: 60% 50%;   /* keep the bonsai in frame on narrower screens */
}

@media (orientation: portrait) {
    .landing__bg img { object-position: 84% 50%; }

    /* keep the bonsai clear in the top of the screen, content in the lower part */
    .landing__content { align-self: end; }
    .landing__brand { width: clamp(140px, 38vw, 250px); }
}

/* soft night-green veil so white text stays readable on the bright forest haze */
.landing__veil {
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 50% 62%, rgba(var(--night), .34), rgba(var(--night), 0) 72%),
        linear-gradient(to bottom, rgba(var(--night), 0) 0%, rgba(var(--night), .12) 28%, rgba(var(--night), .36) 58%, rgba(var(--night), .34) 100%);
}

/* ---- content ---------------------------------------------------------- */

.landing__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 62rem;
    align-self: center;
    gap: clamp(.5rem, 1.6vh, 1.1rem);
}

.landing__brand {
    position: relative;
    width: clamp(150px, min(21vw, 30vh), 344px);
    margin-bottom: clamp(.25rem, 2.4vh, 1.6rem);
}

/* the big soft white cloud the original artwork had behind the mark - keeps it legible on any photo */
.landing__brand::before {
    content: '';
    position: absolute;
    inset: -24% -36% -34% -36%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, .58) 48%, rgba(255, 255, 255, .24) 76%, rgba(255, 255, 255, 0) 100%);
    filter: blur(6px);
}

.landing__logo { display: block; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .6)); }
.landing__logo img { display: block; width: 100%; height: auto; }

.landing__title {
    margin: 0;
    max-width: 22ch;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.9rem, min(1rem + 4.1vw, 8.2vh), 4.6rem);
    line-height: 1.08;
    letter-spacing: .005em;
    text-wrap: balance;
    text-shadow: var(--text-shadow);
}

.landing__sub {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.25rem, min(.9rem + 2vw, 4.4vh), 2.5rem);
    line-height: 1.2;
    color: var(--sub);
    text-shadow: var(--text-shadow);
}

.landing__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(.6rem, 2.4vh, 1.5rem);
    margin: clamp(1rem, 4.5vh, 3.2rem) 0 0;
    padding: 0;
    list-style: none;
}

.landing__contact a {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    color: inherit;
    text-decoration: none;
    text-shadow: var(--text-shadow);
    border-radius: 8px;
    transition: opacity .2s ease, transform .2s ease;
}

.landing__contact a:hover { opacity: .88; }
.landing__contact a:hover span:last-child { text-decoration: underline; text-underline-offset: .18em; }

.landing__contact a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 6px;
}

.landing__phone {
    font-weight: 700;
    font-size: clamp(1.9rem, min(.8rem + 5.6vw, 8vh), 4.4rem);
    line-height: 1;
    letter-spacing: .015em;
}

.landing__email {
    font-weight: 400;
    font-size: clamp(1.05rem, min(.55rem + 2.7vw, 4.2vh), 2.6rem);
    line-height: 1.1;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
}

.icon {
    flex: none;
    height: .86em;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(var(--night), .55));
}

.icon--phone { height: 1em; }
.icon--mail  { height: .78em; }

.landing__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .15rem 1.1rem;
    margin: clamp(1.4rem, 4vh, 2.6rem) 0 0;
    font-size: .8rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .84);
    text-shadow: 0 1px 6px rgba(var(--night), .7);
}

.landing__credit::before { content: '\00b7'; margin-right: 1.1rem; }

@media (max-width: 560px) {
    .landing__legal { flex-direction: column; align-items: center; gap: .1rem; font-size: .75rem; }
    .landing__credit::before { content: none; }
}

/* ---- short landscape phones ------------------------------------------- */

@media (max-height: 520px) and (orientation: landscape) {
    .landing__content { gap: .35rem; }
    .landing__logo { width: clamp(110px, 16vw, 170px); margin-bottom: 0; }
    .landing__title { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
    .landing__sub { font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
    .landing__contact { margin-top: .6rem; gap: .35rem; }
    .landing__phone { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
    .landing__email { font-size: clamp(1rem, 2.2vw, 1.4rem); }
    .landing__legal { margin-top: .6rem; font-size: .7rem; }
}

/* ---- entrance (only when motion is welcome) ---------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .landing__bg img { animation: bg-settle 2.6s cubic-bezier(.2, .6, .2, 1) both; }

    .landing__logo,
    .landing__title,
    .landing__sub,
    .landing__contact li,
    .landing__legal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }

    .landing__logo { animation-delay: .10s; }
    .landing__title { animation-delay: .30s; }
    .landing__sub { animation-delay: .48s; }
    .landing__contact li:nth-child(1) { animation-delay: .66s; }
    .landing__contact li:nth-child(2) { animation-delay: .80s; }
    .landing__legal { animation-delay: 1.1s; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes bg-settle {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

@media print {
    .landing__bg, .landing__veil { display: none; }
    .landing { min-height: 0; color: #000; }
    .landing__title, .landing__sub, .landing__contact a { color: #000; text-shadow: none; }
}
