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

:root {
  --page-background: #c8d8df;
  --headline: rgba(183, 174, 154, 0.78);
  --supporting: rgba(245, 240, 231, 0.94);
  --mobile-supporting: rgba(94, 91, 81, 0.90);
  --soft-shadow: 0 2px 7px rgba(34, 38, 35, 0.20);
  --text-shadow: 0 2px 7px rgba(33, 39, 36, 0.34);
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--page-background);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--page-background);
  color: var(--supporting);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--page-background);
  background-image: url("assets/background-desktop.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(25,35,34,.05) 0%, rgba(25,35,34,0) 42%, rgba(255,255,255,0) 100%);
}

.brand-logo,
.brand-wave {
  position: absolute;
  display: block;
  height: auto;
  user-select: none;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.brand-logo {
  top: clamp(44px, 8.4vh, 86px);
  left: clamp(48px, 7vw, 108px);
  width: clamp(205px, 16.2vw, 315px);
  opacity: 0;
  filter: brightness(0) invert(1);
  animation: reveal .8s ease-out .10s forwards;
}

.brand-wave {
  top: clamp(40px, 7.5vh, 78px);
  right: clamp(52px, 8.2vw, 128px);
  width: clamp(145px, 11.5vw, 225px);
  opacity: 0;
  animation: reveal-wave .9s ease-out .20s forwards;
}

.message {
  position: absolute;
  top: 32.5%;
  left: clamp(48px, 4.65vw, 72px);
  max-width: 56vw;
}

.message h1,
.message p {
  margin: 0;
  font-weight: 400;
  opacity: 0;
}

.message h1 {
  color: var(--headline);
  font-size: clamp(62px, 5.35vw, 108px);
  line-height: .98;
  letter-spacing: -.035em;
  text-shadow: var(--soft-shadow);
  animation: reveal-up .95s ease-out .28s forwards;
}

.message p {
  margin-top: clamp(62px, 7vh, 82px);
  color: var(--supporting);
  font-size: clamp(37px, 3.05vw, 58px);
  line-height: 1.08;
  letter-spacing: -.022em;
  text-shadow: var(--text-shadow);
  animation: reveal-up .95s ease-out .44s forwards;
}

.supporting-copy--mobile { display: none; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: .92; transform: translateY(0); }
}

@keyframes reveal-wave {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: .20; transform: translateY(0); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100dvh;
    background-image: url("assets/background-mobile.webp");
    background-position: center center;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(26,34,33,.035) 0%, rgba(26,34,33,0) 38%);
  }

  .brand-logo {
    top: max(6.5vh, calc(env(safe-area-inset-top) + 25px));
    left: 10.5vw;
    width: 29.5vw;
    max-width: 218px;
  }

  .brand-wave {
    top: max(6.55vh, calc(env(safe-area-inset-top) + 25px));
    right: 11vw;
    width: 17.5vw;
    max-width: 132px;
  }

  .message {
    top: 18.1%;
    left: 7.6vw;
    right: auto;
    max-width: none;
  }

  .message h1 {
    color: rgba(158, 149, 131, .80);
    font-size: clamp(40px, 9.15vw, 70px);
    line-height: 1.08;
    letter-spacing: -.033em;
    text-shadow: 0 1px 5px rgba(38,39,35,.10);
  }

  .supporting-copy--desktop { display: none; }

  .message .supporting-copy--mobile {
    display: block;
    width: 50vw;
    max-width: 230px;
    margin-top: clamp(34px, 5.0vh, 54px);

    /* Stable small-text rendering across Safari, Chrome and Firefox. */
    font-family: Georgia, "Times New Roman", serif;
    color: #575349;
    font-size: clamp(17px, 4.25vw, 22px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-shadow: none;
    text-wrap: normal;
    opacity: 1;
    animation: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    will-change: auto;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
  }
}

@media (max-width: 390px) {
  .brand-logo { width: 29vw; }

  .message {
    top: 18.6%;
    left: 7.4vw;
  }

  .message h1 {
    font-size: clamp(38px, 9.65vw, 50px);
  }

  .message .supporting-copy--mobile {
    width: 50vw;
    margin-top: clamp(31px, 4.7vh, 45px);
    font-size: clamp(17px, 4.15vw, 19px);
  }
}

@media (max-height: 700px) and (max-width: 768px) {
  .message { top: 17.2%; }
  .message .supporting-copy--mobile { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .brand-wave,
  .message h1,
  .message p {
    opacity: 1;
    animation: none;
    transform: none;
  }
  .brand-logo { opacity: .92; }
  .brand-wave { opacity: .20; }
}
