/* ============================================================
   FIVATION — Landing page
   ============================================================ */

.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-ink { background: var(--ink); color: var(--cream-text); }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: var(--cream-text); }
.section-ink .text-muted { color: var(--cream-muted); }

/* Section header */
.section-head { max-width: 760px; margin-bottom: 3.25rem; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 1rem 0 0.75rem; }
.section-head .lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-muted); }
.section-ink .section-head .lede { color: var(--cream-muted); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream-text);
  padding: clamp(8rem, 13vw, 11rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::before {
  /* faint horizon line — the far side of the bridge */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,154,59,0.25) 30%, rgba(199,154,59,0.25) 70%, transparent);
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero-title {
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--cream-text);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--gold-bright); }
.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--cream-muted);
  max-width: 36ch;
  margin-bottom: 2.25rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  gap: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-3);
}
.stat .stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-bright);
}
.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-top: 0.5rem;
}

/* Hero arch visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 115%; aspect-ratio: 1;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(199,154,59,0.06) 38%, transparent 68%);
}
.hero-arch {
  position: relative;
  width: min(420px, 80%);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(199,154,59,0.28));
  animation: archFloat 7s ease-in-out infinite;
}
@keyframes archFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-arch-caption {
  position: absolute;
  bottom: -0.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  white-space: nowrap;
}

/* ---------------- Ledger strip ---------------- */
.ledger {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
}
.ledger-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide: 1px;
}
.ledger-item {
  padding: 1.6rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.ledger-item + .ledger-item { border-left: 1px solid var(--ink-3); padding-left: 2rem; }
.ledger-item .l-key { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); }
.ledger-item .l-val { color: var(--cream-text); font-size: 1rem; }

/* ---------------- Services ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(199,154,59,0.4); }
.service-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-deep);
  line-height: 1;
  display: block;
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.service-card .card-description { margin-bottom: 1.25rem; }
.service-features { list-style: none; border-top: 1px solid var(--paper-3); padding-top: 1rem; }
.service-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.service-features li::before {
  content: "";
  position: absolute; left: 0; top: 0.85rem;
  width: 0.7rem; height: 0.7rem;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------------- Two modes ---------------- */
.modes-split {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 2.5rem;
}
.modes-bar { flex: 1; height: 6px; border-radius: 999px; overflow: hidden; display: flex; }
.modes-bar .seg-validate { width: 90%; background: rgba(171,161,137,0.55); }
.modes-bar .seg-build { width: 10%; background: var(--gold-bright); }

.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mode-col {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-top: 3px solid var(--cream-muted);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.mode-col.mode-col-build { border-top-color: var(--gold); }
.mode-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  background: rgba(171,161,137,0.14);
  color: var(--cream-muted);
}
.mode-tag.mode-tag-build { background: var(--gold-glow); color: var(--gold-bright); }
.mode-col h3 { color: var(--cream-text); font-size: 1.6rem; margin-bottom: 0.75rem; }
.mode-col h3 em { font-style: italic; color: var(--gold-bright); }
.mode-col p { color: var(--cream-muted); flex: 1; margin-bottom: 1.5rem; line-height: 1.65; }
.mode-col p em { color: var(--cream-text); font-style: italic; }
.mode-col-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------------- Books ---------------- */
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.book-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Typographic book cover */
.book-cover {
  position: relative;
  aspect-ratio: 3 / 4.4;
  background: var(--ink);
  border-radius: 3px 5px 5px 3px;
  box-shadow: var(--shadow-md), inset 6px 0 12px -8px rgba(0,0,0,0.6);
  padding: 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.book-cover::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: rgba(244,239,227,0.12); }
.book-cover .bc-rule { height: 1px; background: var(--gold); opacity: 0.8; margin-bottom: 0.6rem; }
.book-cover .bc-title { font-family: var(--font-serif); font-size: 0.8rem; line-height: 1.12; color: var(--cream-text); font-weight: 500; }
.book-cover .bc-foot { margin-top: auto; font-family: var(--font-mono); font-size: 0.46rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); }
.book-cover .bc-sub { font-family: var(--font-mono); font-size: 0.46rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-muted); margin-top: 0.5rem; }
.book-cover-link { text-decoration: none; }
.book-cover-link .bc-title { line-height: 1.04; font-size: 0.92rem; }
.book-cover.cover-alt { background: #0a0a0a; }
.book-cover.cover-navy { background: linear-gradient(158deg, #16263c 0%, #0a1119 70%); }
.book-cover.cover-navy .bc-rule { background: var(--gold-bright); }
.book-cover.cover-navy .bc-foot { color: var(--gold-bright); }

/* Real / photographic book cover */
.book-cover-photo { display: block; align-self: start; border-radius: 3px 5px 5px 3px; }
.book-cover-photo img {
  width: 100%;
  display: block;
  border-radius: 3px 5px 5px 3px;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.book-card:hover .book-cover-photo img { transform: translateY(-3px); }

/* Flat book cover (front-on KDP cover) */
.book-cover-flat { display: block; align-self: start; position: relative; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-lg); overflow: hidden; transition: transform 0.2s; }
.book-cover-flat img { width: 100%; display: block; border-radius: 2px 5px 5px 2px; }
.book-cover-flat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,0.24), rgba(0,0,0,0.04) 55%, transparent); pointer-events: none; }
.book-cover-flat::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1.5px; background: rgba(255,255,255,0.22); pointer-events: none; z-index: 1; }
.book-card:hover .book-cover-flat { transform: translateY(-3px); }

/* Network of experts panel */
.network-panel { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1.9rem 2rem; box-shadow: var(--shadow-sm); }
.np-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 1.4rem; }
.np-list { list-style: none; position: relative; }
.np-list::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 1px; background: var(--paper-3); }
.np-list li { position: relative; display: flex; gap: 1.1rem; padding: 0.65rem 0; }
.np-dot { flex-shrink: 0; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); position: relative; z-index: 1; }
.np-body strong { display: block; font-size: 0.98rem; font-weight: 600; color: var(--ink-text); }
.np-body span { font-size: 0.85rem; color: var(--ink-muted); }

/* Email-first contact */
.contact-cta-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.contact-line { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.35; color: var(--cream-text); max-width: 24ch; }

.book-body { display: flex; flex-direction: column; }
.book-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.6rem; }
.book-body .card-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.book-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-muted); margin-bottom: 0.85rem; }
.book-description { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }
.book-link { align-self: flex-start; }

/* ---------------- Guide CTA ---------------- */
.cta-section { position: relative; background: var(--ink); color: var(--cream-text); padding: clamp(4rem, 7vw, 6rem) 0; overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%);
}
.cta-content { position: relative; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 3rem; align-items: center; }
.cta-content h2 { color: var(--cream-text); margin-bottom: 1rem; }
.cta-content h2 em { font-style: italic; color: var(--gold-bright); }
.cta-content .lede { color: var(--cream-muted); font-size: 1.1rem; max-width: 48ch; }
.cta-action { justify-self: end; }

/* ---------------- About ---------------- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text .lede { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.35; color: var(--ink-text); margin-bottom: 1.25rem; }
.about-text p { color: var(--ink-muted); margin-bottom: 1rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1.75rem; }
.feature { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-text); }
.feature .tick { width: 1.3rem; height: 1.3rem; flex-shrink: 0; color: var(--gold-deep); }

.about-figure { position: relative; }
.image-placeholder {
  width: 100%; aspect-ratio: 4/3.4; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper) 12px 24px);
  border: 1px solid var(--paper-3);
  display: flex; align-items: center; justify-content: center;
}
.image-placeholder span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------------- Contact ---------------- */
.contact-content { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 3.5rem; }
.contact-form-wrapper {
  background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.contact-info { display: flex; flex-direction: column; gap: 1.75rem; padding-top: 0.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .info-icon { width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: var(--gold-glow); color: var(--gold-bright); border: 1px solid rgba(199,154,59,0.3); }
.info-item h4 { color: var(--cream-text); font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.info-item p { color: var(--cream-muted); font-size: 0.9rem; }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink); border-top: 1px solid var(--ink-3); padding: 4rem 0 1.75rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.footer-logo .logo-img { height: 30px; width: auto; }
.footer-logo .logo-word { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--cream-text); }
.footer-section p { color: var(--cream-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-section h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1.1rem; font-weight: 400; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: var(--cream-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.18s; }
.footer-links a:hover { color: var(--gold-bright); }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 2.4rem; height: 2.4rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--cream-muted);
  transition: all 0.2s;
}
.social-link:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.social-link .icon { width: 1.1rem; height: 1.1rem; }
.footer-bottom { padding-top: 1.75rem; border-top: 1px solid var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a { color: var(--cream-muted); font-size: 0.8rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; min-height: 240px; }
  .hero-arch { width: min(280px, 62%); }
  .hero-subtitle { max-width: none; }
  .services-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .cta-content { grid-template-columns: 1fr; gap: 1.75rem; }
  .cta-action { justify-self: start; }
  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-item + .ledger-item { border-left: none; border-top: 1px solid var(--ink-3); padding-left: 0; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .about-features { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 1fr; }
  .book-cover, .book-cover-photo, .book-cover-flat { width: 124px; }
  .footer-content { grid-template-columns: 1fr; }
}
