/* Design tokens */
:root {
  --bg: #ffffff;
  --paper: #f8fff9;
  --ink: #111513;
  --muted: #5d625b;
  --soft: #e1e7d7;
  --line: #cbd7c4;
  --olive: #6f7440;
  --olive-deep: #3e4b37;
  --copper: #8b588a;
  --graphite: #171f1f;
  --bluegrey: #dce3e1;
  --shadow: 0 24px 70px rgba(17, 21, 19, 0.16);
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --type-display: clamp(46px, 4.45vw, 62px);
  --type-section: clamp(32px, 3.25vw, 44px);
  --type-project: clamp(24px, 2vw, 30px);
  --type-quote: clamp(24px, 2.4vw, 34px);
  --type-lead: clamp(16px, 1.4vw, 18px);
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

/* Atoms */
.skip-link {
  position: fixed;
  left: 24px;
  top: 16px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Organisms */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 18px clamp(24px, 5vw, 76px);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(208, 215, 196, 0.8);
}

/* Molecules */
.brand {
  display: inline-grid;
  gap: 1px;
  text-transform: uppercase;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-role {
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 50px);
  color: #151816;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after,
.text-link::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Atoms */
.header-cta,
.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--copper);
  background: var(--copper);
  color: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-cta {
  background: transparent;
  color: var(--copper);
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  color: var(--copper);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--copper);
  color: var(--paper);
}

.menu-toggle {
  display: none;
}

/* Organisms */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: stretch;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 76px) 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding-bottom: 38px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: var(--type-display);
  line-height: 1.01;
}

h1 em,
.contact-band h2 em {
  color: var(--copper);
  font-style: italic;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: var(--type-section);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: var(--type-project);
  font-weight: 400;
  line-height: 1.12;
}

.hero-summary {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: var(--type-lead);
  line-height: 1.55;
}

/* Molecules */
.availability {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

/* Atoms */
.status-dot {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--olive);
}

.availability strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.availability span:last-child {
  color: var(--muted);
  font-size: 14px;
}

/* Molecules */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.text-link {
  position: relative;
  display: inline-flex;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--copper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-media {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Organisms */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

/* Molecules */
.proof-item {
  min-height: 124px;
  padding: 26px clamp(24px, 4vw, 76px);
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1;
}

.proof-item span {
  display: block;
  max-width: 210px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Templates */
.section {
  padding: clamp(68px, 8vw, 112px) clamp(24px, 5vw, 76px);
}

.work-section {
  padding-top: clamp(36px, 4vw, 52px);
}

.intro-section {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.intro-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Molecules */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Atoms */
.filter-button {
  min-width: 84px;
  min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--olive);
  color: var(--ink);
}

/* Organisms */
.project-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

/* Molecules */
.project-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(360px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.project-card.is-hidden {
  display: none;
}

.project-copy {
  display: grid;
  align-content: start;
  padding-top: 4px;
}

.project-number {
  margin-bottom: 16px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-card h3 {
  max-width: 380px;
}

.project-meta {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.project-summary {
  max-width: 420px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.project-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--soft);
  cursor: pointer;
  text-align: left;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.025);
}

.principle-grid,
.active-grid,
.endorsement-grid,
.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle,
.active-card,
.testimonial,
.interest-card {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.principle:last-child,
.active-card:last-child,
.testimonial:last-child,
.interest-card:last-child {
  border-right: 0;
}

.principle__label,
.active-card__label,
.interest-card__label {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principle h3,
.active-card h3,
.interest-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.principle p,
.active-card p,
.testimonial p,
.interest-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.experience-section {
  background: rgba(255, 253, 248, 0.64);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: var(--olive);
  content: "";
}

.history-item {
  position: relative;
  padding: 38px 28px 0 0;
}

.history-item::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

.history-years {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.history-item h3 {
  margin: 8px 0 10px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.history-item p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.active-section {
  background: var(--paper);
}

.active-card {
  min-height: 210px;
}

.endorsements-section {
  background: var(--bg);
}

.interests-section {
  background: rgba(255, 253, 248, 0.64);
}

.interest-card {
  min-height: 240px;
}

.testimonial {
  grid-column: span 2;
  min-height: 250px;
}

.testimonial blockquote {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: var(--type-quote);
  line-height: 1.2;
}

.testimonial cite {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

/* Organisms */
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr) minmax(220px, 0.55fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding: clamp(72px, 8vw, 112px) clamp(24px, 5vw, 76px);
  background: var(--graphite);
  color: var(--paper);
}

.contact-band .section-kicker {
  color: #b8bf91;
}

.contact-band h2 {
  max-width: 720px;
  font-size: clamp(36px, 3.6vw, 50px);
  line-height: 1.06;
}

.contact-summary p,
.contact-details {
  color: rgba(255, 253, 248, 0.78);
}

.contact-summary p {
  font-size: 16px;
  line-height: 1.6;
}

.contact-details {
  display: grid;
  gap: 11px;
  margin: 0;
  font-style: normal;
}

.contact-details a,
.contact-details span,
.contact-details button {
  display: block;
  font-size: 14px;
}

.contact-link,
.footer-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(24px, 5vw, 76px);
  background: var(--graphite);
  border-top: 1px solid rgba(255, 253, 248, 0.16);
  color: rgba(255, 253, 248, 0.68);
  font-size: 13px;
}

.site-footer div {
  display: flex;
  gap: 24px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 19, 0.68);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 0.8fr);
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(17, 21, 19, 0.18);
  background: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-media {
  min-height: 520px;
  background: var(--soft);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: clamp(34px, 5vw, 64px);
}

.modal-content h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.modal-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.modal-meta {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modal-meta div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
}

.modal-meta dt {
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-meta dd {
  margin: 0;
  color: var(--ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 7px 10px;
  background: var(--bluegrey);
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

/* Responsive templates */
@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 190px 1fr auto;
  }

  .site-nav {
    gap: 20px;
  }

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

  .hero-copy,
  .hero-media {
    min-height: auto;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
  }

  .proof-strip,
  .principle-grid,
  .active-grid,
  .interest-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    gap: 28px;
  }

  .timeline::before {
    display: none;
  }

  .history-item {
    padding-top: 26px;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 74px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(46px, 12vw, 54px);
    line-height: 1.01;
  }

  .proof-strip,
  .intro-grid,
  .section-heading,
  .project-card,
  .principle-grid,
  .active-grid,
  .endorsement-grid,
  .interest-grid,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .principle,
  .active-card,
  .interest-card,
  .testimonial {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child,
  .principle:last-child,
  .active-card:last-child,
  .interest-card:last-child,
  .testimonial:last-child {
    border-bottom: 0;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .project-media {
    min-height: 260px;
    order: -1;
  }

  .modal-media {
    min-height: 260px;
  }

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

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .contact-band,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-role {
    font-size: 10px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button-ghost {
    width: 100%;
  }

  .project-media {
    min-height: 220px;
  }

  .principle,
  .active-card,
  .interest-card,
  .testimonial {
    padding-left: 0;
    padding-right: 0;
  }

  .modal {
    padding: 12px;
  }
}
