/* ═══════════════════════════════════════════════════════════════════
   custom-design.css — Custom Design page (scoped)
   All rules are namespaced under .custom-design-page (body class)
   to guarantee zero leakage to other pages.
   ═══════════════════════════════════════════════════════════════════ */

.custom-design-page {
  /* Monochrome palette mirroring home.css :root (line 418) — graphite + black + snow.
     NO gold/clay/champagne tones. Variable names kept as --cd-gold* for stability,
     but the VALUES are now graphite/steel greys. */
  --cd-ink:     #000000;   /* PURE BLACK (= home --ink)               */
  --cd-deep:    #141414;   /* NOIR — soft black dark sections (= --navy) */
  --cd-deep-2:  #2A2A2A;   /* deeper graphite — gradient endpoint     */
  --cd-cream:   #FAFAFA;   /* SNOW off-white surface (= --cream)      */
  --cd-cream-2: #F2F2F2;   /* subtle off-white — input/dropdown bg so
                              fields stay visible on the white form card */
  --cd-bone:    #E0E0E0;   /* MIST hairline borders (= --border)      */
  --cd-gold:    #4A4A4A;   /* GRAPHITE accent / hover (= home --gold) */
  --cd-gold-l:  #8A8A8A;   /* STEEL light accent (= --gold-l)         */
  --cd-gold-d:  #2A2A2A;   /* deeper graphite (= --gold-d)            */
  --cd-ink-soft:#6B6B6B;   /* secondary grey                          */
  --cd-line:    rgba(0, 0, 0, 0.10);
  --cd-line-l:  rgba(255, 255, 255, 0.14);
  --cd-shadow:      0 18px 60px -28px rgba(0, 0, 0, 0.35);
  --cd-shadow-soft: 0 10px 40px -20px rgba(0, 0, 0, 0.20);
}

.custom-design-page {
  background: var(--cd-cream);
}

/* shared section heading bits */
.custom-design-page .cd-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 0 20px;
}
.custom-design-page .cd-eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cd-gold);
  margin-bottom: 20px;
  position: relative;
}
.custom-design-page .cd-eyebrow::before,
.custom-design-page .cd-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 14px;
  opacity: .55;
}
.custom-design-page .cd-eyebrow--light { color: rgba(255, 255, 255, 0.62); }

.custom-design-page .cd-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  color: var(--cd-ink);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.custom-design-page .cd-section-title em {
  font-style: italic;
  color: var(--cd-gold);
}
.custom-design-page .cd-section-title--light { color: #fff; }
.custom-design-page .cd-section-title--light em { color: var(--cd-gold-l); }

.custom-design-page .cd-section-sub {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.62);
  max-width: 580px;
  margin: 0 auto;
}
.custom-design-page .cd-section-sub--light { color: rgba(255, 255, 255, 0.68); }


/* shared buttons */
.custom-design-page .cd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 60px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s, color .35s, box-shadow .35s, border-color .35s;
  white-space: nowrap;
}
.custom-design-page .cd-btn svg {
  width: 16px; height: 16px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.custom-design-page .cd-btn:hover svg { transform: translateX(5px); }

.custom-design-page .cd-btn--primary {
  background: linear-gradient(135deg, var(--cd-gold-l), var(--cd-gold));
  color: #fff;
  box-shadow: 0 14px 36px -14px rgba(74, 74, 74, .55);
}
.custom-design-page .cd-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(74, 74, 74, .65);
  background: linear-gradient(135deg, var(--cd-gold), var(--cd-gold-d));
}

.custom-design-page .cd-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.custom-design-page .cd-btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .65);
}

.custom-design-page .cd-btn--lg {
  padding: 20px 38px;
  font-size: 13px;
}


/* ═══════════════════════════════════════════
   1. HERO
═══════════════════════════════════════════ */
.custom-design-page .cd-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h, 100px) + 40px) 24px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(138, 138, 138, .18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(42, 42, 42, .25), transparent 55%),
    linear-gradient(180deg, var(--cd-ink) 0%, var(--cd-deep-2) 55%, var(--cd-ink) 100%);
  color: #fff;
  overflow: hidden;
}

.custom-design-page .cd-hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.custom-design-page .cd-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: cdOrb 14s ease-in-out infinite;
}
.custom-design-page .cd-orb-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(138, 138, 138, .55), transparent 70%);
  top: -120px; left: -100px;
}
.custom-design-page .cd-orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(74, 74, 74, .45), transparent 70%);
  bottom: -160px; right: -120px;
  animation-delay: -6s;
}
.custom-design-page .cd-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(138, 138, 138, .25), transparent 70%);
  top: 40%; right: 15%;
  animation-delay: -10s;
}
@keyframes cdOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.06); }
}

.custom-design-page .cd-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}

.custom-design-page .cd-spark {
  position: absolute;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px 4px rgba(255, 255, 255, .8);
  opacity: .7;
  animation: cdSpark 4s ease-in-out infinite;
}
.custom-design-page .cd-spark-1 { top: 22%; left: 18%; }
.custom-design-page .cd-spark-2 { top: 65%; left: 82%; animation-delay: -1s; }
.custom-design-page .cd-spark-3 { top: 78%; left: 22%; animation-delay: -2s; width: 4px; height: 4px; }
.custom-design-page .cd-spark-4 { top: 30%; left: 75%; animation-delay: -3s; width: 4px; height: 4px; }
@keyframes cdSpark {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50%      { opacity: .9; transform: scale(1.2); }
}

.custom-design-page .cd-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  width: 100%;
}

.custom-design-page .cd-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.custom-design-page .cd-breadcrumb a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  transition: color .25s;
}
.custom-design-page .cd-breadcrumb a:hover { color: var(--cd-gold-l); }
.custom-design-page .cd-breadcrumb span:last-child { color: var(--cd-gold-l); }

.custom-design-page .cd-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 60px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 32px;
}
.custom-design-page .cd-hero-chip svg {
  width: 14px; height: 14px;
  color: var(--cd-gold-l);
}

.custom-design-page .cd-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.custom-design-page .cd-hero-title .cd-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em; /* protect italic descenders during reveal */
}
.custom-design-page .cd-hero-title .cd-line-inner {
  display: inline-block;
  will-change: transform;
}
.custom-design-page .cd-hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--cd-gold), var(--cd-gold-l), var(--cd-gold-d));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.custom-design-page .cd-hero-desc {
  font-family: 'Jost', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  max-width: 580px;
  margin: 0 auto 40px;
}

.custom-design-page .cd-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.custom-design-page .cd-hero-trust {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.custom-design-page .cd-trust-i {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}
.custom-design-page .cd-trust-i svg {
  width: 16px; height: 16px;
  color: var(--cd-gold-l);
}

.custom-design-page .cd-hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--cd-cream));
  z-index: 1;
}


/* ═══════════════════════════════════════════
   2. INTRO
═══════════════════════════════════════════ */
.custom-design-page .cd-intro {
  padding: 56px 24px 120px;
  background: var(--cd-cream);
}
.custom-design-page .cd-intro-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.custom-design-page .cd-intro-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  color: var(--cd-ink);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.custom-design-page .cd-intro-title em {
  font-style: italic;
  color: var(--cd-gold);
}
.custom-design-page .cd-intro-body {
  font-family: 'Jost', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.72);
  margin-bottom: 36px;
}
.custom-design-page .cd-intro-rule {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--cd-gold);
}
.custom-design-page .cd-intro-rule span {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}
.custom-design-page .cd-intro-rule svg {
  width: 18px; height: 18px;
}


/* ═══════════════════════════════════════════
   3. CATEGORIES — "What We Craft"
═══════════════════════════════════════════ */
.custom-design-page .cd-cats {
  padding: 110px 0 130px;
  background: linear-gradient(180deg, var(--cd-cream) 0%, var(--cd-cream-2) 100%);
  position: relative;
  overflow: hidden;
}
.custom-design-page .cd-cats::before {
  content: '';
  position: absolute;
  top: 8%; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 138, 138, .10), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.custom-design-page .cd-cats-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.custom-design-page .cd-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.custom-design-page .cd-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cd-line);
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  isolation: isolate;
  transition:
    transform .55s cubic-bezier(.2,.7,.2,1),
    box-shadow .55s,
    border-color .55s;
  box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .15);
}
.custom-design-page .cd-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cd-gold-l), var(--cd-gold), var(--cd-gold-d));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
  z-index: 4;
}
.custom-design-page .cd-cat-card:hover {
  transform: translateY(-10px);
  border-color: rgba(138, 138, 138, .35);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .26);
}
.custom-design-page .cd-cat-card:hover::before { transform: scaleX(1); }

/* ── Image area: square aspect, robust cover, soft fallback ── */
.custom-design-page .cd-cat-img {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #FAFAFA 0%, #E0E0E0 100%);
  z-index: 1;
}
.custom-design-page .cd-cat-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .55s;
}
.custom-design-page .cd-cat-card:hover .cd-cat-img img {
  transform: scale(1.10);
  filter: brightness(.92) saturate(1.05);
}
/* gradient veil for legibility & depth */
.custom-design-page .cd-cat-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .04) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .55s;
}
.custom-design-page .cd-cat-card:hover .cd-cat-img::after { opacity: .85; }

/* corner ornament — slides in on hover */
.custom-design-page .cd-cat-img::before {
  content: '';
  position: absolute;
  top: 14px; left: 14px;
  width: 32px; height: 32px;
  border-top: 1.5px solid rgba(255, 255, 255, .75);
  border-left: 1.5px solid rgba(255, 255, 255, .75);
  opacity: 0;
  transform: translate(8px, 8px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.custom-design-page .cd-cat-card:hover .cd-cat-img::before {
  opacity: 1;
  transform: translate(0, 0);
}

/* number medallion — gold-fills on hover */
.custom-design-page .cd-cat-num {
  position: absolute;
  top: 14px; right: 14px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--cd-gold-d);
  border: 1px solid rgba(138, 138, 138, .15);
  z-index: 3;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .22);
  transition:
    transform .55s cubic-bezier(.2,.7,.2,1),
    background .55s,
    color .55s,
    border-color .55s;
}
.custom-design-page .cd-cat-card:hover .cd-cat-num {
  transform: scale(1.10) rotate(-8deg);
  background: linear-gradient(135deg, var(--cd-gold-l), var(--cd-gold-d));
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

/* body */
.custom-design-page .cd-cat-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
  background: #fff;
}
.custom-design-page .cd-cat-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  color: var(--cd-ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  align-self: flex-start;
}
.custom-design-page .cd-cat-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--cd-gold-l), var(--cd-gold-d));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), width .55s;
}
.custom-design-page .cd-cat-card:hover .cd-cat-title::after {
  transform: scaleX(1);
  width: 60px;
}
.custom-design-page .cd-cat-desc {
  font-family: 'Jost', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.65);
  margin: 14px 0 22px;
  flex: 1;
}
.custom-design-page .cd-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cd-gold);
  text-decoration: none;
  align-self: flex-start;
  transition: color .25s, gap .25s;
}
.custom-design-page .cd-cat-link svg {
  width: 14px; height: 14px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.custom-design-page .cd-cat-card:hover .cd-cat-link {
  color: var(--cd-gold-d);
  gap: 14px;
}
.custom-design-page .cd-cat-card:hover .cd-cat-link svg {
  transform: translateX(4px);
}

/* responsive tweaks for category cards */
@media (max-width: 991px) {
  .custom-design-page .cd-cats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .custom-design-page .cd-cats-wrap { padding: 0 20px; }
  .custom-design-page .cd-cat-img { aspect-ratio: 4 / 5; }
  .custom-design-page .cd-cat-body { padding: 24px 24px 26px; }
  .custom-design-page .cd-cat-title { font-size: 23px; }
}
@media (max-width: 575px) {
  .custom-design-page .cd-cats { padding: 80px 0 90px; }
  .custom-design-page .cd-cats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 440px;
    margin: 0 auto;
  }
  .custom-design-page .cd-cat-card { border-radius: 18px; }
  .custom-design-page .cd-cat-img { aspect-ratio: 16 / 11; }
  .custom-design-page .cd-cat-body { padding: 22px 22px 24px; }
  .custom-design-page .cd-cat-title { font-size: 22px; }
  .custom-design-page .cd-cat-num { width: 42px; height: 42px; font-size: 14px; }
}


/* ═══════════════════════════════════════════
   4. HOW IT WORKS / PROCESS
═══════════════════════════════════════════ */
.custom-design-page .cd-process {
  position: relative;
  padding: 120px 24px;
  background:
    radial-gradient(circle at 30% 0%, rgba(138, 138, 138, .14), transparent 55%),
    radial-gradient(circle at 70% 100%, rgba(42, 42, 42, .18), transparent 55%),
    linear-gradient(180deg, var(--cd-deep) 0%, var(--cd-deep-2) 50%, var(--cd-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.custom-design-page .cd-process::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.custom-design-page .cd-process-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-design-page .cd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.custom-design-page .cd-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 138, 138, .5) 20%, rgba(138, 138, 138, .5) 80%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s cubic-bezier(.65, 0, .35, 1);
}
.custom-design-page .cd-steps.cd-line-drawn::before { transform: scaleX(1); }

.custom-design-page .cd-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.custom-design-page .cd-step-num {
  position: relative;
  width: 72px; height: 72px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cd-gold-l), var(--cd-gold-d));
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 26px;
  color: #fff;
  box-shadow:
    0 0 0 6px rgba(138, 138, 138, .12),
    0 16px 36px -12px rgba(138, 138, 138, .55);
  z-index: 2;
}
.custom-design-page .cd-step-num::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
}

.custom-design-page .cd-step-line { display: none; }

.custom-design-page .cd-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.custom-design-page .cd-step-text {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
  max-width: 240px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════
   5. INSPIRATION GALLERY
═══════════════════════════════════════════ */
.custom-design-page .cd-gallery {
  padding: 120px 24px;
  background: var(--cd-cream);
}

.custom-design-page .cd-gallery-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.custom-design-page .cd-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--cd-cream-2);
  cursor: pointer;
  margin: 0;
  box-shadow: var(--cd-shadow-soft);
}
.custom-design-page .cd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .55s;
}
.custom-design-page .cd-gallery-item:hover img {
  transform: scale(1.12);
  filter: brightness(.78);
}

.custom-design-page .cd-gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s, transform .45s;
}
.custom-design-page .cd-gallery-item:hover .cd-gallery-cap {
  opacity: 1;
  transform: translateY(0);
}
.custom-design-page .cd-gallery-cap svg { width: 16px; height: 16px; }

/* Masonry-ish staggered sizes */
.custom-design-page .cd-gi-1 { grid-column: span 2; grid-row: span 2; }
.custom-design-page .cd-gi-2 { grid-column: span 1; grid-row: span 1; }
.custom-design-page .cd-gi-3 { grid-column: span 1; grid-row: span 2; }
.custom-design-page .cd-gi-4 { grid-column: span 1; grid-row: span 1; }
.custom-design-page .cd-gi-5 { grid-column: span 1; grid-row: span 1; }


/* ═══════════════════════════════════════════
   6. FORM
═══════════════════════════════════════════ */
.custom-design-page .cd-form-sec {
  padding: 120px 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(138, 138, 138, .12), transparent 50%),
    linear-gradient(180deg, var(--cd-deep) 0%, var(--cd-deep-2) 100%);
  scroll-margin-top: 110px;
}

.custom-design-page .cd-form-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

/* Aside */
.custom-design-page .cd-form-aside {
  position: sticky;
  top: 120px;
  color: #fff;
  padding-right: 12px;
}
.custom-design-page .cd-form-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  color: #fff;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.custom-design-page .cd-form-title em {
  font-style: italic;
  color: var(--cd-gold-l);
}
.custom-design-page .cd-form-sub {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 30px;
}
.custom-design-page .cd-form-points {
  list-style: none;
  padding: 0; margin: 0 0 36px;
}
.custom-design-page .cd-form-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  letter-spacing: 0.02em;
}
.custom-design-page .cd-form-points li:last-child { border-bottom: 0; }
.custom-design-page .cd-tick {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(138, 138, 138, .18);
  color: var(--cd-gold-l);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.custom-design-page .cd-form-quote {
  position: relative;
  padding: 26px 26px 26px 28px;
  border-left: 2px solid var(--cd-gold-l);
  background: rgba(255, 255, 255, .04);
  border-radius: 0 12px 12px 0;
}
.custom-design-page .cd-form-quote svg {
  width: 26px; height: 26px;
  color: var(--cd-gold-l);
  opacity: .55;
  margin-bottom: 10px;
}
.custom-design-page .cd-form-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 12px;
}
.custom-design-page .cd-form-quote span {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

/* Form */
.custom-design-page .cd-form {
  background: #fff;
  border-radius: 22px;
  padding: 44px 44px 38px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .06);
}

.custom-design-page .cd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.custom-design-page .cd-field {
  position: relative;
  margin-bottom: 18px;
}
.custom-design-page .cd-field input,
.custom-design-page .cd-field select,
.custom-design-page .cd-field textarea {
  width: 100%;
  background: var(--cd-cream-2);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 22px 18px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--cd-ink);
  outline: none;
  transition: border-color .35s, background .35s, box-shadow .35s;
  appearance: none;
  -webkit-appearance: none;
}
.custom-design-page .cd-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.custom-design-page .cd-field input:focus,
.custom-design-page .cd-field select:focus,
.custom-design-page .cd-field textarea:focus {
  background: #fff;
  border-color: var(--cd-gold-l);
  box-shadow: 0 0 0 4px rgba(138, 138, 138, .12);
}
.custom-design-page .cd-field label {
  position: absolute;
  top: 17px; left: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: rgba(0, 0, 0, .60);
  pointer-events: none;
  background: transparent;
  transition: top .25s, font-size .25s, color .25s;
}
.custom-design-page .cd-field input:focus + label,
.custom-design-page .cd-field input:not(:placeholder-shown) + label,
.custom-design-page .cd-field textarea:focus + label,
.custom-design-page .cd-field textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cd-gold);
}

/* Selects: float label whenever a value is chosen */
.custom-design-page .cd-select { position: relative; }
.custom-design-page .cd-select select { padding-right: 42px; }
.custom-design-page .cd-select select:focus + label,
.custom-design-page .cd-select.has-val label {
  top: 7px;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cd-gold);
}
.custom-design-page .cd-select-arr {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: rgba(0, 0, 0, .45);
  pointer-events: none;
  transition: transform .25s, color .25s;
}
.custom-design-page .cd-select select:focus ~ .cd-select-arr {
  color: var(--cd-gold);
  transform: translateY(-50%) rotate(180deg);
}

/* Custom dropdown (.bv-dd) — align with the custom-design form fields */
.custom-design-page .cd-form .bv-dd {
  /* Match .cd-field's margin-bottom so dropdowns inside .cd-form-row stack
     with the same vertical rhythm as the text fields next to them. */
  margin-bottom: 18px;
}
.custom-design-page .cd-form .bv-dd-btn {
  min-height: 53px;
  padding: 22px 44px 8px 18px; /* extra right padding reserves space for the chevron */
  background: var(--cd-cream-2);
  border: 1px solid transparent;
  border-radius: 12px;
}
.custom-design-page .cd-form .bv-dd-btn:focus,
.custom-design-page .cd-form .bv-dd.open .bv-dd-btn {
  background: #fff;
  border-color: var(--cd-gold-l);
  box-shadow: 0 0 0 4px rgba(138, 138, 138, .12);
}
.custom-design-page .cd-form .bv-dd-lbl { top: 17px; }
.custom-design-page .cd-form .bv-dd.open .bv-dd-lbl,
.custom-design-page .cd-form .bv-dd.has-val .bv-dd-lbl {
  top: 7px; font-size: 10px; letter-spacing: .10em;
}
/* Chevron — pin to the right so it can never collapse inside flex layout, and
   tint it gold so it's visible against the cream field background. */
.custom-design-page .cd-form .bv-dd-arrow {
  position: absolute;
  top: 50%; right: 18px;
  width: 16px; height: 16px;
  margin: 0;
  transform: translateY(-50%);
  stroke: var(--cd-gold);
  pointer-events: none;
}
.custom-design-page .cd-form .bv-dd.open .bv-dd-arrow {
  transform: translateY(-50%) rotate(180deg);
  stroke: var(--cd-gold-d);
}
/* Floating label highlight when open / filled — override the global emerald */
.custom-design-page .cd-form .bv-dd.open .bv-dd-lbl,
.custom-design-page .cd-form .bv-dd.has-val .bv-dd-lbl {
  color: var(--cd-gold);
}
/* Dropdown items — override global emerald hover/selected to graphite */
.custom-design-page .cd-form .bv-dd-item:hover,
.custom-design-page .cd-form .bv-dd-item.selected {
  background: rgba(74, 74, 74, .08);
  color: var(--cd-gold-d);
}
/* Selected checkmark — recolor from emerald (#1B6B45) to graphite */
.custom-design-page .cd-form .bv-dd-item.selected::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Upload */
.custom-design-page .cd-upload {
  margin-bottom: 18px;
}
.custom-design-page .cd-upload input[type=file] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.custom-design-page .cd-upload-lbl {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--cd-cream-2);
  border: 1px dashed rgba(0, 0, 0, .22);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.custom-design-page .cd-upload-lbl:hover {
  border-color: var(--cd-gold-l);
  background: rgba(138, 138, 138, .06);
}
.custom-design-page .cd-upload-ico {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(138, 138, 138, .12);
  color: var(--cd-gold);
  flex-shrink: 0;
}
.custom-design-page .cd-upload-ico svg { width: 22px; height: 22px; }
.custom-design-page .cd-upload-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.custom-design-page .cd-upload-text strong {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--cd-ink);
  margin-bottom: 2px;
}
.custom-design-page .cd-upload-text em {
  font-style: normal;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: rgba(0, 0, 0, .55);
}
.custom-design-page .cd-upload-name {
  display: none;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--cd-gold-d);
  background: rgba(138, 138, 138, .15);
  padding: 6px 12px;
  border-radius: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.custom-design-page .cd-upload.has-file .cd-upload-name { display: inline-block; }

/* Submit */
.custom-design-page .cd-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 18px 30px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--cd-gold-l), var(--cd-gold-d));
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, background .3s;
  box-shadow: 0 14px 36px -14px rgba(74, 74, 74, .55);
}
.custom-design-page .cd-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(74, 74, 74, .65);
}
.custom-design-page .cd-submit svg {
  width: 16px; height: 16px;
  transition: transform .3s;
}
.custom-design-page .cd-submit:hover svg { transform: translateX(5px); }
.custom-design-page .cd-submit:disabled {
  opacity: .65;
  cursor: progress;
  transform: none;
}

.custom-design-page .cd-form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(138, 138, 138, .08);
  border: 1px solid rgba(138, 138, 138, .22);
  border-radius: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--cd-gold-d);
  line-height: 1.6;
}
.custom-design-page .cd-form-success.show { display: flex; }
.custom-design-page .cd-form-success strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--cd-gold-d);
}
.custom-design-page .cd-form-success-ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cd-gold);
  color: #fff;
  display: grid;
  place-items: center;
}
.custom-design-page .cd-form-success-ico svg { width: 18px; height: 18px; }

.custom-design-page .cd-form-note {
  margin-top: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, .45);
  text-align: center;
}


/* ═══════════════════════════════════════════
   7. WHY CHOOSE US
═══════════════════════════════════════════ */
.custom-design-page .cd-why {
  padding: 120px 24px;
  background: var(--cd-cream-2);
}

.custom-design-page .cd-why-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.custom-design-page .cd-why-card {
  position: relative;
  text-align: center;
  padding: 44px 28px;
  background: #fff;
  border: 1px solid var(--cd-line);
  border-radius: 18px;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .55s, border-color .55s;
}
.custom-design-page .cd-why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 138, 138, .35);
  box-shadow: var(--cd-shadow);
}
.custom-design-page .cd-why-ico {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(138, 138, 138, .12), rgba(74, 74, 74, .08));
  color: var(--cd-gold);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.custom-design-page .cd-why-card:hover .cd-why-ico {
  transform: rotate(-8deg) scale(1.06);
  background: linear-gradient(135deg, var(--cd-gold-l), var(--cd-gold-d));
  color: #fff;
}
.custom-design-page .cd-why-ico svg { width: 28px; height: 28px; }

.custom-design-page .cd-why-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--cd-ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.custom-design-page .cd-why-text {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.62);
}


/* ═══════════════════════════════════════════
   8. FINAL CTA
═══════════════════════════════════════════ */
.custom-design-page .cd-final-cta {
  position: relative;
  padding: 130px 24px;
  background:
    radial-gradient(circle at 25% 40%, rgba(138, 138, 138, .14), transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(74, 74, 74, .10), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 50%, #FFFFFF 100%);
  color: #000000;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid #E0E0E0;
}
.custom-design-page .cd-final-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.custom-design-page .cd-final-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
  animation: cdOrb 10s ease-in-out infinite;
}
.custom-design-page .cd-final-orb {
  opacity: .22;
}
.custom-design-page .cd-final-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #8A8A8A, transparent 70%);
  top: -100px; left: 10%;
}
.custom-design-page .cd-final-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #4A4A4A, transparent 70%);
  bottom: -120px; right: 10%;
  animation-delay: -5s;
}

.custom-design-page .cd-final-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.custom-design-page .cd-final-cta .cd-eyebrow--light {
  color: #4A4A4A;
}
.custom-design-page .cd-final-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  color: #000000;
  margin: 18px 0 22px;
  letter-spacing: -0.01em;
}
.custom-design-page .cd-final-title em {
  font-style: italic;
  background: linear-gradient(135deg, #2A2A2A 0%, #8A8A8A 50%, #2A2A2A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.custom-design-page .cd-final-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px);
  color: rgba(0, 0, 0, .62);
  margin-bottom: 38px;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════
   REVEAL UTILITY (initial state for GSAP)
═══════════════════════════════════════════ */
.custom-design-page .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.custom-design-page .reveal.visible,
.custom-design-page .reveal.cd-in {
  opacity: 1;
  transform: translateY(0);
}

/* hero entrance — JS toggles initial state */
.custom-design-page [data-anim] {
  opacity: 0;
  transform: translateY(28px);
}
.custom-design-page.cd-hero-ready [data-anim] {
  /* GSAP will animate; this is just a safe fallback if GSAP fails */
  animation: cdHeroFallback .9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes cdHeroFallback {
  to { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .custom-design-page .cd-form-shell {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .custom-design-page .cd-form-aside {
    position: static;
    padding-right: 0;
    text-align: center;
  }
  .custom-design-page .cd-form-aside .cd-eyebrow::before,
  .custom-design-page .cd-form-aside .cd-eyebrow::after { width: 22px; }
  .custom-design-page .cd-form-quote { text-align: left; max-width: 560px; margin: 0 auto; }
  .custom-design-page .cd-form-points { max-width: 480px; margin: 0 auto 30px; text-align: left; }

  .custom-design-page .cd-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 32px;
  }
  .custom-design-page .cd-steps::before { display: none; }

  .custom-design-page .cd-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
  .custom-design-page .cd-gi-1 { grid-column: span 2; grid-row: span 2; }
  .custom-design-page .cd-gi-2,
  .custom-design-page .cd-gi-3,
  .custom-design-page .cd-gi-4,
  .custom-design-page .cd-gi-5 { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
  .custom-design-page .cd-hero {
    padding: calc(var(--nav-h, 100px) + 30px) 20px 40px;
    min-height: auto;
  }
  .custom-design-page .cd-intro,
  .custom-design-page .cd-cats,
  .custom-design-page .cd-process,
  .custom-design-page .cd-gallery,
  .custom-design-page .cd-form-sec,
  .custom-design-page .cd-why,
  .custom-design-page .cd-final-cta { padding-top: 80px; padding-bottom: 80px; }

  .custom-design-page .cd-section-head { margin-bottom: 44px; }

  .custom-design-page .cd-hero-cta-row { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; margin-bottom: 40px; }
  .custom-design-page .cd-btn { justify-content: center; }

  .custom-design-page .cd-hero-trust { gap: 10px 18px; }

  .custom-design-page .cd-form { padding: 28px 22px 26px; border-radius: 18px; }
  .custom-design-page .cd-form-row { grid-template-columns: 1fr; gap: 0; }

  .custom-design-page .cd-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 12px;
  }
  .custom-design-page .cd-gi-1 { grid-column: span 2; grid-row: span 1; }
  .custom-design-page .cd-gi-2,
  .custom-design-page .cd-gi-3,
  .custom-design-page .cd-gi-4,
  .custom-design-page .cd-gi-5 { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 480px) {
  .custom-design-page .cd-steps {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .custom-design-page .cd-step { padding: 0; }
  .custom-design-page .cd-eyebrow::before,
  .custom-design-page .cd-eyebrow::after { width: 18px; margin: 0 8px; }
  .custom-design-page .cd-upload-lbl { flex-wrap: wrap; }
  .custom-design-page .cd-upload-text { flex: 1 1 auto; }
}

/* prefers-reduced-motion: kill movement, keep layout */
@media (prefers-reduced-motion: reduce) {
  .custom-design-page .cd-orb,
  .custom-design-page .cd-spark,
  .custom-design-page .cd-final-orb { animation: none; }
  .custom-design-page .reveal { opacity: 1; transform: none; transition: none; }
  .custom-design-page [data-anim] { opacity: 1; transform: none; }
}
