/* ================================================
   THE CIPHER SOCIETY — Stylesheet
   ================================================ */

:root {
  --bg:        #0a0a0a;
  --bg-subtle: #111111;
  --fg:        #e8e4df;
  --fg-muted:  #8a8580;
  --accent:    #c4797a;
  --accent-dim:#9e5e5f;
  --serif:     'Cormorant Garamond', 'Georgia', serif;
  --sans:      'Inter', -apple-system, sans-serif;
  --max-width: 1100px;
  --space-xl:  clamp(80px, 12vw, 160px);
  --space-lg:  clamp(48px, 6vw, 80px);
  --space-md:  clamp(24px, 3vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}

/* ================================================
   NAV
   ================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 4vw, 48px);
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--fg);
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child  { bottom: 4px; }

.nav-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ================================================
   HERO
   ================================================ */

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-xl) clamp(24px, 4vw, 48px);
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-emblem {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0.7;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 36px;
}

.hero-description {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 48px;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ================================================
   BUTTON
   ================================================ */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--accent-dim);
  padding: 14px 36px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  cursor: pointer;
  background: transparent;
}

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

/* ================================================
   SECTIONS
   ================================================ */

.section {
  padding: var(--space-xl) 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

/* ================================================
   ABOUT
   ================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-lg);
  align-items: start;
}

.about-text p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-aside {
  border-left: 1px solid rgba(196, 121, 122, 0.2);
  padding-left: 28px;
}

.aside-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.aside-item:last-child { margin-bottom: 0; }

.aside-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.aside-value {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--fg);
}

/* ================================================
   DIVIDER
   ================================================ */

.divider {
  display: flex;
  justify-content: center;
  padding: 0 clamp(24px, 4vw, 48px);
}

.divider span {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 121, 122, 0.18), transparent);
}

/* ================================================
   EXPERIENCE
   ================================================ */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: var(--space-md);
}

.exp-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 36px 32px;
  transition: border-color 0.3s, background 0.3s;
}

.exp-card:hover {
  border-color: rgba(196, 121, 122, 0.25);
  background: rgba(196, 121, 122, 0.03);
}

.exp-number {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.exp-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.exp-card p {
  color: var(--fg-muted);
  font-size: 0.88rem;
}

.experience-note {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.experience-note p {
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ================================================
   WHAT TO EXPECT
   ================================================ */

.expect-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-lg);
  align-items: start;
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.expect-item {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.expect-item h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--fg);
}

.expect-item p {
  color: var(--fg-muted);
  font-size: 0.88rem;
}

.expect-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
}

.teaser-card {
  transform: rotate(-2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.teaser-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.teaser-card img {
  display: block;
  width: 100%;
  height: auto;
}

.teaser-caption {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ================================================
   TESTIMONIALS
   ================================================ */

.section-testimonials {
  padding: var(--space-lg) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.testimonial {
  border: none;
  padding: 0;
}

.testimonial p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 16px;
}

.testimonial cite {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ================================================
   PRICING
   ================================================ */

.pricing-content {
  max-width: 580px;
}

.pricing-price {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 300;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.2;
}

.pricing-per {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

.pricing-value {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  line-height: 1.7;
}

.pricing-includes {
  margin: 32px 0;
}

.pricing-includes ul {
  list-style: none;
  padding: 0;
}

.pricing-includes li {
  color: var(--fg-muted);
  font-size: 0.92rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-left: 20px;
  position: relative;
}

.pricing-includes li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.pricing-booking {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.pricing-booking .contact-email {
  font-family: var(--sans);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(196, 121, 122, 0.3);
  padding-bottom: 1px;
}

.pricing-footnote {
  color: var(--fg-muted);
  font-size: 0.78rem;
  opacity: 0.6;
  font-style: italic;
}

/* ================================================
   BETA
   ================================================ */

.beta-content {
  max-width: 680px;
}

.beta-content p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.beta-note {
  color: var(--accent) !important;
  font-style: italic;
}

/* ================================================
   CASE ACCESS
   ================================================ */

.case-access-content {
  max-width: 520px;
}

.case-access-content > p:first-child {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.case-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.case-input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.3s;
}

.case-input::placeholder {
  color: var(--fg-muted);
  opacity: 0.5;
}

.case-input:focus {
  border-color: var(--accent-dim);
}

.btn-submit {
  flex-shrink: 0;
}

.case-footnote {
  color: var(--fg-muted);
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ================================================
   CONTACT
   ================================================ */

.contact-content {
  max-width: 520px;
}

.contact-content > p:first-child {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--accent);
  border-bottom: 1px solid rgba(196, 121, 122, 0.3);
  padding-bottom: 4px;
  transition: border-color 0.3s;
  margin-bottom: 20px;
}

.contact-email:hover {
  border-color: var(--accent);
}

.contact-note {
  color: var(--fg-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ================================================
   FAQ
   ================================================ */

.faq-list {
  max-width: 740px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
  display: block;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color 0.3s;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 22px;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover { color: var(--accent); }

.faq-answer {
  padding: 0 0 22px;
}

.faq-answer p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--accent);
  border-bottom: 1px solid rgba(196, 121, 122, 0.3);
  transition: border-color 0.3s;
}

.faq-answer a:hover { border-color: var(--accent); }

/* ================================================
   FOOTER
   ================================================ */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 0;
  margin-top: var(--space-lg);
}

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

.footer-mark {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* ================================================
   SCROLL REVEAL
   ================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about-aside {
    border-left: none;
    border-top: 1px solid rgba(196, 121, 122, 0.2);
    padding-left: 0;
    padding-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .aside-item { margin-bottom: 0; }

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

  .expect-layout {
    grid-template-columns: 1fr;
  }

  .expect-teaser {
    flex-direction: row;
    gap: 24px;
  }

  .teaser-card {
    max-width: 200px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .nav-toggle { display: block; z-index: 101; }

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

  .expect-teaser {
    flex-direction: column;
    align-items: center;
  }

  .teaser-card {
    max-width: 180px;
  }

  .case-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .about-aside {
    grid-template-columns: 1fr;
  }
}
