:root {
  --ink: #141413;
  --paper: #faf9f5;
  --paper-2: #f1efe6;
  --line: #dedbd0;
  --muted: #68645c;
  --soft: #b0aea5;
  --orange: #d97757;
  --blue: #406f9f;
  --green: #66794d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(20, 20, 19, 0.12);
  --radius: 8px;
  --max: 1160px;
  --display: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("/assets/paper-grain.png");
  background-size: 320px 320px;
  opacity: 0.12;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  background: rgba(250, 249, 245, 0.88);
  border-bottom: 1px solid rgba(222, 219, 208, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--display);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: 0;
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
}

.nav-links a,
.header-admin {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.header-admin:hover {
  color: var(--ink);
}

.header-admin {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
}

main {
  overflow: hidden;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 0 clamp(28px, 5vw, 48px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-summary {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 24px 0 0;
}

.hero-meta div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.hero-meta dd {
  margin: 6px 0 0;
  font-size: 16px;
}

.hero-visual {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.94) contrast(0.98);
}

.visual-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
}

.visual-caption span {
  font-weight: 700;
}

.visual-caption small {
  color: var(--muted);
}

.metric-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f6f4ed;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.metric {
  min-height: 132px;
  padding: 26px 0;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.metric:not(:first-child) {
  padding-left: 24px;
}

.metric-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(25px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
}

.section-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max)) / 2));
  background: #efeee8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  position: sticky;
  top: 104px;
  align-self: start;
}

.section-kicker p {
  margin: 0 0 12px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-kicker h2,
.closing-section h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

.about-copy {
  display: grid;
  gap: 18px;
  max-width: 850px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.about-copy p {
  margin: 0;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.strength-card,
.project-card {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.strength-card h3,
.project-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
}

.strength-card p,
.project-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-period {
  color: var(--green);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.timeline-content h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.18;
}

.timeline-org {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
}

.timeline-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.timeline-highlights {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-highlights li {
  position: relative;
  padding-left: 18px;
  color: #413f3a;
}

.timeline-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
}

.project-card a {
  margin-top: auto;
  padding-top: 28px;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 700;
}

.closing-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.62fr);
  gap: clamp(28px, 6vw, 80px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 126px) 0;
}

.principles {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 19px;
}

.contact-section {
  align-items: end;
  color: var(--paper);
  background: var(--ink);
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max)) / 2));
}

.contact-section .eyebrow {
  color: #efad96;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(250, 249, 245, 0.26);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 14px;
}

.contact-links a:hover {
  background: rgba(250, 249, 245, 0.12);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(20px, calc((100% - var(--max)) / 2));
  color: rgba(250, 249, 245, 0.72);
  background: var(--ink);
  border-top: 1px solid rgba(250, 249, 245, 0.14);
  font-family: var(--display);
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 28px);
  }

  .brand-text {
    display: none;
  }

  .nav-links {
    gap: 14px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    min-height: auto;
  }

  .hero-visual {
    min-height: 0;
  }

  .metrics {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }

  .metric,
  .metric:first-child,
  .metric:not(:first-child) {
    border-left: 1px solid var(--line);
    padding-left: 18px;
  }

  .section-grid,
  .closing-section,
  .contact-section {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }

  .section-muted,
  .contact-section {
    width: 100%;
    padding-inline: 14px;
  }

  .section-kicker {
    position: static;
  }

  .strength-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}
