/* ============================================================
   Belmere House
   Direction: "The Constant House" — an enduring private holding
   house. Deep pine-ink ground, warm bone type, one aged-brass
   thread (恒 · constancy) running the spine of the page.
   ============================================================ */

:root {
  --ink:        #0F1E1A;   /* deep pine-ink ground            */
  --ink-raise:  #14261F;   /* faintly raised panels           */
  --bone:       #ECE6D6;   /* primary warm type               */
  --sage:       #8C9A8C;   /* muted labels / meta             */
  --sage-dim:   #5E6B60;   /* quietest text                   */
  --brass:      #C7A25C;   /* the single accent               */
  --brass-soft: rgba(199, 162, 92, 0.42);
  --hair:       rgba(236, 230, 214, 0.12);
  --hair-soft:  rgba(236, 230, 214, 0.07);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --cn:    "Noto Serif SC", var(--serif);

  --measure: 34rem;
  --gutter:  clamp(1.5rem, 5vw, 6rem);
  --spine-x: clamp(1.5rem, 5vw, 6rem);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle vertical vignette so the ground reads like depth, not flat black. */
  background-image:
    radial-gradient(120% 80% at 78% -10%, rgba(199,162,92,0.08), transparent 60%),
    linear-gradient(180deg, #10201B 0%, var(--ink) 34%, #0C1815 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.cn { font-family: var(--cn); font-weight: 500; }

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

/* ---- The constant line: brass thread down the left spine ---- */
.spine {
  position: fixed;
  top: 0;
  left: var(--spine-x);
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--brass-soft) 12%, var(--brass-soft) 88%, transparent);
  transform-origin: top;
  transform: scaleY(0);
  animation: draw-spine 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  z-index: 1;
  pointer-events: none;
}
@keyframes draw-spine { to { transform: scaleY(1); } }

/* Everything sits to the right of the spine on wider screens. */
.nav, main, .foot { padding-left: calc(var(--spine-x) + clamp(1.25rem, 3vw, 3rem)); padding-right: var(--gutter); }

/* ---- Seal / chop — the bilingual signature ---- */
.mark__seal {
  display: inline-grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  font-family: var(--cn);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--brass);
  border: 1px solid var(--brass-soft);
  border-radius: 2px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap; /* keep 贝恒 in one vertical column (贝 top, 恒 bottom) */
  padding: 0.2em 0;
  flex: none;
}

/* ---- Nav ---- */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.mark { display: inline-flex; align-items: center; gap: 0.75rem; }
.mark__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}
.nav__links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav__links a:hover { color: var(--bone); border-color: var(--brass); }

/* ---- Shared section scaffolding ---- */
main { position: relative; z-index: 2; }
section { position: relative; }

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
}
.eyebrow .cn { letter-spacing: 0.1em; color: var(--brass); text-transform: none; }

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head__label {
  position: relative;
  display: inline-block;
  padding-left: 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}
.section-head__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1rem;
  height: 1px;
  background: var(--brass);
}

/* ---- Hero ---- */
.hero {
  padding-top: clamp(3.5rem, 11vw, 9rem);
  padding-bottom: clamp(4rem, 12vw, 10rem);
}
.hero__title {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(3.4rem, 13vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.hero__lede {
  max-width: 26rem;
  margin: 0 0 2.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--brass);
}
.hero__body {
  max-width: var(--measure);
  margin: 0;
  color: var(--bone);
}

/* ---- Areas of Interest ---- */
.interests { padding-block: clamp(3rem, 7vw, 6rem); }
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.area {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--hair);
  transition: background 0.35s;
}
.area:hover { background: linear-gradient(90deg, var(--hair-soft), transparent 70%); }
.area__title { display: flex; align-items: baseline; gap: 0.9rem; }
.area__title h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1;
}
.area__cn { font-size: 1rem; color: var(--brass); letter-spacing: 0.08em; }
.area__body { max-width: 30rem; margin: 0; align-self: center; color: var(--bone); }

/* ---- About ---- */
.about { padding-block: clamp(4rem, 9vw, 7.5rem); }
.about__prose { max-width: var(--measure); }
.about__prose p {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.5;
}
.about__aside {
  margin-top: 2.25rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  font-family: var(--sans) !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: var(--sage) !important;
}

/* ---- Contact ---- */
.contact { padding-block: clamp(4rem, 9vw, 7.5rem); }
.contact__intro { margin: 0 0 1.25rem; color: var(--sage); }
.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  color: var(--bone);
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}
.contact__email:hover { color: var(--brass); background-size: 100% 1px; }
.contact__note { margin: 1.5rem 0 0; max-width: 28rem; color: var(--sage); }

/* ---- Footer ---- */
.foot {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hair);
}
.foot__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}
.foot__mark { display: inline-flex; align-items: center; gap: 0.75rem; }
.foot__name { font-family: var(--serif); font-size: 1.05rem; }
.foot__tag { margin: 0; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.foot__legal p { margin: 0.3rem 0; font-size: 0.82rem; color: var(--sage-dim); }
.foot__legal p:first-child { color: var(--sage); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  /* Pull the whole page in from the spine so narrow screens keep their measure. */
  :root { --spine-x: 1.25rem; --gutter: 1.25rem; }
  .nav, main, .foot { padding-left: calc(var(--spine-x) + 1rem); }
  .area { grid-template-columns: 1fr; gap: 0.75rem; }
  .area__body { align-self: start; }
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: 0.72rem; letter-spacing: 0.1em; }
}
@media (max-width: 540px) {
  .mark__name { display: none; }
  .nav { justify-content: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spine { animation: none; transform: scaleY(1); }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .contact__email, .nav__links a, .area { transition: none; }
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 2px; }
