:root {
  --cream: #fff2df;
  --cream-soft: #f8e7cf;
  --cream-deep: #edd5b8;
  --teal: #003f3f;
  --teal-soft: #0b5a55;
  --ink: #122422;
  --clay: #a66545;
  --line: #e2cdb0;
  --white: #fffaf2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
}

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

h1,
h2,
h3 {
  color: var(--teal);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

h2 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.7rem;
}

p {
  margin: 0 0 1rem;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

a {
  color: inherit;
}

.container {
  margin: 0 auto;
  width: min(1120px, 92%);
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(255, 242, 223, .92);
  border-bottom: 1px solid rgba(0, 63, 63, .12);
  box-shadow: 0 14px 36px rgba(0, 63, 63, .06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  min-height: 82px;
  padding: .75rem 0;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: .7rem;
  text-decoration: none;
}

.brand-icon {
  height: auto;
  width: clamp(34px, 4vw, 52px);
}

.brand-wordmark {
  height: auto;
  width: clamp(108px, 13vw, 168px);
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.15rem;
  justify-content: flex-end;
}

nav a {
  border-bottom: 1px solid transparent;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: .35rem 0;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--teal);
}

.hero {
  align-items: center;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  isolation: isolate;
  min-height: clamp(560px, 74vh, 760px);
  overflow: hidden;
  position: relative;
}

.hero-sculpture {
  background: url('../assets/qemiss-pattern-green.png') center / contain no-repeat;
  height: min(780px, 76vw);
  left: -18vw;
  opacity: .13;
  position: absolute;
  top: -10vw;
  transform: rotate(-8deg);
  width: min(840px, 78vw);
  z-index: -1;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 8vw, 6rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .78fr);
  padding: clamp(5.5rem, 9vw, 7.5rem) 0 clamp(4.5rem, 7vw, 6.5rem);
  position: relative;
}

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

.hero h1 {
  font-size: clamp(3rem, 8.4vw, 6.7rem);
  margin-bottom: 1.1rem;
  max-width: 780px;
}

.hero p:not(.eyebrow) {
  color: rgba(18, 36, 34, .82);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 600px;
}

.hero-brand {
  justify-self: end;
  width: min(380px, 100%);
}

.hero-brand img {
  height: auto;
  width: 100%;
}

.eyebrow {
  color: var(--clay);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 .95rem;
  text-transform: uppercase;
}

.btn,
.btn-outline {
  align-items: center;
  border: 1px solid var(--teal);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1.15rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.btn {
  background: var(--teal);
  color: var(--cream);
}

.btn:hover,
.btn:focus-visible {
  background: var(--teal-soft);
  border-color: var(--teal-soft);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--teal);
  color: var(--cream);
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.section {
  padding: clamp(3.75rem, 7vw, 6rem) 0;
}

.section > h2,
.section.container > h2 {
  max-width: 760px;
}

.section-alt {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid rgba(0, 63, 63, .08);
}

.section-dark {
  background: var(--teal);
  color: var(--cream);
}

.section-dark h2 {
  color: var(--cream);
}

.section-dark a {
  color: var(--cream);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.products {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 63, 63, .07);
  padding: 1rem;
}

.narrative {
  max-width: 830px;
}

.narrative h3 {
  color: var(--clay);
  font-size: 1.2rem;
  margin: 0 0 .55rem;
}

.narrative p {
  color: rgba(18, 36, 34, .8);
  font-size: 1rem;
  max-width: 720px;
}

.narrative img {
  height: auto;
  object-fit: cover;
  width: 100%;
}

.product-card {
  align-content: start;
  display: grid;
  gap: .85rem;
}

.product-card p,
.product-card h3 {
  margin: 0;
}

.product-card h3 {
  font-size: 1.9rem;
}

.product-card .btn-outline {
  margin-top: .25rem;
  text-align: center;
  width: 100%;
}

.custom-dress-card {
  border-color: rgba(0, 63, 63, .42);
}

.product-media {
  display: grid;
  gap: .65rem;
}

.product-image-frame {
  align-items: center;
  background: var(--cream-soft);
  border: 1px solid rgba(0, 63, 63, .1);
  border-radius: 5px;
  display: grid;
  justify-items: center;
  min-height: 250px;
  overflow: hidden;
  padding: .65rem;
}

.product-image-button {
  appearance: none;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  margin: 0;
  width: 100%;
}

.product-image-button:hover,
.product-image-button:focus-visible {
  border-color: rgba(0, 63, 63, .5);
  outline: 2px solid rgba(0, 63, 63, .18);
  outline-offset: 2px;
}

.product-image-button:hover .product-image,
.product-image-button:focus-visible .product-image {
  transform: scale(1.015);
}

.product-card .product-image {
  display: block;
  height: auto;
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .2s ease;
  width: auto;
}

.product-card .product-image.is-landscape {
  width: 100%;
}

.product-card .product-image.is-portrait {
  max-height: 620px;
}

.product-card .product-image.is-square {
  width: min(100%, 520px);
}

.product-thumbs {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
}

.product-thumb {
  aspect-ratio: 1;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
}

.product-thumb.active {
  border-color: var(--teal);
}

.product-card .product-thumb img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.image-placeholder {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: var(--teal);
  border-radius: 5px;
  display: grid;
  justify-items: center;
  margin-bottom: 0;
  min-height: 180px;
  padding: 2rem;
}

.image-placeholder img {
  height: auto;
  max-height: 160px;
  width: min(46%, 132px);
}

.price {
  color: var(--clay);
  font-weight: 800;
}

.muted {
  color: rgba(18, 36, 34, .7);
}

.two-col {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}

.stack {
  display: grid;
  gap: 2rem;
}

.lux-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 63, 63, .06);
  display: grid;
  gap: .8rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  background: #fffdf8;
  border: 1px solid #d7bea0;
  border-radius: 5px;
  color: var(--ink);
  padding: .78rem;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(0, 63, 63, .14);
}

textarea {
  min-height: 110px;
}

fieldset {
  border: 1px solid rgba(0, 63, 63, .14);
  border-radius: 5px;
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 1rem;
}

legend {
  color: var(--teal);
  font-weight: 800;
  padding: 0 .35rem;
}

label {
  display: grid;
  gap: .35rem;
}

.empty-state {
  color: rgba(18, 36, 34, .68);
  font-style: italic;
}

.form-status {
  border-left: 3px solid transparent;
  margin: .25rem 0 0;
  min-height: 1.5rem;
  padding-left: .65rem;
}

.form-status.success {
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 800;
}

.form-status.error {
  border-color: #9b1c31;
  color: #9b1c31;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.inquiry-modal {
  inset: 0;
  position: fixed;
  z-index: 100;
}

.inquiry-backdrop {
  background: rgba(18, 36, 34, .62);
  inset: 0;
  position: absolute;
}

.inquiry-dialog {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3);
  left: 50%;
  max-height: min(90vh, 780px);
  overflow: auto;
  padding: 1.25rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 92vw);
}

.inquiry-dialog h2 {
  margin: 0 2rem .25rem 0;
}

.inquiry-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(0, 63, 63, .26);
  border-radius: 5px;
  color: var(--teal);
  cursor: pointer;
  display: grid;
  font-size: 1.5rem;
  height: 2rem;
  line-height: 1;
  padding: 0;
  place-items: center;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2rem;
}

.image-lightbox {
  inset: 0;
  position: fixed;
  z-index: 120;
}

.image-lightbox-backdrop {
  background: rgba(8, 20, 19, .84);
  inset: 0;
  position: absolute;
}

.image-lightbox-dialog {
  align-items: center;
  display: grid;
  gap: .85rem;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-rows: minmax(0, 1fr) auto;
  inset: clamp(.75rem, 3vw, 1.5rem);
  position: absolute;
}

.image-lightbox-close,
.image-lightbox-nav,
.image-lightbox-thumb {
  cursor: pointer;
}

.image-lightbox-close,
.image-lightbox-nav {
  align-items: center;
  background: rgba(255, 242, 223, .96);
  border: 1px solid rgba(255, 242, 223, .7);
  border-radius: 6px;
  color: var(--teal);
  display: grid;
  font-weight: 800;
  justify-items: center;
  line-height: 1;
  padding: 0;
}

.image-lightbox-close {
  font-size: 1.75rem;
  height: 42px;
  position: absolute;
  right: 0;
  top: 0;
  width: 42px;
  z-index: 2;
}

.image-lightbox-nav {
  align-self: center;
  font-size: 2.25rem;
  height: 52px;
  width: 44px;
}

.image-lightbox-prev {
  grid-column: 1;
  grid-row: 1;
}

.image-lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

.image-lightbox-figure {
  align-items: center;
  align-self: stretch;
  display: grid;
  gap: .75rem;
  grid-column: 2;
  grid-row: 1;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  margin: 0;
  min-height: 0;
}

.image-lightbox-figure img {
  background: rgba(255, 242, 223, .08);
  border: 1px solid rgba(255, 242, 223, .18);
  border-radius: 6px;
  max-height: calc(100vh - 170px);
  max-width: 100%;
  object-fit: contain;
}

.image-lightbox-figure figcaption {
  color: var(--cream);
  font-size: .92rem;
  margin: 0;
  text-align: center;
}

.image-lightbox-thumbs {
  display: grid;
  gap: .55rem;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(auto-fit, minmax(54px, 72px));
  justify-content: center;
  max-height: 86px;
  overflow: auto;
}

.image-lightbox-thumb {
  aspect-ratio: 1;
  background: rgba(255, 242, 223, .08);
  border: 2px solid rgba(255, 242, 223, .35);
  border-radius: 5px;
  padding: 0;
}

.image-lightbox-thumb.active,
.image-lightbox-thumb:hover,
.image-lightbox-thumb:focus-visible {
  border-color: var(--cream);
}

.image-lightbox-thumb img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: minmax(0, .86fr) minmax(420px, 1fr);
  }
}

@media (max-width: 799px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
    min-height: 0;
  }

  .brand-icon {
    width: 38px;
  }

  .brand-wordmark {
    width: 128px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-sculpture {
    height: 82vw;
    left: -42vw;
    opacity: .12;
    top: 5rem;
    width: 100vw;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 4.5rem 0 4rem;
  }

  .hero-brand {
    justify-self: start;
    order: -1;
    width: min(230px, 64vw);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.6rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .image-lightbox-dialog {
    gap: .55rem;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    inset: .75rem;
  }

  .image-lightbox-close {
    height: 38px;
    width: 38px;
  }

  .image-lightbox-nav {
    font-size: 2rem;
    height: 48px;
    width: 38px;
  }

  .image-lightbox-figure img {
    max-height: calc(100vh - 160px);
  }
}
