@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;1,300&family=Montserrat:wght@200;300&display=swap');

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

:root {
  --bg: #060606;
  --gold: rgba(196,172,120,0.55);
  --gold-bright: rgba(196,172,120,0.85);
  --gold-line: rgba(196,172,120,0.12);
  --t1: rgba(230,224,210,0.9);
  --t2: rgba(230,224,210,0.45);
  --t3: rgba(230,224,210,0.18);
  --t4: rgba(230,224,210,0.07);
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Montserrat', sans-serif;
  --ease: cubic-bezier(.19,1,.22,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-weight: 200;
  overflow-x: hidden;
  min-height: 100vh;
}

/* cursor: default browser */

/* ── PAGE VEIL ── */
#m-veil {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 8000; pointer-events: none;
  transition: opacity .8s var(--ease);
}
#m-veil.gone { opacity: 0; }

/* ── NOISE ── */
.m-noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

/* ── NAVIGATION ── */
.m-nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 2.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 200; pointer-events: none;
}
.m-logo {
  font-family: var(--serif); font-weight: 300;
  font-size: .85rem; letter-spacing: .55em;
  color: var(--t2); pointer-events: all;
  text-decoration: none;
}
.m-logo:hover { color: var(--t1); }
.m-nav-links { display: flex; gap: 3rem; pointer-events: all; }
.m-nav-links a {
  font-size: .48rem; letter-spacing: .5em; text-transform: uppercase;
  color: var(--t3); text-decoration: none;
  transition: color .5s;
}
.m-nav-links a:hover { color: var(--t2); }

/* ── SECTIONS: base ── */
.m-section {
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative;
}

/* ── LANDING ── */
.m-landing {
  justify-content: center; align-items: center; text-align: center;
}
.m-landing-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; animation: m-up 2.5s var(--ease) .3s forwards;
}
@keyframes m-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.m-hero {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 1.06; color: var(--t1);
  margin-bottom: 3.5rem; letter-spacing: -.01em;
}
.m-rule {
  width: 24px; height: 1px; background: var(--gold);
  margin: 0 auto 3.5rem; opacity: .6;
}
.m-cta {
  font-size: .48rem; letter-spacing: .6em; text-transform: uppercase;
  color: var(--t3); background: none; border: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: .4rem;
  transition: color .6s, border-color .6s;
  text-decoration: none; display: inline-block;
}
.m-cta:hover { color: var(--t2); border-color: rgba(196,172,120,0.3); }

.m-landing-footer {
  position: absolute; bottom: 2.8rem; left: 4rem; right: 4rem;
  display: flex; justify-content: space-between;
  font-size: .42rem; letter-spacing: .45em; text-transform: uppercase;
  color: var(--t3); z-index: 1;
}

/* ── ACCESS FORM ── */
.m-access {
  justify-content: center; align-items: center;
  padding: 9rem 2rem 6rem;
}
.m-form-wrap {
  width: 100%; max-width: 480px;
  opacity: 0; animation: m-up 1.5s var(--ease) .1s forwards;
}
.m-form-title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem); color: var(--t1);
  margin-bottom: 2.8rem; line-height: 1.2;
}
.m-form-rule { width: 100%; height: 1px; background: var(--t4); margin-bottom: 2.8rem; }
.m-field { margin-bottom: 2.5rem; }
.m-field label {
  display: block; font-size: .44rem; letter-spacing: .5em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; opacity: .7;
}
.m-field input, .m-field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--t1); font-family: var(--serif); font-weight: 300;
  font-size: 1.2rem; padding: .4rem 0; outline: none;
  transition: border-color .5s; border-radius: 0; -webkit-appearance: none;
}
.m-field input::placeholder, .m-field textarea::placeholder {
  color: var(--t3); font-style: italic;
}
.m-field input:focus, .m-field textarea:focus {
  border-bottom-color: rgba(196,172,120,0.2);
}
.m-field textarea { resize: none; min-height: 65px; line-height: 1.8; }
.m-field-note {
  font-size: .42rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--t3); margin-top: .5rem; line-height: 2; font-style: italic;
}
.m-refusal {
  margin: 2.2rem 0;
  font-size: .43rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--t3); line-height: 2.4; font-style: italic;
  border-left: 1px solid var(--gold-line); padding-left: 1.2rem;
}
.m-submit-row { display: flex; align-items: flex-start; gap: 3rem; }
.m-submit-btn {
  font-size: .46rem; letter-spacing: .55em; text-transform: uppercase;
  color: var(--t2); background: transparent;
  border: 1px solid var(--gold-line);
  padding: .85rem 2rem;
  transition: color .5s, border-color .5s; white-space: nowrap;
}
.m-submit-btn:hover { color: var(--t1); border-color: rgba(196,172,120,0.3); }
.m-submit-note {
  font-size: .42rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--t3); line-height: 2.5; font-style: italic;
}

/* ── CALENDAR ── */
.m-calendar {
  justify-content: flex-start;
  padding: 10rem 4rem 6rem;
}
.m-cal-inner { max-width: 600px; margin: 0 auto; width: 100%; }
.m-cal-title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem); color: var(--t1);
  margin-bottom: 4rem; line-height: 1.1;
}
.m-dos-list { border-top: 1px solid var(--t4); }
.m-dos {
  padding: 2rem 0; border-bottom: 1px solid var(--t4);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
  transition: opacity .3s;
}
.m-dos:hover .m-dos-title { color: var(--gold-bright); }
.m-dos:hover .m-dos-arrow { opacity: .6; transform: translateX(3px); }
.m-dos-file {
  font-size: .42rem; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold); opacity: .45; margin-bottom: .5rem;
}
.m-dos-title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 1.6rem; color: var(--t2);
  transition: color .4s; line-height: 1.2;
}
.m-dos-meta {
  font-size: .43rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--t3); margin-top: .65rem; line-height: 2.1;
}
.m-dos-status {
  font-size: .42rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--t3); text-align: right; line-height: 2.1;
}
.m-dos-arrow {
  font-size: .65rem; color: var(--gold); opacity: 0;
  transition: opacity .35s, transform .35s;
  display: block; text-align: right; margin-top: .2rem;
}
.m-dos.sealed { opacity: .15; pointer-events: none; }
.m-cal-note {
  margin-top: 3rem;
  font-size: .43rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--t3); line-height: 2.4; font-style: italic;
}

/* ── CODEX ── */
.m-codex {
  justify-content: center; align-items: center; padding: 8rem 2rem;
}
.m-codex-inner { max-width: 440px; width: 100%; }
.m-codex-label {
  font-size: .44rem; letter-spacing: .6em; text-transform: uppercase;
  color: var(--gold); opacity: .4; margin-bottom: 3rem;
}
.m-codex-body {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 2.1; color: var(--t2);
}
.m-codex-body p { margin-bottom: 1.8rem; }
.m-codex-body .m-gold { color: rgba(196,172,120,0.7); font-style: italic; }
.m-codex-body .m-dim { color: var(--t3); }
.m-codex-body .m-small {
  font-size: .43rem; font-family: var(--sans); letter-spacing: .28em;
  text-transform: uppercase; color: var(--t3); line-height: 2.5; font-style: normal;
}
.m-codex-div { width: 1px; height: 36px; background: var(--gold-line); margin: 2.2rem 0; }
.m-codex-sig {
  font-size: .44rem; letter-spacing: .55em; text-transform: uppercase;
  color: var(--gold); opacity: .3; margin-top: 3rem;
}

/* ── FOOTER ── */
.m-footer {
  padding: 4rem;
  border-top: 1px solid var(--t4);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .42rem; letter-spacing: .4em; text-transform: uppercase; color: var(--t3);
}
.m-footer a { color: var(--t3); text-decoration: none; transition: color .4s;  }
.m-footer a:hover { color: var(--t2); }

/* ── TOAST ── */
#m-toast {
  position: fixed; bottom: 2.8rem; left: 50%; transform: translateX(-50%);
  font-size: .44rem; letter-spacing: .45em; text-transform: uppercase;
  color: var(--t2); border-bottom: 1px solid var(--gold-line);
  padding-bottom: .3rem; opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease); z-index: 500; white-space: nowrap;
}
#m-toast.on { opacity: 1; }

/* ── AMBIENT BTN ── */
#m-amb {
  position: fixed; bottom: 2.8rem; right: 4rem; z-index: 300;
  font-size: .4rem; letter-spacing: .5em; text-transform: uppercase;
  color: var(--t3); background: none; border: none; transition: color .4s;
}
#m-amb:hover { color: var(--t2); }
#m-amb.on { color: var(--gold); }

/* ── PAGE TEMPLATES ── */
.m-page-single {
  padding: 10rem 4rem 6rem;
  max-width: 720px; margin: 0 auto; width: 100%;
}
.m-page-single h1 {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem); color: var(--t1);
  margin-bottom: 3rem; line-height: 1.15;
}
.m-page-single .entry-content {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem); line-height: 2.1; color: var(--t2);
}
.m-page-single .entry-content p { margin-bottom: 1.8rem; }
.m-page-single .entry-content a { color: var(--gold); text-decoration: none; }
.m-page-single .entry-content a:hover { color: var(--gold-bright); }

/* ── ADMIN BAR OFFSET ── */
.admin-bar .m-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .m-nav { top: 46px; } }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .m-nav { padding: 1.5rem 1.5rem; }
  .m-nav-links { gap: 1.5rem; }
  .m-landing-footer { left: 1.5rem; right: 1.5rem; }
  .m-calendar { padding-left: 1.5rem; padding-right: 1.5rem; }
  .m-codex { padding-left: 1.5rem; padding-right: 1.5rem; }
  .m-access { padding-left: 1.5rem; padding-right: 1.5rem; }
  .m-footer { padding: 2.5rem 1.5rem; flex-direction: column; gap: 1rem; text-align: center; }
  #m-amb { right: 1.5rem; }
  .m-page-single { padding: 8rem 1.5rem 4rem; }
}
