:root {
  --ink: #192B3C;
  --copper: #A64F35;
  --ivory: #F7F5F0;
  --stone: #E8E4DE;
  --text: #30363B;
  --page-gutter: 5vw
}
* {
  box-sizing: border-box
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(118px + 1rem)
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 20px/1.5 'Source Sans 3', sans-serif
}
h1, h2, h3, nav, button, .brand {
  font-family: Manrope, sans-serif
}
h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  font-weight: 600
}
h1 span, h2 span {
  color: var(--copper)
}
h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -1.5px
}
a {
  color: inherit
}
button, a {
  -webkit-tap-highlight-color: transparent
}
button {
  cursor: pointer
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 5px
}
.wrap {
  max-width: none;
  margin: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter)
}
.header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--ivory);
  padding: 30px var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  font-size: 25px;
  white-space: nowrap
}
.brand img {
  width: 82px;
  height: 58px;
  object-fit: contain
}
.brand span {
  border-left: 1px solid #a7aaa9;
  padding-left: 24px
}
nav {
  display: flex;
  gap: 35px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em
}
nav a {
  text-decoration: none
}
nav a:hover {
  color: var(--copper)
}
.intro {
  padding-top: 90px;
  padding-bottom: 85px
}
.eyebrow {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .13em;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px
}
.eyebrow:before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--copper)
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6%;
  align-items: center
}
h1 {
  font-size: clamp(40px, 5.2vw, 76px);
  letter-spacing: -.055em
}
.intro-grid > p {
  justify-self: end;
  width: 100%;
  border-left: 1px solid #ccc8c1;
  padding-left: 38px;
  margin: 0;
  max-width: 430px;
  font-size: 23px;
  line-height: 1.45
}
.work-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px
}
.work-heading h2 {
  font-size: 23px;
  letter-spacing: -.5px
}
.arrows {
  display: flex;
  gap: 10px
}
.arrows button {
  border: 0;
  background: var(--stone);
  color: var(--ink);
  width: 44px;
  height: 44px;
  font-size: 22px
}
.arrows button:hover {
  background: var(--ink);
  color: white
}
.carousel {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--page-gutter) 16px;
  cursor: grab;
  touch-action: pan-x pan-y
}
.carousel::-webkit-scrollbar {
  display: none
}
.carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none
}
.project-card {
  flex: 0 0 min(400px, 76vw);
  scroll-snap-align: start;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font: 18px 'Source Sans 3', sans-serif
}
.project-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: filter .2s
}
.project-card:hover img {
  filter: brightness(.93)
}
.project-card span {
  display: block;
  margin: 12px 0;
  padding-left: 20px;
  padding-right: 20px
}
.placeholder {
  font-size: 13px;
  color: #777b7c;
  margin-top: 12px
}
.services {
  padding-top: 70px;
  padding-bottom: 90px;
  margin-top: 65px;
  position: relative
}
.services:before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--page-gutter);
  right: var(--page-gutter);
  height: 1px;
  background: #ccc8c1
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
  margin-top: 58px
}
.services-grid article {
  position: relative;
  min-width: 0
}
.services-grid article + article:before {
  content: "";
  position: absolute;
  left: -32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #d3cfc9
}
:is(.services, .payments) svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
  margin-bottom: 20px
}
.services h3 {
  font-size: 23px;
  letter-spacing: -.6px;
  min-height: 55px
}
.services-grid p {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.5
}
.about {
  background: var(--stone);
  padding: 70px 0
}
.about-copy {
  max-width: 820px
}
.about-copy p {
  font-size: 21px;
  line-height: 1.55
}
.text-link {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 4px;
  color: var(--ink)
}
.text-link span {
  margin-left: 16px;
  color: var(--copper)
}
footer {
  font-size: 13px;
  color: #717777;
  padding-top: 25px !important;
  padding-bottom: 100px !important
}
.contact-trigger {
  position: fixed;
  bottom: 24px;
  right: var(--page-gutter);
  border: 0;
  background: var(--copper);
  color: #fff;
  padding: 18px 24px;
  font-size: 15px;
  z-index: 5
}
.contact-trigger span {
  margin-left: 25px;
  font-size: 23px
}
dialog {
  border: 0;
  padding: 0;
  color: var(--text);
  background: var(--ivory)
}
dialog::backdrop {
  background: rgb(15 25 33 / .48)
}
.contact-dialog {
  position: fixed;
  inset: auto var(--page-gutter) 24px auto;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 36px 36px 32px;
  border-top: 2px solid var(--copper);
  box-shadow: 0 15px 70px #0002;
  animation: lift .28s ease-out;
  overflow: auto
}
.close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 34px/1 Manrope, sans-serif;
  width: 48px;
  height: 48px
}
.contact-dialog > .close {
  position: absolute;
  right: 12px;
  top: 12px
}
.contact-dialog h2 {
  font-size: 44px
}
.contact-dialog .eyebrow {
  margin-bottom: 20px
}
.contact-dialog > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.4;
  margin: 18px 0 25px
}
.contact-row {
  margin: 20px 0;
  display: flex;
  gap: 20px;
  align-items: center
}
.contact-icon {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
}
.contact-row small {
  display: block;
  letter-spacing: .12em;
  font-size: 11px
}
.contact-row a {
  font-size: 20px;
  font-weight: 600;
  text-decoration-color: var(--copper);
  text-underline-offset: 5px;
  overflow-wrap: anywhere
}
.hours {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ccc5bb
}
.hours h3 {
  font-size: 18px;
  letter-spacing: -.4px
}
dl {
  font-size: 17px;
  margin: 12px 0 0
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 6px 0
}
dl > div + div {
  border-top: 1px solid #d7d1c9
}
dd {
  margin: 0;
  white-space: nowrap
}
.project-dialog {
  position: fixed;
  inset: 20px;
  width: calc(100% - 40px);
  max-width: 1600px;
  height: calc(100dvh - 40px);
  max-height: none;
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 30px;
  position: sticky;
  top: 0;
  background: var(--ivory);
  z-index: 2;
  font-size: 14px;
  border-bottom: 1px solid var(--stone)
}
.project-top .close {
  background: var(--copper);
  color: white
}
.project-intro {
  padding: 42px 5% 32px
}
.project-intro h2 {
  font-size: clamp(32px, 5vw, 66px)
}
.project-intro > p:not(.eyebrow) {
  max-width: 850px
}
.project-role {
  font-size: 14px
}
.project-intro small {
  font-size: 12px;
  color: #737779
}
#project-images {
  padding: 0 20px 20px;
  display: grid;
  gap: 20px
}
#project-images img {
  width: 100%;
  height: auto;
  display: block
}
.skip {
  position: absolute;
  top: -100px
}
.skip:focus {
  top: 0;
  background: white;
  z-index: 10
}
body.modal-open {
  overflow: hidden
}
@keyframes lift {
  from {
    transform: translateY(35px);
    opacity: 0
  }
  to {
    transform: translateY(0);
    opacity: 1
  }
}
@media(max-width:700px) {
  /* Match carousel caption insets to the Selected work heading. */
  .project-card span {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter)
  }
  body {
    font-size: 18px
  }
  html {
    scroll-padding-top: calc(88px + 1rem + 1.5em)
  }
  .header {
    padding-block: 16px;
    row-gap: 12px;
    flex-wrap: wrap
  }
  .brand {
    font-size: 21px;
    gap: 16px
  }
  .brand img {
    width: 62px;
    height: 44px
  }
  .brand span {
    padding-left: 16px
  }
  nav {
    gap: 26px;
    font-size: 11px;
    width: 100%;
    justify-content: flex-end
  }
  .intro {
    padding-top: 55px;
    padding-bottom: 50px
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }
  .intro-grid > p {
    justify-self: start;
    border: 0;
    padding: 0;
    font-size: 20px;
    max-width: 420px
  }
  h1 {
    font-size: clamp(38px, 8.4vw, 58px)
  }
  .eyebrow {
    font-size: 11px
  }
  .services {
    padding-top: 45px;
    margin-top: 40px;
    padding-bottom: 50px
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 35px
  }
  .services-grid article + article {
    border-top: 1px solid #d3cfc9;
    padding-top: 30px
  }
  .services-grid article + article:before {
    display: none
  }
  .services h3 {
    min-height: 0
  }
  .services h3 br {
    display: none
  }
  :is(.services, .payments) svg {
    margin-bottom: 12px
  }
  .about {
    padding: 45px 0
  }
  .about-copy p {
    font-size: 19px
  }
  .contact-trigger {
    bottom: 16px;
    right: var(--page-gutter);
    padding: 12px 20px
  }
  .contact-dialog {
    right: var(--page-gutter);
    bottom: 16px;
    padding: 30px 24px
  }
  .contact-dialog h2 {
    font-size: 38px
  }
  .contact-row a {
    font-size: 18px
  }
  .project-dialog {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100dvh - 16px)
  }
  .project-intro {
    padding: 28px 20px
  }
  #project-images {
    padding: 0 12px 12px;
    gap: 12px
  }
  .project-top {
    padding-left: 15px;
    font-size: 12px
  }
  .hours h3 {
    font-size: 17px
  }
  dl {
    font-size: 15px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important
  }
}
/* Keep the About photo close to the text */
.about-layout {
  grid-template-columns: minmax(0, 820px) 300px;
  justify-content: start;
  gap: 48px;
}
.about-photo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 32px 0;
}
.about-layout .about-copy {
  grid-column: 1;
  grid-row: 1
}
.about-layout .about-copy p:first-child {
  margin-top: 0
}
@media (max-width: 1100px) {
  .about-layout {
    grid-template-columns: minmax(0, 1 fr) 240px;
    gap: 32px;
  }

@media (max-width: 700px) {
  .about-layout {
    grid-template-columns: 1 fr;
    gap: 28px;
  }
}
  .about-photo {
    grid-column: 1;
    grid-row: 1;
    width: 240px;
    max-width: 100%
  }
  .about-layout .about-copy {
    grid-column: 1;
    grid-row: 2
  }
}
#project-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.tool-tag {
  background: var(--stone);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
}
#project-description {
  white-space: pre-line;
}

/* Only multi-sample projects receive this second, sticky navigation row. */
#project-sample-nav[hidden] {
  display: none;
}
#project-sample-nav {
  position: sticky;
  top: 49px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: auto;
  padding: 14px 5%;
  margin-bottom: 20px;
  background: var(--ivory);
  border-block: 1px solid #d3cfc9;
  text-transform: none;
  letter-spacing: 0;
}
.sample-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sample-count {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.sample-hint {
  font: 15px/1.4 'Source Sans 3', sans-serif;
}
.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sample-links button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #b8b2aa;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.sample-links button:hover {
  border-color: var(--copper);
  color: var(--copper);
}
.sample-links button[aria-current] {
  background: var(--copper);
  border-color: var(--copper);
  color: white;
}
.project-sample {
  min-width: 0;
}
.project-sample h3 {
  font-size: 18px;
  letter-spacing: -.3px;
  margin: 8px 0 16px;
}
@media (max-width: 700px) {
  #project-sample-nav {
    padding: 12px 20px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .sample-summary {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .sample-hint {
    font-size: 13px;
  }
  .sample-links {
    width: 100%;
  }
  .sample-links button {
    flex: 1 1 120px;
  }
  .project-sample h3 {
    font-size: 17px;
  }
}

/* Soft stone tint behind the hero's molecular artwork. */
.intro {
  background: radial-gradient(ellipse 32% 46% at 63% 48%, #efece6, transparent),
    var(--ivory);
}
.intro-hexagons {
  display: none;
}

@media (min-width: 1400px) {
  .intro-grid > p {
    position: relative;
  }
  .intro-hexagons {
    display: block;
    position: absolute;
    top: -9rem;
    right: calc(100% + clamp(38px, 4.7vw, 90px));
    width: 172px;
    height: 350px;
    color: var(--copper);
    pointer-events: none;
  }
  .hex-outline-primary,
  .hex-outline-secondary {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .hex-outline-primary {
    opacity: .34;
  }
  .hex-outline-secondary {
    opacity: .15;
  }
  .hex-nodes {
    fill: currentColor;
    opacity: .48;
  }
}

@media (min-width: 1400px) and (prefers-reduced-motion: no-preference) {
  .hex-flow {
    animation: hex-drift 13s linear infinite;
  }
}

@keyframes hex-drift {
  to { transform: translateY(274px); }
}


/* Static molecular artwork in the open side of About. */
.about-hexagons {
  display: none;
}

@media (min-width: 1100px) {
  .about {
    position: relative;
  }
  .about-hexagons {
    display: block;
    position: absolute;
    inset-inline-start: max(52.5%, calc(var(--page-gutter) + 850px));
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: min(40.5%, calc(100% - var(--page-gutter) - max(52.5%, var(--page-gutter) + 850px)));
    height: auto;
    color: var(--copper);
    pointer-events: none;
  }
  .about-hexagons-main,
  .about-hexagons-offset {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .about-hexagons-main {
    opacity: .26;
  }
  .about-hexagons-offset {
    opacity: .10;
  }
  .about-hexagons-nodes {
    fill: currentColor;
    opacity: .42;
  }
}

/* Keep the artwork readable beside the portrait on smaller desktops. */
@media (1100px <= width < 1750px) {
  .about-hexagons {
    inset-inline-start: auto;
    inset-inline-end: var(--page-gutter);
    inset-block-start: 198px;
    transform: none;
    width: 610px;
  }
}


/* Invoicing and payment options. */
.payments {
  padding-block: 70px;
}
.payments-intro {
  max-width: 66ch;
  margin-bottom: 0;
}
.payments-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
}
.payments-grid h3 {
  font-size: 23px;
  letter-spacing: -.6px;
}
.payments-grid p {
  max-width: 48ch;
}
.payments-grid .text-link {
  margin-top: 16px;
}

@media (max-width: 700px) {
  .header nav {
    flex-wrap: wrap;
    gap: 8px clamp(10px, 4vw, 26px);
  }
  .payments {
    padding-block: 50px;
  }
  .payments-grid {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }
}
