:root {
  color-scheme: light;
  --green: #275505;
  --deep-green: #173303;
  --cream: #f8e7d9;
  --warm-white: #fff9f3;
  --orange: #ff4b1c;
  --ink: #15200f;
  --muted: #5f684f;
  --line: #275505;
  --blue: #1f6470;
  --gold: #be8f35;
  --paper: #f8e7d9;
  font-family:
    Inter, 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);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  padding: 0;
  background: var(--green);
  color: var(--cream);
}

.brand {
  display: flex;
  width: min(306px, 40vw);
  min-height: 118px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px;
  background: var(--green);
}


.brand img {
  width: min(278px, calc(100% - 28px));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 34px);
  padding: 28px clamp(18px, 5vw, 72px) 28px 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 3px solid currentColor;
  border-radius: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.menu-toggle span {
  pointer-events: none;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 var(--orange);
}

.site-nav a,
.button {
  position: relative;
  z-index: 0;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 4px solid currentColor;
  padding: 0 30px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.site-nav a {
  min-width: 112px;
  color: var(--cream);
  font-size: 0.82rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 var(--orange);
}

.hero {
  position: relative;
  display: grid;
  min-height: 74svh;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(168px, 13vw, 210px) clamp(18px, 7vw, 96px) clamp(72px, 8vw, 118px);
  background: var(--green);
  color: var(--cream);
}

body.hero-logo .hero::before {
  position: absolute;
  right: clamp(-150px, -8vw, -40px);
  bottom: clamp(-210px, -18vw, -90px);
  width: clamp(460px, 48vw, 760px);
  aspect-ratio: 1;
  background: url("assets/cd-favicon.png") center / contain no-repeat;
  content: "";
  opacity: 0.18;
}

body.hero-logo .hero::after {
  position: absolute;
  right: clamp(42px, 7vw, 104px);
  top: clamp(154px, 19vw, 270px);
  width: clamp(34px, 4.5vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

body.hero-lines .hero::before {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  top: clamp(154px, 17vw, 238px);
  width: clamp(190px, 24vw, 340px);
  height: clamp(176px, 22vw, 300px);
  border: 4px solid rgba(248, 231, 217, 0.66);
  box-shadow:
    -58px 96px 0 -4px var(--green),
    -58px 96px 0 0 rgba(248, 231, 217, 0.58),
    62px 112px 0 -4px var(--green),
    62px 112px 0 0 rgba(248, 231, 217, 0.58);
  content: "";
}

body.hero-lines .hero::after {
  position: absolute;
  right: clamp(70px, 10vw, 150px);
  top: clamp(250px, 27vw, 375px);
  width: clamp(22px, 3vw, 38px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    -92px -76px 0 -8px var(--orange),
    84px 118px 0 -9px var(--orange);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1180px;
  margin: 0;
  justify-items: start;
  row-gap: clamp(22px, 3vw, 34px);
  text-align: left;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 1080px;
  font-size: clamp(3.6rem, 6.15vw, 7.85rem);
  font-weight: 950;
}

h1 span {
  display: block;
}

.contact h2::after {
  color: var(--orange);
  content: ".";
}

h1 i,
h2 i {
  color: var(--orange);
  font-style: normal;
}

h2 {
  max-width: 960px;
  font-size: clamp(2.4rem, 5.4vw, 5.8rem);
  font-weight: 950;
}

h3 {
  font-size: clamp(1.42rem, 2.4vw, 2.1rem);
  font-weight: 950;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(248, 231, 217, 0.88);
  font-size: clamp(1.18rem, 2vw, 1.68rem);
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin-top: 6px;
}

.hero-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(14px, 2.8vw, 34px);
  border-top: 4px solid var(--cream);
  border-left: 4px solid var(--cream);
}

.hero-strip span {
  min-height: 64px;
  padding: 18px 20px;
  border-right: 4px solid var(--cream);
  border-bottom: 4px solid var(--cream);
  color: var(--cream);
  font-weight: 950;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--cream);
}

.button.primary::after {
  content: none;
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow:
    8px 8px 0 -4px var(--green),
    8px 8px 0 0 var(--cream);
}

.button.secondary {
  border-color: var(--cream);
  color: var(--cream);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  background: var(--cream);
}

.metrics div {
  display: grid;
  min-height: 154px;
  align-content: center;
  gap: 8px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-right: 4px solid var(--green);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  color: var(--green);
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.metrics span {
  color: var(--muted);
  font-weight: 800;
}

.section,
.systems,
.about,
.contact {
  padding: clamp(72px, 10vw, 138px) clamp(18px, 5vw, 72px);
}

.work-section {
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 36px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.work-card {
  display: grid;
  grid-template-rows: 360px 1fr;
  height: 770px;
  min-height: 0;
  border: 4px solid var(--green);
  background: var(--warm-white);
  color: inherit;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  position: relative;
  z-index: 1;
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 var(--orange);
}

.feature-card {
  grid-column: span 1;
  grid-template-columns: 1fr;
  grid-template-rows: 360px 1fr;
  min-height: 0;
}

.work-art {
  position: relative;
  height: 360px;
  overflow: hidden;
  min-height: 320px;
  border-bottom: 4px solid var(--green);
  background: var(--cream);
}

.feature-card .work-art {
  height: 360px;
  border-right: 0;
  border-bottom: 4px solid var(--green);
}

.work-art img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  object-position: center;
}

.feature-card .work-art img {
  min-height: 0;
}

.image-contain img {
  object-fit: contain;
}

.work-copy {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--cream);
  padding: clamp(24px, 4vw, 46px);
  text-align: left;
}

.project-type {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.work-copy h3 {
  max-width: 12ch;
  margin-bottom: 18px;
}

.work-copy p:not(.project-type),
.systems-grid p,
.about-copy p,
.contact p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.58;
}

.work-copy p:not(.project-type) {
  max-width: 48ch;
  margin: 0;
}

.work-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 760;
}

.work-copy li {
  position: relative;
  padding-left: 0;
}

.work-copy li::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  align-self: flex-start;
  border: 4px solid var(--green);
  padding: 10px 14px;
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.work-card:hover .project-link,
.work-card:focus-visible .project-link,
.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 var(--orange);
}

.project-hero {
  display: grid;
  min-height: 72svh;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1.08fr);
  gap: 0;
  padding-top: 122px;
  border-bottom: 4px solid var(--green);
  background: var(--cream);
}

.project-hero-copy {
  align-self: center;
  padding: clamp(48px, 7vw, 90px) clamp(22px, 6vw, 86px);
}

.project-hero-copy h1 {
  max-width: 880px;
  color: var(--green);
  font-size: clamp(3rem, 6.5vw, 7.4rem);
}

.project-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.project-hero-media {
  display: grid;
  min-height: 560px;
  place-items: center;
  border-left: 4px solid var(--green);
  background: var(--warm-white);
  padding: clamp(18px, 4vw, 44px);
}

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

.project-image img {
  width: min(100%, 1040px);
  max-height: 780px;
  object-fit: contain;
}

.project-image.tall img {
  width: min(100%, 760px);
  max-height: none;
}

.project-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  border-bottom: 4px solid var(--green);
}

.project-meta {
  padding: clamp(34px, 5vw, 64px);
  border-right: 4px solid var(--green);
  background: var(--green);
  color: var(--cream);
}

.project-meta dl {
  display: grid;
  gap: 22px;
  margin: 0;
}

.project-meta dt {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 6px 0 0;
  font-size: 1.08rem;
  font-weight: 850;
}

.project-story {
  padding: clamp(42px, 7vw, 82px);
}

.project-story p {
  max-width: 880px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.24rem);
  line-height: 1.65;
}

.project-highlights {
  max-width: 880px;
  margin-top: clamp(28px, 4vw, 44px);
  border: 4px solid var(--green);
  background: var(--cream);
  padding: clamp(22px, 3vw, 34px);
}

.project-highlights span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-highlights ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  font-weight: 850;
  line-height: 1.38;
}

.project-highlights li::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.project-gallery {
  display: grid;
  max-width: 1440px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 4px solid var(--green);
}

.project-image {
  display: grid;
  gap: 18px;
  min-height: 420px;
  place-items: center;
  border-right: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  background: var(--warm-white);
  padding: clamp(16px, 3vw, 36px);
}

.project-image figcaption {
  width: 100%;
  border-top: 4px solid var(--green);
  padding-top: 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-image.wide,
.project-image.tall {
  grid-column: span 2;
}

.project-image.tall {
  min-height: 760px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 72px);
  background: var(--cream);
}

.project-nav .button.secondary {
  border-color: var(--green);
  color: var(--green);
}

.systems {
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  background: var(--green);
  color: var(--cream);
}

.systems .section-heading h2 {
  color: var(--cream);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--cream);
  border-left: 4px solid var(--cream);
}

.systems-grid div {
  min-height: 330px;
  padding: 26px;
  border-right: 4px solid var(--cream);
  border-bottom: 4px solid var(--cream);
}

.systems-grid span {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--orange);
  font-weight: 950;
}

.systems-grid p {
  color: rgba(248, 231, 217, 0.78);
}

.about {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
  padding: 0;
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  background: var(--cream);
}

.about-mark {
  position: relative;
  display: grid;
  min-height: 720px;
  border-right: 4px solid var(--green);
  background: var(--green);
  overflow: hidden;
}

.about-mark::after {
  content: none;
}

.about-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.about-copy {
  align-self: center;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 88px);
}

.about-copy h2 {
  max-width: 880px;
}

.about-copy p {
  max-width: 850px;
}

.contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  background: var(--deep-green);
  color: var(--cream);
}

.contact > div:first-child {
  max-width: 850px;
}

.contact p {
  max-width: 720px;
  color: rgba(248, 231, 217, 0.82);
}

.about-copy .eyebrow,
.contact .eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: normal;
  text-transform: uppercase;
}

.contact-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-actions {
  justify-content: flex-end;
}

.contact-actions .button {
  white-space: nowrap;
}

.footer-links {
  justify-content: flex-end;
}

.email-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 72px);
  background: rgba(21, 32, 15, 0.72);
}

.email-panel[hidden] {
  display: none;
}

.email-card {
  position: relative;
  display: grid;
  width: min(680px, 100%);
  gap: 22px;
  border: 4px solid var(--green);
  padding: clamp(28px, 5vw, 56px);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--orange);
}

.email-card h2 {
  color: var(--green);
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.email-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.email-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 3px solid var(--green);
  padding: 8px 12px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.email-address {
  border: 4px solid var(--green);
  padding: 18px;
  color: var(--green);
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.email-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.email-card .button.secondary {
  border-color: var(--green);
  color: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: var(--deep-green);
  border-top: 4px solid var(--cream);
  color: var(--cream);
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .site-header {
    position: absolute;
  }

  .brand {
    width: 180px;
    min-height: 82px;
    padding: 12px;
  }

  .brand img {
    width: min(156px, calc(100% - 24px));
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 16px 18px 16px 0;
  }

  .site-nav a {
    min-width: 90px;
    min-height: 38px;
    padding: 0 14px;
    border-width: 3px;
  }

  .hero,
  .feature-card,
  .about,
  .project-hero,
  .project-main {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 156px;
  }

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

  .hero-actions {
    justify-content: flex-start;
  }

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

  .feature-card {
    grid-column: span 1;
  }

  .feature-card .work-art,
  .about-mark,
  .project-hero-media,
  .project-meta {
    border-right: 0;
    border-bottom: 4px solid var(--green);
  }

  .project-hero-media {
    border-left: 0;
  }

  .work-grid,
  .systems-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .systems-grid div {
    border-right: 0;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    gap: 0;
  }

  .brand {
    width: min(220px, 58vw);
    min-height: 82px;
    padding: 12px;
  }

  .brand img {
    width: min(196px, calc(100% - 24px));
  }

  .menu-toggle {
    display: inline-flex;
    margin: 20px 14px 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 14px;
    left: 14px;
    display: grid;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border: 4px solid var(--cream);
    background: var(--green);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    min-height: 54px;
    min-width: auto;
    border: 3px solid var(--cream);
    padding: 0 18px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 86svh;
    align-items: end;
    padding: 146px 18px 46px;
  }

  .hero-copy {
    justify-items: start;
    text-align: left;
  }

  h1 {
    font-size: clamp(2.85rem, 12.8vw, 3.95rem);
  }

  h2 {
    font-size: clamp(2.35rem, 11vw, 3.9rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-strip span {
    min-height: 58px;
    padding: 16px;
  }

  .hero-strip {
    display: none;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .project-image,
  .project-image.wide,
  .project-image.tall {
    grid-column: span 1;
    min-height: 310px;
    border-left: 4px solid var(--green);
  }

  .project-hero {
    padding-top: 86px;
  }

  .project-hero-media {
    min-height: 360px;
  }

  .project-nav {
    flex-direction: column;
  }

  .work-card {
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .work-art,
  .feature-card .work-art {
    height: 340px;
    min-height: 0;
  }

  .about-mark {
    min-height: 520px;
  }

  .systems-grid div {
    min-height: 250px;
  }

  .systems-grid span {
    margin-bottom: 34px;
  }

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

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