@font-face {
  font-family: "Clarify";
  src: url("/Clarify.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #6b5d52;
  --sand: #ab947b;
  --paper: #ffffff;
  --line: rgb(107 93 82 / 24%);
  --focus: #6b5d52;
  --brand-logo-width: clamp(5rem, 9vw, 6.25rem);
  --brand-logo-half-height: clamp(2rem, 3.6vw, 2.5rem);
  --hero-top: clamp(2.25rem, 6svh, 4.75rem);
  --opener-logo-target-top: calc(var(--hero-top) + var(--brand-logo-half-height));
  color-scheme: light;
}

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

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Clarify", Georgia, serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Opening wipe: the white plane, rule and positive logo share one timeline. */
.opener {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #6b5d52;
  animation:
    opener-background-clear 1ms linear 2.45s forwards,
    opener-out 1ms linear 2.9s forwards;
}

.opener-wipe {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #ffffff;
  transform: scaleY(0);
  transform-origin: 50% 0;
  animation:
    opening-wipe 1.35s cubic-bezier(0.65, 0, 0.25, 1) 650ms forwards,
    opener-plane-out 180ms ease 2.45s forwards;
  will-change: transform;
}

.opener-line {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(107 93 82 / 72%);
  box-shadow: 0 1px 8px rgb(107 93 82 / 18%);
  animation:
    opening-line 1.35s cubic-bezier(0.65, 0, 0.25, 1) 650ms forwards,
    opener-plane-out 180ms ease 2.45s forwards;
  will-change: top;
}

.opener-logo {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: clamp(7.75rem, 17vw, 10.5rem);
  aspect-ratio: 5 / 4;
  transform: translate(-50%, -50%);
  animation: opener-logo-settle 850ms cubic-bezier(0.22, 0.72, 0.2, 1) 2.03s forwards;
  will-change: top, width;
}

.opener-logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
}

.opener-logo-negative {
  z-index: 1;
}

.opener-logo-positive {
  z-index: 2;
  clip-path: inset(0 0 100% 0);
  animation: opening-logo-wipe 1.35s cubic-bezier(0.65, 0, 0.25, 1) 650ms forwards;
  will-change: clip-path;
}

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.language-switcher {
  position: absolute;
  z-index: 10;
  top: clamp(0.9rem, 2.5svh, 1.75rem);
  right: clamp(1rem, 3vw, 2.25rem);
  display: flex;
  gap: 0.55rem;
  opacity: 0;
  animation: reveal-language-switcher 1.1s ease 2.9s forwards;
}

.language-button {
  display: grid;
  width: 2rem;
  height: 2.2rem;
  padding: 0 0 0.25rem;
  place-items: center;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: inherit;
  background: transparent;
  filter: grayscale(0.35);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.52;
  cursor: pointer;
  transition: border-color 180ms ease, filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.language-button:hover,
.language-button[aria-pressed="true"] {
  border-color: rgb(107 93 82 / 42%);
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

.language-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 72rem);
  min-height: 35rem;
  margin-inline: auto;
  padding: var(--hero-top) 1.25rem 2rem;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.brand-mark {
  display: block;
  width: var(--brand-logo-width);
  height: auto;
  opacity: 0;
  animation: brand-handoff 1ms linear 2.9s forwards;
}

.brand {
  margin-top: 1.1rem;
}

.eyebrow,
.location,
.contacts-label,
.domain {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.eyebrow {
  padding-left: 0.34em;
  color: var(--sand);
  font-size: clamp(1.1rem, 4.8vw, 2.4rem);
  letter-spacing: 0.34em;
}

h1 {
  margin: 0.35rem 0 0;
  font-family: "Clarify", Georgia, serif;
  font-size: clamp(3.35rem, 15vw, 6.5rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.location {
  margin-top: 0.85rem;
  padding-left: 0.28em;
  font-size: clamp(0.8rem, 2.5vw, 1.3rem);
  opacity: 0.78;
}

.location span {
  display: inline-block;
  padding-inline: 0.25em 0.05em;
}

.divider {
  width: 1px;
  height: 2.8rem;
  margin: 1.65rem 0 1.45rem;
  background: linear-gradient(to bottom, transparent, var(--sand), transparent);
}

.intro {
  width: min(100%, 35rem);
}

.coming-soon {
  margin: 0;
  font-family: "Clarify", Georgia, serif;
  font-size: clamp(1.8rem, 8vw, 2.7rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.1;
}

.intro-copy {
  margin: 0.8rem auto 0;
  color: rgb(107 93 82 / 82%);
  font-size: clamp(0.98rem, 3.9vw, 1.08rem);
  line-height: 1.65;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 0.9rem;
}

.contacts {
  position: relative;
  z-index: 3;
  width: min(100%, 44rem);
  margin-top: 1.7rem;
  font-style: normal;
}

.contacts-label {
  padding-left: 0.32em;
  color: var(--sand);
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
}

.contact-list {
  display: grid;
  gap: 0.8rem 1.6rem;
  margin-top: 0.65rem;
}

.contact-link {
  display: flex;
  min-height: 3.35rem;
  padding: 0.8rem 0.35rem 0.72rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-bottom: 1px solid rgb(107 93 82 / 34%);
  border-radius: 0;
  background: linear-gradient(to bottom, rgb(255 255 255 / 28%), rgb(255 255 255 / 72%));
  box-shadow: 0 0.8rem 1.1rem -1.15rem rgb(107 93 82 / 55%);
  font-family: inherit;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.2;
  text-decoration: none;
  backdrop-filter: blur(3px);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.contact-link svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: var(--sand);
}

.contact-link span {
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: #58483e;
  border-color: rgb(107 93 82 / 48%);
  box-shadow: 0 0.9rem 1.25rem -1rem rgb(107 93 82 / 48%);
  transform: translateY(-1px);
}

.contact-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.domain {
  margin-top: 1.2rem;
  padding-left: 0.26em;
  font-size: clamp(0.76rem, 1.15vw, 0.88rem);
  opacity: 0.7;
}

.landscape {
  position: relative;
  z-index: 1;
  left: 50%;
  width: 100vw;
  height: clamp(30rem, 56vw, 50rem);
  margin-top: clamp(-16rem, -18vw, -8rem);
  overflow: hidden;
  transform: translateX(-50%);
}

.landscape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 1.65rem 1.25rem 1.8rem;
  color: #ffffff;
  background: #6b5d52;
  text-align: center;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-size: clamp(0.72rem, 1.7vw, 0.82rem);
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.site-footer .footer-name {
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer .copyright {
  margin-top: 0.3rem;
  opacity: 0.68;
}

.reveal {
  opacity: 0;
  animation: reveal 1.1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.reveal--one { animation-delay: 2.5s; }
.reveal--two { animation-delay: 2.64s; }
.reveal--three { animation-delay: 2.78s; }
.reveal--four { animation-delay: 2.92s; }

@keyframes opening-wipe {
  to { transform: scaleY(1); }
}

@keyframes opening-line {
  from { top: 0; }
  to { top: 100%; }
}

@keyframes opening-logo-wipe {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes opener-logo-settle {
  to {
    top: var(--opener-logo-target-top);
    width: var(--brand-logo-width);
  }
}

@keyframes opener-background-clear {
  to { background-color: transparent; }
}

@keyframes opener-plane-out {
  to { opacity: 0; }
}

@keyframes opener-out {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

@keyframes brand-handoff {
  to { opacity: 1; }
}

@keyframes reveal-language-switcher {
  to { opacity: 1; }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 42rem) {
  .hero {
    padding-inline: 2rem;
  }

  .contact-list {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 41.99rem) {
  :root {
    --brand-logo-width: 5rem;
    --brand-logo-half-height: 2rem;
    --hero-top: 2.25rem;
  }

  .hero {
    min-height: 0;
    padding-bottom: 1.5rem;
  }

  .brand {
    margin-top: 0.9rem;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 3.4rem);
    white-space: nowrap;
  }

  .divider {
    margin-top: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .coming-soon {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .intro {
    width: min(calc(100% - 2.5rem), 20rem);
  }

  .contacts {
    margin-top: 1.5rem;
  }

  .landscape {
    height: clamp(30rem, 125vw, 36rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .opener {
    display: none;
    animation: none;
  }

  .brand-mark,
  .reveal,
  .language-switcher {
    opacity: 1;
    animation: none;
  }

  .contact-link,
  .language-button {
    transition: none;
  }
}
