/* ============================================================
   LUMINA PEBBLE — live site stylesheet
   Scheme: CASLON PRESS (Libre Caslon Text + Libre Franklin)
   Cool paper · slate-navy accent · institutional, discreet.
   ============================================================ */

:root {
  --paper:      #f6f5f0;
  --paper-2:    #f0efe9;
  --ink:        #1a1c1e;
  --ink-panel:  #191d24;   /* deep slate ink (portal / footer band) */
  --stone:      #6c6f72;
  --stone-soft: #9a9c9e;
  --accent:     #3a5570;   /* slate navy — trust */
  --accent-2:   #6f8aa6;
  --line:       rgba(26,28,30,0.16);
  --line-soft:  rgba(26,28,30,0.08);
  --line-light: rgba(246,245,240,0.18);

  --display: "Libre Caslon Text", "Times New Roman", serif;
  --sans:    "Libre Franklin", system-ui, sans-serif;

  --gutter: clamp(22px, 5.5vw, 92px);
  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---- atoms ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: clamp(11px, 1vw, 12px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}
.rule { height: 1px; background: var(--line); border: 0; width: 100%; }

/* ---- wordmark ---- */
.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.wordmark .mark { width: 30px; height: 30px; flex: none; display: block; }
.wordmark .wm-text { font-family: var(--display); font-size: 18px; letter-spacing: 0.28em; text-transform: uppercase; line-height: 1; }
.wordmark .wm-text .sub {
  display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.4em;
  color: var(--stone); margin-top: 5px; font-weight: 500;
}

/* ---- header ---- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(22px, 3vw, 42px) var(--gutter);
  position: relative; z-index: 20;
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); opacity: 0.8;
}
.nav a:hover { opacity: 1; }
.portal-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 11px 20px; border-radius: 1px;
  opacity: 1 !important; transition: background .22s, color .22s, border-color .22s;
}
.portal-link svg { width: 12px; height: 12px; }
.portal-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 32px; border-radius: 1px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper); transition: opacity .2s;
}
.btn:disabled { opacity: 0.42; cursor: not-allowed; }
.btn:disabled:hover { opacity: 0.42; }
.btn:hover { opacity: 0.86; }
.btn svg { width: 14px; height: 14px; }

/* ---- sectors ---- */
.sectors { display: flex; flex-wrap: wrap; align-items: center; }
.sectors span {
  font-family: var(--sans); font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone);
  padding: 4px 22px; position: relative;
}
.sectors span + span::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 11px;
  background: var(--line); transform: translateY(-50%);
}
.sectors span:first-child { padding-left: 0; }

/* ============================================================
   HOME
   ============================================================ */
.home { min-height: 100vh; display: flex; flex-direction: column; }
.hero {
  flex: 1; padding: clamp(13px, 2.52vw, 42px) var(--gutter) clamp(42px, 6.3vw, 95px);
  display: flex; flex-direction: column; justify-content: center; max-width: 1100px;
}
.hero .eyebrow { margin-bottom: clamp(24px, 3vw, 40px); }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 7.6vw, 100px); line-height: 1.05; letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede {
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.62; color: var(--stone);
  max-width: 560px; margin-top: clamp(28px, 3vw, 44px);
}

.discretion {
  scroll-margin-top: 90px;
  padding: clamp(22px, 2.6vw, 32px) var(--gutter);
  display: grid; grid-template-columns: 170px 1fr; gap: clamp(24px, 4vw, 60px);
  align-items: baseline; border-top: 1px solid var(--line-soft);
}
.discretion p:not(.eyebrow) {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.4; max-width: 820px;
}

/* footer band */
.site-footer { padding: clamp(36px, 4vw, 56px) var(--gutter) clamp(54px, 6.3vw, 79px); }
.site-footer .sectors { margin: 30px 0 34px; }
.site-footer .meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-footer .meta span { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }

/* discreet capabilities / mandate disclosure */
.mandate { padding: clamp(8px, 1vw, 16px) var(--gutter) clamp(27px, 4.1vw, 57px); }
.mandate .m-row {
  display: grid; grid-template-columns: 230px 1fr; gap: clamp(20px, 4vw, 56px);
  align-items: baseline; padding: clamp(22px, 2.6vw, 32px) 0; border-top: 1px solid var(--line-soft);
}
.mandate .m-row:last-child { border-bottom: 1px solid var(--line-soft); }
.mandate .m-label { align-self: start; padding-top: 4px; }
.mandate p:not(.eyebrow) {
  font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.5; color: #2c3137; max-width: 660px; text-wrap: pretty;
}
.mandate .cred { font-style: italic; color: var(--accent); white-space: nowrap; }
@media (max-width: 720px) {
  .mandate .m-row { grid-template-columns: 1fr; gap: 12px; }
  .mandate .cred { white-space: normal; }
}

/* ============================================================
   INVESTOR PORTAL
   ============================================================ */
.portal { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.portal-brand {
  background: var(--ink-panel); color: var(--paper);
  padding: clamp(40px, 4vw, 64px) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
}
.portal-brand .wordmark .wm-text { color: var(--paper); }
.portal-brand .wordmark .wm-text .sub { color: var(--stone-soft); }
.portal-brand .quote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 2.4vw, 40px); line-height: 1.3; max-width: 460px;
}
.portal-brand .quote .eyebrow { display: block; font-style: normal; color: var(--accent-2); margin-bottom: 24px; }
.portal-brand .note { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-soft); }

.portal-form {
  padding: clamp(48px, 5vw, 72px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; max-width: 620px;
  position: relative;
}
.portal-back {
  position: absolute; top: clamp(24px, 3vw, 38px); left: var(--gutter);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone); text-decoration: none; transition: color .18s;
}
.portal-back:hover { color: var(--ink); }
.portal-back svg { width: 14px; height: 14px; }
.portal-form .eyebrow { margin-bottom: 16px; }
.portal-form h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 48px); margin-bottom: 10px; }
.portal-form .desc { color: var(--stone); margin-bottom: clamp(30px, 4vw, 44px); max-width: 380px; }

.field { margin-bottom: 26px; }
.field label { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-bottom: 11px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 12px; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--stone-soft); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #8f4d46; }
.field-error {
  min-height: 16px; margin-top: 8px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; line-height: 1.45; text-transform: uppercase;
  color: #8f4d46;
}
.field textarea { resize: none; min-height: 92px; }

.portal-form .frow { display: flex; align-items: center; justify-content: flex-end; margin: 4px 0 30px; }
.portal-form .frow a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); text-decoration: none; }
.portal-form .frow a:hover { color: var(--ink); }
.portal-form .btn { width: 100%; }
.secured { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-soft); }
.secured svg { width: 13px; height: 13px; flex: none; }

/* ---- modal (forgotten access) ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 23, 28, 0.52); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .14s ease, visibility 0s linear .14s;
  will-change: opacity;
}
.modal-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal {
  background: var(--paper); width: min(520px, 100%); padding: clamp(34px, 4vw, 52px); border-radius: 1px;
  box-shadow: 0 30px 80px rgba(20, 23, 28, 0.3);
  transform: translateY(8px) scale(0.99); transition: transform .16s cubic-bezier(.2,.7,.3,1);
  position: relative;
  will-change: transform;
}
.modal-overlay.open .modal { transform: none; }
.modal .modal-close {
  position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border: 0; background: transparent;
  color: var(--stone); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: background .16s, color .16s;
}
.modal .modal-close:hover { background: rgba(26,28,30,0.06); color: var(--ink); }
.modal .modal-close svg { width: 16px; height: 16px; }
.modal .eyebrow { margin-bottom: 18px; }
.modal h2 { font-family: var(--display); font-weight: 400; font-size: clamp(27px, 3vw, 34px); line-height: 1.1; margin-bottom: 14px; }
.modal .modal-desc { color: var(--stone); line-height: 1.62; margin-bottom: 30px; max-width: 400px; }
.modal .btn { width: 100%; margin-top: 4px; }
.modal .modal-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-soft); }
.modal .modal-foot svg { width: 13px; height: 13px; flex: none; }
.modal .modal-sent { display: none; }
.modal.sent .modal-request { display: none; }
.modal.sent .modal-sent { display: block; }
.modal .modal-sent p { color: var(--stone); line-height: 1.62; margin-bottom: 8px; }
.modal .modal-sent .sent-mark {
  width: 46px; height: 46px; border: 1px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 22px;
}
.modal .modal-sent .sent-mark svg { width: 20px; height: 20px; }

/* ---- portal drawer (sidebar test) ---- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 23, 28, 0.5);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .14s ease, visibility 0s linear .14s;
  will-change: opacity;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(460px, 100%); z-index: 95;
  background: var(--ink-panel); color: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .18s cubic-bezier(.22,.61,.36,1);
  box-shadow: -24px 0 70px rgba(20, 23, 28, 0.4);
  will-change: transform;
}
.drawer.open { transform: none; }
.drawer-head {
  padding: clamp(26px, 4vw, 38px) clamp(28px, 4vw, 44px); position: relative;
  border-bottom: 1px solid rgba(244,243,238,0.12);
}
.drawer-head .wordmark .wm-text { color: var(--paper); }
.drawer-head .wordmark .wm-text .sub { color: var(--accent-2); }
.drawer-close {
  position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border: 0; background: transparent;
  color: var(--stone-soft); cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .16s, color .16s;
}
.drawer-close:hover { background: rgba(244,243,238,0.10); color: var(--paper); }
.drawer-close svg { width: 16px; height: 16px; }
.drawer-body {
  flex: 1; padding: clamp(30px, 4vw, 44px) clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
}
.drawer-body .eyebrow { margin-bottom: 14px; color: var(--accent-2); }
.drawer-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.08; margin-bottom: 10px; color: var(--paper); }
.drawer-body .desc { color: var(--stone-soft); line-height: 1.6; margin-bottom: 34px; max-width: 330px; }
.drawer-body .field label { color: var(--stone-soft); }
.drawer-body .field input {
  color: var(--paper); border-bottom: 1px solid rgba(244,243,238,0.22);
}
.drawer-body .field input::placeholder { color: rgba(244,243,238,0.35); }
.drawer-body .field input:focus { border-color: var(--paper); }
.drawer-body .btn { width: 100%; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.drawer-body .btn:hover { opacity: 0.88; }
.drawer-body .frow { display: flex; justify-content: flex-end; margin: 2px 0 28px; }
.drawer-body .frow a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-soft); text-decoration: none; }
.drawer-body .frow a:hover { color: var(--paper); }
.drawer-foot {
  padding: 20px clamp(28px, 4vw, 44px) clamp(24px, 3vw, 32px); border-top: 1px solid rgba(244,243,238,0.12);
  display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-soft);
}
.drawer-foot svg { width: 13px; height: 13px; flex: none; }

/* ============================================================
   ENQUIRIES
   ============================================================ */
.enq { min-height: 100vh; display: flex; flex-direction: column; }
.enq-body {
  flex: 1; padding: clamp(11px, 1.68vw, 24px) var(--gutter) clamp(48px, 6vw, 90px);
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px);
}
.enq-intro .eyebrow { margin-bottom: 26px; }
.enq-intro h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 66px); line-height: 1.06; margin-bottom: 28px; }
.enq-intro p:not(.eyebrow) { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.66; color: var(--stone); max-width: 360px; margin-bottom: 40px; }
.enq-paths { border-top: 1px solid var(--line); }
.enq-paths div { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.enq-paths .k { font-family: var(--display); font-size: clamp(18px, 1.6vw, 20px); }
.enq-paths .v { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-soft); }

.enq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; align-content: start; }
.enq-grid .full { grid-column: 1 / -1; }
.enq-submit {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-start; gap: 14px; margin-top: 10px;
}
.enq-submit .note { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-soft); }

/* enquiry sent confirmation */
.enq-col { display: flex; flex-direction: column; justify-content: center; }
.enq-sent { display: none; }
.enq-sent.show { display: block; }
.enq-form.hide { display: none; }
.enq-sent .sent-mark {
  width: 50px; height: 50px; border: 1px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 26px;
}
.enq-sent .sent-mark svg { width: 22px; height: 22px; }
.enq-sent h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; margin: 14px 0 18px; }
.enq-sent p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.66; color: var(--stone); max-width: 440px; }
.enq-sent .again { margin-top: 30px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); background: none; border: 0; cursor: pointer; }
.enq-sent .again:hover { color: var(--ink); }
.enq-sent .again svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; }
  .portal-brand { min-height: 42vh; }
  .enq-body { grid-template-columns: 1fr; gap: clamp(36px, 7vw, 64px); }
  .enq-intro p:not(.eyebrow) { max-width: none; }
  .enq-grid { gap: 24px 24px; }
  .discretion { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column; align-items: stretch;
    gap: 16px; padding-bottom: 0;
  }
  .nav {
    width: 100%; justify-content: space-between; gap: 12px;
    padding-top: 16px; border-top: 1px solid var(--line-soft);
  }
  .nav a { padding: 6px 0; }
  .portal-link { padding: 11px 16px; }
  .enq-grid { grid-template-columns: 1fr; gap: 22px; }
  .enq-submit { align-items: flex-start; gap: 14px; margin-top: 4px; }
  .enq-submit .btn { width: 100%; padding: 17px 24px; }
}

@media (max-width: 560px) {
  .wordmark .wm-text { font-size: 16px; }
  .sectors span { padding: 4px 14px; }
}

@media (max-width: 460px) {
  .wordmark .wm-text { font-size: 16px; letter-spacing: 0.2em; }
  .wordmark .mark { width: 26px; height: 26px; }
  .nav a:not(.portal-link) { font-size: 12px; letter-spacing: 0.16em; }
  .portal-link { font-size: 11px; letter-spacing: 0.14em; gap: 7px; }
  .sectors span { padding: 4px 12px; }
  .site-footer .meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-height: 680px) {
  .drawer-body { justify-content: flex-start; }
}
