/* crispautumnpines.com — base stylesheet */

:root {
  --bg: #f5ede1;
  --bg-paper: #fbf6ed;
  --bg-deep: #ece2cf;
  --ink: #1a1612;
  --muted: #6b5d50;
  --line: #d8cdb8;
  --pine: #2d4538;
  --pine-dark: #18241d;
  --amber: #b8551f;
  --amber-soft: #d68b4e;
  --crimson: #8a2a1f;
}



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

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

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

.cp-layout { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- Header ---------- */
.cp-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 246, 237, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.cp-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.05rem 1.5rem;
  position: relative;
}
.cp-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0.005em;
  line-height: 1;
}
.cp-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--pine);
  color: var(--bg);
  border-radius: 50%;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
}
.cp-nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
}
.cp-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.18s;
}
.cp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--pine);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cp-nav a:hover { color: var(--ink); }
.cp-nav a:hover::after { transform: scaleX(1); }
.cp-nav a.is-active {
  color: var(--pine);
}
.cp-nav a.is-active::after { transform: scaleX(1); }

.cp-lang {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  display: flex;
  gap: 0.3rem;
  margin-left: 1rem;
}
.cp-lang a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.18s;
}
.cp-lang a.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.cp-lang a:not(.is-active):hover {
  color: var(--ink);
  border-color: var(--ink);
}

.cp-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Main ---------- */
.cp-main { flex: 1; }

/* ---------- Hero ---------- */
.cp-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 4rem;
  align-items: end;
  position: relative;
}
.cp-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.cp-particles span {
  position: absolute;
  bottom: -24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0c98a, #b8551f 70%);
  box-shadow: 0 0 12px rgba(184, 85, 31, 0.45);
  opacity: 0;
  animation: cpEmber linear infinite;
  will-change: transform, opacity;
}
.cp-particles span:nth-child(1) { left: 6%; animation-duration: 18s; animation-delay: 0s; width: 5px; height: 5px; }
.cp-particles span:nth-child(2) { left: 18%; animation-duration: 22s; animation-delay: 4s; width: 7px; height: 7px; }
.cp-particles span:nth-child(3) { left: 31%; animation-duration: 16s; animation-delay: 2s; }
.cp-particles span:nth-child(4) { left: 44%; animation-duration: 24s; animation-delay: 7s; width: 4px; height: 4px; }
.cp-particles span:nth-child(5) { left: 58%; animation-duration: 20s; animation-delay: 1s; width: 8px; height: 8px; }
.cp-particles span:nth-child(6) { left: 71%; animation-duration: 19s; animation-delay: 5s; }
.cp-particles span:nth-child(7) { left: 83%; animation-duration: 23s; animation-delay: 3s; width: 5px; height: 5px; }
.cp-particles span:nth-child(8) { left: 92%; animation-duration: 17s; animation-delay: 9s; width: 6px; height: 6px; }
.cp-hero > div:not(.cp-particles),
.cp-hero > .cp-stats { position: relative; z-index: 1; }
.cp-eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cp-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--amber);
}
.cp-hero h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.cp-hero h1 em { font-style: italic; color: var(--pine); }
.cp-hero h1 .crimson { color: var(--crimson); font-style: italic; }
.cp-hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 2rem;
  text-wrap: pretty;
}
.cp-hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}
.cp-btn:hover::before { transform: translateX(120%); }
.cp-btn:hover { transform: translateY(-1px); }
.cp-btn-pine { background: var(--pine); color: var(--bg); }
.cp-btn-pine:hover { background: var(--pine-dark); }
.cp-btn-crimson { background: var(--crimson); color: var(--bg); }
.cp-btn-crimson:hover { background: #6e1f17; }
.cp-btn-outline {
  background: transparent;
  color: var(--bg);
  border-color: rgba(245, 237, 225, 0.55);
}
.cp-btn-outline:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.cp-btn-ink {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.cp-btn-ink:hover { background: var(--ink); color: var(--bg); }

.cp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.cp-stats div {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cp-stats div span {
  /* base styles moved to animations block below */
}

/* ---------- Features ---------- */
.cp-features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cp-feature { display: flex; flex-direction: column; gap: 0.6rem; }
.cp-feature-num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.14em;
}
.cp-feature h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.cp-feature p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Games ---------- */
.cp-games {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.cp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}
.cp-section-head h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1;
}
.cp-section-head .meta {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cp-game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.cp-game-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cp-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(24, 36, 29, 0.35);
}
.cp-game-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--pine-dark);
}
.cp-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-game-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cp-game-meta {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  gap: 0.8rem;
}
.cp-game-meta span::before {
  content: "·";
  margin-right: 0.6rem;
  color: var(--line);
}
.cp-game-meta span:first-child::before { content: ""; margin: 0; }
.cp-game-info h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
.cp-game-info p { color: var(--muted); font-size: 0.97rem; }
.cp-game-info .cp-btn { margin-top: 0.6rem; align-self: start; }

/* ---------- Final CTA ---------- */
.cp-cta {
  background: var(--pine-dark);
  color: var(--bg);
  padding: 5.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(184, 85, 31, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(138, 42, 31, 0.15), transparent 60%);
  pointer-events: none;
}
.cp-cta-inner { max-width: 720px; margin: 0 auto; position: relative; }
.cp-cta .cp-eyebrow { justify-content: center; color: var(--amber-soft); }
.cp-cta .cp-eyebrow::before { background: var(--amber-soft); }
.cp-cta h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.cp-cta p {
  color: rgba(245, 237, 225, 0.7);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.cp-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  padding: 3.5rem 1.5rem 2rem;
}
.cp-footer-inner { max-width: 1180px; margin: 0 auto; }
.cp-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.cp-footer-brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.cp-footer-tagline {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.cp-footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.cp-footer-links a { color: var(--muted); text-decoration: none; transition: color 0.18s; }
.cp-footer-links a:hover { color: var(--ink); }
.cp-disclaimer {
  list-style: none;
  padding: 2rem 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 880px;
}
.cp-disclaimer li {
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.55;
}
.cp-disclaimer li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--amber);
}
.cp-disclaimer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.cp-copyright {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Inner pages (legal, about, contact) ---------- */
.cp-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5rem;
}
.cp-page h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.cp-page .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 52ch;
  text-wrap: pretty;
}
.cp-page h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  margin: 2.6rem 0 0.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.cp-page h2 .num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.cp-page p { margin-bottom: 1rem; }
.cp-page ul { margin: 1rem 0 1rem 1.2rem; }
.cp-page li { margin-bottom: 0.4rem; }
.cp-page-meta {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Contact form */
.cp-form {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-paper);
  border: 1px solid var(--line);
}
.cp-form label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.45rem;
}
.cp-form input,
.cp-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 4px;
}
.cp-form input:focus,
.cp-form textarea:focus {
  outline: none;
  border-color: var(--pine);
}
.cp-form textarea { min-height: 140px; resize: vertical; }
.cp-form .cp-btn { justify-self: start; }

.cp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.cp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.cp-info-card {
  padding: 1.4rem;
  background: var(--bg-paper);
  border: 1px solid var(--line);
}
.cp-info-card .label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.cp-info-card .value {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

/* ---------- Responsive ---------- */
/* ---------- Demo modal ---------- */
.cp-modal[hidden] { display: none; }
.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: cpFade 0.18s ease-out;
}
@keyframes cpFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 36, 29, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.cp-modal-panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 11;
  max-height: calc(100vh - 48px);
  background: var(--pine-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.cp-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(245, 237, 225, 0.08);
  color: var(--bg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cp-modal-bar .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 8px;
  vertical-align: middle;
}
.cp-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 237, 225, 0.1);
  border: 1px solid rgba(245, 237, 225, 0.18);
  color: var(--bg);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  transition: background 0.18s, border-color 0.18s;
}
.cp-modal-close:hover {
  background: rgba(245, 237, 225, 0.22);
  border-color: rgba(245, 237, 225, 0.4);
}
.cp-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
  background: var(--pine-dark);
}
body.cp-modal-open { overflow: hidden; }

@media (max-width: 880px) {
  .cp-modal { padding: 0; }
  .cp-modal-panel { aspect-ratio: auto; height: 100%; max-height: 100vh; border-radius: 0; }
}

@media (max-width: 880px) {
  .cp-menu-toggle { display: inline-flex; margin-left: auto; }
  .cp-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--bg-paper);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
  }
  .cp-nav.is-open { display: flex; }
  .cp-lang { margin-left: 0; }
  .cp-hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    gap: 2.5rem;
  }
  .cp-features { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .cp-game-grid { grid-template-columns: 1fr; }
  .cp-section-head { flex-direction: column; align-items: start; }
  .cp-contact-grid { grid-template-columns: 1fr; }
  .cp-info-grid { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */

@keyframes cpRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cpEmber {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  10% { opacity: 0.65; }
  50% { transform: translate3d(18px, -50vh, 0) scale(1); opacity: 0.55; }
  90% { opacity: 0.4; }
  100% { transform: translate3d(-12px, -110vh, 0) scale(0.7); opacity: 0; }
}
@keyframes cpLogoSpin {
  to { transform: rotate(360deg); }
}
@keyframes cpCtaBreathe {
  0% { background-position: 18% 28%, 82% 72%; }
  50% { background-position: 30% 42%, 70% 60%; }
  100% { background-position: 18% 28%, 82% 72%; }
}
@keyframes cpStatPop {
  0% { opacity: 0; transform: translateY(18px) scale(0.92); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cpUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* hero on-load entrance — visible by default, optional class-triggered transition for production */
.cp-hero > div > .cp-eyebrow,
.cp-hero > div > h1,
.cp-hero > div > .lead,
.cp-hero > div > .cp-hero-buttons {
  transition: opacity 0.6s ease-out, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cp-hero h1 em,
.cp-hero h1 .crimson {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cp-hero h1:hover em { transform: translateY(-3px) rotate(-1deg); }
.cp-hero h1:hover .crimson { transform: translateY(-3px) rotate(1deg); }

/* logo mark spin on hover */
.cp-logo-mark { transition: transform 0.4s; }
.cp-logo:hover .cp-logo-mark { animation: cpLogoSpin 0.7s ease-in-out; }

/* CTA breathing glow */
.cp-cta::before {
  background:
    radial-gradient(ellipse 36% 56% at center, rgba(184, 85, 31, 0.22), transparent 70%),
    radial-gradient(ellipse 36% 56% at center, rgba(138, 42, 31, 0.18), transparent 70%);
  background-size: 50% 50%, 50% 50%;
  background-position: 18% 28%, 82% 72%;
  background-repeat: no-repeat;
  animation: cpCtaBreathe 16s ease-in-out infinite;
}

/* scroll-triggered reveal — visible by default, enhances via .in-view in real browsers */
.cp-reveal {
  transition: opacity 0.75s ease-out, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* features stagger */
.cp-features.cp-reveal-grid .cp-feature {
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cp-feature h3 { transition: color 0.25s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cp-feature:hover h3 { color: var(--pine); transform: translateX(4px); }

/* game cards — enhanced hover (entrance is visible by default) */
.cp-game-grid.cp-reveal-grid .cp-game-card {
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cp-game-card .cp-game-img img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s;
}
.cp-game-card:hover .cp-game-img img {
  transform: scale(1.06) rotate(-0.4deg);
  filter: brightness(1.08) saturate(1.08);
}
.cp-game-card h3 { transition: color 0.25s; }
.cp-game-card:nth-child(1):hover h3 { color: var(--pine); }
.cp-game-card:nth-child(2):hover h3 { color: var(--crimson); }

/* stats — numbers visible by default */
.cp-stats div span {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 0.2rem;
  line-height: 1;
  transition: opacity 0.55s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* section heading underline — always drawn */
.cp-section-head h2 {
  position: relative;
  padding-bottom: 0.4rem;
}
.cp-section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--amber);
  transform-origin: left;
}

/* eyebrow line grow on hover/in view */
.cp-eyebrow::before {
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cp-eyebrow:hover::before { width: 48px; }

/* page-load eyebrow line — visible by default */
.cp-hero .cp-eyebrow::before {
  transform-origin: left;
}

/* inner pages — entrance visible by default */
.cp-page > .cp-eyebrow,
.cp-page > h1,
.cp-page > .lead,
.cp-page > h2,
.cp-page > p,
.cp-page > ul,
.cp-page > .cp-info-grid,
.cp-page > .cp-form {
  transition: opacity 0.55s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* info cards — lift on hover */
.cp-info-card {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}
.cp-info-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  box-shadow: 0 14px 30px -22px rgba(24, 36, 29, 0.4);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cp-particles { display: none; }
  .cp-reveal,
  .cp-features.cp-reveal-grid .cp-feature,
  .cp-game-grid.cp-reveal-grid .cp-game-card,
  .cp-stats div span,
  .cp-hero > div > .cp-eyebrow,
  .cp-hero > div > h1,
  .cp-hero > div > .lead,
  .cp-hero > div > .cp-hero-buttons,
  .cp-page > .cp-eyebrow,
  .cp-page > h1,
  .cp-page > .lead,
  .cp-page > h2,
  .cp-page > p,
  .cp-page > ul,
  .cp-page > .cp-info-grid,
  .cp-page > .cp-form {
    opacity: 1;
    transform: none;
  }
  .cp-section-head h2::after { transform: scaleX(1); }
  .cp-hero .cp-eyebrow::before { transform: scaleX(1); }
}

/* ---------- Logo refinements ---------- */
.cp-logo {
  position: relative;
}
.cp-logo-mark {
  position: relative;
  overflow: visible;
  transition: transform 0.4s, box-shadow 0.3s;
  background: radial-gradient(circle at 30% 30%, #3d5a48, #1c2a23 80%);
  box-shadow: 0 0 0 0 rgba(184, 85, 31, 0);
}
.cp-logo:hover .cp-logo-mark {
  box-shadow: 0 0 0 4px rgba(184, 85, 31, 0.18);
}
.cp-logo-spark {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #ffe4ab 0%, #f0c98a 35%, #b8551f 100%);
  box-shadow:
    0 0 10px rgba(214, 163, 82, 0.7),
    0 0 3px #fff,
    inset 0 0 4px rgba(255, 255, 255, 0.4);
  animation: cpSparkle 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.cp-logo-spark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 163, 82, 0.35), transparent 65%);
  animation: cpSparkleHalo 2.6s ease-in-out infinite;
}
@keyframes cpSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
}
@keyframes cpSparkleHalo {
  0%, 100% { opacity: 0.5; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.cp-logo-text {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0.005em;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}
.cp-logo-text em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
  padding: 0 0.04em;
  transition: color 0.25s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-block;
}
.cp-logo:hover .cp-logo-text em {
  color: var(--crimson);
  transform: translateY(-2px) rotate(-3deg);
}

/* footer brand spark (smaller) */
.cp-footer-brand .cp-logo-mark { width: 30px; height: 30px; font-size: 1.05rem; }
.cp-footer-brand .cp-logo-spark { width: 8px; height: 8px; top: -1px; right: -1px; }
.cp-footer-brand em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
  padding: 0 0.04em;
}

/* ---------- Marquee strip ---------- */
.cp-marquee {
  background: var(--pine-dark);
  color: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--pine-dark);
  border-bottom: 1px solid var(--pine-dark);
  padding: 0.95rem 0;
  position: relative;
  user-select: none;
}
.cp-marquee::before,
.cp-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.cp-marquee::before { left: 0; background: linear-gradient(to right, var(--pine-dark), transparent); }
.cp-marquee::after { right: 0; background: linear-gradient(to left, var(--pine-dark), transparent); }
.cp-marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: cpMarquee 38s linear infinite;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--amber-soft);
  text-transform: uppercase;
}
.cp-marquee-set {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  padding-right: 1.8rem;
  flex-shrink: 0;
}
.cp-marquee-set span { display: inline-block; }
.cp-marquee-set i {
  font-style: normal;
  color: rgba(245, 237, 225, 0.45);
  font-size: 1rem;
}
.cp-marquee-set em {
  font-style: italic;
  color: #ffd6a8;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}
@keyframes cpMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.cp-marquee:hover .cp-marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .cp-marquee-track { animation: none; transform: translateX(0); }
  .cp-logo-spark, .cp-logo-spark::after { animation: none; }
}

