/* Requested art direction: ivory hero, alternating ivory/forest sections.
   A warm green colour ramp eases into both solid surfaces. The transition
   stays outside the content; no blur or scroll animation is needed. */
:root {
  --ivory-surface: #f5f0e6;
  --forest-surface: #08271f;
  --light-ink: #173d34;
  --light-muted: #53675b;
  --light-gold: #77612f;
  --section-fade: clamp(174px, 13.3vw, 192px);
  --signature-height: 88px;
}
body { background: var(--ivory-surface); }
html { scrollbar-color: #9a926e var(--ivory-surface); }

/* Full-width wrappers keep the existing content widths and anchor targets. */
.section-surface {
  position: relative;
  padding-top: var(--section-fade);
  background-color: var(--surface);
  /* Closely spaced colours at the ends remove the visible start/stop of a
     two-stop gradient. The middle retains the warmth of the SOS palette. */
  background-image: linear-gradient(
    var(--fade-direction),
    var(--ivory-surface) 0%,
    #f3efe4 8%,
    #eae9db 18%,
    #d7ddca 29%,
    #b8c6ae 40%,
    #92a990 50%,
    #6c896f 60%,
    #476750 70%,
    #294b39 80%,
    #133529 90%,
    #0b2b22 96%,
    var(--forest-surface) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% var(--section-fade);
}
.tone-green { --fade-direction: 180deg; --surface: var(--forest-surface); --signature-position: .72; }
.tone-ivory { --fade-direction: 0deg; --surface: var(--ivory-surface); --signature-position: .28; color: var(--light-ink); }
.section-surface > section { padding-block: 30px 58px; border: 0; background: transparent; }
.section-surface > .closing { padding-block: 30px 88px; }

/* Approved SOS separator. Keep the gold on the darker part of either fade,
   with the original tree upright and all decoration outside the content. */
.transition-signature {
  position: absolute;
  inset-inline: 0;
  top: calc(var(--section-fade) * var(--signature-position) - var(--signature-height) / 2);
  height: var(--signature-height);
  display: flex;
  align-items: center;
  gap: 23px;
  pointer-events: none;
}
.transition-signature::before, .transition-signature::after {
  content: '';
  flex: 1;
  min-width: 0;
  height: 3px;
  background: linear-gradient(90deg, #b78024 0%, #d5a947 28%, #efd18b 70%, #d5a947 100%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.transition-signature::after { transform: scaleX(-1); }
.transition-tree {
  width: 61px;
  height: 100%;
  flex: none;
  background: url('assets/tree-gold.svg') center / contain no-repeat;
}

/* The original green-and-gold header mark is legible on ivory without filters. */
.opening, .hero-opening { background: var(--ivory-surface); color: var(--light-ink); }
.hero-opening::before, .brand-art::before { display: none; }
.header { border-color: #173d3425; }
.header .brand img { filter: none; }
.header nav a { opacity: 1; color: #355245; }
.header nav a:hover { color: #173d34; }
.header-cta { color: #244737; border-color: #7b78564d; }
.header-cta span { color: var(--light-gold); }
.header-cta:hover { background: #e8e4d5; }
.menu-toggle { color: var(--light-ink); border-color: #56654759; }
.hero h1 { color: var(--light-ink); }
.hero-lead { color: var(--light-muted); }
.hero .gold { background: #173f32; color: #f5f0e6; border-color: #173f32; box-shadow: 0 5px 17px #173d3410, inset 0 1px #ffffff16; }
.hero .gold:hover { background: #24523f; border-color: #24523f; box-shadow: 0 7px 22px #173d3420; }
.hero .secondary-route { color: #365446; text-decoration-color: #49654c66; }
.hero .secondary-route span { color: var(--light-gold); }
.brand-art figcaption > span:first-child { color: var(--light-gold); }
.brand-art figcaption p { color: #596d5e; }
.brand-art-line { background: linear-gradient(90deg, transparent, #9b7d405c, transparent); }
.sculpture-logo { filter: drop-shadow(.8px 1px .6px #ac8c4e59) drop-shadow(5px 8px 7px #173d3417) drop-shadow(10px 18px 17px #173d3417); }
#sos-metal stop:nth-child(1) { stop-color: #24543f; }
#sos-metal stop:nth-child(2) { stop-color: #426d53; }
#sos-metal stop:nth-child(3) { stop-color: #173d34; }
#sos-metal stop:nth-child(4) { stop-color: #10362b; }
#sos-metal stop:nth-child(5) { stop-color: #527054; }
#sos-gold stop:nth-child(1) { stop-color: #d0af63; }
#sos-gold stop:nth-child(2) { stop-color: #b4872b; }
#sos-gold stop:nth-child(3) { stop-color: #85632c; }
#sos-gold stop:nth-child(4) { stop-color: #b89649; }
.trust { border-color: #173d3426; }
.trust p { color: #586d5e; }
.trust strong { color: #264a39; }

/* Product pages on a light working surface. */
.tone-ivory .overline { color: var(--light-gold); }
.tone-ivory .inside-visual { background: #ece7da; border-color: #a8986654; }
.tone-ivory .preview-tabs { border-color: #929a785e; }
.tone-ivory .preview-tabs button { color: #355442; }
.tone-ivory .preview-tabs button.active { background: #173f32; color: #f5f0e6; }
.tone-ivory .preview-tabs button:not(.active):hover { background: #dbdfcd; }
.tone-ivory .large-sheet { box-shadow: 8px 14px 30px #203e2724; }
.tone-ivory .large-sheet:hover { box-shadow: 8px 14px 35px #203e2738; }
.tone-ivory .image-note { color: #5b6b59; }
.tone-ivory .inside-copy h2 { color: var(--light-ink); }
.tone-ivory .inside-copy .section-lead { color: var(--light-muted); }
.tone-ivory .contents-list div { border-color: #71855f30; }
.tone-ivory .contents-list dt { color: #264b39; }
.tone-ivory .contents-list dd, .tone-ivory .format-note { color: var(--light-muted); }

/* Keep the ten real covers and their visual hierarchy on the ivory catalogue. */
.tone-ivory .catalog-heading h2 { color: var(--light-ink); }
.tone-ivory .catalog-heading p { color: var(--light-muted); }
.tone-ivory .cover-frame { background: #eae5d7; border-color: #c5b79787; }
.tone-ivory .cover-frame img { box-shadow: 5px 8px 14px #263d2c24; }
.tone-ivory .cover-library button:hover .cover-frame { background: #e0e2ce; border-color: #7b855f; }
.tone-ivory .cover-library button.active .cover-frame { background: #254c37; border-color: #b08b3d; box-shadow: 0 0 0 1px #b79b582b; }
.tone-ivory .cover-caption > span:first-child { color: #796330; }
.tone-ivory .cover-caption > span:nth-child(2) { color: #49604e; }
.tone-ivory .cover-library button.active .cover-caption > span:nth-child(2) { color: #163e2d; }
.tone-ivory .cover-library .plan-arrow { color: #796330; }
.tone-ivory .plan-detail { background: #fcf9f0; border-color: #b8b79570; box-shadow: 0 14px 30px #263d2c08; }
.tone-ivory .plan-detail-cover img { box-shadow: 7px 10px 22px #163e2d28; }
.tone-ivory .plan-detail-cover small { color: #596f59; }
.tone-ivory .plan-detail-top { color: #5e6f58; }
.tone-ivory .plan-detail-top p { color: #796330; }
.tone-ivory .plan-detail h3 { color: #173d34; }
.tone-ivory .plan-detail-copy > p { color: var(--light-muted); }
.tone-ivory .plan-outcome h4 { color: #2b4d38; }
.tone-ivory .plan-outcome p { color: var(--light-muted); }
.tone-ivory .plan-detail .text-link { color: #35583d; }
.tone-ivory .catalog-help { color: var(--light-muted); }
.tone-ivory .catalog-help a { color: #274d38; }

/* A single dark offer gives the current priority prominence on the light area. */
.tone-ivory .pricing-heading h2 { color: var(--light-ink); }
.tone-ivory .pricing-heading p { color: var(--light-muted); }
.tone-ivory .individual { background: #103f34; border-color: #bfa265; color: #f2ecd9; box-shadow: 0 14px 32px #193f2821; }
.tone-ivory .individual .overline { color: #cec394; }
.tone-ivory .individual > p:not(.price):not(.overline), .tone-ivory .individual small { color: #c4d0ba; }
.tone-ivory .individual .gold { color: #18382c; background: #d8b974; border-color: #d8b974; }
.tone-ivory .individual .gold:hover { background: #e7cb8a; border-color: #e7cb8a; }
.tone-ivory .packs article { border-color: #9b9f784a; }
.tone-ivory .packs h3 { color: var(--light-ink); }
.tone-ivory .packs article p { color: var(--light-muted); }
.tone-ivory .pack-action strong { color: #655725; }
.tone-ivory .pack-action button { color: #436039; border-color: #92936985; }
.tone-ivory .pack-action button:hover { background: #264c35; color: #f2ecd9; }
.tone-ivory .pack-advice { color: #3f5942; }
.tone-ivory .pricing-terms { color: #536b53; }

.tone-ivory .faq h2 { color: var(--light-ink); }
.tone-ivory .faq-list details { border-color: #9b9f784a; }
.tone-ivory .faq-list summary { color: #244a34; }
.tone-ivory .faq-list summary span { color: #78652d; }
.tone-ivory .faq-list details p { color: var(--light-muted); }
.footer { background: var(--forest-surface); }

@media (max-width: 850px) {
  :root { --section-fade: 150px; --signature-height: 80px; }
  .transition-signature { gap: 17px; }
  .transition-tree { width: 56px; }
  .section-surface > section { padding-block: 28px 51px; }
}
@media (max-width: 600px) {
  .section-surface > section { padding-block: 22px 42px; }
  .section-surface > .closing { padding-block: 22px 65px; }
  .sculpture-logo { filter: drop-shadow(.6px .8px .4px #ac8c4e45) drop-shadow(4px 7px 8px #173d341c); }
}

/* Integrated links keep the approved button dimensions and keyboard states. */
.pack-action > a {display:grid;place-items:center;width:48px;height:48px;border:1px solid currentColor;border-radius:50%;text-decoration:none;font-size:24px;flex-shrink:0}
.arranque-conditions,.arranque-optional {font-size:16px!important;line-height:1.6!important;margin-top:18px!important}
.arranque-optional a {text-decoration:underline;text-underline-offset:.2em}
.footer-bottom nav {display:flex;gap:12px 22px;flex-wrap:wrap;justify-content:flex-end}
.footer-bottom nav a {font-size:14px;text-decoration:underline;text-underline-offset:.25em}
@media(max-width:650px){.footer-bottom nav{justify-content:flex-start}.footer-bottom{gap:22px}}

/* One composed motion language. Content stays visible without JavaScript. */
@keyframes sos-force-hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sos-force-sculpture-enter {
  from { opacity: 0; transform: perspective(1200px) rotateY(-14deg) rotateX(4deg) translateY(16px); }
  to { opacity: 1; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); }
}
.force-motion .hero-copy { animation: sos-force-hero-enter .72s cubic-bezier(.22,.75,.24,1) both; }
.force-motion .hero-art { animation: sos-force-hero-enter .9s .08s cubic-bezier(.22,.75,.24,1) both; }
.force-motion .brand-sculpture { animation: sos-force-sculpture-enter 1.15s .08s cubic-bezier(.22,.75,.24,1) both; }
.motion-ready .motion-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .72s cubic-bezier(.22,.75,.24,1) var(--reveal-delay, 0ms), transform .72s cubic-bezier(.22,.75,.24,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.motion-ready .motion-reveal.is-visible { opacity: 1; transform: translateY(0); will-change: auto; }
.motion-ready .transition-signature.motion-reveal { transform: translateY(10px) scale(.985); }
.motion-ready .transition-signature.motion-reveal.is-visible { transform: translateY(0) scale(1); }

/* The opening shares one background mark and two independent journeys.
   Scope these rules to the hero so section transitions keep their geometry. */
.hero.hero-split {
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-block: 48px 62px;
}
.hero-split .hero-copy { position: relative; z-index: 1; padding: 0; min-width: 0; }
.hero-split h1 { max-width: 19ch; margin-inline: auto; text-align: center; }
.hero-split .hero-watermark {
  position: absolute;
  inset: 10% -3% 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  opacity: .12;
  pointer-events: none;
  z-index: 0;
  animation: none;
}
.hero-split .brand-sculpture { width: 100%; height: 100%; min-height: 0; max-width: none; padding: 0; margin: 0; transform: none; }
.hero-split .sculpture-logo { width: 100%; height: 100%; filter: none; }
.hero-journeys {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 36px;
  row-gap: 20px;
  max-width: 990px;
  margin: 46px auto 0;
}
.hero-journey {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / span 3;
  justify-items: center;
  min-width: 0;
  text-align: center;
}
.hero-journey-start { grid-column: 1; }
.hero-journey-existing { grid-column: 3; }
.hero-journey h2 { max-width: 13ch; font-size: clamp(22px, 2.7vw, 36px); line-height: 1.2; letter-spacing: -.035em; color: var(--light-ink); }
.hero-journey-start h2 { max-width: none; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-journey > p { max-width: 29ch; font-size: 18px; line-height: 1.5; color: var(--light-ink); }
.hero-journey-actions { display: grid; align-self: start; gap: 12px; width: min(100%, 320px); padding-top: 8px; }
.hero-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid #d5a947;
  border-radius: 12px;
  background: rgb(245 240 230 / .26);
  color: var(--light-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.hero-choice-secondary { font-weight: 400; }
.hero-choice:focus-visible, .hero-choice:active { background: rgb(8 39 31 / .94); color: var(--ivory-surface); }
.hero-choice:focus-visible { outline: 2px solid var(--light-ink); outline-offset: 4px; }
@media (hover: hover) {
  .hero-choice:hover { background: rgb(8 39 31 / .94); color: var(--ivory-surface); }
}
.hero-journey-divider {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-block: 3px;
  pointer-events: none;
}
.hero-journey-divider::before, .hero-journey-divider::after {
  content: '';
  flex: 1;
  min-height: 28px;
  width: 3px;
  background: linear-gradient(180deg, #b78024 0%, #d5a947 28%, #efd18b 70%, #d5a947 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hero-journey-divider::after { transform: rotate(180deg); }
.hero-journey-divider .transition-tree { width: 56px; height: 74px; }

@keyframes sos-watermark-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-split .hero-copy { animation: sos-force-hero-enter .72s cubic-bezier(.22,.75,.24,1) both; }
  .hero-split .brand-sculpture { animation: sos-watermark-enter 1.15s .08s cubic-bezier(.22,.75,.24,1) both; }
}
.force-motion .hero-split .hero-copy { animation: sos-force-hero-enter .72s cubic-bezier(.22,.75,.24,1) both; }
.force-motion .hero-split .brand-sculpture { animation: sos-watermark-enter 1.15s .08s cubic-bezier(.22,.75,.24,1) both; }

@media (max-width: 850px) {
  .hero.hero-split { padding-block: 36px 44px; }
  .hero-journeys { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); column-gap: 22px; margin-top: 36px; }
  .hero-journey-divider .transition-tree { width: 44px; height: 62px; }
  .hero-choice { font-size: 16px; padding-inline: 12px; }
}
@media (max-width: 600px) {
  .hero.hero-split { width: calc(100% - 32px); padding-block: 27px 34px; }
  .hero-split h1 { font-size: clamp(32px, 7.9vw, 44px); line-height: 1.14; letter-spacing: -.045em; }
  .hero-split .hero-watermark { inset: 24% -8px 0; }
  .hero-journeys { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); column-gap: 12px; row-gap: 17px; margin-top: 30px; }
  .hero-journey h2 { max-width: none; font-size: clamp(16px, calc(6.9vw - 6px), 27px); }
  .hero-journey > p { font-size: 16px; line-height: 1.5; }
  .hero-journey-actions { padding-top: 2px; gap: 12px; }
  .hero-choice { min-height: 70px; padding: 12px 8px; border-radius: 10px; }
  .hero-journey-divider { gap: 14px; }
  .hero-journey-divider .transition-tree { width: 28px; height: 40px; }
  .hero-journey-divider::before, .hero-journey-divider::after { width: 2px; }
}
