:root {
  --cream: #f4ead8;
  --parchment: #efe2cc;
  --paper: #faf3e6;
  --ink: #2a221c;
  --ink-soft: #5b4e44;
  --mute: #8a7a6c;
  --beret: #161311;
  --gold: #c9a24a;
  --gold-bright: #f0d789;
  --gold-deep: #8b6b2e;
  --peach: #e8b48a;
  --blush: #d4a09a;
  --dusk: #8fa4b8;
  --line: rgba(139, 107, 46, 0.28);
  --shadow: 0 24px 60px rgba(42, 34, 28, 0.12);
  --script: "Great Vibes", cursive;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --caps: "Cinzel", "Palatino Linotype", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  background: var(--cream);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.parchment,
.sunset,
.grain,
.soleil,
#gilt-dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.parchment {
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(232, 180, 138, 0.28), transparent 60%),
    radial-gradient(900px 620px at 110% 8%, rgba(143, 164, 184, 0.22), transparent 58%),
    radial-gradient(800px 500px at 50% 120%, rgba(212, 160, 154, 0.16), transparent 55%),
    linear-gradient(180deg, #f7efe1 0%, #f1e4ce 48%, #ead8bf 100%);
}

.sunset {
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 35%, rgba(240, 196, 160, 0.16) 58%, transparent 78%);
  animation: dusk-drift 18s ease-in-out infinite alternate;
}

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

.soleil {
  z-index: 1;
  background:
    radial-gradient(circle at 78% 12%, rgba(243, 224, 166, 0.35), transparent 24%),
    radial-gradient(circle at 18% 72%, rgba(232, 180, 138, 0.14), transparent 22%);
  animation: sun-breathe 10s ease-in-out infinite;
}

#gilt-dust {
  z-index: 2;
}

.masthead,
.motto-band,
main,
.colophon {
  position: relative;
  z-index: 3;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.85rem 1.25rem;
  background: rgba(244, 234, 216, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.masthead.compact {
  padding: 0.45rem 1.25rem;
  background: rgba(244, 234, 216, 0.9);
  box-shadow: 0 10px 30px rgba(42, 34, 28, 0.08);
}

.mast-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-cameo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 30deg, var(--gold-bright), var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 0 1px rgba(139, 107, 46, 0.25);
  flex-shrink: 0;
}

.brand-cameo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-script {
  font-family: var(--script);
  font-size: 1.7rem;
}

.brand-ticker {
  font-family: var(--caps);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.menu {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-family: var(--caps);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu a {
  position: relative;
  color: var(--ink-soft);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

.mast-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.seal-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(250, 243, 230, 0.8);
  color: var(--ink);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.seal-icon img {
  width: 18px;
  height: 18px;
}

.seal-icon:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(201, 162, 74, 0.2);
}

.gilt-btn,
.ink-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gilt-btn {
  position: relative;
  overflow: hidden;
  color: #1a1612;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 8px 20px rgba(139, 107, 46, 0.28);
}

.gilt-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: foil-sweep 4.8s ease-in-out infinite;
}

.gilt-btn img,
.ink-btn img {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.gilt-btn:hover,
.ink-btn:hover {
  transform: translateY(-2px);
}

.ink-btn {
  color: var(--ink);
  background: rgba(250, 243, 230, 0.7);
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(250, 243, 230, 0.8);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

.motto-band {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 243, 230, 0.45);
}

.motto-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  padding: 0.55rem 0;
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  animation: ribbon 28s linear infinite;
}

.motto-track span {
  white-space: nowrap;
}

.hero,
.about,
.howtobuy,
.chart,
.joinus {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 2.5rem;
}

.hero {
  padding-top: 3.5rem;
}

.hero-lace {
  height: 28px;
  margin-bottom: 1.5rem;
  background-image: radial-gradient(circle at 50% 0, transparent 10px, rgba(201, 162, 74, 0.18) 11px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hero-sheet {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 2.4rem 2.2rem;
  background: linear-gradient(180deg, rgba(250, 243, 230, 0.78), rgba(244, 234, 216, 0.55));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-sheet::before,
.hero-sheet::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  opacity: 0.7;
}

.hero-sheet::before {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}

.hero-sheet::after {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--caps);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-title .script {
  font-family: var(--script);
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--beret);
}

.hero-ticker {
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--caps);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
}

.hero-motto {
  margin: 0.85rem 0 0;
  font-family: var(--script);
  font-size: 2rem;
  color: var(--blush);
}

.hero-lead {
  max-width: 34rem;
  margin: 0.6rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.visite {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  border: 1px dashed var(--line);
  background: rgba(250, 243, 230, 0.65);
}

.visite-label {
  font-family: var(--caps);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.visite code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.copy-seal {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--caps);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-seal.copied {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.hero-portrait {
  display: grid;
  justify-items: center;
}

.cameo {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
}

.cameo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-bright), var(--gold-deep), #f6e7b2, var(--gold), var(--gold-bright));
  animation: cameo-spin 16s linear infinite;
  filter: drop-shadow(0 18px 30px rgba(139, 107, 46, 0.28));
}

.cameo-plate {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #f7efe2;
  box-shadow: inset 0 0 0 1px rgba(139, 107, 46, 0.35);
}

.cameo-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: portrait-float 7s ease-in-out infinite;
}

.cameo-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  animation: shine-pass 6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.medallion {
  position: absolute;
  right: 8%;
  bottom: 8%;
  z-index: 3;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  border: 3px solid #f6e7b2;
  box-shadow: 0 10px 20px rgba(42, 34, 28, 0.2);
  animation: medal-pulse 3.6s ease-in-out infinite;
}

.medallion span {
  font-family: var(--caps);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #2a1d0c;
}

.cameo-caption {
  margin: 1rem 0 0;
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.section-crest {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.6rem;
}

.section-crest h2 {
  margin: 0.2rem 0 0.7rem;
  font-family: var(--script);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.flourish {
  width: 180px;
  height: 24px;
  margin: 0 auto 0.8rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.salon-letter,
.dispatch,
.virtue,
.course,
.market-frame,
.balcony,
.door {
  background: linear-gradient(180deg, rgba(250, 243, 230, 0.86), rgba(244, 234, 216, 0.62));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.salon-letter,
.dispatch {
  padding: 1.6rem 1.5rem 1.4rem;
}

.salon-letter header {
  display: flex;
  justify-content: space-between;
  font-family: var(--caps);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.salon-letter h3,
.dispatch h3,
.virtue h3,
.course h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.salon-letter p,
.dispatch p,
.virtue p,
.course p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.letter-close {
  font-style: italic;
  color: var(--gold-deep) !important;
}

.dispatch-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--caps);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.dispatch-note {
  font-style: italic;
}

.tweet-frame {
  margin-top: 0.8rem;
  min-height: 220px;
  display: grid;
  justify-items: center;
}

.tweet-frame .twitter-tweet {
  margin: 0 auto;
}

.virtues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.virtue {
  padding: 1.3rem 1.2rem 1.15rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.virtue:hover,
.course:hover,
.door:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(42, 34, 28, 0.14);
}

.virtue-mark {
  display: inline-block;
  font-family: var(--caps);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 0.55rem;
}

.chain-mark {
  width: 28px;
  height: 28px;
}

.carte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.course {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.3rem 1.2rem;
}

.course-num {
  font-family: var(--script);
  font-size: 2.1rem;
  color: var(--gold-deep);
  line-height: 1;
}

.course-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}

.course-icon img {
  width: 26px;
  height: 26px;
}

.course-copy {
  min-width: 0;
}

.ink-link {
  font-family: var(--caps);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(201, 162, 74, 0.45);
}

.market-frame {
  overflow: hidden;
}

.market-rail {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-rail a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-deep);
}

.market-rail img {
  width: 16px;
  height: 16px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a24a;
  box-shadow: 0 0 0 0 rgba(201, 162, 74, 0.7);
  animation: pulse 1.8s ease-out infinite;
}

.market-frame iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
  background: #111;
}

.balcony {
  margin: 0 0 1.4rem;
  overflow: hidden;
}

.balcony-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: #d8c4a8;
}

.balcony-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: balcony-pan 18s ease-in-out infinite alternate;
}

.balcony figcaption {
  padding: 0.8rem 1rem 1rem;
  font-family: var(--caps);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.balcony-shot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(22, 19, 17, 0.28) 18px 20px),
    linear-gradient(180deg, transparent, rgba(22, 19, 17, 0.18));
  pointer-events: none;
}

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

.door {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--ink);
}

.door img {
  width: 30px;
  height: 30px;
  margin-bottom: 0.3rem;
}

.door span {
  font-family: var(--caps);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.door small {
  color: var(--mute);
  font-size: 0.95rem;
}

.colophon {
  margin-top: 2rem;
  padding: 2.4rem 1.25rem 2.6rem;
  border-top: 1px solid var(--line);
  background: rgba(250, 243, 230, 0.5);
}

.colo-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.colo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.disclaimer,
.copy {
  margin: 0;
  color: var(--mute);
  font-size: 0.98rem;
}

.copy {
  font-family: var(--caps);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s ease forwards;
  animation-delay: var(--d, 0.05s);
}

.js-ready .reveal {
  animation: none;
}

.js-ready .reveal.in {
  animation: rise 0.9s ease forwards;
}

@keyframes dusk-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-4%); }
}

@keyframes sun-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes foil-sweep {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes ribbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes cameo-spin {
  to { transform: rotate(360deg); }
}

@keyframes portrait-float {
  0%, 100% { transform: scale(1.02) translateY(0); }
  50% { transform: scale(1.06) translateY(-6px); }
}

@keyframes shine-pass {
  0%, 40% { opacity: 0; transform: translateX(-20%); }
  55% { opacity: 1; }
  100% { opacity: 0; transform: translateX(20%); }
}

@keyframes medal-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(201, 162, 74, 0); }
}

@keyframes balcony-pan {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-12px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero-sheet,
  .about-grid,
  .virtues,
  .carte,
  .salon-doors {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.2rem;
    background: rgba(244, 234, 216, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0.9rem;
  }

  .menu.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .mast-inner {
    flex-wrap: wrap;
  }

  .hero-sheet {
    padding: 1.5rem 1.1rem;
  }

  .hero-title .script {
    font-size: 3.4rem;
  }

  .market-frame iframe {
    height: 520px;
  }
}

@media (max-width: 640px) {
  .mast-tools .gilt-btn span {
    display: none;
  }

  .mast-tools .gilt-btn {
    padding: 0.7rem;
  }

  .mast-tools .gilt-btn img {
    width: 18px;
    height: 18px;
  }

  .visite {
    flex-wrap: wrap;
  }

  .course {
    grid-template-columns: auto 1fr;
  }

  .course-icon {
    grid-column: 1;
  }
}
