/* Reviora — holdings crest + annual-report review */
:root {
  --ink: #001030;
  --ink-2: #001840;
  --navy: #0a1c38;
  --ice: #90c0f0;
  --ice-2: #b0d0f0;
  --paper: #f2f3f5;
  --paper-2: #e8eaee;
  --rule: #c8ccd4;
  --slate: #405060;
  --muted: #5a6a7a;
  --snow: #f6f8fb;
  --snow-muted: #c5d2e0;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .folio, .note-n, .toc-n, .ledger-folio {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ice); color: var(--ink); padding: 10px 16px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--ice);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--snow);
  border-color: rgba(246, 248, 251, .35);
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(0, 16, 48, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(246, 248, 251, .12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--snow); }
.brand img { border-radius: 2px; background: var(--snow); }
.brand-name {
  font-size: 20px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--snow-muted);
  transition: color .2s var(--ease), transform .25s var(--ease);
}
.nav .nav-cta {
  color: var(--snow);
  border: 1px solid rgba(246, 248, 251, .32);
  padding: 8px 16px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--snow); border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero cover plate */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--snow);
  padding: 118px 0 36px;
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(144, 192, 240, .14), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(144, 192, 240, .08), transparent 55%);
}
.hero-cover { position: relative; z-index: 1; }

.running {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600;
  color: var(--snow-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(246, 248, 251, .18);
}
.running-rule {
  flex: 1; height: 1px;
  background: rgba(246, 248, 251, .18);
}

.hero-lockup {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 36px;
}

.house-seal {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}
.seal-ornament {
  position: absolute;
  width: min(340px, 92%);
  height: auto;
  overflow: visible;
}
.spin-outer {
  transform-origin: 160px 160px;
  animation: spin 48s linear infinite;
}
.spin-inner {
  transform-origin: 160px 160px;
  animation: spin 32s linear infinite reverse;
}
.ice-pulse { animation: pulse 3.6s ease-in-out infinite; }
.seal-plate {
  position: relative;
  z-index: 2;
  width: 168px; height: 168px;
  background: var(--snow);
  padding: 10px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .55);
  animation: plate-lift 6.5s ease-in-out infinite;
}
.seal-plate img { width: 100%; height: 100%; object-fit: contain; }
.seal-motto {
  position: relative; z-index: 2;
  margin: 18px 0 0;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ice);
  font-weight: 600;
}

.industry-label {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(144, 192, 240, .4);
  padding: 6px 10px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 600;
  color: var(--snow);
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ice);
}
.hero-lede {
  margin: 22px 0 0;
  max-width: 36em;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: var(--snow-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-folio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 248, 251, .18);
  font-family: var(--serif);
  font-size: 13px;
  color: var(--snow-muted);
  font-variant-numeric: oldstyle-nums;
}
.hero-folio span:nth-child(2) {
  text-align: center;
  letter-spacing: .18em; text-transform: uppercase;
  font-family: var(--sans);
  font-size: 11px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes plate-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Contents rail */
.toc {
  background: var(--ink-2);
  border-top: 1px solid rgba(246, 248, 251, .1);
  border-bottom: 1px solid rgba(246, 248, 251, .1);
}
.toc-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.toc-inner a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 12px;
  color: var(--snow-muted);
  font-size: 12px; font-weight: 500;
  letter-spacing: .04em;
  border-right: 1px solid rgba(246, 248, 251, .1);
  transition: color .2s var(--ease), background .2s var(--ease), transform .25s var(--ease);
}
.toc-inner a:last-child { border-right: 0; }
.toc-n {
  font-size: 13px;
  color: var(--ice);
  letter-spacing: .12em;
}

/* Paper sheets */
.sheet {
  background: var(--paper);
  color: var(--ink);
  padding: 88px 0;
}
.sheet-tint { background: var(--paper-2); }

.chapter-head {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.folio {
  font-size: 3.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  font-variant-numeric: oldstyle-nums;
  line-height: .9;
}
.folio-light { color: var(--ice); }
.kicker {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--slate);
}
.chapter-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 600;
}

.rule-double {
  height: 4px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0 0 40px;
  opacity: .55;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.col {
  padding: 0 28px;
  border-right: 1px solid var(--rule);
}
.col:first-child { padding-left: 0; }
.col:last-child { padding-right: 0; border-right: 0; }
.col p { margin: 0; color: var(--slate); }
.drop::first-letter {
  font-family: var(--serif);
  font-size: 3.1rem;
  float: left;
  line-height: .75;
  padding: 8px 8px 0 0;
  color: var(--ink);
  font-weight: 600;
}

.mandate-grid { gap: 22px; }
.mandate-grid .note { border-right: 0; padding: 0; }

.note {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 24px 26px;
  min-height: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.sheet-tint .note { background: var(--paper); }
.note-n {
  display: block;
  font-size: 1.4rem; font-style: italic;
  color: var(--slate);
  margin-bottom: 12px;
}
.note h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.note p { margin: 0; color: var(--slate); }

.ledger { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.ledger-row {
  display: grid;
  grid-template-columns: 72px 1fr 2fr;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.ledger-folio {
  font-size: 1.05rem;
  font-variant-numeric: oldstyle-nums;
  color: var(--slate);
}
.ledger-row h3 { font-size: 1.5rem; }
.ledger-row p { margin: 0; color: var(--slate); }

/* Dark stance band */
.stance {
  background: var(--ink);
  color: var(--snow);
  padding: 96px 0;
}
.stance-inner {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
}
.stance blockquote { margin: 0; max-width: 18em; }
.stance blockquote p {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  color: var(--snow);
  margin: 0;
}
.stance cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ice);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.faq-lead p { margin: 0; color: var(--slate); }
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 4px;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-ico { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--slate); margin: 0 0 20px; padding-right: 24px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-copy p { margin: 0 0 22px; color: var(--slate); }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 22px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact-copy address {
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.7;
}
.li-link {
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
}

.ledger-form {
  display: grid; gap: 16px;
  border: 1px solid var(--ink);
  padding: 28px 24px;
  background: var(--paper);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate);
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  padding: 10px 0;
  font: inherit;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.ledger-form .btn { justify-self: start; margin-top: 6px; color: var(--ink); }

/* Footer — dark band, near-white type */
.site-footer {
  background: var(--ink);
  color: var(--snow);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(246, 248, 251, .16);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-tag {
  margin: 0;
  color: var(--snow-muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.footer-nav a {
  color: var(--snow-muted);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s var(--ease);
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 20px;
  color: var(--snow-muted);
  font-size: 14px;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .spin-outer, .spin-inner, .ice-pulse, .seal-plate { animation: none; }
}

/* Hover AFTER .reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--snow); }
  .nav .nav-cta:hover {
    border-color: var(--ice);
    color: var(--ice);
    transform: translateY(-2px);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -12px rgba(144, 192, 240, .55);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--ice);
    color: var(--ice);
  }
  .toc-inner a:hover {
    color: var(--snow);
    background: rgba(144, 192, 240, .08);
  }
  .note.reveal.in:hover,
  .note:hover {
    transform: translateY(-6px);
    border-color: var(--ink);
    box-shadow: 0 18px 36px -24px rgba(0, 16, 48, .35);
  }
  .ledger-row.reveal.in:hover,
  .ledger-row:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .45);
  }
  .faq-q:hover { color: #203050; }
  .contact-email:hover {
    color: #203050;
    border-bottom-color: var(--ice);
  }
  .li-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
  .ledger-form.reveal.in:hover,
  .ledger-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -28px rgba(0, 16, 48, .35);
  }
  .footer-nav a:hover { color: var(--snow); }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-lockup,
  .cols-3,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .toc-inner { grid-template-columns: repeat(3, 1fr); }
  .toc-inner a {
    border-bottom: 1px solid rgba(246, 248, 251, .1);
  }
  .col {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .col:last-child { border-bottom: 0; padding-bottom: 0; }
  .ledger-row { grid-template-columns: 64px 1fr; }
  .ledger-row p { grid-column: 2; }
  .house-seal { min-height: 300px; }
  .chapter-head { grid-template-columns: 64px 1fr; gap: 16px; }
  .stance-inner { grid-template-columns: 64px 1fr; }
  .hero { padding: 108px 0 28px; }
  .sheet, .stance { padding: 72px 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(0, 16, 48, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(246, 248, 251, .12);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 12px 4px; font-size: 16px;
    border-bottom: 1px solid rgba(246, 248, 251, .1);
    letter-spacing: .08em;
  }
  .nav .nav-cta { text-align: center; margin-top: 10px; }
}

/* Phone ~390px */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; }
  .hero { padding: 96px 0 24px; }
  .hero-lockup { padding: 32px 0 24px; gap: 20px; }
  .house-seal { min-height: 260px; }
  .seal-ornament { width: min(280px, 94%); }
  .seal-plate { width: 132px; height: 132px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-folio { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .hero-folio span:nth-child(2) { text-align: left; }
  .toc-inner { grid-template-columns: 1fr 1fr; }
  .chapter-head { grid-template-columns: 1fr; gap: 8px; }
  .folio { font-size: 2.4rem; }
  .sheet, .stance { padding: 56px 0; }
  .stance-inner { grid-template-columns: 1fr; gap: 10px; }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .ledger-row p { grid-column: 1; }
  .note { padding: 22px 18px; }
  .ledger-form { padding: 22px 18px; }
  .footer-inner, .footer-bottom { flex-direction: column; }
  .running { flex-wrap: wrap; gap: 8px; }
}
