/* =========================================================
   B&D STUDIO — BRAND SYSTEM
   Primary: Cormorant Garamond
   Secondary: Manrope
   Studio / Photography: Espresso #2E2A26
   Taupe: #7A6F64
   Sand: #C9B8A7
   Cream: #FBF6F1
   Photobooth: Plum #3B263D
   Lilac: #A895B8
   Lavender: #D2C0E1
   ========================================================= */

:root {
  --espresso: #2E2A26;
  --taupe: #7A6F64;
  --sand: #C9B8A7;
  --cream: #FBF6F1;

  --plum: #3B263D;
  --lilac: #A895B8;
  --lavender: #D2C0E1;

  --white: #FFFFFF;
  --transition: 700ms cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: var(--espresso);
  color: var(--white);
  font-family: "Manrope", sans-serif;
  overflow: auto;
}

.site {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  background: var(--espresso);
}

/* -------------------------
   BRAND HEADER
   ------------------------- */

.brand {
  position: absolute;
  z-index: 30;
  top: clamp(25px, 4vh, 45px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.brand__lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand__monogram {
  display: block;
  width: clamp(182px, 7vw, 112px);
  height: auto;
  object-fit: contain;
}

.brand__studio {
  margin-top: -3px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 1.9vw, 24px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: .45em;
  padding-top: .40em;
  padding-left: .30em;
}

.brand__tagline {
  margin-top: 13px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(12px, .62vw, 12px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .30em;
  padding-top: .30em;
  padding-left: .30em;
  opacity: .92;
}

/* -------------------------
   PANELS
   ------------------------- */

.panels {
  position: absolute;
  inset: 0;
  display: flex;
}

.panel {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: flex-basis var(--transition);
}

.panel__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}

.panel--photography .panel__image {
  background-image: url("../images/photography.jpg");
}

.panel--photobooth .panel__image {
  background-image: url("../images/photobooth.jpg");
}

.panel__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.45) 0%,
      rgba(0,0,0,.08) 30%,
      rgba(0,0,0,.14) 52%,
      rgba(0,0,0,.72) 100%
    );
  transition: background var(--transition);
}

/* -------------------------
   SERVICE LOCKUPS
   ------------------------- */

.panel__content {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(62px, 9vh, 102px);
  width: min(84%, 540px);
  transform: translateX(-50%);
  text-align: center;
}

.service-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-lockup__monogram {
  width: clamp(55px, 4.5vw, 72px);
  height: auto;
  margin-bottom: 13px;
}

.service-lockup__name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 3.15vw, 30px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: .13em;
  padding-left: .13em;
}

.panel__rule {
  width: 92px;
  height: 1px;
  margin: 21px auto 0;
  background: rgba(255,255,255,.78);
}

.panel__description {
  margin: 19px auto 24px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.65;
  font-weight: 300;
}

/* -------------------------
   BUTTONS
   ------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 245px;
  padding: 13px 19px;
  border: 1px solid rgba(255,255,255,.88);
  color: var(--white);
  background: rgba(0,0,0,.08);
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .17em;
  transition:
    background .35s ease,
    border-color .35s ease,
    color .35s ease,
    transform .35s ease;
}

.button__arrow {
  font-size: 18px;
  line-height: 8px;
  transform: translateY(-1px);
}

.button--photography {
  border-color: rgba(251,246,241,.9);
}

.button--photobooth {
  border-color: rgba(216,201,227,.95);
}

/* -------------------------
   CENTER DIVIDER + FOOTER
   ------------------------- */

.center-line {
  position: absolute;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,.34);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity var(--transition);
}

footer {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: .30em;
  padding-left: .30em;
  opacity: .58;
  white-space: nowrap;
  pointer-events: none;
}

/* -------------------------
   DESKTOP HOVER
   ------------------------- */

@media (hover: hover) and (pointer: fine) {
  .panels:has(.panel--photography:hover) .panel--photography {
    flex-basis: 56%;
  }

  .panels:has(.panel--photography:hover) .panel--photobooth {
    flex-basis: 44%;
  }

  .panels:has(.panel--photobooth:hover) .panel--photography {
    flex-basis: 44%;
  }

  .panels:has(.panel--photobooth:hover) .panel--photobooth {
    flex-basis: 56%;
  }

  .panel:hover .panel__image {
    transform: scale(1.055);
  }

  .panel:hover .button {
    transform: translateY(-2px);
  }

  .panel--photography:hover .button {
    background: rgba(251,246,241,.15);
    border-color: var(--cream);
  }

  .panel--photobooth:hover .button {
    background: rgba(168,149,184,.22);
    border-color: var(--lavender);
  }

  .panels:has(.panel:hover) + .center-line {
    opacity: 0;
  }
}

/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    background: var(--espresso);
  }

  .brand {
    position: absolute;
    z-index: 100;
    top: 18px;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
  }

  .brand__monogram {
    width: 115px;
  }

  .brand__studio {
    font-size: 15px;
  }

  .brand__tagline {
    font-size: 10px;
  }

  .panels {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
  }

  .panel {
    position: relative;
    display: block;
    width: 100%;
    height: 50svh;
    min-height: 380px;
    margin: 0;
    overflow: hidden;
    isolation: auto;

    /* Put the actual photo directly on the panel on mobile. */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .panel--photography {
    background-image: url("../images/photography.jpg");
  }

  .panel--photobooth {
    background-image: url("../images/photobooth.jpg");
  }

  /* The desktop image layer is not needed on mobile. */
  .panel__image {
    display: none;
  }

  .panel__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
  }

  .panel__content {
    position: absolute;
    z-index: 10;
    left: 50%;
    right: auto;
    bottom: 30px;
    width: 88%;
    transform: translateX(-50%);
    text-align: center;
  }

  .service-lockup__monogram {
    width: 45px;
    height: auto;
    margin-bottom: 9px;
  }

  .service-lockup__name {
    font-size: clamp(15px, 7vw, 15px);
  }

  .panel__rule {
    width: 70px;
    margin-top: 15px;
  }

  .panel__description {
    margin: 12px auto 17px;
    font-size: 10px;
  }

  .button {
    min-width: 210px;
    padding: 11px 15px;
    font-size: 8px;
  }

  .center-line {
    position: absolute;
    z-index: 50;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1px;
    transform: none;
  }

  footer {
    display: none;
  }
}

@media (max-width: 420px) {
  .panel {
    min-height: 350px;
  }

  .service-lockup__name {
    font-size: 24px;
  }
}

@media (max-width: 390px) {
  .panel {
    min-height: 340px;
  }

  .panel__content {
    bottom: 24px;
  }

  .brand__monogram {
    width: 60px;
  }

  .brand__studio {
    font-size: 17px;
  }

  .brand__tagline {
    font-size: 5.5px;
    letter-spacing: .24em;
    padding-left: .24em;
  }

  .service-lockup__monogram {
    width: 39px;
  }

  .service-lockup__name {
    font-size: 23px;
  }

  .panel__description {
    font-size: 9px;
    margin-bottom: 14px;
  }

  .button {
    min-width: 195px;
    padding: 10px 13px;
    font-size: 7.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
