:root {
  --ink: #23314d;
  --text: #161616;
  --muted: #666;
  --line: #dedede;
  --paper: #fff;
  --soft: #f6f4f1;
  --max: 1320px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
}

main,
.footer {
  will-change: opacity, transform;
}

.page-leave {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.page-enter {
  animation: pageIn 480ms ease both;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px clamp(18px, 3vw, 56px);
  background: #fff;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.2vw, 58px);
  font-size: 0.97rem;
}

.nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: currentColor;
}

body.is-navigating .site-header,
body.is-navigating .site-header * {
  transition: none !important;
  animation: none !important;
}

.instagram {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='5' ry='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='0.8' fill='%23111111' stroke='none'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  text-decoration: none;
  font-size: 0;
  line-height: 1;
  vertical-align: middle;
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease;
}

.instagram:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.page-title {
  margin: 54px 0 30px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(5.2rem, 14vw, 12.5rem);
  font-weight: 500;
  line-height: 0.84;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  animation: titleIn 760ms ease both;
}

.hero {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto clamp(76px, 10vw, 150px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(34px, 8vw, 120px);
}

.intro-copy {
  max-width: 650px;
}

.intro-copy p {
  margin: 0 0 1.45rem;
}

.intro-copy .lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 3.15rem);
  line-height: 1.22;
  text-transform: uppercase;
}

.lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.28;
  text-transform: uppercase;
}

.framed-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portrait-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.video-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1120px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto 92px;
  overflow: hidden;
  background: #ddd;
  animation: mediaIn 760ms ease 120ms both;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) blur(1px);
}

.play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(35, 31, 29, 0.7);
  color: #fff;
  font-size: 2rem;
}

.section {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto clamp(78px, 10vw, 150px);
  animation: contentIn 700ms ease 180ms both;
}

.section-narrow {
  width: min(760px, calc(100% - 42px));
  margin: 0 auto clamp(78px, 10vw, 150px);
  text-align: center;
  animation: contentIn 700ms ease 180ms both;
}

.section-title {
  margin: 0 0 34px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.brand-section {
  margin-bottom: clamp(84px, 12vw, 180px);
}

.brand-section p {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.lingerie-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.lingerie-hero-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  justify-self: center;
}

.lingerie-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 68px) clamp(14px, 2vw, 22px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 110px);
}

.lingerie-gallery-compact {
  max-width: 760px;
}

.lingerie-gallery figure {
  min-width: 0;
  margin: 0;
}

.lingerie-gallery img {
  width: 100%;
  height: auto;
}

.lingerie-gallery figcaption {
  margin-top: 8px;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.gallery-offset-right {
  grid-column: 5;
}

.gallery-spacer {
  min-height: 1px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 46px);
  align-items: start;
}

.gallery.mosaic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  min-height: 220px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.tile.placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 26px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.lookbook {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.look {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  min-height: 180px;
}

.look strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.45rem;
  font-weight: 500;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(36px, 8vw, 120px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #aaa;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button,
.button {
  width: fit-content;
  border: 2px solid var(--ink);
  padding: 13px 34px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--ink);
  color: #fff;
}

.map {
  width: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(1);
}

.footer {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto;
  padding: 42px 0 80px;
  text-align: center;
  animation: contentIn 700ms ease 260ms both;
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mediaIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-strip {
  margin-bottom: 34px;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 42px;
}

.insta-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.footer-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.footer p {
  margin: 0.35rem 0;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 20px 24px 30px;
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .nav {
    display: grid;
    justify-items: start;
    gap: 14px;
  }

  .instagram {
    display: none;
  }

  .intro-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .lingerie-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-offset-right {
    grid-column: auto;
  }

  .gallery-spacer {
    display: none;
  }

  .gallery,
  .gallery.mosaic,
  .lookbook {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 18px;
  }

  .brand {
    white-space: normal;
  }

  .page-title {
    margin-top: 34px;
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .hero,
  .section,
  .section-narrow,
  .footer {
    width: min(100% - 28px, var(--max));
  }

  .gallery,
  .gallery.mosaic,
  .lingerie-gallery,
  .lookbook,
  .insta-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  body,
  .page-leave,
  .page-enter {
    opacity: 1;
    transform: none;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--ink);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.back-to-top.is-visible {
  opacity: 0.7;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-5px);
}
