/* Man on the Moon — shared styles (dark, warm, masculine) */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600&display=swap');

:root {
  /* deep navy base, soft lilac accent (Maven-inspired) */
  --bg:           oklch(0.17 0.045 278);  /* deep navy */
  --bg-deep:      oklch(0.13 0.045 278);  /* darker block */
  --bg-warm:      oklch(0.22 0.045 278);  /* raised block */
  --bg-card:      oklch(0.21 0.045 278);  /* card surface */

  --ink:          oklch(0.975 0.005 280); /* cool bone */
  --ink-2:        oklch(0.80 0.012 278);
  --ink-3:        oklch(0.62 0.020 278);
  --ink-4:        oklch(0.46 0.020 278);

  --line:         oklch(0.30 0.030 278);
  --line-strong:  oklch(0.42 0.035 278);

  --accent:       oklch(0.85 0.085 325);  /* soft lilac / mauve */
  --accent-deep:  oklch(0.76 0.110 322);
  --accent-soft:  oklch(0.32 0.060 320);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max:    1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* -------- typography -------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink-3);
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before { display: none; }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.h-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.h-3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  margin: 0;
}
.it { font-style: italic; color: var(--accent); }

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 56ch;
  text-wrap: pretty;
}
.p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.p + .p { margin-top: 14px; }
.small {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

/* -------- layout -------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding-block: clamp(72px, 9vw, 140px); }
.section-tight { padding-block: clamp(56px, 6vw, 96px); }
.hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.bg-deep { background: var(--bg-deep); }
.bg-warm { background: var(--bg-warm); }

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

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

.btn-accent {
  background: var(--accent);
  color: oklch(0.18 0.01 60);
}
.btn-accent:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-text:hover { color: var(--accent); border-color: var(--accent); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* -------- nav -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg, .brand .brand-mark { width: 96px; height: 96px; object-fit: contain; }
.nav .brand .brand-mark { width: 96px; height: 96px; }
.nav .brand { flex-shrink: 0; }
.brand-name {
  font-family: var(--serif);
  white-space: nowrap;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name em { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-links a[aria-current="page"] {
  font-weight: 500;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

/* -------- footer -------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
}
.footer a:hover { color: var(--accent); }
.footer-tagline {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  margin: 18px 0 0;
  max-width: 22ch;
  color: var(--ink);
}
.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* -------- imagery placeholder -------- */
.img-ph {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      color-mix(in oklab, var(--ink) 6%, transparent) 22px 23px
    ),
    var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  color: var(--ink-3);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 200px;
}
.img-ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  color: var(--ink-3);
}

/* -------- guide PDF mockup -------- */
.guide-mockup {
  perspective: 1600px;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
.guide-paper {
  width: 86%;
  max-width: 420px;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  transform: rotate(-1.4deg);
  box-shadow:
    0 1px 1px rgba(31, 22, 28, 0.04),
    0 2px 4px rgba(31, 22, 28, 0.05),
    0 14px 28px rgba(31, 22, 28, 0.10),
    0 40px 70px rgba(31, 22, 28, 0.14);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.guide-paper:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    0 2px 2px rgba(31, 22, 28, 0.05),
    0 6px 10px rgba(31, 22, 28, 0.06),
    0 22px 40px rgba(31, 22, 28, 0.12),
    0 56px 90px rgba(31, 22, 28, 0.16);
}
.guide-paper img {
  display: block;
  width: 100%;
  height: auto;
}

/* -------- quote card -------- */
.quote {
  background: #ffffff;
  border: 1px solid oklch(0.9 0.008 278);
  border-radius: 18px;
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  height: 100%;
}
.quote .mark {
  display: none;
}
.quote-body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.32;
  color: oklch(0.27 0.035 278);
  margin: 0;
  text-wrap: pretty;
}
.quote-body::before { content: "\201C"; }
.quote-body::after { content: "\201D"; }
.quote-attr {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.5 0.03 278);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid oklch(0.92 0.008 278);
}

/* -------- utility -------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.numbers .cell {
  background: var(--bg);
  padding: 32px 24px;
}
.numbers .n {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.numbers .lbl {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 760px) {
  .numbers { grid-template-columns: repeat(2, 1fr); }
}

/* tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--bg-card);
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* bullet list */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.bullets-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.bullets-2col li {
  border-top: 1px solid var(--line);
}
.bullets-2col li:last-child,
.bullets-2col li:nth-last-child(2) {
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .bullets-2col { grid-template-columns: 1fr; gap: 0; }
  .bullets-2col li:nth-last-child(2) { border-bottom: none; }
}
.bullets li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.bullets li .b-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.bullets li .b-text {
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* module list */
.module {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.module:last-of-type { border-bottom: 1px solid var(--line); }
.module .m-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.module .m-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  text-wrap: balance;
  color: var(--ink);
}
.module .m-body {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.module .m-body + .m-body { margin-top: 12px; }
@media (max-width: 760px) {
  .module { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
}

/* faq */
.faq details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink-2);
  transition: all 0.25s ease;
  margin-top: 4px;
}
.faq details[open] summary .plus {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: rotate(45deg);
}
.faq .a {
  margin-top: 18px;
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* form */
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-4);
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
}

/* hero image specific */
.hero-img {
  aspect-ratio: 4 / 5;
  width: 100%;
}
.hero-img-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 4 / 5;
  box-shadow:
    0 1px 2px rgba(31, 22, 28, 0.05),
    0 18px 40px rgba(31, 22, 28, 0.12);
}
.hero-img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doc-img-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  width: 100%;
  box-shadow:
    0 1px 2px rgba(31, 22, 28, 0.05),
    0 18px 40px rgba(31, 22, 28, 0.12);
}
.doc-img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img-wide {
  aspect-ratio: 16 / 10;
  width: 100%;
}

/* -------- quote carousel -------- */
.carousel { position: relative; width: 100%; }
.carousel-viewport {
  overflow: hidden;
  border-radius: 18px;
}
.carousel-track {
  display: grid;
  grid-template-areas: "stack";
}
.carousel-track > .quote {
  grid-area: stack;
  height: auto;
  border-radius: 18px;
  padding: 28px 32px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.carousel-track > .quote.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.carousel-track > .quote .quote-body {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.4;
}
.carousel-track > .quote .mark {
  font-size: 32px;
  margin: 0 0 -6px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.carousel-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-dot.active {
  background: var(--accent);
  width: 24px;
}
.carousel--on-warm .quote { background: #ffffff; }

@media (max-width: 580px) {
  .carousel-track > .quote { padding: 22px 20px 20px; }
  .carousel-track > .quote .quote-body { font-size: 16.5px; }
}

/* fade-in on load */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.7s ease forwards;
}
.fade-in.d2 { animation-delay: 0.08s; }
.fade-in.d3 { animation-delay: 0.16s; }
.fade-in.d4 { animation-delay: 0.24s; }
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
