:root {
  --pink: #ffacae;
  --charcoal: #353535;
  --black: #000001;
  --navy: #131b69;
  --white: #ffffff;
  --silver: #a4a4a4;
  --gold: #f2dc98;
  --paper: #f5f5f6;
  --line: #dedee4;
  --muted: #6b6b76;
  --shadow: 0 24px 64px rgba(0, 0, 1, 0.18);
  --card-shadow: 0 12px 34px rgba(0, 0, 1, 0.08);
  --card-shadow-hover: 0 22px 58px rgba(0, 0, 1, 0.16);
  --script: "Luxurious Script", "Brush Script MT", cursive;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 172, 174, 0.34), transparent 23rem),
    radial-gradient(circle at 94% 36%, rgba(242, 220, 152, 0.42), transparent 25rem),
    radial-gradient(circle at 18% 78%, rgba(19, 27, 105, 0.12), transparent 28rem),
    linear-gradient(135deg, rgba(164, 164, 164, 0.18), transparent 30%, rgba(255, 172, 174, 0.14) 62%, rgba(242, 220, 152, 0.2)),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 54%, #ececf1 100%);
  background-attachment: fixed, fixed, fixed, scroll, scroll;
  color: var(--black);
  min-height: 100vh;
}

img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  margin: 0 auto;
  padding: 32px 0 48px;
  width: min(1180px, calc(100% - 32px));
}

.hero-banner {
  background:
    linear-gradient(90deg, rgba(0, 0, 1, 0.86), rgba(19, 27, 105, 0.62), rgba(255, 172, 174, 0.14)),
    url("https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
  display: grid;
  min-height: 365px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px);
  place-items: end start;
  position: relative;
}

.hero-banner::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 1, 0.36));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-content {
  display: grid;
  gap: 16px;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: var(--gold);
  margin: 0;
}

h1,
.masthead h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  margin: 0;
}

h1 {
  color: var(--white);
  font-size: clamp(2.45rem, 5vw, 5.5rem);
  line-height: 0.9;
  max-width: 760px;
}

.script-word,
.profile-copy h2,
.designer-card h3 {
  font-family: var(--script);
  font-weight: 400;
}

.script-word {
  color: var(--pink);
  font-size: 1.22em;
}

.hero-content p,
.designer-card p,
.meta {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 620px;
}

.hero-stats,
.filters,
.sizes,
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-stats span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 9px 12px;
  text-transform: uppercase;
}

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 30px 0 26px;
}

.masthead h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.masthead-main {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  width: 100%;
}

.masthead-main .search-box {
  justify-self: end;
  max-width: 360px;
  width: 100%;
}

.toolbar {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 28px 0 18px;
}

.toolbar-main {
  align-items: end;
  display: flex;
  flex: 1 1 auto;
  gap: 20px;
  justify-content: space-between;
  min-width: 0;
}

.toolbar h2 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.count {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.search-box {
  display: grid;
  gap: 7px;
  max-width: 360px;
  width: min(360px, 100%);
}

.search-box span {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-box input {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 1, 0.06);
  color: var(--black);
  min-height: 44px;
  outline: none;
  padding: 11px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.search-box input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(19, 27, 105, 0.1);
}

.filters {
  justify-content: flex-end;
}

.filter-btn {
  --theme: var(--black);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--black);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 10px 12px 10px 32px;
  position: relative;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-btn::before {
  background: var(--theme);
  border: 1px solid rgba(0, 0, 1, 0.18);
  border-radius: 50%;
  content: "";
  height: 12px;
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
}

.theme-all { --theme: var(--black); }
.theme-sub1 { --theme: var(--navy); }
.theme-sub2 { --theme: var(--gold); }
.theme-sub3 { --theme: var(--pink); }
.theme-sub4 { --theme: var(--silver); }

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  outline: none;
  transform: translateY(-1px);
}

.designer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.designer-card {
  appearance: none;
  animation: cardReveal 420ms ease both;
  animation-delay: var(--delay, 0ms);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  color: inherit;
  cursor: pointer;
  display: grid;
  grid-template-rows: 270px minmax(230px, auto);
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.designer-card::before {
  background: linear-gradient(90deg, var(--black), var(--theme-color), var(--gold));
  content: "";
  height: 4px;
  inset: 0 0 auto;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
  z-index: 1;
}

.designer-card:hover,
.designer-card:focus-visible {
  border-color: rgba(19, 27, 105, 0.34);
  box-shadow: var(--card-shadow-hover);
  outline: none;
  transform: translateY(-6px);
}

.designer-card:hover::before,
.designer-card:focus-visible::before {
  opacity: 1;
}

.media {
  background: #ececf1;
  overflow: hidden;
}

.media img {
  filter: saturate(0.92) contrast(1.03);
  transition: transform 420ms ease, filter 420ms ease;
}

.designer-card:hover .media img,
.designer-card:focus-visible .media img {
  filter: saturate(1.03) contrast(1.06);
  transform: scale(1.045);
}

.content {
  align-content: start;
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 18px;
}

.topline {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.designer-card h3 {
  font-size: clamp(1.78rem, 3vw, 2.1rem);
  line-height: 0.96;
  margin: 0;
  overflow-wrap: anywhere;
}

.designer-contact {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}

.designer-contact::before {
  background: var(--theme-color);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.collection-desc {
  display: -webkit-box;
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  background: color-mix(in srgb, var(--theme-color) 16%, var(--white));
  border: 1px solid color-mix(in srgb, var(--theme-color) 42%, var(--line));
  border-radius: 999px;
  color: var(--black);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.no-results {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  text-align: center;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.load-more {
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  padding: 13px 18px;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.load-more:hover,
.load-more:focus-visible {
  background: var(--navy);
  outline: none;
  transform: translateY(-2px);
}

.cta {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-size: 0.88rem;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 4px;
  text-transform: uppercase;
}

.overlay {
  align-items: center;
  animation: overlayFade 180ms ease both;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 1, 0.62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

.overlay[hidden] {
  display: none;
}

.sheet {
  animation: sheetReveal 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  height: min(860px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  max-width: 1120px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.close {
  align-items: center;
  background: var(--black);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: grid;
  font-size: 1.45rem;
  height: 44px;
  justify-items: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  z-index: 2;
}

.profile {
  background: var(--paper);
  display: grid;
  grid-template-rows: 46% minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.profile-cover {
  border-bottom: 1px solid rgba(0, 0, 1, 0.08);
  overflow: hidden;
}

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

.profile-copy {
  display: grid;
  gap: 12px;
  grid-auto-rows: min-content;
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

.profile-head {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr);
}

.profile-image {
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 1, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 1, 0.08);
  overflow: hidden;
}

.profile-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.profile-copy h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 0.92;
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-contact {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.profile-description {
  border-top: 1px solid rgba(0, 0, 1, 0.12);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
  margin: 2px 0 0;
  max-height: 220px;
  overflow: auto;
  padding-top: 14px;
}

.design-area {
  min-height: 0;
  overflow: auto;
  padding: 62px 24px 36px;
  scrollbar-gutter: stable;
}

.design-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  padding-bottom: 4px;
}

.design-card {
  animation: designRise 340ms ease both;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 1, 0.08);
  cursor: pointer;
  display: grid;
  grid-template-rows: min-content 280px minmax(0, 1fr);
  height: 100%;
  min-width: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.design-card:nth-child(2) { animation-delay: 50ms; }
.design-card:nth-child(3) { animation-delay: 100ms; }

.design-card:hover,
.design-card:focus-visible {
  border-color: rgba(19, 27, 105, 0.28);
  box-shadow: 0 18px 34px rgba(0, 0, 1, 0.12);
  outline: none;
  transform: translateY(-3px);
}

.design-hero {
  align-items: start;
  border-bottom: 1px solid rgba(0, 0, 1, 0.06);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.design-copy {
  display: grid;
  gap: 12px;
  grid-template-rows: min-content minmax(0, 1fr) min-content min-content;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.design-hero h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.price {
  color: var(--navy);
  display: block;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.fabric {
  border-left: 3px solid var(--theme-color);
  color: var(--black);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
  padding-left: 10px;
}

.design-hint {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
}

.site-footer p {
  margin: 0;
}

.gallery-overlay {
  z-index: 30;
}

.gallery-sheet {
  animation: sheetReveal 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-rows: min-content minmax(0, 1fr) min-content;
  max-height: calc(100vh - 32px);
  max-width: 1040px;
  overflow: auto;
  padding: 24px;
  position: relative;
  width: min(1040px, calc(100vw - 24px));
}

.gallery-head {
  display: grid;
  gap: 6px;
  padding-right: 56px;
}

.gallery-head h3,
.gallery-head p {
  margin: 0;
}

.gallery-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}

.gallery-head p {
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-stage {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
}

.gallery-image-wrap {
  background: linear-gradient(180deg, #f8f8fb, #ececf2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  height: min(66vh, 620px);
  overflow: hidden;
  place-items: center;
}

.gallery-image-wrap img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.gallery-nav {
  background: var(--black);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  height: 52px;
  line-height: 1;
  width: 52px;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-thumb {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  height: 108px;
  overflow: hidden;
  padding: 0;
}

.gallery-thumb.is-active {
  border-color: var(--navy);
}

.gallery-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.footer-links a {
  align-items: center;
  color: var(--black);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--navy);
  outline: none;
}

.ig-icon {
  background:
    radial-gradient(circle at 70% 30%, var(--gold) 0 7%, transparent 8%),
    radial-gradient(circle, transparent 0 34%, var(--black) 35% 48%, transparent 49%),
    linear-gradient(135deg, var(--navy), var(--pink));
  border-radius: 6px;
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

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

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@media (max-width: 980px) {
  .masthead,
  .sheet {
    grid-template-columns: 1fr;
  }

  .sheet {
    overflow: auto;
  }

  .profile {
    grid-template-rows: 42% minmax(0, 1fr);
  }

  .design-area {
    padding-top: 24px;
  }

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

  .gallery-stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .gallery-nav {
    font-size: 1.7rem;
    height: 44px;
    width: 44px;
  }
}

@media (max-width: 680px) {
  .page {
    padding-top: 18px;
    width: min(100% - 20px, 1180px);
  }

  .toolbar {
    align-items: start;
    flex-direction: column;
  }

  .masthead-main {
    align-items: start;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .masthead-main .search-box {
    justify-self: stretch;
  }

  .toolbar-main {
    align-items: start;
    flex-direction: column;
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .filters {
    justify-content: flex-start;
  }

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

  .designer-card {
    grid-template-rows: 240px minmax(210px, auto);
  }

  .overlay {
    padding: 10px;
  }

  .profile {
    grid-template-rows: 220px minmax(0, 1fr);
  }

  .profile-head {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .sheet {
    max-height: 94vh;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .gallery-sheet {
    padding: 18px;
    width: min(100vw - 16px, 1040px);
  }

  .gallery-stage {
    gap: 8px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .gallery-nav {
    font-size: 1.4rem;
    height: 38px;
    width: 38px;
  }

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

  .gallery-thumb {
    height: 76px;
  }
}

@media (max-width: 480px) {
  .designer-grid,
  .design-grid {
    grid-template-columns: 1fr;
  }
}
