/* Clay Investments — stationery for a Southern principal */
:root {
  /* lake stone (preview). prior clay/paper: ink #161513 paper #F3EEE4 pine #2F4038 */
  --ink: #1C1E1D;
  --ink-soft: rgba(28, 30, 29, 0.72);
  --ink-mute: rgba(28, 30, 29, 0.52);
  --paper: #F0EEE9;
  --paper-deep: #E4E2DC;
  --clay: #9A5B38;
  --clay-deep: #7C4629;
  --pine: #3A4549;
  --pine-deep: #2A3236;
  --rule: #D3D1CB;
  --paper-on-pine: #F0EEE9;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - clamp(2rem, 6vw, 5.5rem)));
  --narrow: min(720px, calc(100% - clamp(2rem, 6vw, 5.5rem)));
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-nav-open { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--clay) 55%, var(--rule));
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover { color: var(--clay-deep); text-decoration-color: var(--clay); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 500;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 500; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 500; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--clay);
}

.wrap { width: var(--wrap); margin-inline: auto; }
.narrow { width: var(--narrow); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  width: var(--wrap);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark:hover { color: var(--ink); }

.wordmark svg,
.wordmark .logo-lockup {
  height: 2.15rem;
  width: auto;
  display: block;
  flex: none;
  overflow: visible;
}

.wordmark .logo-lockup {
  height: 2.35rem;
}

.wordmark-name {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  z-index: 60;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.28s var(--ease), opacity 0.2s ease, top 0.28s var(--ease);
}

.nav-toggle span { top: 50%; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--clay);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--paper-on-pine);
  background-color: #16181A;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("../images/atmosphere.svg") center / cover no-repeat,
    linear-gradient(180deg, #141618 0%, #1C2226 46%, #2A2420 52%, #15181A 100%);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 18, 0.15) 0%, rgba(14, 16, 18, 0.08) 40%, rgba(14, 16, 18, 0.45) 100%);
}

.hero-inner {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 8rem) 0 clamp(3.5rem, 9vh, 6.5rem);
}

.hero .eyebrow { color: #C48A66; }
.hero .eyebrow::before { background: #C48A66; }

.hero h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  color: var(--paper);
}

.hero .lede {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  max-width: 34rem;
}

.hero-rule {
  width: min(8rem, 30vw);
  height: 1px;
  margin: 2.25rem 0 0;
  background: color-mix(in srgb, var(--paper) 22%, transparent);
  border: 0;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.25rem, 9vw, 7.5rem) 0; }

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head.centered { text-align: center; justify-items: center; }
.section-head.centered .eyebrow { justify-content: center; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.prose { max-width: 40rem; }
.prose p + p { margin-top: 1.1em; }

.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* ---------- Figures / stats ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.figures li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.figures .num {
  display: block;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.figures .lbl {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Pursuits ---------- */
.pursuit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pursuit-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 0.25rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.pursuit-card:hover { color: inherit; }

.pursuit-card .idx {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

.pursuit-card h3 { margin-bottom: 0.7rem; }
.pursuit-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.pursuit-card .more {
  margin-top: 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  text-decoration: none;
}

.pursuit-card:hover .more { color: var(--clay-deep); }

/* long-form pursuits */
.pursuit-block + .pursuit-block {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--rule);
}

.pursuit-block .idx {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.85rem;
}

/* ---------- Bands ---------- */
.band-pine {
  background: var(--pine);
  color: var(--paper);
}

.band-pine .eyebrow { color: #C48A66; }
.band-pine .eyebrow::before { background: #C48A66; }
.band-pine h2 { color: var(--paper); }
.band-pine p { color: color-mix(in srgb, var(--paper) 80%, transparent); }

.band-deep {
  background: var(--paper-deep);
}

/* ---------- Projects ---------- */
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.project-item:last-child { border-bottom: 1px solid var(--rule); }
.project-item:hover { color: inherit; }

.project-item h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.project-item .place {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.project-item .blurb {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
}

.project-article {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  border-top: 1px solid var(--rule);
}

.project-article:last-of-type { border-bottom: 1px solid var(--rule); }

.project-article h2 { margin-bottom: 0.35rem; }
.project-article .place {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  background: var(--pine);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { background: var(--pine-deep); color: var(--paper); }

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--paper) 35%, transparent);
  color: var(--paper);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  color: var(--paper);
}

.btn-line {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-line:hover { background: var(--ink); color: var(--paper); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* ---------- Page intro ---------- */
.page-intro {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.page-intro h1 { max-width: 16ch; }

/* ---------- States / lists ---------- */
.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.state-list li {
  border: 1px solid var(--rule);
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li + li { margin-top: 0.85rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.vcard p { margin: 0 0 0.35rem; }
.vcard .org {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.vcard a { text-decoration: none; }
.vcard a:hover { text-decoration: underline; text-decoration-color: var(--clay); }

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 70%, white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.8rem 0.9rem;
  border-radius: 0;
}

.field textarea { min-height: 10rem; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-color: var(--clay);
}

.form-note {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-deep);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.footer-brand .wordmark { color: var(--paper); margin-bottom: 1rem; }
.footer-brand .wordmark:hover { color: var(--paper); }
.footer-brand p { font-size: 0.95rem; max-width: 22rem; }

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C48A66;
  margin: 0 0 0.9rem;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.4rem; }

.footer-base {
  width: var(--wrap);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ---------- 404 ---------- */
.err {
  min-height: calc(100vh - 12rem);
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.err .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
  color: var(--clay);
  margin: 0 0 0.6rem;
}

/* ---------- Utils ---------- */
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.95s var(--ease) both;
  }
  .rise-2 { animation-delay: 0.12s; }
  .rise-3 { animation-delay: 0.24s; }
  .rise-4 { animation-delay: 0.36s; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split,
  .contact-grid,
  .project-item { grid-template-columns: 1fr; }
  .pursuit-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    overflow: auto;
    z-index: 40;
    background: var(--pine-deep);
    color: var(--paper);
    padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), visibility 0.28s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.is-nav-open {
    overflow: hidden;
  }

  body.is-nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-family: var(--display);
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--paper);
    border-bottom: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
    color: #C48A66;
  }

  .header-inner { width: calc(100% - 2rem); }
  .wrap, .narrow { width: calc(100% - 2rem); }
  .footer-base { width: calc(100% - 2rem); }

  .hero h1 { max-width: 14ch; }
}

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

@media (min-width: 1440px) {
  :root { --wrap: min(1200px, calc(100% - 6rem)); }
}

/* Print */
@media print {
  body::before, .site-header, .nav-toggle, .btn { display: none !important; }
  .hero { min-height: 0; color: var(--ink); background: none; }
  .hero-atmosphere { display: none; }
  .band-pine { background: none; color: var(--ink); }
  .site-footer { background: none; color: var(--ink); }
  a { text-decoration: none; }
}


.page-intro + .section { padding-top: 0; }
.figures-follow { margin-top: clamp(3rem, 6vw, 4.5rem); }
.vcard .stack-gap { margin-top: 1.25rem; }
