/* ===========================================================
   Richards Lake Partners - homepage mockup
   1. Tokens
   2. Base + utilities
   3. Header + navigation
   4. Sections
   5. Forms
   6. Footer
   7. Responsive
   8. Motion + print
   =========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --forest-900: #0b1510;
  --forest-800: #0e1a14;
  --forest-700: #14261d;
  --forest-600: #1c3327;
  --sage-400: #8fb39b;
  --sage-100: #dfe4d9;
  --ivory: #f4f1e7;
  --bone: #e9e5d8;
  --charcoal: #232724;
  --charcoal-soft: #4c534d;
  --brass: #a97f37;
  --brass-light: #c2a063;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 9vw, 140px);
  --rule: rgba(35, 39, 36, 0.16);
  --rule-light: rgba(233, 229, 216, 0.2);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brass); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--forest-700); }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--forest-800);
  color: var(--ivory);
  padding: 14px 20px;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--brass-light); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-title { font-size: clamp(34px, 4.6vw, 60px); }
.section-lede {
  margin-top: 20px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--charcoal-soft);
  max-width: 62ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-solid { background: var(--brass); color: #fff; }
.btn-solid:hover { background: var(--forest-700); color: #fff; }
.btn-ghost { border-color: rgba(244, 241, 231, 0.55); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); background: rgba(244, 241, 231, 0.1); color: #fff; }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(5px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}
.text-link:hover { color: var(--forest-700); }
.text-link-light { color: var(--brass-light); }
.text-link-light:hover { color: var(--ivory); }

/* ---------- 3. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--forest-800);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.site-header[data-transparent] { background: transparent; }
.site-header.is-scrolled {
  background: rgba(11, 21, 16, 0.96);
  border-bottom-color: var(--rule-light);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}
.brand { color: var(--ivory); display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 44px; height: 44px; flex: none; object-fit: contain; }
.brand-word { display: grid; gap: 1px; line-height: 1; }
.brand-word-1 { font-family: var(--serif); font-size: 19px; letter-spacing: 0.01em; }
.brand-word-2 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3em; color: rgba(244, 241, 231, 0.72); }
.brand:hover .brand-word-2 { color: var(--brass-light); }

.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; gap: 30px; }
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bone);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 1px;
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-desktop a:hover, .nav-desktop a[aria-current="true"] { color: #fff; }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="true"]::after { transform: scaleX(1); }

.header-cta { min-height: 44px; padding: 10px 20px; font-size: 12.5px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 4px;
  background: none;
  border: 0;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 6px; width: 24px; }
.nav-toggle-bars span {
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 84px 0 0 0;
  z-index: 99;
  background: var(--forest-800);
  padding: 24px var(--gutter) 48px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { border-top: 1px solid var(--rule-light); }
.mobile-nav li { border-bottom: 1px solid var(--rule-light); }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 60px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 26px;
}
.mobile-nav a:hover { color: var(--brass-light); }
.mobile-cta { align-self: flex-start; }
.mobile-email a { color: var(--sage-400); font-size: 15px; }
body.nav-open { overflow: hidden; }

/* ---------- 4. Sections ---------- */

/* Hero */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  padding: 160px 0 clamp(72px, 9vw, 132px);
  background: var(--forest-900);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}
.hero.is-ready .hero-media img { transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,21,16,0.82) 0%, rgba(11,21,16,0.5) 42%, rgba(11,21,16,0.88) 100%);
}
.hero-inner { position: relative; z-index: 1; }
@media (min-width: 1100px) {
  .hero-inner { max-width: calc(var(--shell) + 130px); padding-left: 130px; }
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(34px, 5.2vw, 70px);
  max-width: 22ch;
}
.hero-lede {
  margin-top: 26px;
  max-width: 74ch;
  color: rgba(244, 241, 231, 0.86);
  font-size: clamp(17px, 1.7vw, 21px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  width: 44px;
  height: 56px;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
}
.scroll-cue-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(244,241,231,0) 0%, rgba(244,241,231,0.7) 100%);
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Priority areas */
.priorities {
  background: var(--forest-800);
  color: var(--ivory);
  padding: var(--section-y) 0;
}
.priorities .section-title { color: var(--ivory); }
.priorities .section-lede { color: rgba(244, 241, 231, 0.72); }

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}
.priority-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 4px;
  border-top: 1px solid var(--rule-light);
  padding-top: 22px;
  transition: border-color 0.35s var(--ease);
}
.priority-tile:hover { border-top-color: var(--brass); }
.priority-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--sage-400);
}
.priority-tile h3 { font-size: clamp(24px, 2.2vw, 32px); color: var(--ivory); }
.priority-tile p { color: rgba(244, 241, 231, 0.74); }
.priority-thumb { overflow: hidden; order: -1; margin-bottom: 6px; }
.priority-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.priority-tile:hover .priority-thumb img { transform: scale(1.05); }5); }

/* Perspective */
.perspective { background: var(--bone); padding: var(--section-y) 0; }
.perspective-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.perspective-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.perspective-copy h2 { font-size: clamp(32px, 4.2vw, 56px); margin-bottom: 26px; }
.perspective-copy p { color: var(--charcoal-soft); max-width: 58ch; }
.perspective-copy p + p { margin-top: 20px; }

/* Capabilities */
.capabilities { padding: var(--section-y) 0; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.cap {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.3s var(--ease);
}
.cap:hover { background: rgba(143, 179, 155, 0.12); }
.cap-index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--charcoal-soft); }
.cap h3 { font-size: clamp(24px, 2.5vw, 32px); }
.cap p { color: var(--charcoal-soft); }
.cap .text-link { margin-top: auto; }

.callout {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(32px, 4vw, 52px);
  border-top: 2px solid var(--forest-800);
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 24ch;
}

/* Selected work */
.work { background: var(--bone); padding: var(--section-y) 0; }
.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 80px);
}
.work-item {
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.work-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--brass); padding-top: 7px; }
.work-item h3 { font-size: clamp(21px, 2.1vw, 27px); margin-bottom: 12px; }
.work-item p { color: var(--charcoal-soft); font-size: 16px; }
.work-item h3, .work-item p { grid-column: 2; }

/* Geospatial */
.geo { background: var(--forest-900); color: var(--ivory); padding: var(--section-y) 0; }
.geo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.geo-copy h2 { color: var(--ivory); font-size: clamp(32px, 4.2vw, 56px); margin-bottom: 26px; }
.geo-copy p { color: rgba(244, 241, 231, 0.76); max-width: 52ch; }
.geo-copy p + p { margin-top: 18px; }
.geo-copy .text-link { margin-top: 22px; }
.geo-figure { margin: 0; }
.geo-map { width: 100%; height: auto; border: 1px solid var(--rule-light); }
.geo-caption {
  margin-top: 16px;
  font-size: 14.5px;
  color: rgba(244, 241, 231, 0.6);
  max-width: 52ch;
}


/* Who we serve */
.audiences { padding: var(--section-y) 0; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.audience-grid li {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(26px, 3vw, 40px);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background-color 0.3s var(--ease);
}
.audience-grid li:hover { background: rgba(143, 179, 155, 0.12); }
.audience-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--brass); }
.audience-name { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; margin-top: auto; }

/* Contact */
.contact { position: relative; background: var(--forest-900); color: var(--ivory); padding: var(--section-y) 0; overflow: hidden; }
.contact-media { position: absolute; inset: 0; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,21,16,0.95) 30%, rgba(11,21,16,0.78) 100%);
}
.contact-block { position: relative; z-index: 1; }
.contact-copy h2 { color: var(--ivory); font-size: clamp(34px, 4.6vw, 62px); max-width: 20ch; }
.contact-copy p { margin-top: 24px; color: rgba(244, 241, 231, 0.8); max-width: 62ch; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sage-400);
  font-size: 16px;
  border-bottom: 1px solid rgba(143, 179, 155, 0.4);
}
.contact-email:hover { color: var(--ivory); border-bottom-color: var(--ivory); }

/* ---------- 6. Footer ---------- */
.site-footer { background: var(--forest-800); color: rgba(244, 241, 231, 0.7); padding: clamp(44px, 5vw, 72px) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; justify-content: space-between; }
.footer-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 231, 0.62);
}
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.footer-meta a { color: var(--sage-400); }
.footer-meta a:hover { color: var(--ivory); }

/* ---------- 7. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 1000px) {
  .priority-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 900px) {
  .perspective-grid, .geo-grid { grid-template-columns: minmax(0, 1fr); }
  .perspective-media { max-width: 460px; }
  .perspective-media img { aspect-ratio: 3 / 2; }
  .work-list { grid-template-columns: minmax(0, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-copy h2, .hero h1 { max-width: none; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 78px; }
  body { font-size: 16px; }
  .header-inner { min-height: 70px; }
  .mobile-nav { inset: 70px 0 0 0; }
  .hero { min-height: 88vh; padding-top: 132px; }
  .priority-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .priority-thumb img { aspect-ratio: 16 / 9; }
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .callout { max-width: none; }
}

@media (max-width: 460px) {
  .audience-grid { grid-template-columns: minmax(0, 1fr); }
  .audience-grid li { min-height: 0; }
  .hero-actions .btn { width: 100%; }
  .work-item { grid-template-columns: 40px minmax(0, 1fr); }
}

/* ---------- 8. Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .hero-media img { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .mobile-nav, .scroll-cue, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .priorities, .geo, .contact { background: #fff !important; color: #000 !important; }
  .hero::after, .contact::after, .contact-media, .hero-media { display: none !important; }
  .hero h1, .section-title, .geo-copy h2, .contact-copy h2, .priorities .section-title, .priority-tile h3 { color: #000 !important; }
  .hero { min-height: 0; padding: 24pt 0; }
  section { break-inside: avoid; padding: 18pt 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
