:root {
  --paper: #FAFAFA;
  --ink: #12151A;
  --ink-soft: #4A4F58;
  --muted: #8A8F98;
  --line: #E7E7E5;
  --accent: #2451FF;
  --accent-soft: #EAEFFF;
  --rose: #E7B8C2;
  --rose-soft: #FBF1F3;
 
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
 
  --nav-h: 3.25rem;
  --container: 1160px;
}
 


/*quick adjustment*/
[hidden] {
  display: none !important;
}



* { margin: 0; padding: 0; box-sizing: border-box; }
 
html { scroll-behavior: smooth; }
 
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
 
a { color: inherit; }
 
img { max-width: 100%; display: block; }
 
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
 
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
 
/* ============ Background blobs ============ */
.bg-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.blob-1 { width: 320px; height: 320px; background: var(--accent-soft); top: 4rem; right: -6rem; }
.blob-2 { width: 280px; height: 280px; background: var(--rose-soft); bottom: -3rem; left: -4rem; }
.blob-3 { width: 220px; height: 220px; background: #F4F1EA; top: 45%; left: 2%; opacity: 0.4; }
 
@media (min-width: 900px) {
  .blob-1 { width: 480px; height: 480px; }
  .blob-2 { width: 420px; height: 420px; }
  .blob-3 { width: 320px; height: 320px; }
}
 
/* ============ Top info bar ============ */
.navinfo {
  width: 100%;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.navinfo a { color: var(--rose); text-decoration: underline; }
 
/* ============ Nav ============ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: rgba(250, 250, 250, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(.16,1,.3,1);
}
nav.scrolled {
  background: rgba(250, 250, 250, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  height: 1.5rem; /* Set to match your font size or header height */
  width: auto;    /* Preserves original aspect ratio */
  object-fit: contain;
}



.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
 
#navLinks {
  list-style: none;
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem 2.25rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.06);
}
#navLinks.open { transform: translateX(0); }
#navLinks li a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 500;
}
#navLinks .nav-cta {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

#navLinks .nav-cta:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}


 
@media (min-width: 860px) {
  nav { padding: 1.25rem 4vw; }
  nav.scrolled { padding: 0.85rem 4vw; }
  .nav-toggle { display: none; }
  #navLinks {
    position: static;
    height: auto; width: auto;
    flex-direction: row;
    align-items: center;
    gap: 2.2rem;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
  }
  #navLinks li a { font-size: 0.9rem; font-weight: 400; position: relative; }
  #navLinks li a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
  }
  #navLinks li a:not(.nav-cta):hover::after { width: 100%; }
}
 





/* ============ Layout helpers ============ */
main { position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
/* ============================================================
   Analysis intake flow — gender + photo, single page, dynamic
   ============================================================ */

.flow {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem;
}

.flow-card {
  width: 100%;
  max-width: 30rem;
  position: relative;
}

/* progress */
.flow-progress {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.flow-progress-track {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.flow-progress-fill {
  height: 100%;
  width: 50%;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(.16,1,.3,1);
}
.flow-progress-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

/* panels — only one visible, cross-fade + slight rise on entry */
.flow-panel {
  display: none;
}
.flow-panel.is-active {
  display: block;
  animation: flowIn 0.5s cubic-bezier(.16,1,.3,1);
}
@keyframes flowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.flow-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.flow-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.flow-sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 30rem;
  margin-bottom: 2.25rem;
}

/* step 1 — gender */
.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.gender-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 2rem 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.gender-card:hover {
  border-color: var(--ink-soft);
  transform: translateY(-2px);
}
.gender-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.gender-mark {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.gender-card.is-selected .gender-mark {
  background: var(--accent);
  color: #fff;
}
.gender-label {
  font-size: 0.92rem;
  font-weight: 500;
}

/* step 2 — photo */
.photo-tabs {
  display: inline-flex;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.photo-tab {
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.photo-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.photo-stage { margin-bottom: 1.75rem; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 2.75rem 1.5rem;
  border: 1.5px dashed var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-icon { color: var(--accent); }
.dropzone-title { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.dropzone-sub { font-size: 0.78rem; color: var(--muted); }

.camera-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
}
.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.camera-oval {
  position: absolute;
  inset: 12% 30%;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  pointer-events: none;
}
.camera-hint {
  font-size: 0.78rem;
  color: var(--muted);
}
.camera-shutter {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}
.camera-shutter::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink);
  transition: background 0.15s ease;
}
.camera-shutter:hover::after { background: var(--accent); }
.camera-shutter:active { transform: scale(0.92); }






.photo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.photo-preview img {
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.preview-clear {
  border: none;
  background: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* nav buttons */
.flow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.flow-back {
  border: none;
  background: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.6rem 0.25rem;
}
.flow-back:hover { color: var(--ink); }
.flow-continue {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.flow-continue:not(:disabled):hover { background: var(--accent); border-color: var(--accent); }
.flow-continue:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (min-width: 640px) {
  .flow-card { max-width: 32rem; }
}






















/* ============ Camera Placeholder ============ */
.camera-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 1.25rem;
  box-sizing: border-box;
}

.camera-placeholder-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.camera-placeholder:hover .camera-placeholder-icon-wrap {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.camera-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.camera-placeholder-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.camera-placeholder-sub {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 18rem;
  line-height: 1.45;
}

.camera-retry-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.camera-retry-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}











