/* ------------------------------------------------------------------
   Spruce Up — public landing page.
   Extends the kit design language: ivory & charcoal, one restrained
   gold, serif display, numbered sections. Self-contained: system
   fonts only, no CDNs, no frameworks.
   ------------------------------------------------------------------ */

:root {
  --ivory: #f6f1e7;
  --ivory-deep: #ede5d3;
  --charcoal: #232019;
  --charcoal-soft: #2c2822;
  --ink: #33302a;
  --ink-soft: #6b645a;
  --gold: #a2884f;
  --gold-bright: #c3a768;
  --hairline: rgba(52, 46, 36, 0.18);
  --hairline-light: rgba(246, 241, 231, 0.22);

  --font-display: "Didot", "Bodoni 72", "Baskerville", "Palatino", "Times New Roman", serif;
  --font-label: "Optima", "Seravek", "Candara", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-prose: "Charter", "Georgia", "Palatino", serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-prose);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--gold-bright); color: var(--charcoal); }

/* ---------- shared primitives ---------- */

.measure { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }
.measure--wide { max-width: 72rem; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.eyebrow::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hairline);
  transform: translateY(-0.2em);
}

.eyebrow--gold { color: var(--gold-bright); }
.eyebrow--gold::after { border-top-color: var(--hairline-light); }

.eyebrow__numeral {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.eyebrow--gold .eyebrow__numeral { color: rgba(246, 241, 231, 0.55); }

.rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gold-bright);
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: var(--gold-bright);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section { padding: 6.5rem 0; }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

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

.section__title--ivory { color: var(--ivory); }
.section__title--ivory em { color: var(--gold-bright); }

.section__intro {
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 3.5rem;
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.2rem 0.95rem;
  border: 1px solid var(--gold-bright);
  transition: background 0.35s ease, color 0.35s ease, letter-spacing 0.35s ease;
}

.button--gold {
  background: var(--gold-bright);
  color: var(--charcoal);
}

.button--gold:hover {
  background: transparent;
  color: var(--gold-bright);
}

.button--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246, 241, 231, 0.45);
}

.button--ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.button--grand {
  padding: 1.25rem 3rem 1.15rem;
  font-size: 0.84rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 20s ease-out forwards;
}

@keyframes hero-drift {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 18, 14, 0.42) 0%,
      rgba(20, 18, 14, 0.12) 32%,
      rgba(20, 18, 14, 0.78) 78%,
      rgba(20, 18, 14, 0.94) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 7rem;
  color: var(--ivory);
}

.hero__kicker {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.82);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 14px rgba(20, 18, 14, 0.75);
}

.rule--hero { margin-bottom: 2rem; }

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.hero__full-stop { color: var(--gold-bright); }

.hero__strapline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.45;
  max-width: 30em;
  margin-top: 1.6rem;
  color: rgba(246, 241, 231, 0.92);
  text-wrap: balance;
}

.hero__strapline em {
  font-style: italic;
  color: var(--gold-bright);
  white-space: nowrap;
}

.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  right: 1.8rem;
  bottom: 2rem;
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.55);
  writing-mode: vertical-rl;
}

@media (max-width: 40rem) {
  .hero__scroll { display: none; }
  .hero__strapline em { white-space: normal; }
  .hero__kicker { font-size: 0.66rem; letter-spacing: 0.26em; }
}

/* staggered hero reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 1.1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.reveal:nth-child(1) { animation-delay: 0.15s; }
.reveal:nth-child(2) { animation-delay: 0.3s; }
.reveal:nth-child(3) { animation-delay: 0.45s; }
.reveal:nth-child(4) { animation-delay: 0.65s; }
.reveal:nth-child(5) { animation-delay: 0.85s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- intro ---------- */

.section--intro {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 160%);
  padding: 7rem 0;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.5;
  color: var(--ink);
}

.lede::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold);
}

/* ---------- transformation / before-after ---------- */

.section--transformation { padding-bottom: 7.5rem; }

.showcase {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 4.5rem;
}

.ba-block { margin: 0; }

.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ba:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.ba__after,
.ba__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba__before-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.ba__stem {
  flex: 1;
  width: 1px;
  background: rgba(246, 241, 231, 0.9);
  box-shadow: 0 0 6px rgba(20, 18, 14, 0.5);
}

.ba__grip {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(246, 241, 231, 0.9);
  background: rgba(35, 32, 25, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--ivory);
  font-size: 0.8rem;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(20, 18, 14, 0.45);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.ba__grip .ba__arrow { transform: rotate(-45deg); line-height: 1; }

.ba:hover .ba__grip,
.ba--dragging .ba__grip {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--charcoal);
}

.ba__tag {
  position: absolute;
  bottom: 1.1rem;
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(35, 32, 25, 0.62);
  padding: 0.42rem 0.9rem 0.36rem;
  backdrop-filter: blur(3px);
}

.ba__tag--before { left: 1.1rem; }
.ba__tag--after { right: 1.1rem; color: var(--gold-bright); }

.ba-block__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
  padding: 1.1rem 0.2rem 0;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.1rem;
}

.ba-block__room {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.ba-block__note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ba-block__disclosure {
  margin-left: auto;
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

@media (max-width: 48rem) {
  .ba { aspect-ratio: 4 / 3; }
  .ba-block__disclosure { margin-left: 0; }
}

/* ---------- what's in a kit ---------- */

.section--kit {
  background:
    radial-gradient(140% 120% at 85% -10%, var(--charcoal-soft) 0%, var(--charcoal) 60%);
  color: var(--ivory);
  padding: 7.5rem 0;
}

.section--kit .section__title { margin-bottom: 3.5rem; }

.kit {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline-light);
  border-left: 1px solid var(--hairline-light);
}

.kit__item {
  padding: 2.4rem 2.2rem 2.6rem;
  border-right: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
}

.kit__numeral {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}

.kit__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}

.kit__line {
  font-size: 0.98rem;
  color: rgba(246, 241, 231, 0.72);
}

@media (max-width: 48rem) {
  .kit { grid-template-columns: 1fr; }
}

/* ---------- demonstration kits ---------- */

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

.work__card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--hairline);
  padding: 1rem 1rem 1.6rem;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.5s ease;
}

.work__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(35, 32, 25, 0.35);
}

.work__frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
  margin-bottom: 1.4rem;
}

.work__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.work__card:hover .work__frame img { transform: scale(1.05); }

.work__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 0 0.4rem;
}

.work__descriptor {
  display: block;
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.4rem 0;
  min-height: 3.2rem;
}

.work__cta {
  display: block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 1.1rem 0.4rem 0;
}

.work__arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}

.work__card:hover .work__arrow { transform: translateX(6px); }

@media (max-width: 56rem) {
  .work { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; }
  .work__descriptor { min-height: 0; }
}

/* ---------- tiers ---------- */

.section--tiers {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 7.5rem 0;
}

.section--tiers .section__title { margin-bottom: 3.5rem; }

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

.tier {
  position: relative;
  border: 1px solid var(--hairline-light);
  padding: 2.6rem 2.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(246, 241, 231, 0.02);
}

.tier--featured {
  border-color: var(--gold-bright);
  background: rgba(195, 167, 104, 0.07);
}

.tier__flourish {
  position: absolute;
  top: 0;
  right: 1.6rem;
  transform: translateY(-50%);
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gold-bright);
  color: var(--charcoal);
  padding: 0.4rem 0.9rem 0.32rem;
}

.tier__name {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.75);
}

.tier__price {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--ivory);
}

.tier--featured .tier__price { color: var(--gold-bright); }

.rule--tier { margin: 0.2rem 0; }

.tier__line {
  font-size: 0.98rem;
  color: rgba(246, 241, 231, 0.72);
}

.tier__cta {
  margin-top: auto;
  padding-top: 1.6rem;
  align-self: stretch;
  text-align: center;
}

.tiers__note {
  margin-top: 2.4rem;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(246, 241, 231, 0.55);
}

@media (max-width: 56rem) {
  .tiers { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
  .tiers__note { text-align: center; }
}

/* ---------- invitation ---------- */

.section--invite {
  background: linear-gradient(180deg, var(--ivory-deep) -60%, var(--ivory) 45%);
  padding: 8rem 0;
  text-align: center;
}

.section--invite .eyebrow { justify-content: center; }
.section--invite .eyebrow::after { display: none; }

.invite__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

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

.invite__line {
  max-width: 34rem;
  margin: 0 auto 2.6rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.invite__secondary {
  margin-top: 1.3rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.invite__secondary a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.invite__secondary a:hover { color: var(--gold-bright); }

.invite__meta {
  margin-top: 2.2rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(195, 167, 104, 0.35);
  color: rgba(246, 241, 231, 0.75);
  padding: 4rem 0 4.5rem;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ivory);
}

.rule--footer { margin: 1.8rem auto; }

.footer__disclosure {
  font-size: 0.85rem;
  max-width: 34rem;
  margin: 0 auto 0.8rem;
  color: rgba(246, 241, 231, 0.6);
}

.footer__meta {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(246, 241, 231, 0.42);
}
