@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #f8f4e9;
  --ink-muted: rgba(248, 244, 233, 0.76);
  --hairline: rgba(255, 255, 255, 0.25);
  --cycle: 36s;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #14251f;
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.experience {
  position: relative;
  display: grid;
  width: 100vw;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 3.5vw, 3rem) clamp(1.25rem, 5vw, 5rem)
    clamp(1.4rem, 4vw, 3.2rem);
}

.scenes,
.scene,
.scene__image,
.scene__light,
.scene__mist,
.grain,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scenes {
  z-index: -1;
  background: #11201b;
}

.scene {
  opacity: 0;
  animation: sceneFade var(--cycle) infinite;
  animation-delay: calc(var(--scene-index) * (var(--cycle) / 3));
}

.scene__image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.08);
  animation: cinematicDrift var(--cycle) ease-in-out infinite alternate;
}

.scene--mountains .scene__image {
  background:
    linear-gradient(180deg, rgba(17, 30, 27, 0.03), rgba(8, 23, 19, 0.13)),
    url("nature/alpine-dawn.webp") center / cover no-repeat;
}

.scene--forest .scene__image {
  background:
    linear-gradient(180deg, rgba(12, 28, 23, 0.03), rgba(6, 20, 17, 0.15)),
    url("nature/forest-stream.webp") center / cover no-repeat;
}

.scene--ocean .scene__image {
  background:
    linear-gradient(180deg, rgba(17, 37, 42, 0.04), rgba(12, 28, 28, 0.16)),
    url("nature/ocean-beach.webp") center / cover no-repeat;
}

.scene::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(7, 22, 18, 0.05) 0%,
    rgba(7, 22, 18, 0.01) 42%,
    rgba(7, 22, 18, 0.08) 100%
  );
  content: "";
}

.scene__light {
  background: radial-gradient(
    circle at 52% 45%,
    rgba(255, 245, 215, 0.14),
    transparent 42%
  );
  mix-blend-mode: screen;
  animation: breathe 9s ease-in-out infinite alternate;
}

.scene--forest .scene__light {
  top: 42%;
  height: 58%;
  background: repeating-linear-gradient(
    174deg,
    transparent 0 6%,
    rgba(222, 239, 223, 0.1) 6.2% 6.7%,
    transparent 6.9% 11%
  );
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: waterShimmer 8s ease-in-out infinite alternate;
}

.scene--ocean .scene__light {
  top: 43%;
  height: 57%;
  background: repeating-linear-gradient(
    176deg,
    transparent 0 7%,
    rgba(246, 244, 225, 0.14) 7.3% 7.8%,
    transparent 8% 14%
  );
  filter: blur(1.5px);
  animation: tide 9s ease-in-out infinite alternate;
}

.scene__mist {
  width: 140%;
  height: 42%;
  top: auto;
  bottom: 5%;
  left: -20%;
  opacity: 0.34;
  filter: blur(34px);
  background: radial-gradient(
    ellipse,
    rgba(239, 244, 230, 0.42),
    transparent 64%
  );
  animation: mist 20s ease-in-out infinite alternate;
}

.scene__mist--two {
  bottom: 24%;
  animation-duration: 27s;
  animation-direction: alternate-reverse;
  opacity: 0.18;
}

.grain {
  z-index: 4;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.33'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.vignette {
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(4, 12, 10, 0.2), transparent 30%, transparent 68%, rgba(4, 12, 10, 0.25)),
    radial-gradient(circle at center, transparent 30%, rgba(5, 14, 12, 0.16) 100%);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  align-self: start;
  justify-content: flex-start;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark__mark {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.055em;
}

.hero {
  position: relative;
  z-index: 5;
  align-self: center;
  justify-self: center;
  width: min(100%, 57rem);
  padding: clamp(1.35rem, 3vw, 2.7rem) clamp(1.3rem, 6vw, 5.7rem);
  text-align: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50% 50% 46% 54% / 56% 48% 52% 44%;
  background: rgba(12, 28, 24, 0.1);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(5px);
  content: "";
  transform: scale(1.06, 0.94);
  animation: organicFrame 12s ease-in-out infinite alternate;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  margin-bottom: clamp(1rem, 2vh, 1.45rem);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__eyebrow span {
  width: clamp(1.6rem, 3vw, 3.4rem);
  height: 1px;
  background: var(--hairline);
}

.hero h1 {
  max-width: 42rem;
  margin: 0 auto;
  font-family: inherit;
  font-size: clamp(1.15rem, 2.15vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
  text-shadow: 0 0.3rem 2.6rem rgba(4, 12, 10, 0.22);
}

.hero__copy {
  max-width: 42rem;
  margin: clamp(1.3rem, 2.7vh, 2rem) auto 0;
  color: rgba(248, 244, 233, 0.9);
  font-size: clamp(0.96rem, 1.35vw, 1.12rem);
  line-height: 1.85;
  text-wrap: balance;
}

.hero__closing {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  font-style: italic;
}

.signature {
  margin-top: clamp(0.9rem, 2vh, 1.4rem);
  font-family: inherit;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.015em;
}

.signature span {
  color: var(--ink-muted);
  font-size: 0.57em;
  font-style: italic;
  font-weight: 400;
}

.portrait {
  position: relative;
  width: clamp(13rem, 20vw, 17rem);
  max-width: 100%;
  margin: clamp(0.9rem, 2vh, 1.4rem) auto 0;
  isolation: isolate;
}

.portrait::before {
  position: absolute;
  z-index: -1;
  inset: 5%;
  border-radius: 3rem;
  background: url("portrait/barbora-balogh.jpg") center / contain no-repeat;
  content: "";
  filter: blur(22px);
  opacity: 0.62;
  transform: scale(1.025);
}

.portrait__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.2rem;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: radial-gradient(
    ellipse 100% 100% at center,
    #000 82%,
    rgba(0, 0, 0, 0.9) 88%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 100% 100% at center,
    #000 82%,
    rgba(0, 0, 0, 0.9) 88%,
    transparent 100%
  );
}

.site-footer {
  align-self: end;
  justify-content: flex-end;
}

.contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact a {
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 0.26rem;
  transition: color 180ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: #fff;
}

.contact__divider {
  width: 1px;
  height: 1.1rem;
  background: var(--hairline);
}

@keyframes sceneFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  29% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes cinematicDrift {
  0% { transform: scale(1.08) translate3d(-0.8%, -0.5%, 0); }
  100% { transform: scale(1.16) translate3d(1.2%, 0.9%, 0); }
}

@keyframes mist {
  from { transform: translate3d(-5%, 0, 0) scaleX(0.9); }
  to { transform: translate3d(7%, -5%, 0) scaleX(1.08); }
}

@keyframes breathe {
  from { opacity: 0.45; transform: scale(0.92); }
  to { opacity: 0.9; transform: scale(1.08); }
}

@keyframes waterShimmer {
  from { opacity: 0.25; transform: translate3d(-1.5%, 1%, 0) scale(1.02); }
  to { opacity: 0.7; transform: translate3d(1.5%, -1%, 0) scale(1.06); }
}

@keyframes tide {
  from { opacity: 0.3; transform: translate3d(-1.5%, 1.5%, 0) scaleX(1.02); }
  to { opacity: 0.7; transform: translate3d(1.5%, -0.8%, 0) scaleX(1.07); }
}

@keyframes organicFrame {
  from { border-radius: 50% 50% 46% 54% / 56% 48% 52% 44%; transform: scale(1.06, 0.94) rotate(-0.35deg); }
  to { border-radius: 46% 54% 53% 47% / 49% 56% 44% 51%; transform: scale(1.03, 0.97) rotate(0.35deg); }
}

@media (max-height: 720px) and (min-width: 680px) {
  .experience {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.05rem, 1.9vw, 1.575rem);
  }

  .hero__copy {
    margin-top: 1rem;
    line-height: 1.62;
  }

  .signature {
    margin-top: 0.75rem;
  }

  .portrait {
    margin-top: 0.7rem;
  }

}

@media (max-width: 680px) {
  body {
    overflow-y: auto;
  }

  .experience {
    min-height: 100svh;
    padding: 1.15rem 1.15rem 1.3rem;
  }

  .hero {
    padding: 1.65rem 0.55rem 1.45rem;
  }

  .hero::before {
    inset: -0.5rem -1rem;
    backdrop-filter: blur(3px);
  }

  .hero h1 {
    font-size: clamp(1rem, 4.4vw, 1.4rem);
    line-height: 1.08;
  }

  .hero__copy {
    margin-top: 1.35rem;
    font-size: 0.93rem;
    line-height: 1.7;
  }

  .hero__eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .portrait__image {
    border-radius: 1.5rem;
  }

  .site-footer {
    align-items: flex-end;
  }

  .contact {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    font-size: 0.61rem;
  }

  .contact__divider {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .scene {
    animation-duration: 90s;
  }

  .scene__image,
  .scene__mist,
  .scene__light,
  .hero::before {
    animation-duration: 60s;
  }
}
