/* CartoCollage — dark velvet / ink / gold */

:root {
  --ink: #0c0a12;
  --ink-soft: #14111c;
  --velvet: #1a1525;
  --velvet-lift: #231c32;
  --mist: #8a8299;
  --moon: #c9c2d4;
  --parchment: #e8e2d6;
  --gold: #c9a84c;
  --gold-soft: #d4b86a;
  --gold-dim: rgba(201, 168, 76, 0.35);
  --rose-ink: #a67f8e;
  --line: rgba(201, 168, 76, 0.18);
  --radius: 12px;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--moon);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--parchment);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--gold-soft);
}

.logo-mark {
  color: var(--gold);
  font-size: 0.95em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--mist);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--parchment);
}

.nav-cta {
  color: var(--ink) !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: var(--ink) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.25rem;
  height: 2.25rem;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0.35rem;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--parchment);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 70%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(201, 168, 76, 0.12), transparent 55%),
    radial-gradient(ellipse at 70% 20%, rgba(166, 127, 142, 0.1), transparent 50%);
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); opacity: 0.9; }
  to { transform: translate(3%, 4%) scale(1.05); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--parchment);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}

.hero-tagline {
  max-width: 36rem;
  color: var(--mist);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), filter 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8943f);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.22);
}

.btn-primary:hover {
  color: var(--ink);
  filter: brightness(1.06);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--parchment);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold-dim);
  color: var(--gold-soft);
  background: rgba(201, 168, 76, 0.06);
}

.hero-domain {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.7;
}

.hero-ornament {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  color: var(--gold);
  opacity: 0.85;
  animation: float-book 7s ease-in-out infinite;
}

.hero-ornament svg {
  width: min(220px, 55vw);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

@keyframes float-book {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.5s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 5.5rem 1.5rem;
  position: relative;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 500;
  color: var(--parchment);
  line-height: 1.2;
  margin-top: 0.35rem;
}

.section-lead {
  margin-top: 1rem;
  color: var(--mist);
  font-size: 1.05rem;
}

/* About */
.about {
  background: linear-gradient(180deg, var(--ink) 0%, var(--velvet) 50%, var(--ink-soft) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about-prose p {
  margin-bottom: 1.25rem;
  color: var(--moon);
}

.about-prose .bilingual {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--rose-ink);
  line-height: 1.8;
}

.about-card {
  background: var(--velvet-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.about-card blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--parchment);
  margin-bottom: 1.75rem;
}

.ethos-list {
  list-style: none;
}

.ethos-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  color: var(--mist);
}

.ethos-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.55rem;
  top: 0.45rem;
}

/* How */
.how {
  background: var(--ink);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}

.step {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s;
}

.step:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  background: var(--velvet);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.65rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.65;
}

/* Features */
.features {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.06), transparent 55%),
    var(--velvet);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.75rem 1.5rem;
  background: rgba(12, 10, 18, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s;
}

.feature:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
  line-height: 1;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.55rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--mist);
}

/* Contact */
.contact {
  background: var(--ink);
  padding-bottom: 6rem;
}

.contact-inner {
  text-align: center;
}

.contact-mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.contact-mail:hover {
  color: var(--parchment);
  border-bottom-color: var(--gold-dim);
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--mist);
}

.contact-note strong {
  color: var(--moon);
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  background: var(--ink-soft);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--parchment);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.footer-tag {
  font-size: 0.85rem;
  color: var(--mist);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(138, 130, 153, 0.75);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Responsive */
@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
    text-align: center;
  }

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

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

  .hero-ornament {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero-ornament svg {
    width: 140px;
  }

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

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 17, 28, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.5rem 1.25rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .hero {
    padding: 2.5rem 1.25rem 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up,
  .hero-glow,
  .hero-ornament,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
