/* ============================================================================
   JAHATAKSAFAR — ATELIER HOME STYLES
   Breathtaking Surveyor Folio Design: "The Plate", Elevation Ridge,
   Docked Capsule, Accordion Gallery, Atelier Pillars & Diagnostic Advisory.
   Prioritized for Phone Users First with 48px+ touch targets & fluid swipe.
   ============================================================================ */

/* --- 1. HERO — "The Plate" ----------------------------------------------- */
.hero-atelier {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(100px, 14vh, 160px) 0 clamp(24px, 4vh, 48px);
  overflow: clip;
  background-color: var(--pigment-obsidian);
}

.hero__plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1) brightness(0.58);
  transform: scale(1.05);
  animation: hero-drift 26s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.8%, 0); }
}

.hero__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 15, 13, 0.6) 0%,
      rgba(10, 15, 13, 0.25) 35%,
      rgba(10, 15, 13, 0.8) 75%,
      #0A0F0D 100%),
    radial-gradient(ellipse at center, transparent 35%, rgba(5, 8, 7, 0.75) 100%);
  pointer-events: none;
}

/* Elevation ridge SVG drawn across the horizon */
.hero__ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15vh;
  z-index: 2;
  width: 100%;
  height: 32vh;
  pointer-events: none;
  overflow: visible;
}

.hero__ridge .ridge-fill {
  fill: url(#ridgeFade);
  opacity: 0.55;
}

.hero__ridge .ridge-line {
  fill: none;
  stroke: url(#brassStroke);
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(194, 163, 107, 0.45));
}

.hero__ridge .ridge-node {
  fill: var(--pigment-brass-hi);
  r: 4;
  filter: drop-shadow(0 0 8px var(--pigment-brass));
}

.hero__ridge .ridge-node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--pigment-brass-hi);
  font-weight: 500;
}

/* --- Hero Body & Typography ---------------------------------------------- */
.hero__body {
  position: relative;
  z-index: 3;
  width: min(100%, 1280px);
  margin-inline: auto;
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  padding-bottom: 2vh;
}

.hero-atelier .travel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pigment-brass-hi);
  font-weight: 600;
}

.hero-atelier .travel-eyebrow span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pigment-brass-hi);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 340;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
  max-width: 18ch;
}

.hero__title i {
  font-style: italic;
  font-weight: 300;
  color: var(--pigment-brass-hi);
}

.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 54ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  margin-bottom: clamp(12px, 2.5vw, 24px);
}

/* --- Docked Search Capsule ----------------------------------------------- */
.capsule {
  display: flex;
  align-items: center;
  width: min(100%, 880px);
  padding: 8px 12px 8px 20px;
  border-radius: var(--r-pill);
  background: rgba(10, 16, 13, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line-edge);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.75),
    0 0 24px -6px var(--shadow-brass);
  gap: 12px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.capsule:focus-within {
  border-color: var(--pigment-brass);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(194, 163, 107, 0.3);
}

.capsule__seg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 14px;
  border-radius: 12px;
  transition: background-color var(--dur-fast);
  flex: 1 1 0;
  min-width: 0;
}

.capsule__seg--search {
  flex: 1.4 1 0;
  padding-left: 4px;
}

.capsule__seg:hover {
  background-color: rgba(235, 217, 174, 0.06);
}

.capsule__divider {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, transparent, rgba(235, 217, 174, 0.25) 20%, rgba(235, 217, 174, 0.25) 80%, transparent);
  flex-shrink: 0;
}

.capsule__label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.capsule__icon {
  color: var(--pigment-brass-hi);
  flex-shrink: 0;
}

.capsule__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pigment-brass-hi);
  font-weight: 500;
}

.capsule__input {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  padding: 2px 0;
}

.capsule__input::placeholder {
  color: var(--ink-quiet);
}

.capsule__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.capsule__select {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 20px;
}

.capsule__select option {
  background: var(--pigment-pine-900);
  color: #FFFFFF;
}

.capsule__select-chevron {
  position: absolute;
  right: 0;
  pointer-events: none;
  color: var(--pigment-brass-hi);
}

.capsule__value {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.capsule__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--pigment-brass-hi) 0%, var(--pigment-brass) 100%);
  color: var(--pigment-obsidian);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(194, 163, 107, 0.4);
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.capsule__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(194, 163, 107, 0.6);
}

/* --- Archival Index Foot Strip ------------------------------------------- */
.hero__index {
  position: relative;
  z-index: 3;
  width: min(100%, 1280px);
  margin-inline: auto;
  margin-top: clamp(1.8rem, 3.5vw, 3.2rem);
  padding: 22px 16px 26px;
  border-top: 1px solid rgba(235, 217, 174, 0.2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hero__index dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin: 0;
}

.hero__index dl:not(:last-child) {
  border-right: 1px solid rgba(235, 217, 174, 0.14);
  padding-right: 16px;
}

.hero__index dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(235, 217, 174, 0.75);
  font-weight: 500;
}

.hero__index dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}

/* --- 2. ACCORDION GALLERY — "Expanding Folio Plates" --------------------- */
.accordion-gallery-section {
  padding: var(--s-10) 0 var(--s-6);
}

.accordion-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
  gap: 16px;
}

.accordion-gallery {
  display: flex;
  gap: 12px;
  width: 100%;
  height: 440px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ag-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 60px;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background: var(--pigment-void);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease;
  border: 1px solid var(--line-hair);
}

.ag-panel:hover,
.ag-panel.active {
  flex: 3.4 1 0;
  border-color: var(--pigment-brass);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85), 0 0 24px -6px var(--shadow-brass);
}

.ag-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.65);
  transition: transform 0.8s ease, filter 0.5s ease;
}

.ag-panel:hover .ag-panel__img,
.ag-panel.active .ag-panel__img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.85);
}

.ag-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 7, 6, 0.95) 100%);
  pointer-events: none;
}

.ag-panel__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s ease;
}

.ag-panel:hover .ag-panel__badge,
.ag-panel.active .ag-panel__badge {
  opacity: 1;
  transform: translateY(0);
}

.ag-panel__content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ag-panel__coords {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pigment-brass-hi);
}

.ag-panel__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-panel__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease 0.1s;
}

.ag-panel:hover .ag-panel__bottom-row,
.ag-panel.active .ag-panel__bottom-row {
  opacity: 1;
  transform: translateY(0);
}

.ag-panel__price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #FFFFFF;
}

.ag-panel__price span {
  color: var(--pigment-brass-hi);
}

/* Spine label for collapsed panels */
.ag-panel__spine {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ag-panel:hover .ag-panel__spine,
.ag-panel.active .ag-panel__spine {
  opacity: 0;
}

/* --- 3. THE CATALOG GRID ("Field Folio Plates") -------------------------- */
.catalog-section {
  padding: var(--s-8) 0 var(--s-12);
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
  gap: 16px;
}

.dest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--line-hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.dest-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-brass);
  box-shadow: var(--shadow-lg), 0 0 28px -6px var(--shadow-brass);
}

.dest-card__frame {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-sunken);
}

.dest-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.8);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.dest-card:hover .dest-card__frame img {
  transform: scale(1.08);
  filter: saturate(1) brightness(0.92);
}

.dest-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.dest-card__place {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
}

.dest-card__coords {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pigment-brass-hi);
  margin-bottom: 2px;
}

.dest-card__name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.dest-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dest-card__summary {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.dest-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-hair);
  margin-bottom: 16px;
}

.dest-card__spec {
  font-size: 0.85rem;
  color: var(--ink-tertiary);
}

.dest-card__spec b {
  color: #FFFFFF;
  font-weight: 600;
}

.dest-card__price {
  text-align: right;
}

.dest-card__from {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pigment-brass-hi);
}

.dest-card__amount {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.dest-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

/* --- 4. PILLARS / THE ATELIER METHOD ------------------------------------- */
.pillars-section {
  position: relative;
  padding: clamp(72px, 10vh, 120px) 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(194, 163, 107, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0A0F0D 0%, #070B09 50%, #0A0F0D 100%);
  border-top: 1px solid rgba(235, 217, 174, 0.12);
  border-bottom: 1px solid rgba(235, 217, 174, 0.08);
  overflow: hidden;
}

.pillars__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}

.pillars__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 340;
  line-height: 1.15;
  color: #FFFFFF;
  margin-top: 8px;
}

.pillars__lead {
  max-width: 44ch;
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar-card {
  position: relative;
  min-height: 320px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(235, 217, 174, 0.16);
  border-radius: 20px;
  padding: 32px 24px 26px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #EBD9AE, transparent);
  opacity: 0.45;
  transition: all 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(235, 217, 174, 0.45);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px -8px rgba(194, 163, 107, 0.25);
}

.pillar-card:hover::before {
  left: 8%;
  right: 8%;
  opacity: 1;
}

.pillar-card__watermark {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(235, 217, 174, 0.04);
  user-select: none;
  pointer-events: none;
}

.pillar-card:hover .pillar-card__watermark {
  color: rgba(235, 217, 174, 0.09);
}

.pillar-card__top {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.pillar-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #EBD9AE;
  background: rgba(235, 217, 174, 0.08);
  border: 1px solid rgba(235, 217, 174, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.pillar-card__tag {
  margin-top: auto;
}

.pillar-card__tag span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--pigment-brass-hi);
  background: rgba(194, 163, 107, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(194, 163, 107, 0.2);
}

/* --- 5. PRIVATE TRAVEL ADVISORY BANNER & MODAL -------------------------- */
.consult-section {
  padding: var(--s-12) 0;
  background-color: var(--pigment-void);
}

.consult-banner {
  background: linear-gradient(135deg, rgba(22, 32, 29, 0.9) 0%, rgba(13, 20, 18, 0.95) 100%);
  border: 1px solid var(--line-brass);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.consult-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194, 163, 107, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.consult-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--pigment-brass-hi);
  margin-bottom: 12px;
}

.consult-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.consult-banner__lead {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.consult-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consult-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #FFFFFF;
}

.consult-perk svg {
  color: var(--whatsapp-green);
  flex-shrink: 0;
}

.consult-action-card {
  background: rgba(10, 15, 13, 0.9);
  border: 1px solid var(--line-edge);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.consult-action-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pigment-brass-hi);
}

.consult-action-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #FFFFFF;
  line-height: 1.3;
}

.consult-action-sub {
  font-size: 0.88rem;
  color: var(--ink-tertiary);
  margin-bottom: 8px;
}

.consult-action-guarantee {
  font-size: 0.76rem;
  color: var(--ink-quiet);
  margin-top: 4px;
}

/* --- 6. ROUTE DIAGNOSTIC MODAL (QUIZ) ------------------------------------ */
.diagnostic-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(5, 8, 7, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.diagnostic-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.diagnostic-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--pigment-pine-900);
  border: 1px solid var(--line-brass);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.diagnostic-modal.active .diagnostic-card {
  transform: scale(1);
}

.diagnostic-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--dur-fast);
}

.diagnostic-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.diagnostic-step-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--pigment-brass-hi);
  margin-bottom: 8px;
}

.diagnostic-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.diagnostic-desc {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.diagnostic-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.diagnostic-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  min-height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-hair);
  color: #FFFFFF;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  transition: all var(--dur-fast) ease;
}

.diagnostic-opt-btn:hover,
.diagnostic-opt-btn.selected {
  background: rgba(194, 163, 107, 0.12);
  border-color: var(--pigment-brass);
  color: var(--pigment-brass-hi);
  transform: translateX(4px);
}

/* --- 7. PHONE-FIRST RESPONSIVE OPTIMIZATIONS (<768px & <480px) ---------- */
@media (max-width: 992px) {
  .hero__ridge {
    bottom: 22vh;
    height: 24vh;
  }
  .consult-banner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .hero-atelier {
    padding: 92px 0 24px;
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
    max-width: 100%;
  }

  .hero__ridge {
    display: none; /* Keep hero clean and fast on phone screens */
  }

  /* Docked Capsule Stacks Vertically for 1-Thumb Use */
  .capsule {
    flex-direction: column;
    padding: 14px;
    border-radius: var(--r-lg);
    gap: 8px;
  }

  .capsule__seg {
    width: 100%;
    padding: 8px 12px;
    min-height: 48px;
    justify-content: center;
  }

  .capsule__divider {
    width: 100%;
    height: 1px;
    margin: 2px 0;
  }

  .capsule__input,
  .capsule__select {
    min-height: 40px;
    font-size: 1rem; /* Prevents auto-zoom on iOS Safari */
  }

  .capsule__cta {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
  }

  /* 2x2 Archival Metric Strip on Mobile */
  .hero__index {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    padding: 18px 8px;
    margin-top: 24px;
  }

  .hero__index dl:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  /* Accordion Gallery transforms into smooth touch reel */
  .accordion-gallery {
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    gap: 14px;
    scrollbar-width: none;
  }

  .accordion-gallery::-webkit-scrollbar {
    display: none;
  }

  .ag-panel {
    flex: 0 0 82vw;
    min-width: 82vw;
    height: 380px;
    scroll-snap-align: center;
  }

  .ag-panel__badge {
    opacity: 1;
    transform: none;
  }

  .ag-panel__bottom-row {
    opacity: 1;
    transform: none;
  }

  .ag-panel__spine {
    display: none;
  }

  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pillar-card {
    min-height: auto;
    padding: 24px 20px;
  }

  /* WhatsApp widget positioned specifically for mobile right thumb */
  .wa-floating-widget {
    bottom: 20px;
    right: 16px;
  }

  .wa-trigger-btn {
    width: 58px;
    height: 58px;
  }

  .wa-popup-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
  }

  .wa-popup-card.active {
    transform: translateY(0);
  }

  .wa-popup-card.active ~ .wa-trigger-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
  }

  #submitDiagnosticBtn {
    font-size: 0.92rem;
    padding: 12px 16px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }
}
