/* The Reynolds Institute — shared styles
   Palette + type drawn from approved brand mockups (navy / ivory / gold editorial) */

:root {
  --ink: #16213a;          /* deep navy — display text */
  --navy: #1f2a44;
  --ivory: #f7f4ee;        /* page ground */
  --ivory-deep: #efeae0;
  --cream: #fbf9f5;
  --gold: #b08d4f;
  --gold-soft: #c9a96a;
  --text: #333b4a;
  --text-soft: #6b7280;
  --line: rgba(22, 33, 58, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.12; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 6vw; }

/* ---------- Utility type ---------- */
.eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1.1rem;
}
.rule { width: 46px; height: 1px; background: var(--gold); margin: 1.6rem 0; }
.rule.center { margin: 1.2rem auto 0; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.82);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 0; text-align: center;
}
header.site {
  background: var(--ivory); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }

.logo-lockup { display: flex; align-items: center; gap: 18px; text-decoration: none; }
/* R monogram — actual brand artwork extracted from client mockups */
img.logo-mark {
  height: 62px; width: auto; display: block;
  padding-right: 17px; position: relative;
  border-right: 1.5px solid var(--gold);
}
.logo-words { display: flex; flex-direction: column; }
.logo-the {
  font-family: var(--serif); color: var(--ink); font-size: .66rem;
  letter-spacing: .34em; text-transform: uppercase; font-weight: 500; margin-bottom: 3px;
}
.logo-name {
  font-family: var(--serif); color: var(--ink); font-size: 1.12rem;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.3; font-weight: 500;
}
.logo-tag {
  font-size: .56rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-top: 3px; font-weight: 400;
}

nav.primary { display: flex; gap: 20px; align-items: center; }
nav.primary a {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); font-weight: 400;
  padding: 4px 0; border-bottom: 1px solid transparent; transition: all .25s;
}
nav.primary a:hover, nav.primary a.active { color: var(--gold); border-bottom-color: var(--gold); }
.btn {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  padding: 14px 28px; transition: background .25s;
}
.btn.header-cta { padding: 12px 20px; white-space: nowrap; font-size: .68rem; }
.btn:hover { background: var(--gold); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: var(--navy); }

/* mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  nav.primary {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 6vw 26px; gap: 16px; align-items: flex-start;
  }
  nav.primary.open { display: flex; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0; }
.hero .neural {
  position: absolute; left: 34%; top: -80px; width: 520px; opacity: .35; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: .01em; }
.hero p.lede { max-width: 560px; margin-top: 1.6rem; font-size: 1.02rem; }
.hero .actions { margin-top: 2.4rem; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; display: block; }
.hero-photo::after {
  content: ""; position: absolute; left: -18px; bottom: -18px; right: 18px; top: 18px;
  border: 1px solid var(--gold); z-index: -1;
}

/* page hero (interior) */
.page-hero { padding: 78px 0 60px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); max-width: 800px; }
.page-hero p.lede { max-width: 640px; margin-top: 1.4rem; font-size: 1.02rem; }

/* ---------- Sections ---------- */
section.band { padding: 84px 0; }
section.band.white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band.cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band.navy { background: var(--navy); color: rgba(255,255,255,.85); }
section.band.navy h2, section.band.navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: #fff; padding: 44px 36px; }
.card.on-cream { background: #fff; }
.card .icon { margin-bottom: 22px; }
.card .icon svg { width: 40px; height: 40px; stroke: var(--gold); fill: none; stroke-width: 1.05; }
.card .icon img { width: 62px; height: 62px; object-fit: contain; }
.svc-icon { width: 54px; height: 54px; object-fit: contain; display: block; margin-bottom: 14px; }
.card h3 { font-size: .88rem; font-family: var(--sans); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.card p { font-size: .92rem; color: var(--text-soft); }
.card .more {
  display: inline-block; margin-top: 18px; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); text-decoration: none; font-weight: 500;
}
.card .more:hover { color: var(--ink); }

/* ---------- Service detail blocks ---------- */
.svc-block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.svc-block:last-child { border-bottom: none; }
.svc-num { font-family: var(--serif); color: var(--gold); font-size: 1rem; letter-spacing: .3em; margin-bottom: .6rem; }
.svc-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.svc-block h3 { font-size: 1.28rem; margin: 2.2rem 0 .6rem; }
.svc-block p { max-width: 720px; }
.svc-block ul.ticks { list-style: none; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; max-width: 760px; }
@media (max-width: 640px) { .svc-block ul.ticks { grid-template-columns: 1fr; } }
.svc-block ul.ticks li { padding-left: 26px; position: relative; font-size: .95rem; }
.svc-block ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 1.4px solid var(--gold); border-bottom: 1.4px solid var(--gold);
  transform: rotate(-45deg);
}
.positioning {
  margin-top: 2rem; padding: 22px 28px; background: var(--cream);
  border-left: 2px solid var(--gold); font-family: var(--serif);
  font-size: 1.12rem; color: var(--ink); max-width: 720px; font-style: italic;
}

/* ---------- Quote ---------- */
.pull-quote { text-align: center; max-width: 760px; margin: 0 auto; }
.pull-quote blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; color: var(--ink); line-height: 1.4; }
section.band.navy .pull-quote blockquote { color: #fff; }
.pull-quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split .photo-frame { position: relative; }
.split .photo-frame img { width: 100%; max-width: 440px; }
.photo-frame .frame-img {
  border: 1px solid var(--line); padding: 0; background: linear-gradient(160deg, #e9e4da, #dcd5c8);
}
.photo-frame::after {
  content: ""; position: absolute; left: 22px; top: 22px; right: -22px; bottom: -22px;
  border: 1px solid var(--gold); z-index: -1;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.4rem; font-family: var(--sans); font-weight: 300; transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 0 24px; color: var(--text); font-size: .96rem; max-width: 740px; }
.faq .faq-body ul { margin: .6rem 0 .6rem 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .8rem; }
.cta-band p { max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer .logo-name, footer .logo-the { color: #fff; }
footer h4 { color: #fff; font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
footer a { color: rgba(255,255,255,.72); text-decoration: none; }
footer a:hover { color: var(--gold-soft); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; color: rgba(255,255,255,.5);
}
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.85); margin-top: 14px; max-width: 300px; line-height: 1.5; }

/* ---------- Article ---------- */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { margin-bottom: 1.4rem; }
.article-body .lead-q { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--ink); margin: 2rem 0; text-align: center; }
.byline { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 1rem; }

/* ---------- Misc ---------- */
.check-list { list-style: none; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 15px; height: 15px;
  border: 1px solid var(--gold); border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: 4px; top: .52em; width: 8px; height: 4px;
  border-left: 1.3px solid var(--gold); border-bottom: 1.3px solid var(--gold); transform: rotate(-45deg);
}
.notice { font-size: .84rem; color: var(--text-soft); border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1.2rem; max-width: 740px; }
