:root {
  --ink: #14201c;
  --forest: #1c3a32;
  --forest-deep: #102822;
  --sand: #f3ebe0;
  --sand-soft: #faf6f0;
  --clay: #c45c3a;
  --clay-deep: #a8482c;
  --palm: #3f6f5a;
  --gold: #c4a05a;
  --line: rgba(20, 32, 28, 0.12);
  --text: #24322c;
  --muted: rgba(36, 50, 44, 0.68);
  --on-dark: rgba(250, 246, 240, 0.92);
  --on-dark-muted: rgba(250, 246, 240, 0.62);
  --radius: 4px;
  --max: 1100px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand-soft);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.section {
  padding: 88px 0;
}

.section--dark {
  background: var(--forest);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--sand-soft);
}

.section--sand {
  background: var(--sand);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  margin-top: 12px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section--dark .section-head p {
  color: var(--on-dark-muted);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(to bottom, rgba(16, 40, 34, 0.72), transparent);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(16, 40, 34, 0.94);
  backdrop-filter: blur(10px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sand-soft);
}

.brand-logo {
  height: 68px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  border-left: 1px solid rgba(250, 246, 240, 0.28);
  padding-left: 12px;
}

.brand-text strong {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.7rem;
  opacity: 0.72;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(250, 246, 240, 0.28);
  border-radius: 999px;
  color: var(--sand-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch:hover {
  background: rgba(250, 246, 240, 0.08);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1f9b57;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 999px;
}

.header-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 72px;
  color: var(--on-dark);
  background:
    linear-gradient(180deg, rgba(10, 28, 24, 0.25) 0%, rgba(10, 28, 24, 0.55) 48%, rgba(10, 28, 24, 0.92) 100%),
    url("../assets/images/hero.jpg") center / cover no-repeat;
}

.hero h1 {
  color: var(--sand-soft);
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  max-width: 11ch;
  margin: 14px 0 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-lede {
  max-width: 34rem;
  color: var(--on-dark);
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--whatsapp {
  background: #1f9b57;
  color: #fff;
}

.btn--whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn--ghost {
  background: transparent;
  color: var(--sand-soft);
  border-color: rgba(250, 246, 240, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--forest);
  border-color: rgba(28, 58, 50, 0.28);
}

.btn--outline:hover {
  background: rgba(28, 58, 50, 0.06);
}

.section--dark .btn--outline {
  color: var(--sand-soft);
  border-color: rgba(250, 246, 240, 0.35);
}

.section--dark .btn--outline:hover {
  background: rgba(250, 246, 240, 0.08);
}

.section-cta {
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

/* Opportunity */
.opp-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.opp-points {
  display: grid;
  gap: 18px;
}

.opp-point strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.opp-point p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Project gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.gallery img,
.gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-main {
  min-height: 420px;
  grid-row: span 2;
}

.gallery-side {
  min-height: 203px;
}

.gallery-row img {
  min-height: 200px;
}

.loc-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.loc-block p {
  color: var(--muted);
  margin-bottom: 18px;
}

.loc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  list-style: none;
}

.feat-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.95rem;
}

.feat-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  flex: 0 0 auto;
  background: var(--clay);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.plan-block figure {
  margin: 0;
}

.plan-block img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.plan-block figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.dims {
  list-style: none;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.dims li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.dims b {
  color: var(--ink);
  font-weight: 600;
}

/* Construction */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

.badge-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.obra-feature {
  margin-bottom: 16px;
}

.obra-feature img,
.obra-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  /* Light tone lock — keep mild so detail isn’t softened */
  filter: saturate(0.92) contrast(1.03) brightness(1.01);
}

.obra-feature img {
  max-height: 460px;
}

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

.obra-grid figure {
  margin: 0;
}

.obra-grid img {
  height: 220px;
}

.obra-grid figcaption,
.obra-feature figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.log {
  margin-top: 36px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.log-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.log-row .when {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

.log-row .what {
  color: var(--muted);
  font-size: 0.95rem;
}

.log-row .what b {
  color: var(--ink);
}

/* Numbers + legal */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(250, 246, 240, 0.14);
  border: 1px solid rgba(250, 246, 240, 0.14);
  margin-bottom: 40px;
}

.number {
  background: var(--forest-deep);
  padding: 28px 22px;
}

.number .n {
  font-family: "Fraunces", serif;
  font-size: 1.85rem;
  color: var(--gold);
}

.number .l {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 36px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(250, 246, 240, 0.12);
}

th {
  color: var(--on-dark-muted);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--on-dark);
}

td.hl {
  color: var(--gold);
  font-weight: 600;
}

.note {
  font-size: 0.8rem;
  color: var(--on-dark-muted);
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  border: 1px solid rgba(250, 246, 240, 0.14);
  padding: 26px 24px;
  background: rgba(250, 246, 240, 0.03);
}

.panel h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.panel p {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.panel ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.panel li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--on-dark);
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.fee {
  margin-top: 18px;
  display: inline-block;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(250, 246, 240, 0.14);
  padding-top: 12px;
}

.fee b {
  color: var(--gold);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  padding-top: 8px;
  border-top: 2px solid var(--clay);
}

.step .n {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--clay);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Risks */
.risks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 22px;
}

.risk h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.risk p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.member img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.member .role {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 4px;
}

.member .name {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.member .bio {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  color: var(--clay);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 0;
  background:
    linear-gradient(180deg, rgba(16, 40, 34, 0.88), rgba(16, 40, 34, 0.95)),
    url("../assets/images/fachada.jpg") center / cover no-repeat;
  color: var(--on-dark);
}

.cta .eyebrow {
  justify-content: center;
  color: var(--gold);
}

.cta h2 {
  color: var(--sand-soft);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 14px auto 14px;
  max-width: 16ch;
}

.cta p {
  color: var(--on-dark-muted);
  max-width: 460px;
  margin: 0 auto 26px;
}

.cta .disclaimer {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 240, 0.55);
  padding: 28px 0;
  font-size: 0.84rem;
}

.site-footer a {
  color: rgba(250, 246, 240, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--sand-soft);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

/* Float WhatsApp mobile */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1f9b57;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 900px) {
  .opp-grid,
  .gallery,
  .gallery-row,
  .plans,
  .split,
  .steps,
  .risks,
  .team,
  .numbers,
  .obra-grid,
  .loc-block {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    min-height: 260px;
    grid-row: auto;
  }

  .gallery-side {
    min-height: 180px;
  }

  .feat-list {
    grid-template-columns: 1fr;
  }

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

  .log-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .obra-grid img {
    height: 200px;
  }

  .brand-text span {
    display: none;
  }

  .wa-float {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding-bottom: 56px;
  }

  .brand-logo {
    height: 56px;
    max-width: 88px;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

  .header-cta span {
    display: none;
  }

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

/* Investment chat assistant */
.k-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  font-family: "Sora", sans-serif;
  pointer-events: none;
}

.k-chat > * {
  pointer-events: auto;
}

.k-chat__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 40, 34, 0.35);
  z-index: 99;
}

.k-chat__backdrop[hidden] {
  display: none !important;
}

.k-chat__launcher {
  position: relative;
  z-index: 102;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--forest);
  color: var(--sand-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(16, 40, 34, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.k-chat__launcher:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

.k-chat__launcher svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.k-chat__icon-close {
  display: none;
}

.k-chat.is-open .k-chat__icon-open {
  display: none;
}

.k-chat.is-open .k-chat__icon-close {
  display: block;
}

.k-chat__panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(360px, calc(100vw - 28px));
  height: min(420px, calc(100vh - 140px));
  background: var(--sand-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(16, 40, 34, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 101;
  animation: k-chat-in 0.22s ease;
}

.k-chat__panel[hidden] {
  display: none !important;
}

@keyframes k-chat-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.k-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--on-dark);
  flex-shrink: 0;
}

.k-chat__head strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 500;
}

.k-chat__head span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--on-dark-muted);
  line-height: 1.35;
}

.k-chat__close {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.k-chat__messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(196, 160, 90, 0.12), transparent 40%),
    var(--sand-soft);
}

.k-chat__bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.k-chat__bubble--assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.k-chat__bubble--user {
  align-self: flex-end;
  background: var(--forest);
  color: var(--sand-soft);
}

.k-chat__bubble.is-typing {
  color: var(--muted);
  font-style: italic;
}

.k-chat__wa {
  display: inline-block;
  margin-top: 8px;
  color: var(--clay-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.k-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}

.k-chat__form input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--sand-soft);
}

.k-chat__form input:focus {
  outline: 2px solid rgba(63, 111, 90, 0.35);
  outline-offset: 1px;
}

.k-chat__form button {
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--clay);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.k-chat__form button:hover {
  background: var(--clay-deep);
}

body.k-chat-lock {
  overflow: hidden;
}

@media (max-width: 900px) {
  .k-chat {
    bottom: 84px;
    right: 16px;
  }

  .k-chat__panel {
    right: 0;
    bottom: 66px;
    width: min(320px, calc(100vw - 32px));
    height: min(52vh, 380px);
    max-height: calc(100vh - 160px);
  }

  .k-chat__head span {
    display: none;
  }
}

/* Content / guide pages */
.site-header--solid {
  background: rgba(16, 40, 34, 0.96);
  backdrop-filter: blur(10px);
}

.page-hero {
  padding: calc(var(--header-h) + 48px) 0 40px;
  background:
    radial-gradient(ellipse at top right, rgba(196, 160, 90, 0.14), transparent 42%),
    linear-gradient(165deg, #16352d 0%, var(--forest-deep) 55%, #0c1f1a 100%);
  color: var(--on-dark);
}

.page-hero h1 {
  color: var(--sand-soft);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
  margin-top: 12px;
}

.page-hero .lede {
  margin-top: 16px;
  max-width: 38rem;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
}

.page-hero .meta {
  margin-top: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 240, 0.55);
}

.article {
  padding: 56px 0 32px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: start;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 2.2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.55rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

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

.prose ul,
.prose ol {
  margin: 0.85rem 0 0 1.1rem;
}

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

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose .callout {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--clay);
  background: rgba(196, 92, 58, 0.06);
  color: var(--text);
}

.prose .disclaimer {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.toc p {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.toc a:last-child {
  border-bottom: 0;
}

.toc a:hover {
  color: var(--forest);
}

.guide-related {
  padding: 24px 0 72px;
}

.guide-related h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-card {
  display: block;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  border-color: rgba(63, 111, 90, 0.45);
  transform: translateY(-2px);
}

.guide-card strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.guide-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.2rem;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--sand-soft);
}

.timeline li.is-current::before {
  background: var(--clay);
}

.timeline li.is-done::before {
  background: var(--palm);
}

.timeline strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.obra-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 1.2rem 0;
}

.obra-thumbs img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.foot-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
  font-size: 0.88rem;
}

.foot-guides a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot-guides a:hover {
  color: var(--forest);
}

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

  .toc {
    position: static;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .obra-thumbs {
    grid-template-columns: 1fr;
  }
}
