:root {
  --ink: #3a3a37;
  --muted: #7b7b76;
  --paper: #f7f6f0;
  --paper-strong: #fbfaf5;
  --line: #dfded6;
  --moss: #4b514c;
  --coral: #8f3f36;
  --gold: #b7a44a;
  --sea: #6f746f;
  --shadow: 0 30px 80px rgba(50, 50, 45, 0.1);
  --window-image-filter: grayscale(1) brightness(0.96) contrast(1.04);
  color-scheme: light;
  font-family:
    "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.skip-link {
  background: var(--ink);
  color: var(--paper-strong);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 20;
}

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

.site-header {
  align-items: center;
  background: transparent;
  border-bottom: 0;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  min-height: 84px;
  padding: 0 4.5vw;
  color: var(--paper-strong);
  position: fixed;
  top: 0;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  width: 100%;
  z-index: 10;
}

body.scrolled .site-header {
  background: rgba(247, 246, 240, 0.94);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
}

.brand {
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  gap: 0.7rem;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: flex-start;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0;
  color: currentColor;
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  height: 3.75rem;
  justify-content: center;
  line-height: 0.82;
  padding: 0.4rem 0.45rem 0.25rem 0.3rem;
  transform: none;
  width: 3rem;
}

.brand-mark span {
  display: block;
}

.brand-mark span:nth-child(2) {
  margin-left: 0.48rem;
  margin-top: -0.08rem;
}

.brand-mark span:nth-child(3) {
  margin-left: 0.96rem;
  margin-top: -0.08rem;
}

.brand-name {
  border-left: 1px solid currentColor;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding-left: 0.8rem;
  text-transform: uppercase;
}

.nav-links {
  gap: 2.1rem;
  font-size: 0.76rem;
  font-weight: 700;
  flex-direction: row;
  letter-spacing: 0;
  left: 50%;
  position: absolute;
  text-align: left;
  top: auto;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.nav-links a {
  color: currentColor;
  opacity: 0.82;
  padding-bottom: 0.2rem;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus {
  border-bottom: 1px solid currentColor;
  color: currentColor;
  opacity: 1;
  transform: translateY(-2px);
}

.hero {
  background: var(--ink);
  color: var(--paper-strong);
  display: block;
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.hero-media {
  background-image: url("intro-photo-5.jpeg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: grayscale(1) contrast(0.95);
  inset: 0;
  min-height: 100svh;
  opacity: 1;
  position: absolute;
  transform: none;
  width: 100%;
}

.hero::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.scroll-cue {
  bottom: 2.5rem;
  color: var(--paper-strong);
  font-size: 0.74rem;
  font-weight: 700;
  left: 4.5vw;
  letter-spacing: 0;
  padding-bottom: 0.35rem;
  position: absolute;
  text-decoration: none;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-cue::after {
  background: currentColor;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.scroll-cue:hover::after,
.scroll-cue:focus::after {
  transform: scaleX(0.72);
}

.eyebrow,
.section-kicker,
.project-meta {
  color: var(--sea);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--muted);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.6rem;
  font-weight: 400;
  letter-spacing: 0;
  max-width: 13ch;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 400;
  max-width: 14ch;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 400;
}

.intro-grid p:not(.section-kicker) {
  font-size: 1.2rem;
  max-width: 610px;
}

.hero-actions,
.contact-panel {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  border: 1px solid var(--ink);
  border-radius: 0;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
}

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

.button.primary:hover,
.button.primary:focus {
  background: #30302d;
}

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

.button.secondary:hover,
.button.secondary:focus {
  background: var(--paper-strong);
  border-color: var(--ink);
}

.section-inner {
  margin: 0 auto;
  max-width: 1240px;
  padding: 8rem 4.5vw;
}

.intro-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.intro-section .section-inner {
  padding-top: 8rem;
}

.intro-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
}

.intro-grid h1,
.intro-grid h2,
.about-grid h2,
.contact-grid h2 {
  max-width: 820px;
}

.intro-grid p:not(.section-kicker),
.about-copy,
.contact-panel p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}

.contact-panel .contact-lede {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  line-height: 1.45;
  margin: 0;
  max-width: 38ch;
}

.service-area-section {
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
}

.service-area-grid {
  align-items: start;
  display: grid;
  gap: 5rem;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
}

.area-mark {
  align-items: center;
  aspect-ratio: 1;
  background: #3f413d;
  color: var(--paper-strong);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  justify-content: center;
  max-width: 310px;
  opacity: 0.95;
}

.location-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.8rem;
}

.location-list div {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 1.4rem 1.4rem 0;
}

.location-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.work-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.work-section,
.about-section,
.notes-section,
.contact-section {
  scroll-margin-top: 5.75rem;
}

.editorial-header {
  align-items: start;
  display: grid;
  gap: 6rem;
  grid-template-columns: minmax(0, 0.58fr) minmax(260px, 0.42fr);
  margin-bottom: 6rem;
}

.editorial-copy {
  max-width: 26rem;
}

.editorial-lede {
  color: var(--muted);
  font-size: 0.96rem;
  margin-top: 1.25rem;
  max-width: 26rem;
}

.editorial-image,
.about-image,
.contact-image {
  margin: 0;
}

.editorial-image img,
.about-image img,
.contact-image img {
  aspect-ratio: 1 / 1;
  display: block;
  filter: var(--window-image-filter);
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.editorial-image,
.about-image,
.contact-image {
  justify-self: end;
  max-width: 420px;
  overflow: hidden;
  width: 100%;
}

.editorial-image figcaption,
.about-image figcaption,
.contact-image figcaption {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.project-list {
  border-top: 1px solid var(--line);
  display: grid;
  column-gap: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 1.5rem;
}

.featured-projects {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
}

.featured-projects--spotlight {
  grid-template-columns: 1fr;
}

.featured-project--spotlight {
  min-height: auto;
}

.featured-project-gallery {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.featured-project-gallery img {
  border: 1px solid var(--line);
  height: auto;
  max-height: 240px;
  min-height: 120px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.featured-projects-header {
  margin-bottom: 1rem;
}

.featured-projects-header h3 {
  margin-top: 0.25rem;
}

.featured-project {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 1.4rem 1.4rem 1.6rem;
}

.repo-feed-heading {
  align-items: end;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}

.repo-feed-heading p {
  margin: 0;
}

.repo-feed-heading a {
  color: inherit;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.project-tags li {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.5rem;
  text-transform: uppercase;
}

.project-item,
.featured-project,
.note-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.project-item,
.featured-project {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1.4rem 1.4rem 1.6rem;
}

.project-preview {
  background:
    linear-gradient(180deg, rgba(251, 250, 245, 0.82), rgba(232, 229, 219, 0.92)),
    linear-gradient(135deg, rgba(111, 116, 111, 0.08), rgba(183, 164, 74, 0.08));
  border: 1px solid var(--line);
  display: block;
  min-height: 220px;
  margin: -0.45rem -0.45rem 1.15rem;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.project-preview::after {
  background: linear-gradient(180deg, rgba(247, 246, 240, 0), rgba(58, 58, 55, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.project-preview img {
  aspect-ratio: 1.45 / 1;
  filter: grayscale(0.15) contrast(1.02) saturate(0.9);
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease, filter 220ms ease;
  width: 100%;
}

.project-preview-gallery {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
  min-height: 220px;
  padding: 0.3rem;
  position: relative;
  z-index: 1;
}

.project-preview-gallery img {
  aspect-ratio: auto;
  filter: grayscale(0.05) contrast(1.02) saturate(0.96);
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.project-preview-placeholder {
  align-content: end;
  color: var(--ink);
  display: grid;
  gap: 0.6rem;
  inset: 0;
  padding: 1rem;
  position: absolute;
  z-index: 1;
}

.project-preview-kicker {
  color: var(--sea);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-preview-placeholder strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.05;
  max-width: 14ch;
}

.project-preview-placeholder p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  max-width: 32ch;
}

.project-preview:hover img,
.project-preview:focus img,
.project-preview:focus-visible img {
  filter: grayscale(0) contrast(1.04) saturate(1);
  transform: scale(1.03);
}

.project-preview:hover .project-preview-gallery img,
.project-preview:focus .project-preview-gallery img,
.project-preview:focus-visible .project-preview-gallery img {
  transform: none;
}

.project-preview-label {
  background: rgba(247, 246, 240, 0.92);
  border: 1px solid rgba(58, 58, 55, 0.12);
  bottom: 0.85rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  left: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  position: absolute;
  text-transform: uppercase;
  z-index: 1;
}

.repo-card-tags {
  margin-top: 1rem;
}

.note-item {
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0 1.8rem;
}

.project-item h3 a,
.featured-project h3 a {
  text-decoration: none;
}

.project-item h3 a:hover,
.project-item h3 a:focus,
.featured-project h3 a:hover,
.featured-project h3 a:focus {
  text-decoration: underline;
}

.project-item p:last-of-type,
.featured-project p:last-of-type {
  margin-bottom: 0;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.4rem;
}

.contact-details {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
}

.contact-details li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto 1fr;
  padding-top: 0.9rem;
}

.contact-icon {
  color: var(--sea);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  min-width: 1.2rem;
  text-align: center;
  transform: translateY(-1px);
}

.contact-details a {
  color: var(--ink);
  font-size: 1.02rem;
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus {
  text-decoration: underline;
}

.project-links a {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.project-links a:hover,
.project-links a:focus {
  text-decoration: underline;
}

.capabilities-section {
  background: #eeeeea;
  border-top: 1px solid var(--line);
}

.capabilities-heading {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  margin-bottom: 3rem;
}

.capability-list {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-list div {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 1.4rem 2rem 0;
}

.capability-list span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.capability-list p {
  color: var(--muted);
}

.project-body p:last-child,
.note-item p,
.contact-panel p {
  color: var(--muted);
}

.about-section {
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.about-section .section-kicker {
  color: var(--sea);
}

.about-copy p {
  color: var(--muted);
  margin-top: 0;
}

.about-copy .about-summary {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  line-height: 1.45;
  margin: 0;
  max-width: 34ch;
}

.about-grid {
  align-items: start;
  gap: 6rem;
  grid-template-columns: minmax(0, 0.46fr) minmax(340px, 0.56fr);
}

.about-image img {
  object-position: 47% 38%;
  transform: scale(1.2);
  transform-origin: center;
}

.editorial-image img {
  transform: scale(1.18);
  transform-origin: center;
}

.notes-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.notes-list {
  display: grid;
  column-gap: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  row-gap: 1px;
}

.notes-header {
  margin-bottom: 5rem;
}

.thinking-marker {
  margin: 0;
  max-width: 320px;
  justify-self: end;
  width: 100%;
}

.thinking-marker img {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  display: block;
  filter: var(--window-image-filter);
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.thinking-marker figcaption {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.note-item {
  border-bottom: 1px solid var(--line);
  min-height: 230px;
  padding-top: 1.3rem;
  padding-right: 1.5rem;
}

.note-item time,
.note-source {
  color: var(--sea);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.note-brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.note-brand .note-source {
  margin: 0;
}

.note-logo {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
  height: 1.45rem;
  object-fit: contain;
  padding: 0.18rem;
  width: 1.45rem;
}

.note-item h3 a {
  text-decoration: none;
}

.note-item h3 a:hover,
.note-item h3 a:focus {
  text-decoration: underline;
}

.contact-section {
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
}

.contact-grid {
  align-items: start;
  gap: 6rem;
  grid-template-columns: minmax(0, 0.48fr) minmax(320px, 0.52fr);
}

.contact-panel {
  flex-direction: column;
  max-width: 30rem;
}

.site-footer {
  align-items: center;
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 5vw;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 0.8rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    position: static;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    font-size: 1.05rem;
    height: 3rem;
    padding: 0.32rem 0.34rem 0.18rem 0.24rem;
    width: 2.35rem;
  }

  .brand-name {
    font-size: 0.68rem;
    padding-left: 0.6rem;
  }

  .nav-links {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.6rem 1rem;
    font-size: 0.68rem;
    justify-content: flex-start;
    left: auto;
    position: static;
    text-align: left;
    top: auto;
    transform: none;
  }

  .hero {
    min-height: 72svh;
  }

  .service-area-grid,
  .capabilities-heading,
  .editorial-header,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    background-position: center center;
    min-height: 72svh;
    width: 100%;
  }

  .scroll-cue {
    bottom: 1.5rem;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .about-copy .about-summary {
    font-size: 1.18rem;
  }

  .intro-grid,
  .contact-grid,
  .location-list,
  .capability-list,
  .featured-projects,
  .notes-list,
  .project-list {
    grid-template-columns: 1fr;
  }

  .featured-project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .featured-project-gallery img {
    max-height: none;
    min-height: 90px;
  }

  .project-preview {
    min-height: 180px;
  }

  .project-preview img {
    aspect-ratio: 4 / 3;
  }

  .project-preview-gallery {
    min-height: 180px;
  }

  .editorial-image,
  .about-image,
  .contact-image,
  .thinking-marker {
    justify-self: start;
    max-width: 100%;
  }

  .area-mark {
    max-width: 220px;
  }

  .section-inner {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }
}
