:root {
  --ink: #12171c;
  --ink-soft: #4a5560;
  --paper: #eef1f4;
  --paper-deep: #e2e7ec;
  --cream: #f7f5f0;
  --line: rgba(18, 23, 28, 0.1);
  --accent: #1f4d3a;
  --accent-soft: #2f6b50;
  --gold: #c9b896;
  --hero-text: #f3f1ec;
  --hero-muted: rgba(243, 241, 236, 0.72);
  --hero-faint: rgba(243, 241, 236, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --light-x: 50vw;
  --light-y: 40vh;
  --light-strength: 0.55;
  --hero-lx: 42%;
  --hero-ly: 58%;
  --parallax-y: 0px;
}

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

::selection {
  background: rgba(31, 77, 58, 0.28);
  color: var(--ink);
}

.hero ::selection {
  background: rgba(201, 184, 150, 0.35);
  color: var(--hero-text);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #0f1612;
  line-height: 1.55;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.wilder-light {
  position: fixed;
  left: 0;
  top: 0;
  width: 42vmax;
  height: 42vmax;
  margin: -21vmax 0 0 -21vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: 30;
  transform: translate3d(var(--light-x), var(--light-y), 0);
  background: radial-gradient(
    circle closest-side,
    rgba(201, 184, 150, calc(0.22 * var(--light-strength))) 0%,
    rgba(47, 107, 80, calc(0.16 * var(--light-strength))) 28%,
    rgba(31, 77, 58, calc(0.08 * var(--light-strength))) 52%,
    transparent 72%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  will-change: transform;
}

body.is-lit .wilder-light {
  opacity: 1;
}

body.is-docked .wilder-light {
  --light-strength: 0.95;
  background: radial-gradient(
    circle closest-side,
    rgba(201, 184, 150, 0.34) 0%,
    rgba(47, 107, 80, 0.22) 30%,
    rgba(31, 77, 58, 0.1) 55%,
    transparent 74%
  );
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--hero-text);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center 40%;
  transform: translate3d(0, var(--parallax-y), 0) scale(1.06);
  animation: hero-settle 2s var(--ease-out) forwards;
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle 32vmax at var(--hero-lx) var(--hero-ly),
      rgba(10, 16, 14, 0.1) 0%,
      rgba(10, 16, 14, 0.38) 32%,
      rgba(10, 16, 14, 0.62) 58%,
      rgba(10, 16, 14, 0.78) 100%
    ),
    linear-gradient(
      105deg,
      rgba(10, 16, 14, 0.55) 0%,
      rgba(10, 16, 14, 0.28) 48%,
      rgba(10, 16, 14, 0.12) 100%
    ),
    linear-gradient(to top, rgba(10, 16, 14, 0.5) 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100% - 2.75rem));
  margin: 0 auto 0 0;
  padding: clamp(5rem, 14vh, 8rem) clamp(1.35rem, 5vw, 4.5rem)
    clamp(3.5rem, 8vh, 5.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 2.8vh, 1.85rem);
}

.brand-name {
  position: relative;
  margin: 0;
  width: fit-content;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  font-weight: 550;
  font-optical-sizing: auto;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--hero-text);
}

/* Signature craft: gold seed under the brand */
.brand-mark {
  position: absolute;
  left: 0.08em;
  bottom: -0.18em;
  width: 0.14em;
  height: 0.14em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0.12em rgba(201, 184, 150, 0.18);
}

.headline {
  margin: 0;
  max-width: 22ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--hero-text);
}

.lede {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--hero-muted);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.9rem 1.35rem;
  background: var(--cream);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 200ms ease,
    color 200ms ease,
    transform 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out);
  box-shadow: 0 0 0 0 transparent;
}

.cta::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 0.55rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms var(--ease-out);
  opacity: 0.9;
}

.cta:hover {
  background: #fff;
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.cta.is-near {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.cta.is-near::after {
  transform: scaleX(1);
}

.cta.is-success {
  background: var(--accent);
  color: var(--cream);
}

.cta.is-success::after {
  background: var(--gold);
  transform: scaleX(1);
}

.cta-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--hero-faint);
  letter-spacing: 0.01em;
}

.cta-group.is-busy .cta-hint {
  display: none;
}

.cta-status {
  margin: 0;
  min-height: 0;
  font-size: 0.82rem;
  color: var(--hero-faint);
}

.cta-status:empty {
  display: none;
}

.cta-status a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 184, 150, 0.45);
  transition: border-color 160ms ease;
}

.cta-status a:hover {
  border-bottom-color: var(--gold);
}

.cta-status a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* —— Quiet after-beat (not a second brochure section) —— */
.after {
  position: relative;
  background:
    linear-gradient(
      180deg,
      #0f1612 0%,
      #1a221c 28%,
      #dfe4e8 72%,
      var(--paper) 100%
    );
  color: var(--ink);
}

.after-inner {
  width: min(36rem, calc(100% - 2.75rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 5.5rem) 0 clamp(2.5rem, 5vh, 3.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vh, 4.5rem);
}

.after-line {
  margin: 0;
  max-width: 26rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: rgba(243, 241, 236, 0.88);
}

footer {
  padding-top: 0;
  border-top: 0;
}

footer p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Entrance motion */
.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(14px);
  animation: rise 0.95s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 180ms);
}

@keyframes rise {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes hero-settle {
  from {
    transform: translate3d(0, var(--parallax-y), 0) scale(1.06);
  }
  to {
    transform: translate3d(0, var(--parallax-y), 0) scale(1.03);
  }
}

@media (max-width: 640px) {
  .hero-inner {
    margin: 0 auto;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .cta {
    width: 100%;
  }

  .hero-scrim {
    background:
      radial-gradient(
        circle 28vmax at var(--hero-lx) var(--hero-ly),
        rgba(10, 16, 14, 0.2) 0%,
        rgba(10, 16, 14, 0.55) 40%,
        rgba(10, 16, 14, 0.82) 100%
      ),
      linear-gradient(
        to top,
        rgba(10, 16, 14, 0.72) 0%,
        rgba(10, 16, 14, 0.4) 55%,
        rgba(10, 16, 14, 0.28) 100%
      );
  }

}

@media (min-width: 641px) {
  .after-line {
    margin-top: -1rem;
  }
}

@media (pointer: coarse) {
  .wilder-light {
    display: none;
  }
}

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

  .reveal,
  .hero-image {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero-image {
    height: 100%;
    transform: none;
  }

  .wilder-light {
    display: none;
  }

  .hero-scrim {
    background:
      linear-gradient(
        105deg,
        rgba(10, 16, 14, 0.78) 0%,
        rgba(10, 16, 14, 0.55) 42%,
        rgba(10, 16, 14, 0.28) 68%,
        rgba(10, 16, 14, 0.18) 100%
      ),
      linear-gradient(to top, rgba(10, 16, 14, 0.55) 0%, transparent 45%);
  }

  .cta {
    transition: none;
  }
}
