/* JX&Co — design system. AMAN register: bone canvas, charcoal ink, gold as accent only. */
:root {
  --bone: #F4EFE8;
  --bone-deep: #ECE5DA;
  --ink: #1C1A17;
  --ink-soft: rgba(28, 26, 23, 0.62);
  --gold: #B08D57;
  --line: rgba(28, 26, 23, 0.14);
  --night: #121110;
  --night-ink: #EDE8DF;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body {
  height: 100%;
  overflow: hidden;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#siteScroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
::selection { background: var(--gold); color: var(--bone); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vw, 28px) var(--pad);
  background: linear-gradient(var(--bone) 55%, rgba(244, 239, 232, 0));
  transition: background 0.5s ease;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
}
.wordmark .amp { font-style: italic; color: var(--gold); }
.site-nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.site-nav a, .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}
.site-nav a { opacity: 0.72; transition: opacity 0.3s; }
.site-nav a:hover, .site-nav a[aria-current] { opacity: 1; }
.site-nav .nav-inquire { border-bottom: 1px solid var(--gold); padding-bottom: 2px; opacity: 1; }
.menu-toggle { display: none; }

/* Mobile veil menu */
.menu-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bone);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.menu-veil.open { opacity: 1; pointer-events: auto; }
.veil-nav { display: grid; gap: 22px; text-align: center; }
.veil-nav a {
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-toggle {
    display: grid;
    gap: 6px;
    background: none;
    border: 0;
    padding: 8px 0;
    cursor: pointer;
    z-index: 70;
    position: relative;
  }
  .menu-toggle span { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform 0.35s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* Mount + transitions */
.mount { min-height: 72vh; }
.page { animation: pageIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page.leaving { animation: pageOut 0.35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-10px); } }
::view-transition-old(root) { animation: 0.35s ease both pageOut; }
::view-transition-new(root) { animation: 0.6s ease 0.1s both pageIn; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: 0.005em; }
.display { font-size: clamp(44px, 9vw, 128px); }
.title { font-size: clamp(30px, 5vw, 64px); }
.small-title { font-size: clamp(22px, 3vw, 34px); }
.whisper { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.lede { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 27px); font-weight: 300; line-height: 1.5; max-width: 34em; }
.prose { max-width: 38em; color: var(--ink-soft); font-size: 15px; }
em, .it { font-style: italic; }
.gold { color: var(--gold); }

/* Layout primitives */
.sect { padding: clamp(56px, 10vw, 140px) var(--pad); }
.sect.tight { padding-top: clamp(28px, 5vw, 70px); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0 var(--pad); }
.row { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) {
  .row.split { grid-template-columns: 1fr 1fr; align-items: center; }
  .row.off-l { grid-template-columns: 5fr 7fr; align-items: end; }
  .row.off-r { grid-template-columns: 7fr 5fr; align-items: start; }
}
.center { text-align: center; display: grid; justify-items: center; gap: 18px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 980px);
  display: grid;
  align-content: end;
  padding: var(--pad);
  padding-bottom: clamp(48px, 8vw, 110px);
  overflow: hidden;
}
.hero-media, .hero-media img, .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 17, 16, 0.06), rgba(18, 17, 16, 0.42) 78%);
}
.hero-copy { position: relative; z-index: 2; color: #F6F2EB; display: grid; gap: 14px; max-width: 900px; }
.hero-copy .whisper { color: rgba(246, 242, 235, 0.8); }

/* Media blocks */
.frame { overflow: hidden; background: var(--bone-deep); }
.frame img, .frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame.tall { aspect-ratio: 3 / 4; }
.frame.wide { aspect-ratio: 16 / 10; }
.frame.square { aspect-ratio: 1; }
[data-parallax] img { will-change: transform; transform: scale(1.08); }

/* Works gallery: fluid broken grid */
.works { display: grid; gap: clamp(40px, 8vw, 120px); }
.work { display: grid; gap: 16px; text-decoration: none; color: inherit; }
.work .frame { transition: opacity 0.5s ease; }
.work:hover .frame { opacity: 0.92; }
.work figcaption { display: flex; justify-content: space-between; align-items: baseline; }
@media (min-width: 900px) {
  .work:nth-child(3n + 1) { width: min(72%, 860px); }
  .work:nth-child(3n + 2) { width: min(46%, 560px); margin-left: auto; }
  .work:nth-child(3n)     { width: min(58%, 680px); margin-left: 12%; }
}

/* Piece page */
.piece-hero { min-height: 86vh; }
.piece-nav { display: flex; justify-content: space-between; gap: 20px; }
.piece-nav a { color: inherit; text-decoration: none; }

/* Dark chapter (ORUM, select pieces) */
.night { background: var(--night); color: var(--night-ink); }
.night .whisper { color: rgba(237, 232, 223, 0.55); }
.night .prose { color: rgba(237, 232, 223, 0.66); }
.night .hairline { border-color: rgba(237, 232, 223, 0.14); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px 34px;
  border-radius: 999px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: var(--ink); color: var(--bone); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.gold:hover { background: var(--gold); color: var(--night); }
.night .btn { border-color: var(--night-ink); color: var(--night-ink); }
.night .btn:hover { background: var(--night-ink); color: var(--night); }

/* ORUM list */
.orum-list { display: grid; gap: 0; border-top: 1px solid rgba(237, 232, 223, 0.14); }
.orum-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(237, 232, 223, 0.14);
}
.orum-item .name { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); font-weight: 300; }
.orum-item .price { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; }
.fda { font-size: 11.5px; line-height: 1.7; opacity: 0.55; max-width: 46em; }

/* Journal */
.journal-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.journal-item { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }

/* Cloud form styling */
.cloud-form-shell { max-width: 560px; }
.jx-form { display: grid; gap: 18px; }
.jx-group { display: grid; gap: 8px; }
.jx-label { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.jx-input, .jx-form input, .jx-form textarea, .jx-form select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.jx-form textarea { min-height: 120px; resize: vertical; }
.jx-form input:focus, .jx-form textarea:focus, .jx-form select:focus { border-color: var(--gold); }
.jx-btn {
  justify-self: start;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
  padding: 15px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
  margin-top: 8px;
}
.jx-btn:hover { background: var(--ink); color: var(--bone); }
.jx-note { font-size: 12.5px; color: var(--ink-soft); }

/* Reveals — gated on html.js so content is fully visible without JS */
html.js [data-rise] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js [data-rise].in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-ready .wi {
  display: inline-block;
  transform: translateY(112%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
.split-ready.in .wi { transform: none; opacity: 1; }

/* Footer */
.site-footer {
  padding: clamp(40px, 7vw, 90px) var(--pad) calc(clamp(28px, 4vw, 48px) + var(--safe-b));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: baseline; justify-content: space-between; }
.foot-mark { font-family: var(--serif); font-size: 20px; }
.foot-line { font-size: 12.5px; color: var(--ink-soft); }
.foot-row.small a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.foot-row.small a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .page, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  [data-parallax] img { transform: none; }
}
