:root {
  --cream: #eceaf2;
  --blush: #cfd3e0;
  --rose: #8b97b0;
  --mauve: #3b5173;
  --wine: #27354f;
  --ink: #0e1628;
  --paper: #f4f2f8;
  --gold: #c4b49a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--cream) 0%,
    var(--blush) 16%,
    var(--rose) 34%,
    #4a5d7a 50%,
    var(--mauve) 64%,
    var(--wine) 80%,
    var(--ink) 100%
  );
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.flora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.flora__col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(340px, 30vw);
}

.flora__col--left {
  left: -72px;
}

.flora__col--right {
  right: -72px;
}

.flora img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  object-fit: cover;
  border-radius: 50%;
  transform: rotate(var(--r));
  opacity: 0.28;
  filter: saturate(0.45) brightness(1.18) contrast(0.9);
}

.flora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0 4%,
    rgba(236, 234, 242, 0.22) 14%,
    transparent 22%,
    transparent 78%,
    rgba(236, 234, 242, 0.22) 86%,
    transparent 96% 100%
  );
}

.nav,
main,
.footer {
  position: relative;
  z-index: 2;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: rgba(236, 234, 242, 0.92);
  border-bottom: 1px solid rgba(14, 22, 40, 0.08);
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__toggle {
  display: none;
  width: 2rem;
  height: 1.2rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 1px;
  margin: 0.4rem 0;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: visible;
  padding: 8.5rem 8vw 4.5rem;
}

.eyebrow,
.index {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}

.hero h1 {
  margin: 0.8rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  font-weight: 500;
  line-height: 0.88;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  font-style: italic;
}

.lead {
  max-width: 34ch;
  margin: 0 auto 1.8rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.section {
  position: relative;
  overflow: visible;
  padding: 4.5rem 8vw;
}

.section h2 {
  margin: 0.5rem auto 1.8rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
}

.sticker {
  position: absolute;
  z-index: 4;
  width: min(210px, 26vw);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 16px rgba(14, 22, 40, 0.2));
}

.sticker img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.sticker--arms {
  width: min(180px, 30vw);
}

.section p {
  max-width: 52ch;
  margin: 0 auto 1rem;
}

.drop {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
}

.jobs {
  list-style: none;
  max-width: 36rem;
  margin: 0 auto;
}

.jobs li {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(26, 16, 20, 0.12);
}

.jobs li:last-child {
  border-bottom: 1px solid rgba(26, 16, 20, 0.12);
}

.jobs h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.jobs p {
  margin: 0.2rem auto 0;
  opacity: 0.7;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.65rem;
  max-width: 980px;
  margin: 1.2rem auto 0;
  padding: 0.6rem 0 2.4rem;
}

.gallery figure {
  position: relative;
  flex: 0 0 auto;
  width: clamp(112px, 14.5vw, 168px);
  aspect-ratio: 1;
  overflow: visible;
  -webkit-animation: bubble-bob 5s ease-in-out infinite;
  animation: bubble-bob 5s ease-in-out infinite;
}

.gallery figure:nth-child(5n + 1) {
  width: clamp(156px, 21vw, 236px);
}

.gallery figure:nth-child(7n + 3) {
  width: clamp(84px, 11vw, 118px);
}

.gallery figure:nth-child(4n) {
  margin-top: 22px;
}

.gallery figure:nth-child(4n + 2) {
  margin-top: -14px;
}

.gallery figure:nth-child(odd) {
  -webkit-animation-duration: 5.6s;
  animation-duration: 5.6s;
}

.gallery figure:nth-child(3n) {
  -webkit-animation-duration: 6.4s;
  animation-duration: 6.4s;
}

.gallery figure:nth-child(8n + 1) { -webkit-animation-delay: -0.8s; animation-delay: -0.8s; }
.gallery figure:nth-child(8n + 2) { -webkit-animation-delay: -1.6s; animation-delay: -1.6s; }
.gallery figure:nth-child(8n + 3) { -webkit-animation-delay: -2.4s; animation-delay: -2.4s; }
.gallery figure:nth-child(8n + 4) { -webkit-animation-delay: -3.2s; animation-delay: -3.2s; }
.gallery figure:nth-child(8n + 5) { -webkit-animation-delay: -4s; animation-delay: -4s; }
.gallery figure:nth-child(8n + 6) { -webkit-animation-delay: -4.8s; animation-delay: -4.8s; }
.gallery figure:nth-child(8n + 7) { -webkit-animation-delay: -2s; animation-delay: -2s; }
.gallery figure:nth-child(8n + 8) { -webkit-animation-delay: -3.6s; animation-delay: -3.6s; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(14, 22, 40, 0.24);
}

.gallery figure:hover {
  z-index: 3;
}

@-webkit-keyframes bubble-bob {
  0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  50% { -webkit-transform: translate3d(0, -8px, 0); transform: translate3d(0, -8px, 0); }
}

@keyframes bubble-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

.gallery.is-js-float figure {
  -webkit-animation: none !important;
  animation: none !important;
}

.dream,
#gallery,
#contacts {
  color: var(--cream);
}

.dream blockquote {
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-style: italic;
  line-height: 1.15;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--cream);
}

.contacts-info p {
  font-family: var(--sans);
  font-size: 0.9rem;
  opacity: 0.7;
}

.form {
  display: grid;
  gap: 1rem;
  width: min(420px, 100%);
  margin: 0 auto;
  text-align: center;
  color: var(--cream);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contacts-info a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid rgba(246, 238, 228, 0.35);
  background: transparent;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.05rem;
  text-align: center;
  outline: none;
}

.form button {
  justify-self: center;
  margin-top: 0.4rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.form button:hover {
  background: var(--gold);
  color: var(--ink);
}

.footer {
  padding: 0 6vw 2rem;
  color: rgba(246, 238, 228, 0.5);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 6vw;
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    background: rgba(14, 22, 40, 0.94);
    color: var(--cream);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .gallery {
    gap: 0.4rem 0.45rem;
  }

  .gallery figure {
    width: clamp(96px, 27vw, 138px);
  }

  .gallery figure:nth-child(5n + 1) {
    width: clamp(124px, 36vw, 176px);
  }

  .gallery figure:nth-child(7n + 3) {
    width: clamp(76px, 21vw, 104px);
  }

  .gallery figure:nth-child(4n) {
    margin-top: 12px;
  }

  .gallery figure:nth-child(4n + 2) {
    margin-top: -8px;
  }

  .flora {
    opacity: 0.28;
  }

  .flora__col {
    width: min(240px, 46vw);
  }

  .flora__col--left {
    left: -70px;
  }

  .flora__col--right {
    right: -70px;
  }

  .hero {
    padding: 7.5rem 20vw 3rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .section {
    overflow: visible;
    padding: 4rem 6vw;
  }

  #bio,
  #career,
  #contacts {
    padding-left: 20vw;
    padding-right: 20vw;
  }

  .section h2 {
    margin-bottom: 1.2rem;
  }

  .drop {
    font-size: 1.15rem;
  }

  .jobs h3 {
    font-size: 1.25rem;
  }

  .dream blockquote {
    max-width: 22ch;
  }
}

@media (max-width: 520px) {
  .gallery {
    gap: 0.32rem 0.35rem;
  }

  .gallery figure {
    width: clamp(86px, 28vw, 118px);
  }

  .gallery figure:nth-child(5n + 1) {
    width: clamp(108px, 38vw, 148px);
  }

  .gallery figure:nth-child(7n + 3) {
    width: clamp(68px, 22vw, 92px);
  }
}
