@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Sora:wght@600;700&display=swap");

:root {
  --header-h: 72px;
  --sand: #ebe4d9;
  --sand-deep: #dfd6c8;
  --soil: #3d3428;
  --soil-soft: #5c5246;
  --ember: #e85d04;
  --ember-deep: #c2410c;
  --slate: #4a5568;
  --mist: #f4ede3;
  --shadow-out: 10px 10px 22px rgba(61, 52, 40, 0.18);
  --shadow-in: inset 4px 4px 10px rgba(61, 52, 40, 0.12), inset -6px -6px 14px rgba(255, 255, 255, 0.65);
}

.u-text-center {
  text-align: center;
}

.u-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.u-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.u-limit-34 {
  max-width: 34rem;
}

.u-limit-720 {
  max-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

html,
body {
  overflow-x: hidden !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--soil-soft);
  background: var(--sand);
  background-image:
    linear-gradient(135deg, rgba(232, 93, 4, 0.06) 0%, transparent 45%),
    linear-gradient(225deg, rgba(61, 52, 40, 0.04) 0%, transparent 40%);
}

body.is-modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
.chunkTitle,
.writeHead-title,
.writeHead h1 {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--soil);
}

a {
  color: var(--ember-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.navShell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(235, 228, 217, 0.94);
  border-bottom: 1px solid rgba(61, 52, 40, 0.1);
  box-shadow: var(--shadow-out);
  backdrop-filter: blur(12px);
}

.navShell-inner {
  height: 100%;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navShell-logo {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--soil);
}

.navShell-logo:hover {
  color: var(--ember);
  text-decoration: none;
}

.navShell-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--mist);
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-out);
  cursor: pointer;
}

.navShell-trigger span {
  display: block;
  height: 2px;
  background: var(--soil);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.navShell-trigger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navShell-trigger.is-active span:nth-child(2) {
  opacity: 0;
}

.navShell-trigger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navShell-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.navShell-links a {
  color: var(--soil-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.navShell-links a:hover {
  color: var(--soil);
}

.pageFlow {
  flex: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.pitch {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.pitch-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
}

.pitch-lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 1.08rem;
}

.ctaPrimary {
  display: inline-block;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  padding: 1rem 2.35rem;
  font-size: 1.05rem;
  color: var(--mist);
  background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-out), 0 2px 0 rgba(61, 52, 40, 0.25);
  transition: transform 0.15s, filter 0.15s;
}

.ctaPrimary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  text-decoration: none;
  color: var(--mist);
}

.ctaPlay {
  display: inline-block;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  padding: 0.55rem 1.35rem;
  font-size: 0.92rem;
  color: var(--soil);
  background: var(--mist);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-out);
  transition: transform 0.15s, filter 0.15s;
}

.ctaPlay:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.chunk {
  margin-bottom: 4rem;
}

.chunkTitle {
  margin: 0 0 4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.tilewall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sand-deep);
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(61, 52, 40, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 14px 14px 28px rgba(61, 52, 40, 0.22);
}

.tile-visual {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sand);
}

.tile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-shadow: var(--shadow-in);
}

.tile-name {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  color: var(--soil);
}

.tile-desc {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.92rem;
  color: var(--soil-soft);
}

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

.triad-card {
  padding: 1.5rem 1.35rem;
  border-radius: 18px;
  background: var(--sand-deep);
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(61, 52, 40, 0.06);
}

.triad-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  color: var(--ember-deep);
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
}

.triad-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--soil-soft);
}

.faqStack {
  max-width: 720px;
  margin: 0 auto;
}

.faqRow {
  border-radius: 14px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(61, 52, 40, 0.08);
}

.faqRow-btn {
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--soil);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faqRow-btn::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--ember);
  flex-shrink: 0;
}

.faqRow.is-open .faqRow-btn::after {
  content: "−";
}

.faqRow-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faqRow.is-open .faqRow-panel {
  max-height: 1200px;
}

.faqRow-inner {
  padding: 0 1.15rem 1.1rem;
  color: var(--soil-soft);
  font-size: 0.95rem;
}

.shout {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--sand-deep), var(--sand));
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(61, 52, 40, 0.08);
}

.shout-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.basement {
  margin-top: auto;
  padding: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--sand-deep) 0%, #d2c8b8 100%);
  border-top: 1px solid rgba(61, 52, 40, 0.1);
  color: var(--soil-soft);
  font-size: 0.9rem;
}

.basement-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.75rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
}

.basement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  margin-bottom: 2.25rem;
}

.basement-logo {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--soil);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.basement-logo:hover {
  color: var(--ember);
  text-decoration: none;
}

.basement-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 28rem;
}

.basement-heading {
  margin: 0 0 1rem;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ember-deep);
}

.basement-heading--gap {
  margin-top: 1.5rem;
}

.basement-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.basement-list li {
  margin-bottom: 0.5rem;
}

.basement-list a {
  color: var(--soil-soft);
  font-size: 0.92rem;
  text-decoration: none;
}

.basement-list a:hover {
  color: var(--soil);
  text-decoration: underline;
}

.basement-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.basement-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(61, 52, 40, 0.1);
  text-align: center;
}

.basement-bottom p {
  margin: 0;
  font-size: 0.82rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 320px;
  padding: 1rem 1.15rem;
  background: var(--mist);
  border-radius: 14px;
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(61, 52, 40, 0.1);
}

.cookie-banner p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--soil-soft);
}

.cookie-banner button {
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--mist);
  background: var(--ember-deep);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-out);
}

#gameModal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(61, 52, 40, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

#gameModal.is-open {
  opacity: 1;
  visibility: visible;
}

.gm-panel {
  width: min(960px, 100%);
  height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--mist);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(61, 52, 40, 0.12);
  transform: scale(0.96);
  transition: transform 0.25s;
}

#gameModal.is-open .gm-panel {
  transform: scale(1);
}

.gm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(61, 52, 40, 0.1);
}

.gm-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--soil);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Sora", system-ui, sans-serif;
}

.gm-close {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--soil-soft);
  background: var(--sand);
  border: 1px solid rgba(61, 52, 40, 0.12);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-in);
}

.gm-close:hover {
  color: var(--soil);
  border-color: var(--ember);
}

.gm-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #1c1917;
  overflow: hidden;
}

.gm-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gm-fallback {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  text-align: center;
  color: var(--soil-soft);
  border-top: 1px solid rgba(61, 52, 40, 0.1);
  background: var(--sand);
}

.gm-fallback a {
  font-weight: 600;
}

.writePage {
  max-width: 720px;
  margin: 0 auto;
}

.writePage .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--soil-soft);
}

.writePage .article-content section {
  margin-bottom: 1.75rem;
}

.writePage .article-content h2 {
  color: var(--ember-deep);
  font-size: 1.25rem;
  font-family: "Sora", system-ui, sans-serif;
}

.writePage .article-content p,
.writePage .article-content li {
  color: var(--soil-soft);
}

.writeHead {
  margin-bottom: 2.75rem;
  text-align: center;
}

.writeHead-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
}

.writeHead-lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--soil-soft);
}

.storyGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.storyCard {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sand-deep);
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(61, 52, 40, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.storyCard:hover {
  transform: translateY(-6px);
  box-shadow: 16px 16px 32px rgba(61, 52, 40, 0.22);
}

.storyCard-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}

.storyCard-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(61, 52, 40, 0.35) 100%);
  pointer-events: none;
}

.storyCard-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.storyCard:hover .storyCard-visual img {
  transform: scale(1.05);
}

.storyCard-body {
  padding: 1.2rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.storyCard-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mist);
  background: var(--soil);
  border-radius: 6px;
  align-self: flex-start;
}

.storyCard-body h3 {
  margin: 0.35rem 0 0.5rem;
  color: var(--soil);
  font-size: 1.12rem;
  line-height: 1.3;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
}

.storyCard-body > p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--soil-soft);
  flex: 1;
}

.storyCard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--soil-soft);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(61, 52, 40, 0.1);
}

.storyCard-read {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.85rem;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-family: "Sora", system-ui, sans-serif;
  color: var(--mist);
  background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: var(--shadow-out);
  transition: transform 0.15s, filter 0.15s;
}

.storyCard-read:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  text-decoration: none;
  color: var(--mist);
}

.contact-form {
  max-width: 520px;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--soil);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--soil);
  background: var(--mist);
  border: 1px solid rgba(61, 52, 40, 0.15);
  border-radius: 12px;
  box-shadow: var(--shadow-in);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-family: "Sora", system-ui, sans-serif;
  color: var(--mist);
  background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-out);
}

.form-success {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid var(--ember-deep);
  border-radius: 12px;
  color: var(--ember-deep);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

.article-header .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--soil-soft);
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--mist);
  border-radius: 14px;
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(61, 52, 40, 0.08);
}

.article-cta h3 {
  margin: 0 0 1rem;
  color: var(--soil);
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(61, 52, 40, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .storyGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .navShell-trigger {
    display: flex;
  }

  .navShell-links {
    position: fixed;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(244, 237, 227, 0.98);
    border-bottom: 1px solid rgba(61, 52, 40, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: var(--shadow-out);
  }

  .navShell-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navShell-links a {
    padding: 0.5rem 0;
  }

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

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

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

  .basement-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .basement-tagline {
    max-width: none;
  }

  .gm-panel {
    height: min(88vh, 100%);
  }
}
