/* ========================================================================
   THE SILK ROAD CONSULTING — STYLES (Polished)
   ======================================================================== */

html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'cv01' on, 'cv11' on;
  letter-spacing: -0.005em;
}
::selection { background: #C9974A; color: #0C0A08; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0C0A08; }
::-webkit-scrollbar-thumb { background: #1C1814; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C9974A; }

/* ─────────── TYPOGRAPHY SYSTEM ─────────── */

/* Serif headlines — tighter, editorial */
.font-serif {
  letter-spacing: -0.025em;
  font-feature-settings: 'liga' on, 'dlig' on;
}
.font-serif.italic, .italic.font-serif { letter-spacing: -0.02em; }

/* Larger headline weights tighter */
.font-serif[class*="text-5xl"],
.font-serif[class*="text-6xl"],
.font-serif[class*="text-7xl"],
.font-serif[class*="text-8xl"] {
  letter-spacing: -0.035em;
}

/* Tabular numbers for pricing — keeps columns aligned */
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' on, 'lnum' on;
}

/* Eyebrow / label refinement — Manrope handles caps tracking better than Inter */
.eyebrow {
  font-weight: 500;
  letter-spacing: 0.25em;
  font-size: 12px;
  text-transform: uppercase;
  font-feature-settings: 'ss01' on;
}

/* Bump text sizes ~10% — improve readability */
.text-xs { font-size: 13px !important; }
.text-\[10px\] { font-size: 11px !important; }
.text-\[11px\] { font-size: 12px !important; }

/* Body text refinement */
p { letter-spacing: -0.005em; }

/* Number sizes — prices, stats — tabular + tighter */
.font-serif.text-3xl,
.font-serif.text-4xl {
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' on, 'lnum' on, 'liga' on;
}

/* ─────────── FADE-IN ANIMATIONS ─────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger child reveals when parent visible */
.fade-in.visible > * { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-in.visible > *:nth-child(1) { animation-delay: 0.05s; }
.fade-in.visible > *:nth-child(2) { animation-delay: 0.12s; }
.fade-in.visible > *:nth-child(3) { animation-delay: 0.19s; }
.fade-in.visible > *:nth-child(4) { animation-delay: 0.26s; }
.fade-in.visible > *:nth-child(5) { animation-delay: 0.33s; }
.fade-in.visible > *:nth-child(6) { animation-delay: 0.40s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────── NAV ─────────── */
#nav.scrolled {
  background: rgba(12, 10, 8, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(28, 24, 20, 0.8);
}

/* ─────────── ORBS (animated bg) ─────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  animation: drift 20s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #C9974A 0%, transparent 70%);
  top: 20%; right: -15%;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #8B1A2E 0%, transparent 70%);
  top: 60%; left: -10%;
  animation-delay: -7s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #C9974A 0%, transparent 70%);
  bottom: 10%; right: 30%;
  animation-delay: -14s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.animate-pulse-slow { animation: pulse-slow 3s ease-in-out infinite; }

/* ─────────── HERO IMAGE (cinematic ken-burns + parallax) ─────────── */
.hero-img {
  animation: kenburns 28s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}
@keyframes kenburns {
  0% { transform: scale(1.04) translate(0%, 0%); }
  100% { transform: scale(1.10) translate(-1.5%, -1%); }
}

/* Hero vignette — adds depth */
.hero-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(12, 10, 8, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ─────────── OS DIAGRAM ─────────── */
.os-node {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: #161210;
  border: 1px solid rgba(201, 151, 74, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.os-node:hover {
  border-color: #C9974A;
  background: #1C1814;
  box-shadow: 0 0 32px rgba(201, 151, 74, 0.3);
  transform: scale(1.08);
}
.os-node.os-core {
  width: 170px;
  height: 170px;
  background: linear-gradient(135deg, #1C1814 0%, #161210 100%);
  border: 2px solid #C9974A;
  box-shadow: 0 0 50px rgba(201, 151, 74, 0.25);
  animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 50px rgba(201, 151, 74, 0.25); }
  50% { box-shadow: 0 0 70px rgba(201, 151, 74, 0.4); }
}
.os-node.os-core:hover {
  border-color: #E8C27A;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 80px rgba(201, 151, 74, 0.5);
}

#osDetail.show {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  .os-node { width: 100px; height: 100px; padding: 0.5rem; }
  .os-node.os-core { width: 140px; height: 140px; }
  .os-node .font-serif { font-size: 0.8rem; }
}

/* ─────────── VENTURE CARDS ─────────── */
.venture-card {
  background: #161210;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.venture-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to left, #C9974A, transparent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.venture-card:hover {
  background: #1C1814;
  transform: translateY(-2px);
}
.venture-card:hover::before { width: 100%; }

/* ─────────── POSITIONING MATRIX ─────────── */
.matrix-dot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translate(-50%, 50%);
}
.matrix-dot .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.matrix-dot .label {
  font-size: 11px;
  color: #D4B896;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.matrix-dot:hover .dot { transform: scale(1.3); }

/* ─────────── SERVICE CARDS ─────────── */
.service-card {
  background: #161210;
  padding: 1.75rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #C9974A, transparent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  background: #1C1814;
  transform: translateY(-2px);
}
.service-card:hover::before { width: 60%; }

/* Refined badges */
.badge-signature, .badge-specialized, .badge-premium {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-family: 'Manrope', sans-serif;
}
.badge-signature {
  background: rgba(201, 151, 74, 0.12);
  color: #E8C27A;
  border: 1px solid rgba(201, 151, 74, 0.35);
}
.badge-specialized, .badge-premium {
  background: rgba(139, 26, 46, 0.85);
  color: #F5EFE6;
  border: 1px solid rgba(139, 26, 46, 0.3);
}

/* ─────────── TABS ─────────── */
.tab-btn { cursor: pointer; }
.tab-btn.active {
  border-bottom-color: #C9974A;
  color: #C9974A;
}
.tab-panel { display: none; }
.tab-panel.active {
  display: grid;
  animation: fadeTab 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────── PRICING CARDS ─────────── */
.pricing-card {
  position: relative;
  background: #161210;
  border-style: solid;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

.pricing-header {
  text-align: center;
  padding: 0.85rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  font-family: 'Manrope', sans-serif;
}

.pricing-li, .pricing-li-crimson {
  position: relative;
  padding-left: 1.5rem;
  font-size: 14px;
  color: #D4B896;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.pricing-li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(201, 151, 74, 0.55);
}
.pricing-li-crimson::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8B1A2E;
}

.pricing-footer {
  border-top-width: 1px;
  border-top-style: solid;
  padding-top: 1.5rem;
  display: flex;
  align-items: baseline;
}

/* ─────────── WARMTH — subtle glow on hover ─────────── */
.service-card:hover,
.venture-card:hover {
  box-shadow: 0 8px 24px -8px rgba(201, 151, 74, 0.15),
              0 0 0 1px rgba(201, 151, 74, 0.1);
}

.task-nav:hover {
  box-shadow: 0 4px 12px -4px rgba(201, 151, 74, 0.2);
}

/* Pricing card popular/white-glove badges — fixed positioning */
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: 0.28em;
  font-weight: 600;
  white-space: nowrap;
  z-index: 30;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Pricing numbers should feel engineered */
.pricing-card .font-serif {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' on, 'lnum' on;
  letter-spacing: -0.035em;
}

/* ─────────── MULTI-STEP FORM ─────────── */
.form-step { display: none; }
.form-step.active {
  display: block;
  animation: stepIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-dot {
  display: block;
  border-radius: 1px;
  transition: background 0.3s ease;
}
.step-dot.active { background: #C9974A; }

/* Radio tiles (qualification) */
.radio-tile, .radio-tile-wide {
  position: relative;
  cursor: pointer;
  display: block;
}
.radio-tile input, .radio-tile-wide input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-tile span, .radio-tile-wide span {
  display: block;
  padding: 0.85rem 1rem;
  background: #0C0A08;
  border: 1px solid #1C1814;
  color: #D4B896;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
}
.radio-tile-wide span {
  text-align: left;
  padding-left: 1.25rem;
}
.radio-tile:hover span, .radio-tile-wide:hover span {
  border-color: #7A6E64;
  color: #F5EFE6;
}
.radio-tile input:checked ~ span,
.radio-tile-wide input:checked ~ span {
  border-color: #C9974A;
  background: rgba(201, 151, 74, 0.1);
  color: #E8C27A;
}

/* Form inputs */
.form-input {
  width: 100%;
  background: #0C0A08;
  border: 1px solid #1C1814;
  color: #F5EFE6;
  padding: 0.85rem 1rem;
  font-size: 14px;
  transition: border-color 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: #C9974A;
}
.form-input::placeholder { color: #7A6E64; }

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9974A' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ─────────── TASK NAVIGATION ─────────── */
.task-nav {
  background: #0C0A08;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.task-nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #C9974A, transparent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.task-nav:hover { background: #161210; }
.task-nav:hover::before { width: 80%; }
.task-nav-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.75rem;
  color: #7A6E64;
  flex-shrink: 0;
}
.task-nav-label {
  font-size: 0.875rem;
  color: #D4B896;
  letter-spacing: -0.005em;
  flex: 1;
  font-weight: 500;
  transition: color 0.3s ease;
}
.task-nav:hover .task-nav-label { color: #E8C27A; }
.task-nav-arrow {
  font-size: 0.875rem;
  color: #7A6E64;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.task-nav:hover .task-nav-arrow {
  transform: translateX(4px);
  color: #C9974A;
}

/* ─────────── VENTURE LINK (external website) ─────────── */
.venture-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #C9974A;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  text-transform: lowercase;
  transition: color 0.3s ease;
  position: relative;
}
.venture-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9974A;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.venture-link:hover {
  color: #E8C27A;
}
.venture-link:hover::after { width: 100%; }
.venture-link-arrow {
  font-size: 10px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.venture-link:hover .venture-link-arrow {
  transform: translate(2px, -2px);
}

/* ─────────── CONTACT ROW (Email · Location · Entity) ─────────── */
.contact-row {
  border-top: 1px solid rgba(201, 151, 74, 0.25);
  border-bottom: 1px solid rgba(201, 151, 74, 0.25);
}

.contact-cell {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .contact-cell-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(201, 151, 74, 0.2);
  }
}

.contact-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #C9974A;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #F5EFE6;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Email is the longest value — sized to fit cleanly on one line */
a.contact-value {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.contact-value:hover {
  color: #E8C27A;
}

.contact-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: #7A6E64;
  letter-spacing: 0.05em;
  font-style: italic;
  margin-top: 0.25rem;
}

/* ─────────── REDUCED MOTION ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
  .orb { animation: none; }
}

/* ─────────── CTA BUTTONS — refined hover ─────────── */
a.bg-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
a.bg-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
a.bg-gold:hover::before {
  transform: translateX(100%);
}

/* Section eyebrow numbering ornament */
.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: #7A6E64;
  margin-right: 0.75rem;
}

/* Subtle text divider for editorial feel */
.editorial-divider {
  display: inline-block;
  width: 1px;
  height: 0.75em;
  background: rgba(201, 151, 74, 0.4);
  margin: 0 0.6em;
  vertical-align: middle;
}
