/* ============================================================
   Cashtown — institutional group site
   Brand navy · ivory · copper. Fraunces display, Archivo text.
   Design language: generous whitespace, hairline rules,
   spaced small-caps labels, story-led editorial sections.
   ============================================================ */

:root {
  --navy: #16294f;
  --navy-2: #1b3665;
  --ivory: #fdfcf9;
  --ivory-2: #f5f2ea;
  --text: #23304d;
  --muted: #5b6478;
  --copper: #b4722c;
  --copper-2: #d29a5b;
  --line: rgba(22, 41, 79, 0.14);
  --line-light: rgba(253, 252, 249, 0.18);
  --display: "Fraunces", Georgia, serif;
  --body: "Archivo", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--copper); color: #fff; padding: 0.5rem 1rem;
  z-index: 10000; font-weight: 600;
}
.skip-link:focus { left: 0; }

.br-wide { display: none; }
@media (min-width: 720px) { .br-wide { display: inline; } }

/* ---------- small-caps label ---------- */
.label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.6rem;
}
.label--light { color: var(--copper-2); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--ivory);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav--solid {
  background: rgba(22, 41, 79, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line-light);
}
.nav__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem;
  padding: 1.1rem 2rem;
}
.nav__brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; margin-right: auto;
}
.nav__logo { width: 34px; height: 34px; display: block; }
.nav__word {
  font-family: var(--display); font-weight: 500; font-size: 1.05rem;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  text-decoration: none;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.85;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}
.nav__links a:hover { opacity: 1; border-color: var(--copper-2); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { display: block; width: 24px; height: 1.5px; background: var(--ivory); margin: 6px 0; transition: 0.2s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  background:
    radial-gradient(1100px 700px at 50% 120%, rgba(180, 114, 44, 0.14), transparent 60%),
    linear-gradient(180deg, #101f3c 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: var(--ivory);
  overflow: hidden;
  text-align: center;
  padding: 6rem 1.5rem;
}
.hero__guilloche {
  position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle at 50% 130%, transparent 0, transparent 34px, rgba(180,114,44,0.09) 35px, transparent 36px);
}
.hero__inner { position: relative; max-width: 60rem; }
.hero__eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--copper-2);
  margin-bottom: 2.2rem;
}
.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--copper-2); }
.hero__rule {
  width: 56px; height: 1px; background: var(--copper);
  margin: 2.4rem auto 2rem;
}
.hero__sub {
  font-size: 0.85rem; letter-spacing: 0.26em; text-transform: uppercase;
  opacity: 0.75;
}
.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  background: var(--line-light);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; top: -30%; left: 0;
  width: 100%; height: 30%;
  background: var(--copper-2);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { to { top: 100%; } }

/* load-in reveals */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.9s ease forwards; }
.reveal--d1 { animation-delay: 0.15s; }
.reveal--d2 { animation-delay: 0.3s; }
.reveal--d3 { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* scroll reveals (added by JS) */
.sr { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.sr--in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .sr { animation: none; transition: none; opacity: 1; transform: none; }
  .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ STATEMENT ============ */
.statement { padding: 8rem 2rem 0; }
.statement__inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.statement__lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 1.8rem;
}
.statement__body { color: var(--muted); max-width: 40rem; margin: 0 auto; }

.facts {
  max-width: 1100px;
  margin: 5.5rem auto 0;
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li {
  flex: 1 1 auto;
  text-align: center;
  padding: 1.3rem 2rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--navy);
}
.facts li + li { border-left: 1px solid var(--line); }

/* ============ FOCUS ============ */
.focus { max-width: 1100px; margin: 0 auto; padding: 8rem 2rem; }
.focus__head { text-align: center; margin-bottom: 5rem; }
.focus__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  color: var(--navy);
}
.focus__row {
  display: grid; grid-template-columns: 160px 1fr; gap: 2rem;
  padding: 3.4rem 0;
  border-top: 1px solid var(--line);
}
.focus__row:last-child { border-bottom: 1px solid var(--line); }
.focus__num {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 3.6rem; line-height: 1;
  color: var(--copper);
}
.focus__text h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--navy);
  margin-bottom: 0.9rem;
  max-width: 32ch;
}
.focus__text p { color: var(--muted); max-width: 60ch; }

/* ============ PHILOSOPHY ============ */
.philosophy {
  position: relative;
  background:
    radial-gradient(900px 500px at 50% -20%, rgba(180, 114, 44, 0.12), transparent 60%),
    var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: 8rem 2rem;
  overflow: hidden;
}
.philosophy__inner { position: relative; max-width: 52rem; margin: 0 auto; }
.philosophy__quote p {
  font-family: var(--display);
  font-weight: 300; font-style: italic;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.3;
  margin-bottom: 2.2rem;
}
.philosophy__body { opacity: 0.8; max-width: 40rem; margin: 0 auto; }

/* ============ OWNERS ============ */
.owners { max-width: 1100px; margin: 0 auto; padding: 8rem 2rem; }
.owners__head { text-align: center; margin-bottom: 4.5rem; }
.owners__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  color: var(--navy);
}
.owners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.owners__step { border-top: 1px solid var(--copper); padding-top: 1.6rem; }
.owners__step-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.owners__step p:last-child { color: var(--muted); font-size: 0.95rem; }

/* ============ CONTACT ============ */
.contact { background: var(--ivory-2); padding: 8rem 2rem; }
.contact__inner { max-width: 44rem; margin: 0 auto; text-align: center; }
.contact__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.contact__body { color: var(--muted); max-width: 34rem; margin: 0 auto 3.5rem; }
.contact__rows { text-align: left; border-top: 1px solid var(--line); }
.contact__row {
  display: grid; grid-template-columns: 160px 1fr; gap: 1rem;
  padding: 1.2rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.contact__key {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--copper);
  align-self: center;
}
.contact__row a {
  text-decoration: none; color: var(--navy); font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
  width: fit-content;
}
.contact__row a:hover { border-color: var(--copper); }

/* ============ FOOTER ============ */
.footer { background: var(--navy); color: var(--ivory); }
.footer__inner { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem 3rem; }
.footer__brand {
  display: flex; align-items: center; gap: 0.7rem;
  padding-bottom: 2.6rem; margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__key {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--copper-2);
  margin-bottom: 0.8rem;
}
.footer__col p { font-size: 0.92rem; opacity: 0.85; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--copper-2); }
.footer__legal { font-size: 0.8rem; opacity: 0.55; max-width: 46rem; margin-bottom: 0.8rem; }
.footer__copy { font-size: 0.75rem; opacity: 0.4; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .owners__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .focus__row { grid-template-columns: 1fr; gap: 0.8rem; }
  .focus__num { font-size: 2.6rem; }
  .facts { flex-direction: column; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav--open { background: rgba(22, 41, 79, 0.98); }
  .nav--open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(22, 41, 79, 0.98);
    border-bottom: 1px solid var(--line-light);
    padding: 0.6rem 0 1rem;
  }
  .nav--open .nav__links a { padding: 0.9rem 2rem; border-bottom: 0; }
  .statement { padding-top: 6rem; }
  .focus, .owners, .contact, .philosophy { padding-top: 5rem; padding-bottom: 5rem; }
  .contact__row { grid-template-columns: 1fr; gap: 0.2rem; }
}
