/* ============================================
   221B — Sherlock Holmes Landing Page
   Theme: Victorian Noir / Detective Elegance
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0c0b0a;
  --bg-secondary: #141210;
  --bg-card: #1a1816;
  --text-primary: #e8e2d9;
  --text-secondary: #9a948a;
  --text-muted: #5c5750;
  --accent: #c9a96e;
  --accent-dark: #8b7340;
  --border: rgba(201, 169, 110, 0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Grain Overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4vw;
  background: linear-gradient(to bottom, rgba(12,11,10,0.95) 0%, rgba(12,11,10,0) 100%);
  backdrop-filter: blur(8px);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid var(--accent);
  padding: 0.5rem 1.2rem;
  color: var(--accent) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-primary) !important;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8vw;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  max-width: 580px;
}

.hero-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) 0.3s forwards;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) 0.5s forwards;
}

.hero-title .line.accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  animation-delay: 0.7s;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) 1.1s forwards;
}

.btn-primary,
.btn-secondary {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid var(--accent);
  transition: all 0.3s var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.silhouette {
  width: 320px;
  height: 480px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201, 169, 110, 0.08) 30%,
    rgba(201, 169, 110, 0.15) 50%,
    rgba(201, 169, 110, 0.08) 70%,
    transparent 100%
  );
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150'%3E%3Cpath d='M50 10 C35 10 30 25 30 35 C25 38 20 45 22 55 C18 60 15 70 18 80 C15 90 12 110 15 130 L20 150 L80 150 L85 130 C88 110 85 90 82 80 C85 70 82 60 78 55 C80 45 75 38 70 35 C70 25 65 10 50 10Z' fill='white'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150'%3E%3Cpath d='M50 10 C35 10 30 25 30 35 C25 38 20 45 22 55 C18 60 15 70 18 80 C15 90 12 110 15 130 L20 150 L80 150 L85 130 C88 110 85 90 82 80 C85 70 82 60 78 55 C80 45 75 38 70 35 C70 25 65 10 50 10Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  opacity: 0;
  animation: fadeIn 1.5s var(--transition) 0.5s forwards;
}

.fog-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,169,110,0.06) 0%, transparent 60%);
  animation: pulse 6s ease-in-out infinite;
}

/* ---- Stats Strip ---- */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 8vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- Section Headers ---- */
.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}

/* ---- Cases ---- */
.cases {
  padding: 8rem 8vw;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition);
  cursor: default;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition);
}

.case-card:hover {
  border-color: rgba(201, 169, 110, 0.25);
  transform: translateY(-4px);
}

.case-card:hover::before {
  transform: scaleX(1);
}

.case-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.case-title {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.case-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Profile ---- */
.profile {
  padding: 8rem 8vw;
  background: var(--bg-secondary);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-visual {
  display: flex;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: 340px;
  height: 440px;
  border: 1px solid var(--border);
  padding: 1rem;
}

.profile-frame::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.profile-frame::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.profile-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201,169,110,0.1) 0%, rgba(201,169,110,0.05) 100%);
  position: relative;
  overflow: hidden;
}

.profile-image::after {
  content: 'SH';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  color: rgba(201, 169, 110, 0.15);
  letter-spacing: 0.1em;
}

.profile-content {
  max-width: 480px;
}

.profile-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.6;
}

.profile-details {
  margin-top: 2.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---- Method ---- */
.method {
  padding: 8rem 8vw;
}

.method-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.method-step {
  flex: 1;
  text-align: center;
  padding: 2rem;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.method-connector {
  width: 60px;
  align-self: center;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  position: relative;
}

.method-connector::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

/* ---- Contact ---- */
.contact {
  padding: 8rem 8vw;
  background: var(--bg-secondary);
  text-align: center;
}

.contact-content {
  max-width: 560px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 1.5rem 0 2.5rem;
  line-height: 1.8;
}

.contact-actions {
  margin-bottom: 3rem;
}

.contact-footer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-footer .divider {
  margin: 0 1rem;
  color: var(--border);
}

/* ---- Footer ---- */
.footer {
  padding: 3rem 8vw;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .method-steps {
    flex-direction: column;
  }

  .method-connector {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, var(--border), var(--accent), var(--border));
  }

  .method-connector::after {
    right: 50%;
    top: auto;
    bottom: -10px;
    transform: translateX(50%) rotate(90deg);
  }

  .stats-strip {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .stat-divider {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}
