/* ==========================================================================
   VYRAA FASHIONS — ATELIER SKETCHBOOK / COMING SOON
   Couture Fashion Illustration × Quiet Luxury × Unboxed Editorial
   ========================================================================== */

:root {
  /* Brand Primitives */
  --vyraa-ink: #221e1a;
  --vyraa-cocoa: #463426;
  --vyraa-dark: #161412;
  --vyraa-ivory: #faf7f2;
  --vyraa-cream: #f3ede4;
  --vyraa-linen: #e8ded0;
  --vyraa-sand: #d1c0a8;
  --vyraa-taupe: #8c775e;
  --vyraa-gold: #c5a059;
  --vyraa-gold-faint: rgba(197, 160, 89, 0.22);
  --vyraa-rose: #b46f66;
  --vyraa-white: #ffffff;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--vyraa-ivory);
  color: var(--vyraa-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Atmospheric Lighting & Atelier Paper Grain
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  top: -15%;
  left: 55%;
  transform: translateX(-50%);
  width: 130vw;
  height: 110vh;
  background: radial-gradient(ellipse at 50% 35%, rgba(246, 238, 227, 0.95) 0%, rgba(241, 230, 215, 0.45) 50%, rgba(250, 247, 242, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

.atelier-grid-texture {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(70, 52, 38, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(70, 52, 38, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Page Container
   -------------------------------------------------------------------------- */
.page-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 28px 48px 24px;
  max-width: 1560px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .page-container {
    padding: 20px 28px 20px;
  }
}

@media (max-width: 640px) {
  .page-container {
    padding: 16px 20px 16px;
  }
}

/* --------------------------------------------------------------------------
   Top Minimalist Header
   -------------------------------------------------------------------------- */
.atelier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(70, 52, 38, 0.08);
}

.brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(197, 160, 89, 0.40);
  background: var(--vyraa-white);
  padding: 2px;
  box-shadow: 0 4px 14px rgba(45, 41, 37, 0.06);
}

.brand-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--vyraa-cocoa);
}

.brand-lineage {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  color: var(--vyraa-taupe);
  text-transform: uppercase;
}

.atelier-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(243, 237, 228, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.tag-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vyraa-gold);
  box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
  animation: vyraaPulse 2.4s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes vyraaPulse {
  0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(197, 160, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.tag-status-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--vyraa-cocoa);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .atelier-header-tag {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Haute-Couture Atelier Construction Stage
   -------------------------------------------------------------------------- */
.sketchbook-stage {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 40px;
  padding: 24px 0 20px;
  min-height: calc(100vh - 160px);
}

@media (max-width: 1024px) {
  .sketchbook-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px 0;
  }
}

/* --------------------------------------------------------------------------
   Editorial Manifesto (Integrated Brand Typography)
   -------------------------------------------------------------------------- */
.editorial-manifesto {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 540px;
}

.meta-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.meta-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vyraa-gold);
}

.meta-divider {
  width: 32px;
  height: 1px;
  background: var(--vyraa-sand);
}

.meta-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: var(--vyraa-taupe);
  text-transform: uppercase;
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.0vw, 4.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--vyraa-ink);
  display: flex;
  flex-direction: column;
}

.title-line-primary {
  font-weight: 600;
  color: var(--vyraa-ink);
}

.title-line-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--vyraa-cocoa);
}

.editorial-narrative {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #584d43;
  max-width: 460px;
}

/* --------------------------------------------------------------------------
   Minimalist Concierge Contact Strip (Unboxed)
   -------------------------------------------------------------------------- */
.concierge-minimal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(70, 52, 38, 0.10);
  width: fit-content;
}

.concierge-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--vyraa-taupe);
  text-transform: uppercase;
}

.concierge-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--vyraa-cocoa);
  font-size: 0.95rem;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(70, 52, 38, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.email-link:hover {
  color: var(--vyraa-ink);
  border-color: var(--vyraa-ink);
}

.arrow-glyph {
  transition: transform 0.2s ease;
}

.email-link:hover .arrow-glyph {
  transform: translate(2px, -2px);
}

.copy-email-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(70, 52, 38, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--vyraa-ink);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.copy-email-btn:hover {
  background: var(--vyraa-linen);
  border-color: var(--vyraa-sand);
}

/* --------------------------------------------------------------------------
   Dominant Garment Construction Hero Arena
   -------------------------------------------------------------------------- */
.wireframe-hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 580px;
  perspective: 1200px;
}

@media (max-width: 1024px) {
  .wireframe-hero-stage {
    min-height: 480px;
    order: -1;
  }
}

/* Live Atelier Construction HUD Bar */
.atelier-hud-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: calc(100% - 24px);
  max-width: 580px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 4px 16px rgba(70, 52, 38, 0.04);
  pointer-events: none;
}

.hud-phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--vyraa-ink);
  white-space: nowrap;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vyraa-gold);
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.8);
  animation: vyraaPulse 2s infinite ease-in-out;
}

.hud-label {
  color: var(--vyraa-taupe);
  font-size: 0.62rem;
  font-weight: 600;
}

.hud-value {
  color: var(--vyraa-cocoa);
  font-weight: 800;
  transition: color 0.3s ease;
}

.hud-specs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--vyraa-taupe);
  white-space: nowrap;
}

.hud-spec-sep {
  color: var(--vyraa-sand);
}

@media (max-width: 640px) {
  .atelier-hud-bar {
    width: calc(100% - 24px);
    max-width: 360px;
    justify-content: center;
    padding: 3px 8px;
    top: 2px;
  }
  .hud-label {
    display: none;
  }
  .hud-phase-chip {
    font-size: 0.60rem;
    letter-spacing: 0.08em;
  }
  .hud-specs-chip {
    display: none;
  }
}

/* Floating Drafting Geometry Behind the Garment */
.drafting-guides {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}

.guide-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(197, 160, 89, 0.22);
}

.guide-circle-lg {
  width: min(88%, 560px);
  aspect-ratio: 1 / 1;
  animation: vyraaDraftRotate 90s linear infinite;
}

.guide-circle-sm {
  width: min(58%, 360px);
  aspect-ratio: 1 / 1;
  border-style: dotted;
  border-color: rgba(70, 52, 38, 0.14);
  animation: vyraaDraftRotateRev 60s linear infinite;
}

.guide-axis-h {
  position: absolute;
  width: 94%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.20), transparent);
}

.guide-axis-v {
  position: absolute;
  height: 94%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(197, 160, 89, 0.20), transparent);
}

.guide-diagonal-1 {
  position: absolute;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.10), transparent);
  transform: rotate(45deg);
}

.guide-diagonal-2 {
  position: absolute;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.10), transparent);
  transform: rotate(-45deg);
}

/* Full Construction Canvas */
.wireframe-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  height: 100%;
  max-height: 720px;
  display: block;
  pointer-events: auto;
  filter: drop-shadow(0 16px 32px rgba(70, 52, 38, 0.07));
}

/* Floating Sketch Annotations */
.sketch-annotations {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 3;
}

.sketch-label {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--vyraa-taupe);
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(250, 247, 242, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 4px;
  border: 1px solid rgba(70, 52, 38, 0.08);
}

.label-tl { top: 44px; left: 8px; }
.label-tr { top: 44px; right: 8px; }
.label-bl { bottom: 8px; left: 8px; }
.label-br { bottom: 8px; right: 8px; color: var(--vyraa-gold); }

@media (max-width: 640px) {
  .label-tl, .label-tr, .label-bl { display: none; }
  .label-br {
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    font-size: 0.60rem;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Ultra-Minimalist Atelier Footer
   -------------------------------------------------------------------------- */
.atelier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(70, 52, 38, 0.08);
  font-size: 0.75rem;
  color: #7b7065;
}

.footer-segment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--vyraa-ink);
}

.footer-sep {
  color: var(--vyraa-sand);
}

.footer-company {
  color: var(--vyraa-taupe);
  letter-spacing: 0.06em;
}

.footer-status {
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #928577;
}

@media (max-width: 640px) {
  .atelier-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--vyraa-dark);
  color: var(--vyraa-ivory);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(197, 160, 89, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 1000;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .tag-status-dot {
    animation: none !important;
  }

  .guide-circle-lg,
  .guide-circle-sm {
    animation: none !important;
  }
}
