/* ==========================================================================
   Harper Price — North Wealth
   Private-wealth classic: deep pine green, warm cream, antique brass hairlines.
   Display: Cormorant Garamond · Body: Hanken Grotesk
   ========================================================================== */

:root {
  /* palette */
  --green-950: #0B211A;
  --green-900: #122E24;
  --green-850: #17382C;
  --cream: #F1ECDF;
  --cream-deep: #EAE3D0;
  --cream-on-dark: #EFE9DA;
  --ink: #1E2B26;
  --ink-soft: #51605A;
  --brass: #8F7743;        /* accent on light backgrounds */
  --brass-soft: #C9B383;   /* accent on dark backgrounds */
  --oxblood: #4A231E;      /* third family: leather, wax seal */
  --oxblood-deep: #401E1A;
  --parchment: #ECE2CC;    /* warmer light, for late-page progression */
  --line-dark: rgba(201, 179, 131, 0.28);
  --line-light: rgba(30, 43, 38, 0.16);

  /* type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.75rem, 1.9rem + 4.2vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.55rem + 2.2vw, 3.4rem);
  --fs-h3: 1.55rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-fine: 0.78rem;

  /* layout */
  --container: 1120px;
  --header-h: 4.5rem;
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

sup {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: super;
}

::selection { background: var(--brass-soft); color: var(--green-950); }

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

.section--dark :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brass-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- shared ---------- */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.section--cream { background: var(--cream); }

.section--parchment { background: var(--parchment); }

.section--dark {
  background: var(--green-950);
  color: var(--cream-on-dark);
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.section--dark .eyebrow,
.hero .eyebrow { color: var(--brass-soft); }

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-head h2 { font-size: var(--fs-h2); }

.section-lead {
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

.section--dark .section-lead { color: rgba(239, 233, 218, 0.72); }

/* buttons & quiet links */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-solid {
  background: var(--cream-on-dark);
  color: var(--green-950);
}

.btn-solid:hover { background: var(--brass-soft); }

.link-quiet {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.link-quiet:hover { border-color: var(--brass-soft); color: var(--brass-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 33, 26, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--cream-on-dark);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(6, 18, 14, 0.35); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-decoration: none;
  color: var(--cream-on-dark);
}

.wordmark .dia {
  width: 7px;
  height: 7px;
  margin: 0 0.55em;
  color: var(--brass-soft);
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.site-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.site-nav ul a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(239, 233, 218, 0.82);
  transition: color 0.25s ease;
}

.site-nav ul a:hover { color: var(--brass-soft); }

.nav-cta { padding: 0.7em 1.4em; }

/* mobile toggle — hidden without JS, hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 0.7rem 0.65rem;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--cream-on-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-bar { position: relative; }

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-open .nav-toggle-bar { transform: rotate(45deg); }
.nav-open .nav-toggle-bar::before { transform: rotate(-90deg) translateX(-6px); }
.nav-open .nav-toggle-bar::after { opacity: 0; }

@media (max-width: 760px) {
  html.js .nav-toggle { display: block; }

  html.js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.6rem clamp(1rem, 4%, 2rem) 2rem;
    background: var(--green-950);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }

  html.js .nav-open .site-nav { display: flex; }

  html.js .site-nav ul {
    flex-direction: column;
    gap: 1.2rem;
  }

  html.js .site-nav ul a { font-size: 1rem; }

  /* no JS: keep the row minimal — wordmark only, page scrolls fine */
  html:not(.js) .site-nav { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(55% 75% at 76% 42%, rgba(201, 179, 131, 0.13) 0%, rgba(201, 179, 131, 0) 65%),
    radial-gradient(120% 90% at 15% 0%, rgba(30, 69, 54, 0.55) 0%, rgba(30, 69, 54, 0) 55%),
    var(--green-950);
  color: var(--cream-on-dark);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--brass-soft));
  opacity: 0.7;
}

@media (max-width: 760px) {
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: cue 2.8s ease-in-out infinite; }
  .crest-ticks {
    transform-box: view-box;
    transform-origin: 100px 100px;
    animation: spin 90s linear infinite;
  }
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(8px); opacity: 0.85; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
  min-height: calc(96svh - var(--header-h));
  padding-block: clamp(4.5rem, 10vh, 7rem);
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  max-width: 11em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  margin-top: 1.6rem;
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(239, 233, 218, 0.78);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2.4rem;
}

.hero-note {
  margin-top: 3.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  color: rgba(239, 233, 218, 0.55);
  max-width: 34rem;
}

.hero-crest { justify-self: center; }

.hero-crest svg {
  width: min(340px, 70vw);
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
  .hero-crest { animation: crest 1.1s ease 0.35s both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes crest {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- credentials strip ---------- */
.credentials {
  background: var(--cream-deep);
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

/* certificate double-rule along the bottom edge */
.credentials::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: var(--line-light);
}

.credentials { border-bottom: 1px solid var(--line-light); }

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.cred-item { padding: 0.4rem 2rem 0.4rem 0; }

.cred-item + .cred-item {
  border-left: 1px solid var(--line-light);
  padding-left: 2rem;
}

.cred-mark {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.cred-item > p:last-child {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .cred-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0;
  }
  .cred-item:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 520px) {
  .cred-grid { grid-template-columns: 1fr; }
  .cred-item { padding-right: 0; }
  .cred-item + .cred-item {
    border-left: none;
    border-top: 1px solid var(--line-light);
    padding-left: 0;
    padding-top: 1.6rem;
  }
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.about-copy h2 {
  font-size: var(--fs-h2);
  max-width: 13em;
}

.about-copy p + p { margin-top: 1.2rem; }

.about-copy h2 + p { margin-top: 1.6rem; }

.about-copy p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  line-height: 1.75;
}

.about-side { margin-top: 1.2rem; }

.about-figure {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.about-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.95);
}

/* green glaze so photography sits inside the palette */
.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 33, 26, 0.04) 0%, rgba(11, 33, 26, 0.20) 100%);
}

.quote-card {
  background: var(--oxblood);
  color: var(--cream-on-dark);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 2px;
  position: relative;
  margin: -4.5rem 0 0 clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 24px 50px rgba(32, 14, 11, 0.32);
}

.quote-dia {
  width: 10px;
  height: 10px;
  color: var(--brass-soft);
  margin-bottom: 1.6rem;
}

.quote-card blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  line-height: 1.45;
}

.quote-card cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { margin-top: 0; }
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card {
  background: var(--green-900);
  border-top: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
}

.service-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.9rem;
}

.service-card p { color: rgba(239, 233, 218, 0.75); }

.service-meta {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card .service-meta { color: var(--brass-soft); }

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- interlude ---------- */
.interlude {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(340px, 52vh, 560px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

.interlude img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.75);
  will-change: transform;
}

.interlude::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 33, 26, 0.78) 0%, rgba(11, 33, 26, 0.34) 52%, rgba(11, 33, 26, 0.66) 100%);
}

.interlude-line {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.5rem);
  color: var(--cream-on-dark);
  padding-inline: 1.5rem;
  text-shadow: 0 1px 24px rgba(6, 18, 14, 0.55);
}

.interlude-dia {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 1.3rem;
  color: var(--brass-soft);
}

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  list-style: none;
  counter-reset: none;
}

.process-step {
  border-top: 1px solid var(--line-light);
  padding-top: 1.6rem;
}

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.8rem, 2.2rem + 1.8vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.process-step > p:last-child {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.65;
}

@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(90% 120% at 85% 50%, rgba(201, 179, 131, 0.08) 0%, rgba(201, 179, 131, 0) 60%),
    var(--oxblood);
  color: var(--cream-on-dark);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.cta-crest {
  position: absolute;
  top: 50%;
  right: clamp(-160px, -8vw, -60px);
  transform: translateY(-50%);
  width: clamp(300px, 34vw, 520px);
  height: auto;
  opacity: 0.08;
  pointer-events: none;
}

.cta-band .btn-solid { color: var(--oxblood-deep); }

.cta-inner { position: relative; }

/* certificate double-rule along the top edge */
.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
  background: var(--line-dark);
}

.cta-inner {
  text-align: center;
  max-width: 44rem;
}

.cta-inner h2 { font-size: clamp(1.9rem, 1.5rem + 2vw, 3rem); }

.cta-inner > p {
  margin-top: 1.1rem;
  color: rgba(239, 233, 218, 0.72);
  font-size: var(--fs-lead);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2.4rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-950);
  color: var(--cream-on-dark);
  padding-block: clamp(4rem, 8vw, 6rem) 2.5rem;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.contact-block h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.8rem;
}

.contact-block a {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-block a:hover { color: var(--brass-soft); }

.contact-block address {
  font-style: normal;
  font-size: var(--fs-small);
  color: rgba(239, 233, 218, 0.72);
  line-height: 1.7;
}

.footer-rule {
  border: none;
  border-top: 1px solid var(--line-dark);
  margin-block: clamp(2.5rem, 5vw, 4rem) 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.wordmark--footer { cursor: default; }

.footer-tag {
  margin-top: 0.7rem;
  font-size: var(--fs-small);
  color: rgba(239, 233, 218, 0.55);
}

.footer-crest { width: 84px; height: 84px; opacity: 0.9; }

.fine-print {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.8rem;
  font-size: var(--fs-fine);
  line-height: 1.7;
  color: rgba(239, 233, 218, 0.45);
}

.fine-print p + p { margin-top: 0.9rem; }

.copyright { letter-spacing: 0.04em; }

@media (max-width: 760px) {
  .footer-contact { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}

/* ---------- hero on small screens ---------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: clamp(3.5rem, 8vh, 5rem);
  }
  .hero-crest { order: -1; justify-self: start; }
  .hero-crest svg { width: min(150px, 40vw); }
}

/* ---------- scroll reveal (JS-gated: content fully visible without JS) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* gentle stagger inside grids */
html.js .cred-grid .reveal:nth-child(2),
html.js .services-grid .reveal:nth-child(2),
html.js .process-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

html.js .cred-grid .reveal:nth-child(3),
html.js .services-grid .reveal:nth-child(3),
html.js .process-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

html.js .cred-grid .reveal:nth-child(4),
html.js .services-grid .reveal:nth-child(4),
html.js .process-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
