/* ==========================================================================
   NOIRÉ previews: small, live "browser mockups" of the NOIRÉ demo pages.
   They are built from NOIRÉ's own images, fonts and colours (not screenshots),
   so they stay sharp at any size. Every size inside a preview is in cqw
   (1cqw = 1% of the preview's width), so the whole page scales as one piece.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/cormorant-300.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/cormorant-300-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/cormorant-400.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   The frames
   -------------------------------------------------------------------------- */

.browser {
  border: 1px solid rgba(242, 238, 232, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: #161617;
  box-shadow: 0 50px 120px -60px rgba(0, 0, 0, 0.95), 0 0 90px -40px rgba(232, 168, 92, 0.22);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(242, 238, 232, 0.07);
}

.browser__bar i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(242, 238, 232, 0.16);
}

.browser__url {
  flex: 0 1 46%;
  min-width: 0;
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(242, 238, 232, 0.06);
  color: rgba(242, 238, 232, 0.5);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-24px); /* optically centred next to the three dots */
}

.phone {
  padding: 3.2%;
  border: 1px solid rgba(242, 238, 232, 0.16);
  border-radius: 13% / 6.2%;
  background: #121213;
  box-shadow: 0 50px 120px -60px rgba(0, 0, 0, 0.95), 0 0 90px -40px rgba(232, 168, 92, 0.22);
}

.phone .nv {
  border-radius: 10.5% / 4.9%;
}

/* --------------------------------------------------------------------------
   The page inside (shared pieces)
   -------------------------------------------------------------------------- */

.nv {
  --n-black: #0F0F0E;
  --n-latte: #C7B9A3;
  --n-cream: #E9E2D6;
  --n-off: #F5F2EA;
  --n-line: rgba(245, 242, 234, 0.28);
  --n-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;

  position: relative;
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
  background: var(--n-black);
  color: var(--n-off);
  font-family: var(--sans);
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
}

.nv--home,
.nv--menu { aspect-ratio: 1440 / 900; }
.nv--space { aspect-ratio: 1440 / 1640; }
.nv--mobile { aspect-ratio: 390 / 844; }

.nv__page {
  position: absolute;
  inset: 0;
  transform-origin: 50% 40%;
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.21, 1);
}

.nv p,
.nv b,
.nv small,
.nv span {
  margin: 0;
  font-weight: inherit;
}

.nv img {
  display: block;
  max-width: none;
}

.nv svg {
  display: block;
  overflow: visible;
}

.nv__hdr {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.28cqw;
  padding: 0 5cqw;
}

.nv__logo {
  display: grid;
  gap: 0.36cqw;
  justify-items: center;
}

.nv__logo b {
  padding-left: 0.14em;
  font: 400 1.72cqw/1 var(--n-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nv__logo small {
  padding-left: 0.38em;
  color: var(--n-latte);
  font-size: 0.52cqw;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.nv__nav {
  display: flex;
  gap: 2.2cqw;
}

.nv__nav span {
  position: relative;
  padding: 0.7cqw 0;
  font-size: 0.767cqw;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.78;
}

.nv__nav .on {
  opacity: 1;
}

.nv__nav .on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.19em;
  bottom: 0.28cqw;
  height: max(1px, 0.07cqw);
  background: currentColor;
}

.nv__order {
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0.47cqw 0.47cqw 0.47cqw 1.5cqw;
  border: max(1px, 0.07cqw) solid var(--n-line);
  border-radius: 99px;
  font-size: 0.767cqw;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nv__order i {
  display: grid;
  place-items: center;
  width: 2.33cqw;
  height: 2.33cqw;
  border-radius: 50%;
  background: var(--n-cream);
  color: var(--n-black);
}

.nv__order svg,
.nv__ibtn svg {
  width: 42%;
  height: 42%;
}

.nv__link {
  display: inline-flex;
  align-items: center;
  gap: 0.9cqw;
  font-size: 0.767cqw;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nv__ibtn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.7cqw;
  height: 2.7cqw;
  border: max(1px, 0.07cqw) solid var(--n-line);
  border-radius: 50%;
}

.nv__label {
  color: var(--n-latte);
  font-size: 0.767cqw;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nv__h1 {
  font: 300 13.5cqw/0.9 var(--n-serif);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nv__lede {
  max-width: 38ch;
  font: 400 1.7cqw/1.32 var(--n-serif);
}

.nv__prose {
  max-width: 38ch;
  color: var(--n-latte);
  font-size: 1.02cqw;
  line-height: 1.65;
}

.nv__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3cqw;
}

.nv__blob {
  position: relative;
  overflow: hidden;
  border-radius: 58% 42% 47% 53% / 46% 55% 45% 54%;
}

.nv__blob img {
  position: absolute;
  top: 50%;
  height: auto;              /* otherwise the height="" attribute of the <img> wins */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Floating beans and leaves */
.nv__fl {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: var(--w);
  transform: rotate(var(--r));
  filter: blur(var(--b, 0));
}

.nv__fl img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.nv-home__media img {
  position: absolute;
  top: 44%;
  left: 61%;
  width: auto;
  height: 100%;
  aspect-ratio: 1280 / 704;
  transform: translate(-52%, -50%);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 52% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 52% at 52% 50%, #000 62%, transparent 100%);
}

.nv-home__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #0F0F0E 2%, rgba(15, 15, 14, 0.82) 22%, rgba(15, 15, 14, 0) 56%),
    linear-gradient(to bottom, rgba(15, 15, 14, 0.55), rgba(15, 15, 14, 0) 22%);
}

.nv-home__intro {
  position: absolute;
  left: 5cqw;
  top: 25%;
  z-index: 2;
  max-width: 21ch;
  color: var(--n-latte);
  font: 400 1.5cqw/1.3 var(--n-serif);
}

.nv-home__badge {
  position: absolute;
  right: 5cqw;
  top: 8.4cqw;
  z-index: 2;
  width: 9cqw;
  height: 9cqw;
}

.nv-home__base {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 2.9cqw;
  z-index: 2;
}

.nv-home__word {
  display: block;
  margin-left: -0.045em;
  padding-top: 0.06em;
  font: 300 20.5cqw/0.78 var(--n-serif);
  letter-spacing: 0.012em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nv-home__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4cqw;
  padding-top: 1.5cqw;
  border-top: max(1px, 0.07cqw) solid var(--n-line);
}

.nv-home__sub {
  font: italic 300 3.1cqw/1 var(--n-serif);
  letter-spacing: 0.01em;
}

.nv-home__links {
  display: flex;
  gap: 3.2cqw;
}

/* --------------------------------------------------------------------------
   Menu
   -------------------------------------------------------------------------- */

.nv-menu__art {
  position: absolute;
  right: -1.5cqw;
  top: 6.94cqw;
  width: 30cqw;
  aspect-ratio: 1 / 0.9;
  opacity: 0.9;
}

.nv-menu__art img {
  left: -25%;
  width: 150%;
  margin-top: -42.19%;
}

.nv-menu__in {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 10cqw;
  z-index: 1;
  display: grid;
  gap: 3cqw;
}

.nv-menu__tabs {
  position: absolute;
  left: 50%;
  bottom: 1.3cqw;
  z-index: 2;
  display: flex;
  gap: 0.3cqw;
  padding: 0.4cqw;
  border: max(1px, 0.07cqw) solid rgba(245, 242, 234, 0.16);
  border-radius: 99px;
  background: rgba(15, 15, 14, 0.82);
  transform: translateX(-50%);
}

.nv-menu__tabs span {
  padding: 0.85cqw 1.5cqw;
  border-radius: 99px;
  font-size: 0.72cqw;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nv-menu__tabs .on {
  background: var(--n-cream);
  color: var(--n-black);
}

/* --------------------------------------------------------------------------
   Our space
   -------------------------------------------------------------------------- */

.nv-space__in {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  top: 9.72cqw;
  display: grid;
  gap: 3cqw;
}

.nv-space__arch {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 4.6cqw;
  aspect-ratio: 2.06 / 1;
}

.nv-space__arch img {
  left: -6%;
  width: 112%;
  margin-top: -31.5%;
}

/* --------------------------------------------------------------------------
   Mobile home (inside the phone). 1cqw here is 1% of a 390px-wide screen.
   -------------------------------------------------------------------------- */

.nv--mobile .nv__hdr {
  height: 19.5cqw;
  padding: 0 5.13cqw;
}

.nv--mobile .nv__logo {
  gap: 1.3cqw;
}

.nv--mobile .nv__logo b {
  font-size: 6.36cqw;
}

.nv--mobile .nv__logo small {
  font-size: 1.93cqw;
}

.nvm__burger {
  position: relative;
  width: 11.9cqw;
  height: 11.9cqw;
  border: max(1px, 0.26cqw) solid var(--n-line);
  border-radius: 50%;
}

.nvm__burger::before,
.nvm__burger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.3cqw;
  height: max(1px, 0.36cqw);
  margin-left: -2.15cqw;
  background: currentColor;
}

.nvm__burger::before { transform: translateY(-0.9cqw); }
.nvm__burger::after { transform: translateY(0.9cqw); }

.nv--mobile .nv-home__media img {
  top: 37%;
  left: 50%;
  height: 60%;
}

.nv--mobile .nv-home__badge {
  right: 3.7cqw;
  top: 23.6cqw;
  width: 23cqw;
  height: 23cqw;
}

.nv--mobile .nv-home__base {
  left: 5.13cqw;
  right: 5.13cqw;
  bottom: 5.7cqw;
}

.nv--mobile .nv-home__word {
  font-size: 25.5cqw;
}

.nv--mobile .nv-home__row {
  display: block;
  margin-top: 3.4cqw;
  padding-top: 3.8cqw;
  border-top-width: max(1px, 0.26cqw);
}

.nv--mobile .nv-home__sub {
  font-size: 6.15cqw;
}

.nv--mobile .nv-home__links {
  justify-content: space-between;
  gap: 0;
  margin-top: 5.2cqw;
}

.nv--mobile .nv__link {
  gap: 3.6cqw;
  font-size: 2.82cqw;
}

.nv--mobile .nv__ibtn {
  width: 9.85cqw;
  height: 9.85cqw;
  border-width: max(1px, 0.26cqw);
}
