:root {
  --paper: #eee3cf;
  --paper-deep: #dbc4a0;
  --ink: #17110d;
  --ink-soft: #4a3a2d;
  --sepia: #6a4a2d;
  --gold: #c8934f;
  --gold-soft: #f0cf9a;
  --card: #fff7ea;
  --line: #caa57a;
  --radius: 16px;
  --shadow: 0 18px 38px rgba(38, 22, 10, 0.2);
  --glass-bg: rgba(255, 245, 228, 0.58);
  --glass-line: rgba(200, 147, 79, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink-soft);
  line-height: 1.72;
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 200;
  background: #20160f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 10px;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #d7b487);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  border-bottom: 1px solid var(--glass-line);
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: 0 8px 24px rgba(84, 57, 27, 0.08);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .brand {
    white-space: normal;
    line-height: 1.15;
    max-width: min(11rem, 46vw);
  }
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(162, 121, 74, 0.55);
  box-shadow: 0 6px 18px rgba(86, 63, 39, 0.12);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  pointer-events: none;
}

.menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.main-nav__links {
  display: contents;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, 0.9vw, 10px);
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--sepia);
  font-size: clamp(0.62rem, 0.62rem + 0.35vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px clamp(6px, 0.7vw, 10px);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(255, 248, 236, 0.66);
  transform: translateY(-1px);
}

.main-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 248, 236, 0.88);
  box-shadow: inset 0 0 0 1px rgba(143, 104, 61, 0.28);
}

@media (min-width: 761px) {
  .main-nav {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }
}

.section {
  padding: 66px 0;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(200, 147, 79, 0.88), rgba(200, 147, 79, 0));
}

.section-alt {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.7), rgba(242, 231, 214, 0.45));
}

/* Section identities: each block gets a distinct mood */
#about {
  background:
    radial-gradient(circle at 8% 18%, rgba(180, 138, 87, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.76), rgba(247, 235, 215, 0.58));
}

#inside {
  background:
    radial-gradient(circle at 94% 14%, rgba(142, 109, 72, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(252, 245, 232, 0.76), rgba(239, 224, 198, 0.56));
}

#buy {
  background:
    radial-gradient(circle at 50% 0%, rgba(162, 121, 74, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.78), rgba(243, 230, 209, 0.55));
}

#book-details {
  background:
    radial-gradient(circle at 12% 84%, rgba(171, 128, 80, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(252, 247, 238, 0.78), rgba(238, 223, 196, 0.58));
}

#media-kit {
  background:
    radial-gradient(circle at 88% 84%, rgba(154, 113, 70, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(250, 243, 230, 0.78), rgba(235, 220, 194, 0.58));
}

#moods {
  background:
    radial-gradient(circle at 20% 0%, rgba(132, 104, 72, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(252, 246, 236, 0.76), rgba(238, 226, 203, 0.56));
}

#author {
  background:
    radial-gradient(circle at 0% 50%, rgba(176, 137, 89, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.78), rgba(244, 232, 213, 0.56));
}

#contact {
  background:
    radial-gradient(circle at 100% 0%, rgba(157, 118, 77, 0.17), transparent 36%),
    linear-gradient(180deg, rgba(252, 246, 236, 0.8), rgba(234, 218, 190, 0.58));
}

/* Per-section glassmorphism shells for distinct identities */
#about .container,
#inside .container,
#buy .container,
#book-details .container,
#media-kit .container,
#moods .container,
#author .container {
  border-radius: 20px;
  border: 1px solid rgba(165, 124, 78, 0.2);
  box-shadow:
    0 14px 28px rgba(84, 57, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

#about .container {
  background: linear-gradient(145deg, rgba(255, 250, 240, 0.46), rgba(247, 236, 217, 0.32));
}

#inside .container {
  background: linear-gradient(145deg, rgba(255, 248, 236, 0.52), rgba(242, 227, 199, 0.32));
}

#buy .container {
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.5), rgba(244, 229, 204, 0.36));
}

#book-details .container {
  background: linear-gradient(145deg, rgba(255, 249, 240, 0.48), rgba(241, 225, 196, 0.34));
}

#media-kit .container {
  background: linear-gradient(145deg, rgba(252, 246, 234, 0.5), rgba(238, 221, 193, 0.34));
}

#moods .container {
  background: linear-gradient(145deg, rgba(255, 249, 238, 0.48), rgba(240, 226, 201, 0.34));
}

#author .container {
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.5), rgba(244, 231, 212, 0.34));
}

#contact .container {
  width: min(1040px, 92%);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#inside .card {
  border-radius: 22px 14px 18px 12px;
}

#inside .card h3::after {
  background: linear-gradient(90deg, rgba(143, 104, 61, 0.82), rgba(143, 104, 61, 0.1));
}

#buy .card {
  border-radius: 14px 22px 12px 20px;
}

#buy .card h3::after {
  background: linear-gradient(90deg, rgba(120, 86, 50, 0.84), rgba(120, 86, 50, 0.1));
}

#book-details .card {
  border-radius: 24px 12px 24px 12px;
}

#book-details .card h3::after {
  background: linear-gradient(90deg, rgba(109, 79, 50, 0.82), rgba(109, 79, 50, 0.1));
}

#media-kit .card {
  border-radius: 12px 20px 20px 16px;
}

#media-kit .card h3::after {
  background: linear-gradient(90deg, rgba(129, 95, 57, 0.84), rgba(129, 95, 57, 0.1));
}

#moods .card {
  border-radius: 20px 20px 12px 12px;
}

#moods .card h3::after {
  background: linear-gradient(90deg, rgba(148, 112, 71, 0.84), rgba(148, 112, 71, 0.1));
}

#author .author-photo {
  outline: 2px solid rgba(162, 121, 74, 0.26);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  font-family: "Crimson Text", Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  color: var(--sepia);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-copy p {
  max-width: 63ch;
}

.hero-editorial-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(162, 121, 74, 0.34);
  border-left: 5px solid rgba(162, 121, 74, 0.74);
  border-radius: 12px 24px 16px 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 138, 87, 0.2), transparent 40%),
    linear-gradient(160deg, rgba(255, 251, 244, 0.82), rgba(244, 229, 204, 0.62));
  padding: clamp(1.1rem, 2.35vw, 1.85rem);
  min-height: clamp(390px, 52vh, 500px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  box-shadow:
    0 22px 42px rgba(62, 42, 22, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(162, 121, 74, 0.12);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  max-width: 700px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-editorial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(
    90deg,
    rgba(162, 121, 74, 0.12),
    rgba(162, 121, 74, 0.85) 50%,
    rgba(162, 121, 74, 0.12)
  );
  pointer-events: none;
}

.hero-editorial-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -55% auto;
  width: 52%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 121, 74, 0.15), transparent 65%);
  pointer-events: none;
}

.hero-editorial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(162, 121, 74, 0.52);
  box-shadow:
    0 28px 48px rgba(62, 42, 22, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(162, 121, 74, 0.18);
}

.hero-mini {
  margin: 0 0 12px;
  color: var(--sepia);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-divider {
  width: min(120px, 36%);
    height: 2px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, rgba(162, 121, 74, 0.85), rgba(162, 121, 74, 0));
}

.hero-ornament {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(220px, 56%);
  margin: 0 0 10px;
}

.hero-ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(162, 121, 74, 0.12), rgba(162, 121, 74, 0.62), rgba(162, 121, 74, 0.12));
}

.hero-ornament-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #d4b48d, #9e7750);
  box-shadow: 0 0 0 1px rgba(162, 121, 74, 0.25);
}

.hero-line {
  display: block;
}

.hero-title {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  margin-bottom: 16px;
}

.hero-title::before,
.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  width: min(220px, 90%);
  height: 2px;
  background: linear-gradient(90deg, rgba(162, 121, 74, 0.75), rgba(162, 121, 74, 0));
}

.hero-title::before {
  top: 0;
}

.hero-title::after {
  bottom: 0;
}

.hero-line-accent {
  font-style: italic;
  margin-left: clamp(0.1rem, 1vw, 0.5rem);
  color: #5f4630;
  text-shadow: 0 0 10px rgba(200, 147, 79, 0.25);
}

.hero-ai-line {
  width: min(240px, 72%);
  height: 12px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
}

.hero-ai-line-core {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(162, 121, 74, 0.08),
    rgba(162, 121, 74, 0.95) 50%,
    rgba(162, 121, 74, 0.08)
  );
  overflow: hidden;
}

.hero-ai-line-core::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -26%;
  width: 28%;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(246, 214, 171, 0.95), rgba(246, 214, 171, 0));
  animation: ai-line-scan 2.8s ease-in-out infinite;
}

@keyframes ai-line-scan {
  0% {
    left: -26%;
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  50% {
    left: 44%;
    opacity: 1;
  }
  100% {
    left: 106%;
    opacity: 0;
  }
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 0.1rem;
}

.hero-design-line {
  margin: 8px 0 0;
  padding-left: 12px;
  border-left: 2px solid rgba(162, 121, 74, 0.55);
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  color: #7a5e42;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-actions-fused {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  gap: 8px;
}

.hero-actions-fused .btn {
  position: relative;
  padding: 10px 16px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  border-radius: 999px;
}

.hero-actions-fused .btn + .btn::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(162, 121, 74, 0.36);
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span {
  border: 1px solid var(--line);
  background: rgba(255, 248, 235, 0.78);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sepia);
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 12px rgba(200, 147, 79, 0.2);
}

.hero-actions-fused .btn-primary {
  background: linear-gradient(90deg, #7a5938, #9f7850);
}

.hero-actions-fused .btn-secondary {
  background: rgba(255, 252, 246, 0.9);
}

.hero-visual {
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: center;
  width: 100%;
}

.hero-cover {
  margin: 0;
  width: min(100%, 400px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-cover img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  display: block;
  object-fit: contain;
  animation: book-float 4.6s ease-in-out infinite;
}

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

.hero-cover figcaption {
  display: none;
}

.trust-band {
  padding: 8px 0 24px;
}

.trust-band-inner {
  display: block;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.trust-marquee {
  overflow: hidden;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  animation: trust-loop 28s linear infinite;
}

.trust-item {
  margin: 0;
  position: relative;
  border: 1px solid var(--glass-line);
  background: linear-gradient(140deg, rgba(255, 247, 234, 0.72), rgba(244, 230, 207, 0.62));
  border-radius: 999px;
  padding: 10px 12px;
  text-align: center;
  color: #6f5237;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-item img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(165, 124, 78, 0.35);
}

@keyframes trust-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-quote {
  margin: 10px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(162, 121, 74, 0.45);
}

.hero-quote p {
  margin: 0;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  color: #6f5640;
  font-size: 1.08rem;
  line-height: 1.5;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-minimal .card {
  background: rgba(255, 252, 246, 0.45);
  border: 1px solid rgba(165, 124, 78, 0.18);
  box-shadow: 0 8px 18px rgba(86, 63, 39, 0.08);
}

.section-note {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 3px solid rgba(162, 121, 74, 0.45);
  color: #6e5a49;
}

.prose-panel {
  border: 1px solid rgba(165, 124, 78, 0.22);
  border-radius: 14px;
  background: rgba(255, 251, 244, 0.52);
  padding: 16px 18px;
  box-shadow: 0 8px 18px rgba(86, 63, 39, 0.08);
}

.prose-panel h3 {
  position: relative;
  padding-bottom: 8px;
}

.prose-panel h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, rgba(162, 121, 74, 0.78), rgba(162, 121, 74, 0.08));
}

.prose-panel p {
  margin: 0 0 10px;
}

.prose-panel p:last-child {
  margin-bottom: 0;
}

.editorial-list {
  margin: 0;
  padding-left: 18px;
}

.editorial-list li {
  margin-bottom: 6px;
}

.mood-switcher {
  margin-top: 16px;
}

.mood-switcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.full-row {
  grid-column: 1 / -1;
}

.stats-chart {
  display: grid;
  gap: 12px;
}

.stat-row {
  border: 1px solid rgba(165, 124, 78, 0.28);
  border-radius: 12px;
  background: rgba(255, 251, 244, 0.5);
  padding: 12px;
}

.stat-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.stat-row__head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.stat-row__head p {
  margin: 0;
  font-weight: 700;
  color: #7f5a35;
  font-size: 0.9rem;
}

.stat-row__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(162, 121, 74, 0.18);
  overflow: hidden;
}

.stat-row__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8c653d, #b48a57);
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 138, 87, 0.18), transparent 42%),
    linear-gradient(165deg, rgba(255, 254, 251, 0.78), rgba(251, 242, 229, 0.62) 55%, rgba(245, 231, 210, 0.54) 100%);
  padding: 20px;
  box-shadow:
    0 20px 35px rgba(86, 63, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(
    90deg,
    rgba(180, 138, 87, 0.1),
    rgba(180, 138, 87, 0.72),
    rgba(180, 138, 87, 0.1)
  );
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #b69267;
  box-shadow:
    0 26px 42px rgba(86, 63, 39, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card h3 {
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}

.card p {
  margin: 0;
}

.card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(162, 121, 74, 0.78), rgba(162, 121, 74, 0.12));
}

.card h3::before {
  content: "";
  position: absolute;
  left: 78px;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #d4b48d, #9e7750);
  box-shadow: 0 0 0 1px rgba(162, 121, 74, 0.28);
}

.pathway {
  background:
    linear-gradient(140deg, rgba(255, 250, 241, 0.74), rgba(247, 233, 209, 0.66)),
    linear-gradient(165deg, #fffdf8, var(--card));
}

.pathway .pathway-label {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #d8be98;
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.8);
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.84rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #8c5f2f, #c8934f);
  color: #fff9ef;
  box-shadow:
    0 10px 24px rgba(176, 118, 52, 0.28),
    0 0 0 1px rgba(255, 225, 178, 0.28) inset;
}

.btn-secondary {
  background: rgba(255, 246, 230, 0.62);
  border-color: var(--glass-line);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(176, 118, 52, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 248, 236, 0.95);
}

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

textarea,
select {
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

input {
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

.quote-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.quote-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  padding: 10px 12px;
}

.text-btn {
  border: 0;
  background: none;
  padding: 0;
  margin-top: 10px;
  color: #7a5f45;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.result {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf1;
  padding: 10px 12px;
  color: var(--ink);
}

.quote-card p {
  margin-top: 0;
}

.quote-stars {
  margin-bottom: 8px;
  color: #7f5b34;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(200, 147, 79, 0.25);
}

.quote-by {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--sepia);
  font-weight: 700;
}

.stats-strip .stat-card {
  text-align: center;
}

.stat-card h3 {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #7f5a35;
}

.stat-card p {
  margin: 0;
}

.pathway-label {
  margin: 0 0 6px;
  color: #8c6a45;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(200, 147, 79, 0.2);
}

.author-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.author-photo {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact {
  text-align: left;
}

.contact-pro .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(122, 91, 58, 0.22);
  box-shadow:
    0 28px 56px rgba(52, 36, 20, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  background: rgba(255, 252, 246, 0.55);
}

.contact-aside {
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  background: linear-gradient(165deg, rgba(58, 42, 28, 0.94) 0%, rgba(42, 30, 22, 0.97) 100%);
  color: rgba(255, 248, 238, 0.92);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.contact-aside::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(200, 147, 79, 0.35), transparent);
  pointer-events: none;
}

.contact-pro .contact-kicker {
  margin: 0 0 10px;
  color: rgba(240, 206, 160, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.contact-title {
  margin: 0 0 14px;
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 600;
  color: #fff9ef;
  line-height: 1.15;
}

.contact-pro .contact-title::after {
  display: none;
}

.contact-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 147, 79, 0.25));
}

.contact-pro .contact-lead {
  margin: 0 0 18px;
  max-width: 42ch;
  color: rgba(255, 245, 230, 0.78);
  font-size: 0.98rem;
  line-height: 1.65;
}

.contact-email-link {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 206, 160, 0.45);
  width: fit-content;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-email-link:hover {
  border-bottom-color: rgba(255, 251, 244, 0.85);
  color: #fffdf8;
}

.contact-meta-line {
  margin: 0 0 22px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(230, 210, 180, 0.65);
}

.contact-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: rgba(255, 245, 230, 0.82);
  line-height: 1.45;
}

.contact-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.85;
}

.contact-form-shell {
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(250, 244, 232, 0.96) 100%);
}

.contact-form-label {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #7a5c40;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.contact-item {
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 138, 87, 0.14), transparent 44%),
    rgba(255, 250, 242, 0.72);
  padding: 16px;
  box-shadow:
    0 12px 24px rgba(86, 63, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: #b69267;
  box-shadow:
    0 18px 30px rgba(86, 63, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-item h3 {
  margin-bottom: 8px;
}

.contact-item p {
  margin: 0 0 8px;
}

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

.contact-list {
  margin: 0;
  padding-left: 18px;
}

.contact-list li {
  margin-bottom: 4px;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inquiry-form {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.inquiry-span-full {
  grid-column: 1 / -1;
}

.inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inquiry-form label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c4634;
}

.contact-pro .inquiry-form input,
.contact-pro .inquiry-form select,
.contact-pro .inquiry-form textarea {
  margin: 0;
  border: 1px solid rgba(122, 91, 58, 0.22);
  border-radius: 12px;
  background: #fffefb;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-pro .inquiry-form input:focus,
.contact-pro .inquiry-form select:focus,
.contact-pro .inquiry-form textarea:focus {
  outline: none;
  border-color: rgba(162, 121, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 147, 79, 0.18);
}

.inquiry-submit {
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.contact-pro .form-status {
  margin-top: 10px;
  color: #6b5340;
}

.stack-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.forms-grid {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-status {
  min-height: 1.2rem;
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: #7a5f45;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.excerpt-modal {
  width: min(700px, 92vw);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.9);
  padding: 0;
  box-shadow: 0 24px 48px rgba(62, 42, 22, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.excerpt-modal::backdrop {
  background: rgba(51, 37, 20, 0.45);
}

.excerpt-content {
  padding: 20px;
}

.excerpt-content p {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--glass-line);
  color: var(--sepia);
  background: linear-gradient(180deg, rgba(239, 226, 204, 0.72), rgba(229, 210, 183, 0.66));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-top {
  padding: 48px 0 30px;
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}

.footer-brand,
.footer-links-col,
.footer-contact-col {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 4px 8px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #8c6640;
  text-shadow: 0 0 10px rgba(200, 147, 79, 0.22);
}

.footer-brand h3 {
  margin-bottom: 8px;
}

.footer-brand p {
  margin: 0 0 8px;
}

.footer-brand p:last-child {
  margin-bottom: 0;
}

.footer-links-col h4,
.footer-contact-col h4 {
  margin: 0 0 8px;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 1.22rem;
  color: var(--ink);
}

.footer-links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links-col a,
.footer-contact-col a {
  color: #5f4630;
  text-decoration: none;
  font-weight: 600;
}

.footer-links-col a:hover,
.footer-contact-col a:hover {
  color: var(--ink);
}

.footer-contact-col p {
  margin: 0 0 8px;
}

.footer-contact-col p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid #ccb18b;
  padding: 16px 0 22px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.94rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal a {
  color: #6f5339;
  text-decoration: none;
  font-weight: 600;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .cards.three,
  .cards.two,
  .author-grid,
  .contact-grid,
  .forms-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: clamp(40px, 9vw, 56px) 0;
  }

  .hero-grid {
    gap: clamp(18px, 5vw, 28px);
  }

  .hero-actions-fused {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions-fused .btn {
    width: 100%;
    text-align: center;
  }

  .hero-actions-fused .btn + .btn::before {
    display: none;
  }

  .card {
    padding: clamp(16px, 3.8vw, 20px);
  }

  .prose-panel {
    padding: clamp(14px, 3.2vw, 18px);
  }

  .stack-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stack-actions .btn {
    width: 100%;
    text-align: center;
  }

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

  .contact-aside::after {
    display: none;
  }

  .contact-aside {
    border-bottom: 1px solid rgba(200, 147, 79, 0.2);
  }

  .inquiry-submit {
    max-width: 100%;
  }

  .stat-row__head {
  flex-direction: column;
  align-items: flex-start;
  }

  .trust-band-inner {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .trust-row {
    animation-duration: 22s;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 3vw, 18px);
  }

  .faq-grid,
  .inquiry-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: clamp(1.1rem, 4vw, 1.5rem);
    padding: clamp(28px, 7vw, 40px) 0 clamp(22px, 5vw, 30px);
  }

  .footer-brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .footer-top > .footer-links-col:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-top > .footer-links-col:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-top > .footer-contact-col:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .footer-top > .footer-contact-col:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .footer-links-col h4,
  .footer-contact-col h4 {
    font-size: clamp(1.02rem, 3.8vw, 1.15rem);
  }

  .footer-brand,
  .footer-links-col,
  .footer-contact-col {
    padding: 2px 4px;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    z-index: 201;
  }

  .site-header {
    isolation: isolate;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 198;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(26, 20, 16, 0.52);
    backdrop-filter: blur(8px) saturate(1.05);
    -webkit-backdrop-filter: blur(8px) saturate(1.05);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .nav-backdrop:not([hidden]) {
    opacity: 1;
  }

  .main-nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    flex: none;
    overflow: visible;
    padding: 2px 0 6px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 76px);
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: auto;
    left: auto;
    width: min(288px, calc(100vw - 20px));
    max-width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 84px);
    height: auto;
    margin: 0;
    padding: 12px 14px 14px;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    border: 1px solid rgba(165, 124, 78, 0.32);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf8 0%, #f6eddc 48%, #efe4d2 100%);
    box-shadow:
      0 22px 50px rgba(42, 33, 30, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.45) inset;
    z-index: 200;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    display: flex;
    animation: nav-drawer-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .main-nav a {
    display: block;
    text-align: left;
    padding: 11px 12px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    border-radius: 10px;
    white-space: normal;
    line-height: 1.25;
  }

  .main-nav a.is-active {
    background: rgba(255, 248, 236, 0.95);
    box-shadow: inset 0 0 0 1px rgba(143, 104, 61, 0.22);
  }

  .main-nav .nav-cta {
    flex-shrink: 0;
    margin-top: 8px;
    padding: 12px 14px !important;
    border-top: 1px solid rgba(165, 124, 78, 0.22);
    text-align: center;
    border-radius: 999px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@keyframes nav-drawer-in {
  from {
    transform: translate3d(100%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .main-nav.open {
    animation: none;
  }

  .nav-backdrop:not([hidden]) {
    transition: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon span {
    transition: none;
  }
}
