/* ====== Tokens ====== */
:root {
  --cream: #f7f2e7;
  --cream-soft: #fbf7ee;
  --sage: #4a6b5e;
  --sage-deep: #2d4a3f;
  --sage-light: #6b8e7f;
  --ink: #1f1d18;
  --stone: #a89d8a;
  --stone-light: #d8d0bf;
  --clay: #b87148;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --wrap-narrow: 44rem;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-soft: 0 6px 24px rgba(31, 29, 24, 0.08);
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: 1.25em; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }

/* ====== Base ====== */
html { font-size: 17px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; margin-top: 2.5em; margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-top: 1.8em; margin-bottom: 0.4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(168, 157, 138, 0.25);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.nav {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover { color: var(--sage); }

/* ====== Footer ====== */
.site-footer {
  margin-top: 6rem;
  padding: 3rem 0 2rem;
  background: var(--cream-soft);
  border-top: 1px solid var(--stone-light);
}
.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.92rem;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 1.05rem;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--stone-light); padding-bottom: 2px; }
.footer-links a:hover { color: var(--sage); border-bottom-color: var(--sage); }
.footer-copy { color: var(--stone); font-size: 0.85rem; }

/* ====== Page ====== */
main { min-height: 60vh; }

.page, .work-item {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.page-header { margin-bottom: 2.5rem; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 1rem;
}
.eyebrow a { color: var(--sage); text-decoration: none; }
.eyebrow a:hover { color: var(--clay); }

.subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--sage);
  font-weight: 400;
  margin-top: 0.75rem;
  line-height: 1.4;
}
.meta {
  font-size: 0.85rem;
  color: var(--stone);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

/* ====== Prose ====== */
.prose p {
  margin: 1.1em 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 1em 0; }
.prose li { margin: 0.4em 0; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.6em 1.4em;
  border-left: 3px solid var(--sage-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage-deep);
}
.prose hr { border: none; border-top: 1px solid var(--stone-light); margin: 2.5em 0; }
.prose img { margin: 1.5em 0; box-shadow: var(--shadow-soft); }

/* ====== Home ====== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  /* increased overall height */
  min-height: clamp(520px, 70vh, 760px);
  border-bottom: 1px solid var(--stone-light);
}
.hero-text {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}
.hero-text .eyebrow { margin-bottom: 1.25rem; }
.hero-text h1 { margin-bottom: 1.1rem; }
.hero-text .lede {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 30em;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.hero-photo {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage-deep) 60%, #1a2e26 100%);
  position: relative;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(31, 29, 24, 0.15) 100%);
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 3rem 1.5rem 2.5rem; order: 2; }
  .hero-photo { aspect-ratio: 4 / 3; order: 1; }
}

/* ====== Full-width hero (fill viewport) ====== */
.hero-fullwidth {
  position: relative;
  /* fill the viewport */
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--stone-light);
}
.hero-carousel {
  position: absolute;
  inset: 0;
  height: 100vh;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-bg.active {
  opacity: 1;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(31, 29, 24, 0.55);
  /* match overlay to viewport */
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  max-width: 36em;
  padding: 4rem 2rem;
  text-align: center;
}
.hero-content .eyebrow { color: var(--cream); }
.hero-content h1 { color: var(--cream); margin-bottom: 1.1rem; }
.hero-content .lede {
  font-size: 1.1rem;
  color: rgba(247, 242, 231, 0.9);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .hero-fullwidth { min-height: 100vh; height: 100vh; }
  .hero-overlay { min-height: 100vh; height: 100vh; }
  .hero-content { padding: 3rem 1.5rem; }
}

/* ====== Buttons ====== */
.button, button.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--sage);
  color: var(--cream);
  padding: 0.75em 1.5em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.button:hover { background: var(--sage-deep); color: var(--cream); transform: translateY(-1px); }
.button.outline {
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage);
}
.button.outline:hover { background: var(--sage); color: var(--cream); }

/* ====== Home tiles ====== */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: var(--wrap);
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.tile {
  background: var(--cream-soft);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--sage-light);
  color: var(--ink);
}
.tile-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.6rem;
}
.tile h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  font-weight: 500;
}
.tile p { font-size: 0.95rem; color: var(--ink); margin: 0; }
.tile-arrow { display: inline-block; margin-top: 0.8rem; font-weight: 600; color: var(--sage); }

@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; gap: 0.9rem; margin: 2.5rem auto; }
}

/* ====== Pull quote ====== */
.pullquote {
  max-width: var(--wrap-narrow);
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.4;
  color: var(--sage-deep);
}
.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-family: var(--font-body);
  font-weight: 600;
}

/* ====== Work index ====== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--stone-light);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); color: var(--ink); }
.work-card-image {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--sage-light), var(--sage-deep));
  overflow: hidden;
}
.work-card-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.work-card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.work-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  font-weight: 500;
  line-height: 1.25;
}
.work-card-body p { font-size: 0.95rem; color: var(--ink); margin: 0 0 0.8rem; flex: 1; }
.work-card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
.work-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.work-card.featured .work-card-image { aspect-ratio: auto; min-height: 100%; }
.work-card.featured .work-card-body { justify-content: center; padding: 2.5rem 2.5rem; }
.work-card.featured h3 { font-size: 1.7rem; }

@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .work-card.featured { grid-template-columns: 1fr; }
}

/* ====== Work item detail ====== */
.work-hero {
  margin: 2rem 0 2.5rem;
}
.work-hero img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.download {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone-light);
}

/* ====== About photo ====== */
.about-photo {
  float: right;
  width: 220px;
  margin: 0 0 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 720px) {
  .about-photo {
    float: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.5rem;
  }
}

/* ====== About blocks ====== */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.value {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border-left: 3px solid var(--sage);
}
.value h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--sage-deep);
}
.value p { font-size: 0.92rem; margin: 0; color: var(--ink); }
@media (max-width: 720px) {
  .values { grid-template-columns: 1fr; gap: 0.8rem; }
}

.timeline { margin: 2rem 0; }
.timeline-item {
  padding: 1rem 0 1rem 1.4rem;
  border-left: 2px solid var(--stone-light);
  margin-left: 0.5rem;
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.timeline-item .role { font-size: 0.95rem; color: var(--sage); margin-bottom: 0.2rem; }
.timeline-item .meta { margin-top: 0.1rem; font-size: 0.82rem; }
.timeline-item p { font-size: 0.95rem; color: var(--ink); margin: 0.4rem 0 0; }

/* ====== Contact ====== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li {
  background: var(--cream-soft);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-list .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
.contact-list a {
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.contact-list a:hover { color: var(--sage); }
