:root {
  /* Glyph design tokens */
  --ink: #182521;
  --ink-soft: #4a5f56;
  --ink-deep: #12201c;
  --sand: #eef2f0;
  --sand-deep: #e2e8e6;
  --amber: #e8a317;
  --amber-deep: #e98a33;
  --sunset: #e98a33;
  --leaf: #2a6f5b;
  --leaf-soft: #1f6b56;
  --accent: #226477;
  --paper: #f6f8f8;
  --surface: #ffffff;
  --line: rgba(24, 37, 33, 0.14);
  --shadow: 0 20px 48px rgba(18, 32, 28, 0.1);
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, monospace;
  --max: 1120px;
  --radius: 1.25rem;
  --space: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 70% 45% at 85% -5%, rgba(233, 138, 51, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 5% 0%, rgba(42, 111, 91, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f7f5 0%, var(--paper) 40%, #e8efec 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--leaf);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber-deep);
}

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
}

::selection {
  background: rgba(42, 111, 91, 0.22);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(238, 245, 241, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.brand:hover {
  color: var(--leaf);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.04);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.65rem;
  padding: 0.55rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--amber-deep);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
}

.site-nav .nav-cta:hover {
  background: var(--amber-deep);
  color: var(--paper);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: min(94vh, 860px);
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      115deg,
      rgba(8, 22, 24, 0.78) 0%,
      rgba(8, 22, 24, 0.48) 36%,
      rgba(8, 22, 24, 0.16) 58%,
      transparent 78%
    ),
    linear-gradient(
      180deg,
      rgba(8, 22, 24, 0.12) 0%,
      rgba(8, 22, 24, 0.28) 40%,
      rgba(8, 22, 24, 0.82) 72%,
      rgba(8, 22, 24, 0.96) 100%
    ),
    url("../assets/hero.png") center / cover no-repeat,
    linear-gradient(135deg, #e98a33, #1a3a3a);
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out alternate infinite;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 4.5rem 1.25rem 4.75rem;
  color: #ffffff;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 0.55rem;
  max-width: 12ch;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow:
    0 1px 0 rgba(8, 22, 24, 0.35),
    0 8px 28px rgba(8, 22, 24, 0.55);
}

.hero-tag {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f6c23a;
  display: inline-block;
  position: relative;
}

.hero-tag::after {
  content: "";
  display: block;
  height: 0.22rem;
  margin-top: 0.35rem;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6c23a, rgba(246, 194, 58, 0.15));
  transform-origin: left;
  animation: underline-draw 1.1s ease 0.35s both;
}

.hero-lead {
  max-width: 40ch;
  font-size: clamp(1.08rem, 2.3vw, 1.3rem);
  margin: 0 0 1.85rem;
  color: rgba(255, 253, 248, 0.96);
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  color: rgba(255, 253, 248, 0.85);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-shadow: none;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.9), transparent);
  animation: cue-pulse 1.8s ease-in-out infinite;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--amber);
  color: var(--ink-deep);
  border-color: var(--amber);
  text-shadow: none;
  box-shadow: 0 10px 28px rgba(232, 163, 23, 0.35);
}

.button-primary:hover {
  background: #f6c23a;
  color: var(--ink-deep);
}

.hero .button-ghost {
  background: rgba(255, 253, 248, 0.16);
  color: #fffdf8;
  border-color: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(6px);
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(8, 22, 24, 0.25);
}

.hero .button-ghost:hover {
  background: rgba(255, 253, 248, 0.22);
  color: #fffdf8;
}

.button-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 250, 242, 0.45);
}

.button-ghost:hover {
  background: rgba(255, 250, 242, 0.1);
  color: var(--paper);
}

.button-ink {
  background: var(--ink);
  color: var(--paper);
}

.button-ink:hover {
  background: var(--amber-deep);
  color: var(--paper);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  margin-bottom: 0.25rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 0.65rem;
}

.section h2,
.invite-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section-intro {
  max-width: 52ch;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.section-foot {
  margin: 1.75rem 0 0;
}

.text-link {
  font-weight: 700;
  color: var(--leaf);
  text-decoration: none;
  border-bottom: 2px solid rgba(42, 111, 91, 0.35);
}

.text-link:hover {
  color: var(--amber-deep);
  border-color: rgba(233, 138, 51, 0.55);
}

.spark-band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(42, 111, 91, 0.14), rgba(232, 163, 23, 0.16)),
    #f6f8f8;
}

.spark-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
}

.spark-label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
}

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

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

.spark-path {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(47, 69, 60, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.spark-path:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(232, 163, 23, 0.55);
  box-shadow: 0 16px 36px rgba(47, 69, 60, 0.14);
  color: inherit;
}

.spark-path-hot {
  background: linear-gradient(145deg, #2a6f5b, #226477);
  color: #fffdf8;
}

.spark-path-hot:hover {
  color: #fffdf8;
  border-color: rgba(246, 194, 58, 0.7);
}

.spark-word {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.spark-hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.spark-path-hot .spark-hint {
  color: rgba(255, 253, 248, 0.82);
}

.invite-band {
  margin: 1rem 1.25rem 0;
  border-radius: calc(var(--radius) + 0.35rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 163, 23, 0.28), transparent 40%),
    linear-gradient(145deg, #1f4f43, #2a6f5b 55%, #226477);
  color: #fffdf8;
}

.invite-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.5rem;
}

.invite-band .section-kicker {
  color: rgba(255, 253, 248, 0.75);
}

.invite-band p {
  max-width: 48ch;
  margin: 0 0 1.5rem;
  color: rgba(255, 253, 248, 0.9);
}

.invite-band .button-ink {
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
  border: 2px solid rgba(255, 253, 248, 0.45);
}

.invite-band .button-ink:hover {
  background: rgba(255, 253, 248, 0.22);
  color: #fffdf8;
}

.topic-grid,
.project-grid,
.post-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.project-grid-tools {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.topic-grid-loud {
  gap: 1.35rem;
}

.topic-link,
.project-link,
.post-link {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 1.55rem 1.4rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.topic-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.28rem;
  background: linear-gradient(180deg, var(--amber), var(--leaf));
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.topic-link:hover,
.project-link:hover,
.post-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 163, 23, 0.5);
  color: inherit;
}

.topic-link:hover::before {
  transform: scaleY(1);
}

.topic-link-accent {
  background: linear-gradient(160deg, rgba(42, 111, 91, 0.16), rgba(232, 163, 23, 0.18));
  border-color: rgba(42, 111, 91, 0.35);
}

.topic-num {
  position: absolute;
  right: 0.9rem;
  top: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(42, 111, 91, 0.12);
  pointer-events: none;
}

.topic-grid-loud .topic-link h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  max-width: 14ch;
  margin-right: 2.5rem;
}

.topic-go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--leaf);
}

.topic-go::after {
  content: "→";
  transition: transform 0.2s ease;
}

.topic-link:hover .topic-go,
.project-link:hover .topic-go {
  color: var(--amber-deep);
}

.topic-link:hover .topic-go::after,
.project-link:hover .topic-go::after {
  transform: translateX(4px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: calc(var(--delay, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.topic-link h3,
.project-link h3,
.post-link h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.55rem;
}

.muted {
  color: var(--ink-soft);
  margin: 0;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1.5rem;
  animation: rise 0.7s ease both;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 0.85rem;
  max-width: 14ch;
}

.page-hero p {
  max-width: 48ch;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.15rem;
}

.prose {
  max-width: 68ch;
}

.prose p + p {
  margin-top: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--leaf);
  background: rgba(42, 111, 91, 0.07);
  border-radius: 0 0.85rem 0.85rem 0;
}

.prose-h2 {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.contact-panel {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(42, 111, 91, 0.12), rgba(232, 163, 23, 0.12));
  border: 1px solid var(--line);
}

.contact-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
}

.contact-actions {
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stack-md {
  margin-top: 1.25rem;
}

.book-panel .meta {
  margin-bottom: 0.35rem;
}

.book-panel .feature-list li {
  background: rgba(255, 255, 255, 0.55);
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.button-ghost:hover {
  border-color: rgba(42, 111, 91, 0.45);
  color: var(--leaf);
  background: rgba(255, 255, 255, 0.65);
}

.site-footer {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(24, 37, 33, 0.04);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
  display: grid;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.footer-inner a:hover {
  color: var(--amber-deep);
}

.footer-mail {
  color: var(--leaf) !important;
  font-weight: 700;
}

.footer-mail:hover {
  color: var(--amber-deep) !important;
}

.footer-meta {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(24, 37, 33, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-meta p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes cue-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes underline-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .project-grid,
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spark-paths {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .topic-grid,
  .project-grid,
  .post-grid,
  .spark-paths {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 6rem;
  }
}

.article {
  max-width: 68ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.article h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.article p,
.article li {
  color: var(--ink-soft);
}

.article ul,
.article ol {
  padding-left: 1.2rem;
}

.article li + li {
  margin-top: 0.45rem;
}

.article-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.article .button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.article .button-ghost:hover {
  color: var(--leaf);
  border-color: rgba(42, 111, 91, 0.45);
  background: rgba(255, 255, 255, 0.65);
}

.table-wrap {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.scheme-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.scheme-table th,
.scheme-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(47, 69, 60, 0.12);
  color: var(--ink-soft);
}

.scheme-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(42, 111, 91, 0.06);
}

.scheme-table tr:last-child td {
  border-bottom: 0;
}

.scheme-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.source-list {
  font-size: 0.95rem;
}

.source-list a {
  color: var(--leaf);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Money / section visual mast —— */
.money-mast {
  position: relative;
  min-height: min(48vh, 440px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffdf8;
  background:
    linear-gradient(
      115deg,
      rgba(8, 22, 24, 0.84) 0%,
      rgba(8, 22, 24, 0.58) 42%,
      rgba(8, 22, 24, 0.32) 68%,
      rgba(8, 22, 24, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 22, 24, 0.12) 0%,
      rgba(8, 22, 24, 0.38) 45%,
      rgba(8, 22, 24, 0.9) 100%
    ),
    url("../assets/hero.png") center 35% / cover no-repeat,
    linear-gradient(135deg, #e98a33, #1a3a3a);
}

.money-mast-compact {
  min-height: min(34vh, 320px);
}

/* Keep the media node for a11y; visual comes from .money-mast background */
.money-mast-media {
  display: none;
}

.money-mast-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 3.5rem 1.25rem 2.75rem;
  color: #fffdf8;
  animation: rise 0.85s ease both;
}

.money-mast-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6c23a;
}

.money-mast h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  max-width: 16ch;
  color: #fffdf8;
  -webkit-text-fill-color: #fffdf8;
  text-shadow: 0 8px 28px rgba(8, 22, 24, 0.45);
}

.money-mast-lead {
  margin: 0;
  max-width: 36ch;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 253, 248, 0.92);
}

.money-mast-actions {
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* —— Money hub path list —— */
.money-hub {
  padding-top: 2.25rem;
  padding-bottom: 5rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.money-paths-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.money-path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.money-path-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 242, 0.88));
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(47, 69, 60, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.money-path-row,
.money-path-row:hover,
.money-path-row:focus {
  text-decoration: none;
}

.money-path-row:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 163, 23, 0.45);
  box-shadow: var(--shadow);
  color: inherit;
}

.money-path-visual {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  color: var(--leaf);
  background:
    radial-gradient(circle at 30% 25%, rgba(246, 194, 58, 0.35), transparent 55%),
    linear-gradient(145deg, rgba(42, 111, 91, 0.16), rgba(233, 138, 51, 0.12));
}

.money-path-visual svg {
  display: block;
}

.money-path-copy {
  display: grid;
  gap: 0.15rem;
}

.money-path-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.money-path-n {
  color: var(--amber-deep);
}

.money-path-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.money-path-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.money-path-row:hover .money-path-name {
  color: var(--leaf);
}

.money-hub-note {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.money-more-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.money-more-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.15rem;
}

.money-more-list a {
  display: block;
  padding: 0.7rem 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(47, 69, 60, 0.12);
}

.money-more-list a:hover {
  color: var(--leaf);
}

.scheme-note {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.perks-lane {
  padding-top: 2rem;
}

.perks-lane .tile-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
  color: var(--leaf);
  background:
    radial-gradient(circle at 30% 25%, rgba(246, 194, 58, 0.32), transparent 55%),
    linear-gradient(145deg, rgba(42, 111, 91, 0.14), rgba(233, 138, 51, 0.1));
}

.perks-lane .tile-icon svg {
  display: block;
}

.perks-footer-links {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.perks-footer-links .button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.perks-footer-links .button-ghost:hover {
  color: var(--leaf);
  border-color: rgba(42, 111, 91, 0.45);
  background: rgba(255, 255, 255, 0.65);
}

.action-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.action-steps li {
  color: var(--ink-soft);
}

.project-tile-body .feature-list {
  margin-top: 0.85rem;
}

.project-tile-body .feature-list li {
  background: rgba(255, 255, 255, 0.55);
}

/* —— Projects catalog (compact, expandable) —— */
.projects-body {
  background:
    radial-gradient(ellipse 55% 40% at 90% 8%, rgba(232, 163, 23, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 20%, rgba(42, 111, 91, 0.14), transparent 50%),
    linear-gradient(180deg, #eef5f2 0%, var(--paper) 45%, #e7efeb 100%);
}

.projects-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 1.25rem;
  animation: rise 0.7s ease both;
}

.projects-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--leaf);
}

.projects-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 7vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  max-width: 12ch;
}

.projects-lead {
  max-width: 36ch;
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.projects-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.projects-jump-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.projects-jump-link:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 163, 23, 0.55);
  color: var(--ink);
}

.projects-jump-hot {
  background: linear-gradient(135deg, var(--leaf), var(--accent));
  color: #fffdf8;
  border-color: transparent;
}

.projects-jump-hot:hover {
  color: #fffdf8;
  border-color: rgba(246, 194, 58, 0.55);
}

.projects-jump-on-dark {
  margin-top: 1.35rem;
}

.projects-jump-on-dark .projects-jump-link {
  background: rgba(255, 253, 248, 0.14);
  color: #fffdf8;
  border-color: rgba(255, 253, 248, 0.35);
  backdrop-filter: blur(6px);
}

.projects-jump-on-dark .projects-jump-link:hover {
  background: rgba(255, 253, 248, 0.22);
  color: #fffdf8;
  border-color: rgba(246, 194, 58, 0.7);
}

.projects-jump-on-dark .projects-jump-hot {
  background: linear-gradient(135deg, #f6c23a, var(--sunset));
  color: var(--ink-deep);
  border-color: transparent;
}

.projects-jump-on-dark .projects-jump-hot:hover {
  color: var(--ink-deep);
  border-color: rgba(255, 253, 248, 0.55);
}

.money-mast-inner .money-mast-lead + .projects-jump {
  margin-top: 1.35rem;
}

.projects-lane {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.projects-lane-work {
  border-radius: 1.75rem;
  margin: 0.5rem auto 0;
  background:
    linear-gradient(160deg, rgba(42, 111, 91, 0.08), rgba(232, 163, 23, 0.1)),
    rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(47, 69, 60, 0.1);
}

.projects-lane-head .section-intro {
  margin-bottom: 1.25rem;
}

.projects-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.project-tile {
  margin: 0;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.project-tile[open] {
  border-color: rgba(42, 111, 91, 0.4);
  box-shadow: 0 18px 40px rgba(47, 69, 60, 0.12);
  grid-column: 1 / -1;
}

.project-tile-featured summary {
  background:
    linear-gradient(125deg, rgba(42, 111, 91, 0.14), rgba(232, 163, 23, 0.14));
}

.project-tile summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "meta cue"
    "title cue"
    "hook cue";
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 1.15rem 1.2rem 1.2rem;
  transition: background 0.2s ease;
}

.perks-lane .project-tile summary:has(.tile-icon) {
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon meta cue"
    "icon title cue"
    "icon hook cue";
  column-gap: 0.9rem;
}

.perks-lane .project-tile summary:has(.tile-icon) .project-tile-cue {
  align-self: center;
}

.project-tile summary::-webkit-details-marker {
  display: none;
}

.project-tile summary:hover {
  background: rgba(255, 250, 242, 0.7);
}

.project-tile summary .meta {
  grid-area: meta;
  margin: 0;
}

.project-tile-title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-deep);
}

.project-tile-hook {
  grid-area: hook;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.4;
  max-width: 34ch;
}

.project-tile-cue {
  grid-area: cue;
  align-self: start;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  border: 1px solid rgba(42, 111, 91, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-tile[open] .project-tile-cue {
  background: var(--leaf);
  color: #fffdf8;
  border-color: var(--leaf);
  font-size: 0;
}

.project-tile[open] .project-tile-cue::before {
  content: "Close";
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-tile-body {
  padding: 0 1.25rem 1.3rem;
  border-top: 1px solid rgba(47, 69, 60, 0.08);
  animation: tile-open 0.35s ease both;
}

.project-tile-body p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.project-tabs {
  margin-top: 0.85rem !important;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--leaf);
  letter-spacing: 0.01em;
}

.project-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 0;
}

.project-chips li {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
  background: rgba(42, 111, 91, 0.08);
  border: 1px solid rgba(42, 111, 91, 0.12);
}

.project-folded {
  margin-top: 0.9rem !important;
  font-size: 0.9rem;
}

.projects-stack-note {
  grid-column: 1 / -1;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(42, 111, 91, 0.28);
  background: rgba(255, 255, 255, 0.55);
}

.projects-stack-note .meta {
  margin-bottom: 0.35rem;
}

.projects-stack-note p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.projects-close {
  max-width: var(--max);
  margin: 1rem auto 2.5rem;
  padding: 0 1.25rem;
}

.projects-close-inner {
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #2a6f5b 0%, #226477 55%, #1d4f55 100%);
  color: #fffdf8;
  box-shadow: 0 22px 50px rgba(34, 100, 119, 0.28);
}

.projects-close-inner .section-kicker {
  color: rgba(255, 253, 248, 0.75);
}

.projects-close-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  color: #fffdf8;
}

.projects-close-inner p {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  color: rgba(255, 253, 248, 0.86);
}

.projects-close-inner .button-ink {
  background: #fffdf8;
  color: var(--ink-deep);
  border-color: transparent;
}

.projects-close-inner .button-ink:hover {
  background: var(--amber);
  color: var(--ink-deep);
}

@keyframes tile-open {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .projects-catalog {
    grid-template-columns: 1fr;
  }

  .project-tile[open] {
    grid-column: auto;
  }

  .projects-hero h1 {
    max-width: none;
  }

  .projects-lane-work {
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media {
    transform: none;
  }
}
