:root {
  --cream: #f6efe0;
  --ivory: #fbf6ea;
  --parchment: #ead9b4;
  --gold: #c4a15a;
  --gold-deep: #9a7a38;
  --ink: #1a1510;
  --ink-soft: #3a3228;
  --fur: #f7f2e8;
  --line: rgba(42, 36, 28, 0.14);
  --shadow: 0 24px 60px rgba(26, 21, 16, 0.12);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(232, 205, 140, 0.55), transparent 60%),
    radial-gradient(900px 600px at 100% 8%, rgba(196, 161, 90, 0.22), transparent 55%),
    linear-gradient(180deg, #f8f1e2 0%, #f3e6c8 42%, #efe0bc 100%);
}
.wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: floaty 22s ease-in-out infinite;
}
.wash-a { width: 42vw; height: 42vw; left: -8%; top: 18%; background: #f3d9a0; }
.wash-b { width: 36vw; height: 36vw; right: -10%; top: 48%; background: #e8c888; animation-delay: -8s; }
.wash-c { width: 28vw; height: 28vw; left: 38%; bottom: -12%; background: #fff6e4; animation-delay: -14s; }
.paw-field {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%239a7a38'%3E%3Cellipse cx='70' cy='78' rx='16' ry='20' transform='rotate(-18 70 78)'/%3E%3Cellipse cx='96' cy='70' rx='14' ry='18' transform='rotate(8 96 70)'/%3E%3Cellipse cx='54' cy='98' rx='11' ry='14' transform='rotate(-38 54 98)'/%3E%3Cellipse cx='112' cy='92' rx='11' ry='14' transform='rotate(32 112 92)'/%3E%3Cellipse cx='84' cy='108' rx='22' ry='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 280px;
  animation: pawdrift 110s linear infinite;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.spot {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 214, 0.55), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0.7;
}
#drift { position: absolute; inset: 0; width: 100%; height: 100%; }

.nav, main, .foot { position: relative; z-index: 1; }
section[id] { scroll-margin-top: 92px; }

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 7vw;
  background: rgba(246, 239, 224, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  z-index: 20;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(26, 21, 16, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--gold);
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 620;
}
.brand small {
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.64rem;
  color: var(--gold-deep);
}
.links {
  display: flex;
  gap: 22px;
  margin-left: 18px;
  font-size: 0.92rem;
}
.links a {
  position: relative;
  color: var(--ink-soft);
}
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.links a:hover::after { transform: scaleX(1); }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 249, 238, 0.7);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.icon-link img { width: 16px; height: 16px; }
.icon-link:hover { transform: translateY(-2px); border-color: var(--gold); }
.buy, .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.buy {
  background: var(--ink);
  color: var(--ivory);
}
.buy img { width: 16px; height: 16px; filter: brightness(1.4); }
.buy:hover, .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.menu { display: none; width: 42px; height: 42px; }
.menu span {
  display: block;
  height: 1.5px;
  margin: 7px 8px;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.hero {
  position: relative;
  min-height: min(860px, calc(100vh - 78px));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6vw;
  align-items: center;
  padding: 4vh 7vw 8vh;
}
.spine {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold-deep);
}
.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 9vw, 8.4rem);
  line-height: 0.86;
  font-weight: 720;
  letter-spacing: -0.04em;
  color: var(--ink);
}
h1 .line { display: block; }
h1 .italic {
  font-style: italic;
  font-weight: 480;
  background: linear-gradient(120deg, #1a1510 20%, #c4a15a 45%, #1a1510 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: furshine 7s ease-in-out infinite;
}
.lede {
  max-width: 34rem;
  margin: 24px 0 28px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.hero-meta, .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.hero-cta { margin: 26px 0 22px; }
.btn.gold { background: linear-gradient(180deg, #d8b86a, #b8924a); color: #1a1510; }
.btn.ink { background: transparent; border: 1px solid var(--ink); }
.btn img { width: 16px; height: 16px; }
.ca {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 540px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(154, 122, 56, 0.45);
  background: rgba(255, 249, 238, 0.55);
  text-align: left;
}
.ca span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.ca code {
  flex: 1;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-tip { color: var(--gold-deep); font-style: normal; font-size: 0.78rem; }

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.orbit, .orbit.late {
  position: absolute;
  width: min(78%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(154, 122, 56, 0.55);
  animation: spin 28s linear infinite;
}
.orbit.late {
  width: min(90%, 540px);
  animation-direction: reverse;
  animation-duration: 42s;
  opacity: 0.55;
}
.medallion {
  width: min(72%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 12px rgba(251, 246, 234, 0.85),
    0 0 0 14px var(--gold),
    0 30px 80px rgba(26, 21, 16, 0.18);
  animation: breathe 5.5s ease-in-out infinite;
}
.medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.portrait-cap {
  position: absolute;
  bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
}
.wisp {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(26, 21, 16, 0.45), transparent);
  border-radius: 999px;
  filter: blur(0.4px);
  animation: wisp 9s ease-in-out infinite;
}
.w1 { width: 160px; top: 18%; left: 6%; }
.w2 { width: 220px; bottom: 22%; right: 4%; animation-delay: -3s; }
.w3 { width: 120px; top: 58%; left: -4%; animation-delay: -6s; }

.section-head { padding: 0 7vw 36px; max-width: 820px; }
.kicker {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 620;
  letter-spacing: -0.03em;
}
.lead {
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.about { padding: 8vh 0 6vh; }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 0 7vw;
}
.dossier, .facts, .step, .join-card, .frame {
  background: rgba(255, 249, 238, 0.62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dossier {
  padding: 36px;
  border-radius: 32px;
}
.dossier p + p { margin-top: 18px; }
.dossier p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.facts {
  padding: 12px 8px;
  border-radius: 32px;
}
.facts dl { display: grid; }
.facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 0; }
.facts dt {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold-deep);
  padding-top: 5px;
}
.facts dd {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.howto { padding: 8vh 0; }
.path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 7vw;
}
.step {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 28px;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: auto -20px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 161, 90, 0.28), transparent 70%);
}
.pad {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.step p { color: var(--ink-soft); line-height: 1.65; font-size: 0.95rem; }
.mini, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--gold-deep);
}
.mini img, .text-link img { width: 16px; height: 16px; }
.text-link { border-bottom: 1px solid rgba(154, 122, 56, 0.35); padding-bottom: 2px; }

.chart { padding: 6vh 7vw 8vh; }
.frame {
  border-radius: 28px;
  overflow: hidden;
}
.frame-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 246, 234, 0.9);
}
.frame iframe {
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
  background: #fbf6ea;
}

.join { padding: 4vh 7vw 10vh; }
.banner-wrap {
  aspect-ratio: 3 / 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: ken 22s ease-in-out infinite alternate;
}
.join-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.join-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  transition: transform 0.3s ease;
}
.join-card:hover { transform: translateY(-4px); }
.join-card img { width: 22px; height: 22px; }
.join-card strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.join-card span { color: var(--ink-soft); font-size: 0.86rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 28px 7vw 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.foot-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.foot-links img { width: 14px; height: 14px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
  animation-play-state: paused;
}
.reveal.in { animation-play-state: running; }
.step:nth-child(2) { animation-delay: 0.08s; }
.step:nth-child(3) { animation-delay: 0.16s; }
.step:nth-child(4) { animation-delay: 0.24s; }

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -6%, 0) scale(1.08); }
}
@keyframes pawdrift { to { background-position: 220px 220px; } }
@keyframes furshine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(251, 246, 234, 0.85), 0 0 0 14px var(--gold), 0 30px 80px rgba(26, 21, 16, 0.18); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 14px rgba(251, 246, 234, 0.95), 0 0 0 16px #d4b56a, 0 36px 90px rgba(26, 21, 16, 0.22); }
}
@keyframes wisp {
  0%, 100% { transform: translateX(0) rotate(-8deg); opacity: 0.25; }
  50% { transform: translateX(24px) rotate(6deg); opacity: 0.7; }
}
@keyframes ken { to { transform: scale(1.06); } }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero, .about-grid, .path, .join-row { grid-template-columns: 1fr; }
  .spine { display: none; }
  .links { display: none; }
  .menu { display: block; margin-left: auto; }
  .nav-actions .buy { display: none; }
  .nav.open .links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 7vw 22px;
    background: rgba(246, 239, 224, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .portrait { min-height: 420px; }
  .hero { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .banner-wrap img { animation: none; }
}
