/* Divine Estates — Private Advisory House
   Ivory and espresso. Brass only as a detail (hairlines, numerals).
   Cormorant Garamond carries the voice; Didact Gothic carries the information.
   Editorial, asymmetric, left-aligned. One slow transition on arrival; nothing else moves. */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Didact Gothic"; src: url("fonts/didact.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Colour */
  --ivory: #F3EFE7;
  --vellum: #E8E1D4;
  --espresso: #2A221C;
  --ink: #221D19;
  --mute: #6B6157;
  --brass: #9A7F57;
  --rule: rgba(34, 29, 25, 0.14);
  --rule-dark: rgba(243, 239, 231, 0.16);
  --on-dark-mute: rgba(243, 239, 231, 0.7);

  /* Type */
  --serif: "Cormorant Garamond", "Garamond", "Baskerville", "Times New Roman", serif;
  --sans: "Didact Gothic", "Gill Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-label: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1.03125rem;
  --fs-lead: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-h3: clamp(1.625rem, 1.4rem + 0.8vw, 2.125rem);
  --fs-h2: clamp(2.375rem, 1.8rem + 2.4vw, 4rem);
  --fs-h1: clamp(3rem, 1.9rem + 5vw, 7.25rem);

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --col-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  --max: 1400px;
  --s-section: clamp(6rem, 4rem + 9vw, 12.5rem);
  --s-block: clamp(3rem, 2.5rem + 3vw, 5.5rem);
  --ease: cubic-bezier(0.25, 0.6, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.8; letter-spacing: 0.01em; word-spacing: -0.08em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); line-height: 1.02; }
h2 { font-size: var(--fs-h2); line-height: 1.06; }
h3 { font-size: var(--fs-h3); line-height: 1.15; font-weight: 400; }
em { font-style: italic; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--espresso); color: var(--ivory); padding: 0.75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- Masthead ---------- */
.masthead { position: relative; z-index: 50; padding-top: 1.75rem; }
.masthead-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.wordmark { font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.nav a { font-size: var(--fs-small); text-decoration: none; letter-spacing: 0.04em; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease); }
.nav a:hover { border-color: var(--rule); }
.nav a[aria-current="page"] { border-color: var(--brass); }
.masthead-line { margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.nav-toggle { display: none; background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-small); letter-spacing: 0.04em; color: inherit; cursor: pointer; border-bottom: 1px solid var(--rule); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--rule); padding: 0.5rem var(--gutter) 2rem; display: none; }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-top: 1px solid var(--rule); }
  .nav a { display: block; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.625rem; letter-spacing: 0; border: 0; }
  .masthead-line .line-end { display: none; }
  .wordmark { font-size: 1rem; letter-spacing: 0.26em; }
}

/* ---------- Opening ---------- */
.opening { padding-top: clamp(4.5rem, 3rem + 7vw, 10rem); }
.opening h1 { grid-column: 1 / span 11; max-width: 16ch; }
.opening-detail { margin-top: var(--s-block); align-items: start; }
.opening-text { grid-column: 1 / span 5; padding-top: 0.5rem; }
.opening-text .lead { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.45; margin-bottom: 2.5rem; max-width: 30ch; }
.opening-figure { grid-column: 7 / span 6; margin: 0; }
.opening-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .opening-figure img { animation: arrive 2.8s var(--ease) 0.2s both; }
}
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

.motto { font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin: 0 0 1.75rem; }
.on-dark .motto { color: #C2A97F; }

/* Restrained text link */
.link { display: inline-block; font-size: var(--fs-small); letter-spacing: 0.04em; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--brass); transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.link:hover { color: var(--brass); }
.on-dark .link { border-color: #C2A97F; }
.on-dark .link:hover { color: #C2A97F; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-section) 0; }
.section:last-of-type { padding-bottom: var(--s-section); }
.band { padding-block: var(--s-section); margin-top: var(--s-section); }
.band + .section { padding-top: var(--s-section); }
.band--vellum { background: var(--vellum); }
.band--espresso { background: var(--espresso); color: var(--ivory); }
.band:last-child { margin-bottom: 0; }
main > .band:last-child { margin-bottom: 0; }

/* Two-part: heading left, prose right */
.split h2 { grid-column: 1 / span 6; max-width: 14ch; }
.split .prose { grid-column: 8 / span 5; max-width: 58ch; padding-top: 0.9rem; }
.split .prose .first { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.45; }

/* Areas of consideration */
.areas-head { grid-column: 1 / span 4; }
.areas-head h2 { font-size: var(--fs-h3); line-height: 1.2; max-width: 12ch; margin-bottom: 2.5rem; }
.areas-head figure { margin: 0; max-width: 300px; }
.areas-head img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; }
.areas { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; }
.areas li { display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1rem; padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.areas li:last-child { border-bottom: 1px solid var(--rule); }
.areas .num { font-family: var(--serif); font-size: 1.25rem; color: var(--brass); line-height: 1.6; }
.areas h3 { margin-bottom: 0.75rem; }
.areas p { color: var(--mute); max-width: 52ch; }

/* The mandate */
.mandate h2 { grid-column: 1 / span 12; font-size: clamp(3.25rem, 2rem + 6vw, 8.5rem); line-height: 0.98; }
.mandate h2 span { display: block; }
.mandate h2 em { font-weight: 300; }
.mandate .prose { grid-column: 7 / span 5; margin-top: var(--s-block); color: var(--on-dark-mute); max-width: 54ch; }
.mandate .prose .first { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.45; color: var(--ivory); }

/* Founder */
.founder figure { grid-column: 1 / span 5; margin: 0; }
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; filter: grayscale(0.25) contrast(0.97); }
.founder figcaption { margin-top: 1rem; font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.founder .founder-text { grid-column: 7 / span 5; align-self: end; }
.founder h2 { font-size: var(--fs-h2); max-width: 12ch; margin-bottom: 2.5rem; }
.founder .prose { max-width: 54ch; }

/* Closing */
.closing { text-align: left; }
.closing h2 { grid-column: 1 / span 9; max-width: 18ch; }
.closing p { grid-column: 1 / span 5; margin-top: 2rem; color: var(--mute); }
.closing .action { grid-column: 1 / span 6; margin-top: 2.75rem; }

/* ---------- Inner pages ---------- */
.page-title { padding-top: clamp(4.5rem, 3rem + 7vw, 10rem); }
.page-title h1 { grid-column: 1 / span 10; max-width: 14ch; }
.page-title .lead { grid-column: 6 / span 6; margin-top: var(--s-block); font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.45; max-width: 36ch; }

/* Principles: heading + text, hairline-separated */
.principles { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.principles li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles h3 { grid-column: 1 / span 5; }
.principles .text { grid-column: 6 / span 6; max-width: 58ch; }
.on-dark .principles li { border-color: var(--rule-dark); }
.on-dark .principles .text { color: var(--on-dark-mute); }
.section-intro { grid-column: 1 / span 7; margin-bottom: var(--s-block); }
.section-intro h2 { max-width: 16ch; }
.section-intro p { margin-top: 1.75rem; max-width: 50ch; color: var(--mute); }
.on-dark .section-intro p { color: var(--on-dark-mute); }

/* The Principal Session */
.session { align-items: end; }
.session .about { grid-column: 1 / span 6; }
.session .about h2 { margin-bottom: 2rem; }
.session .about p { color: var(--on-dark-mute); max-width: 50ch; }
.session .terms { grid-column: 8 / span 5; }
.session dl { margin: 0 0 2.5rem; display: grid; grid-template-columns: 8.5rem 1fr; border-top: 1px solid var(--rule-dark); }
.session dt, .session dd { margin: 0; padding: 0.9rem 0; border-bottom: 1px solid var(--rule-dark); }
.session dt { color: var(--on-dark-mute); font-size: var(--fs-small); padding-top: 1rem; }
.session dd { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.session .note { font-size: var(--fs-small); color: var(--on-dark-mute); max-width: 44ch; margin-bottom: 1.5rem; }

/* ---------- Correspondence form ---------- */
.form-area { grid-column: 6 / span 7; }
.form-aside { grid-column: 1 / span 4; color: var(--mute); font-size: var(--fs-small); }
.form-aside p { max-width: 34ch; }
.form { display: grid; gap: 2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--mute); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(34, 29, 25, 0.35); border-radius: 0;
  padding: 0.6rem 0; width: 100%; font-family: var(--serif); font-size: 1.375rem;
  transition: border-color 0.4s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.45; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; padding-top: 0.5rem; }
.form-foot p { margin: 0; font-size: var(--fs-small); color: var(--mute); max-width: 40ch; }
.send { font: inherit; font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--brass); padding: 0 0 4px; cursor: pointer; transition: color 0.4s var(--ease); }
.send:hover { color: var(--brass); }

/* ---------- Documents (legal, confirmations) ---------- */
.doc { padding: clamp(4.5rem, 3rem + 6vw, 8rem) 0 var(--s-section); }
.doc .wrap { max-width: 900px; }
.doc h1 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.doc h2 { font-size: var(--fs-h3); font-weight: 400; margin: 3rem 0 1rem; }
.doc .meta { color: var(--mute); font-size: var(--fs-small); margin-bottom: 3rem; }
.doc ul, .doc ol { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.6rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 3.5rem 0 2.5rem; font-size: var(--fs-small); color: var(--mute); }
.footer .grid { row-gap: 2rem; }
.footer .wordmark { color: var(--ink); font-size: 1rem; }
.footer-id { grid-column: 1 / span 4; }
.footer-id p { margin-top: 1rem; max-width: 34ch; }
.footer-nav { grid-column: 6 / span 3; }
.footer-contact { grid-column: 9 / span 4; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-base { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: var(--fs-label); letter-spacing: 0.04em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid > * { grid-column: 1 / -1 !important; }
  .opening-figure { margin-top: 3rem; }
  .split .prose { padding-top: 0; margin-top: 2rem; }
  .areas-head figure { display: none; }
  .areas li { grid-template-columns: 2.75rem 1fr; }
  .mandate .prose { margin-top: 3rem; }
  .founder .founder-text { margin-top: 3rem; }
  .page-title .lead { margin-top: 2rem; }
  .principles li { grid-template-columns: 1fr; row-gap: 1rem; }
  .principles h3, .principles .text { grid-column: 1; }
  .session .terms { margin-top: 3rem; }
  .session dl { grid-template-columns: 7rem 1fr; }
  .form-aside { margin-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.section-outro { grid-column: 1 / -1; margin-top: 3rem; }

/* ---------- v9: market intelligence ---------- */
.founder .prose .first { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.45; }
.signature { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); max-width: 54ch; }
.founder figure { align-self: start; }

.intel-head { grid-column: 1 / span 6; }
.intel-head h2 { max-width: 15ch; }
.intel-body { grid-column: 8 / span 5; padding-top: 2.6rem; max-width: 52ch; }
.intel-body .first { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.45; }
.questions { grid-column: 1 / -1; list-style: none; margin: var(--s-block) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: 1px solid var(--rule); }
.questions li { padding: 2.25rem 2rem 0 0; }
.questions li + li { border-left: 1px solid var(--rule); padding-left: 2rem; }
.questions .q-num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--brass); margin-bottom: 0.75rem; }
.questions h3 { margin-bottom: 0.9rem; }
.questions p { color: var(--mute); }
.intel-foot { grid-column: 1 / span 6; margin-top: var(--s-block); }
.intel-foot p { color: var(--mute); max-width: 52ch; margin-bottom: 1.5rem; }

.disciplines { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: 1px solid var(--rule); }
.disciplines li { padding: 2rem 1.5rem 0 0; }
.disciplines li + li { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.disciplines .num { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--brass); margin-bottom: 1rem; }
.disciplines h3 { margin-bottom: 0.9rem; }
.disciplines p { color: var(--mute); font-size: 0.96875rem; }

.standard { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; counter-reset: std; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
.standard li { counter-increment: std; padding: 2rem 0 2.5rem; border-top: 1px solid var(--rule-dark); }
.standard li::before { content: counter(std, lower-roman) "."; display: block; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #C2A97F; margin-bottom: 0.75rem; }
.standard h3 { margin-bottom: 0.75rem; }
.standard p { color: var(--on-dark-mute); max-width: 36ch; }

.priorities .watch { margin-top: 1rem; font-size: 0.96875rem; color: var(--mute); }
.priorities .watch span { display: block; font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.35rem; }

.forthcoming { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
.forthcoming li { padding-top: 1.75rem; border-top: 1px solid var(--ink); }
.forthcoming .disc { font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.25rem; }
.forthcoming h3 { margin-bottom: 1rem; max-width: 18ch; }
.forthcoming p:last-child { color: var(--mute); }

@media (max-width: 1100px) {
  .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disciplines li:nth-child(3) { border-left: 0; padding-left: 0; }
  .disciplines li:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 2rem; }
}
@media (max-width: 900px) {
  .intel-body { padding-top: 0; margin-top: 2rem; }
  .questions, .disciplines, .standard, .forthcoming { grid-template-columns: 1fr; }
  .questions li, .questions li + li, .disciplines li, .disciplines li + li { border-left: 0; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
  .disciplines li:nth-child(n+3) { margin-top: 0; border-top: 0; }
  .forthcoming li + li { margin-top: 3rem; }
}

/* ---------- v9.1: the paid path ---------- */
.links { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline; }
.when-head { margin-top: 2.25rem; margin-bottom: 0.75rem !important; font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: #C2A97F !important; }
.when { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); max-width: 50ch; }
.when li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule-dark); color: var(--on-dark-mute); }
.session-actions { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
/* The one button on the site: reserved for the paid session */
.button-pay { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 1.9rem; border: 1px solid #C2A97F; color: var(--ivory); text-decoration: none; font-size: var(--fs-small); letter-spacing: 0.06em; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.button-pay:hover { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
