:root {
  --primary: #171713;
  --primary-dark: #090908;
  --accent: #822f28;
  --cream: #e8e2d4;
  --paper: #f5f1e8;
  --body-text: #38372f;
  --heading: #12120f;
  --border: #b9b09f;
  --moss: #51583a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body-text);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-image:
    radial-gradient(rgba(18, 18, 15, 0.05) 0.7px, transparent 0.7px);
  background-size: 0.35rem 0.35rem;
}

body.cs-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.cs-skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-150%);
}

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

.cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

.cs-section {
  padding: 4.5rem 0;
}

.cs-topper {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cs-title,
.cs-h2,
.cs-service-card h3 {
  margin: 0;
  color: var(--heading);
  font-family: "Source Serif 4", Georgia, serif;
}

.cs-logo span {
  font-family: "Pirata One", "Times New Roman", serif;
}

.cs-title {
  max-width: 14ch;
  font-family: "Pirata One", "Times New Roman", serif;
  font-size: clamp(2.75rem, 10vw, 4.75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
}

.cs-h2 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.cs-text {
  max-width: 39rem;
  margin: 1rem 0 0;
}

.cs-button-solid,
.cs-button-secondary {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--primary);
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s,
    transform 0.2s;
}

.cs-button-solid {
  color: #fff;
  background: var(--primary);
  box-shadow: 0.3rem 0.3rem 0 var(--accent);
}

.cs-button-secondary {
  color: var(--primary);
  background: transparent;
}

.cs-button-solid:hover,
.cs-button-solid:focus-visible,
.cs-button-secondary:hover,
.cs-button-secondary:focus-visible {
  color: #fff;
  background: var(--primary-dark);
  box-shadow: 0.12rem 0.12rem 0 var(--accent);
  transform: translate(0.18rem, 0.18rem);
}

/* Navigation */
#cs-navigation {
  width: 100%;
  min-height: 4.75rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(57, 71, 45, 0.14);
  border-bottom: 2px solid var(--primary);
  background: rgba(245, 241, 232, 0.96);
  box-shadow: 0 0.4rem 1.5rem rgba(9, 9, 8, 0.12);
  backdrop-filter: blur(0.75rem);
}

#cs-navigation .cs-container {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.cs-logo img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.cs-logo span {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.cs-toggle {
  width: 3rem;
  height: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cs-toggle span {
  width: 1.6rem;
  height: 2px;
  display: block;
  background: var(--primary-dark);
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.cs-open .cs-toggle span:first-child {
  transform: translateY(0.45rem) rotate(45deg);
}

.cs-open .cs-toggle span:nth-child(2) {
  opacity: 0;
}

.cs-open .cs-toggle span:last-child {
  transform: translateY(-0.45rem) rotate(-45deg);
}

.cs-nav {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  transition: max-height 0.3s;
}

.cs-open .cs-nav {
  max-height: 32rem;
  border-bottom: 1px solid var(--border);
}

.cs-ul {
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.cs-li-link {
  display: block;
  padding: 0.85rem 0;
  color: var(--heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}

.cs-li-link:hover,
.cs-li-link:focus-visible {
  color: var(--accent);
}

.cs-nav-button {
  display: none;
}

/* Hero */
.cs-hero {
  min-height: 44rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
  padding: 9.5rem 0 5rem;
}

.cs-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 241, 232, 0.99) 5%, rgba(245, 241, 232, 0.9) 58%, rgba(245, 241, 232, 0.12)),
    linear-gradient(0deg, rgba(9, 9, 8, 0.45), transparent 50%);
}

.cs-hero .cs-container {
  position: relative;
  z-index: 2;
}

.cs-hero-content {
  max-width: 39rem;
  padding: 2rem 1.25rem;
  border: 2px solid var(--primary);
  border-left: 0.5rem solid var(--primary);
  background: rgba(245, 241, 232, 0.9);
  box-shadow: 0.65rem 0.65rem 0 rgba(130, 47, 40, 0.92);
}

.cs-hero .cs-text {
  max-width: 34rem;
  font-size: 1.0625rem;
}

.cs-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cs-background {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.cs-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

/* Services */
.cs-heading {
  margin-bottom: 2rem;
}

.cs-services {
  background:
    radial-gradient(circle at 90% 20%, rgba(130, 47, 40, 0.08), transparent 20rem),
    var(--paper);
  border-top: 0.35rem solid var(--accent);
}

.cs-card-group {
  display: grid;
  gap: 1rem;
}

.cs-service-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border: 2px solid var(--primary);
  background: var(--cream);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.cs-service-card:hover {
  border-color: var(--accent);
  box-shadow: 0.45rem 0.45rem 0 var(--primary);
  transform: translate(-0.2rem, -0.2rem);
}

.cs-card-number {
  margin-bottom: auto;
  color: var(--accent);
  font-family: "Pirata One", "Times New Roman", serif;
  font-size: 2rem;
}

.cs-service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  line-height: 1;
}

.cs-service-card p {
  margin: 0;
}

/* About */
.cs-about {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.045), transparent 22rem),
    var(--primary-dark);
  border-top: 0.35rem solid var(--accent);
  border-bottom: 0.35rem solid var(--accent);
}

.cs-about .cs-container {
  display: grid;
  gap: 3rem;
}

.cs-about .cs-h2 {
  color: #fff;
}

.cs-about .cs-topper,
.cs-contact .cs-topper {
  color: #d6a49d;
}

.cs-picture-wrap {
  position: relative;
}

.cs-picture {
  height: 30rem;
  display: block;
  overflow: hidden;
  border: 2px solid #000;
  filter: saturate(0.7) contrast(1.08);
}

.cs-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-experience {
  max-width: 10rem;
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  padding: 1rem 1.25rem;
  color: var(--paper);
  background: var(--accent);
  border: 2px solid #000;
  box-shadow: 0.35rem 0.35rem 0 #000;
}

.cs-experience strong {
  display: block;
  font-family: "Pirata One", "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.cs-experience span {
  font-size: 0.75rem;
}

.cs-check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.cs-check-list li {
  display: flex;
  gap: 0.75rem;
}

.cs-check-list li::before {
  content: "✓";
  color: #c98f87;
  font-weight: 700;
}

.cs-text-link {
  color: #fff;
  font-weight: 700;
  text-underline-offset: 0.3rem;
}

/* Portfolio */
.cs-portfolio {
  background: var(--cream);
  border-top: 2px solid var(--primary);
}

.cs-gallery {
  display: grid;
  gap: 2rem 1.25rem;
}

.cs-project-card {
  margin: 0;
}

.cs-project-extra {
  display: none;
}

.cs-gallery.cs-expanded .cs-project-extra {
  display: block;
}

.cs-gallery-open {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  position: relative;
  padding: 0;
  border: 2px solid var(--primary);
  background: var(--primary);
  cursor: zoom-in;
}

.cs-gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s;
}

.cs-gallery-open:hover img,
.cs-gallery-open:focus-visible img {
  transform: scale(1.03);
}

.cs-gallery-open:focus-visible {
  outline: 0.25rem solid var(--accent);
  outline-offset: 0.2rem;
}

.cs-photo-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.35rem 0.55rem;
  color: #fff;
  background: rgba(9, 9, 8, 0.88);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-project-meta {
  padding-top: 0.9rem;
}

.cs-project-meta > span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cs-project-meta h3 {
  margin: 0;
  color: var(--heading);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.15;
}

.cs-project-meta p {
  margin: 0.55rem 0 0;
  color: #5c5b52;
  font-size: 0.85rem;
  line-height: 1.55;
}

.cs-gallery-toggle {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem auto 0;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cs-gallery-toggle:hover,
.cs-gallery-toggle:focus-visible {
  color: #fff;
  background: var(--primary);
}

.cs-lightbox {
  width: min(94vw, 76rem);
  max-width: none;
  max-height: 94vh;
  overflow: auto;
  padding: 0;
  border: 2px solid #000;
  color: #fff;
  background: var(--primary-dark);
  box-shadow: 0.75rem 0.75rem 0 var(--accent);
}

.cs-lightbox::backdrop {
  background: rgba(9, 9, 8, 0.86);
  backdrop-filter: blur(0.25rem);
}

.cs-lightbox figure {
  margin: 0;
}

.cs-lightbox-image {
  height: min(66vh, 46rem);
  display: grid;
  place-items: center;
  background: #000;
}

.cs-lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cs-lightbox figcaption {
  padding: 1.1rem 1.25rem 1.35rem;
}

.cs-lightbox-count {
  display: block;
  margin-bottom: 0.35rem;
  color: #d6a49d;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-lightbox figcaption h3 {
  margin: 0;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
}

.cs-lightbox figcaption p {
  max-width: 55rem;
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.55;
}

.cs-lightbox-close {
  width: 2.75rem;
  height: 2.75rem;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  border: 2px solid #fff;
  color: #fff;
  background: rgba(9, 9, 8, 0.85);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.cs-lightbox-close:hover,
.cs-lightbox-close:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.cs-lightbox-arrow {
  width: 3rem;
  height: 3rem;
  position: absolute;
  top: calc(min(66vh, 46rem) / 2);
  z-index: 2;
  border: 2px solid #fff;
  color: #fff;
  background: rgba(9, 9, 8, 0.78);
  font-size: 1.25rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.cs-lightbox-prev {
  left: 0.75rem;
}

.cs-lightbox-next {
  right: 0.75rem;
}

.cs-lightbox-arrow:hover,
.cs-lightbox-arrow:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
}

/* Reviews */
.cs-reviews {
  background: var(--paper);
}

.cs-review-grid {
  display: grid;
  gap: 1rem;
}

.cs-review-grid article {
  margin: 0;
  padding: 1.5rem;
  border: 2px solid var(--primary);
  background: var(--paper);
  box-shadow: 0.35rem 0.35rem 0 var(--border);
}

.cs-review-mark {
  color: var(--accent);
  font-family: "Pirata One", "Times New Roman", serif;
  font-size: 1.75rem;
}

.cs-review-grid p {
  margin: 1rem 0 1.25rem;
  color: var(--heading);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.35;
}

.cs-review-grid h3 {
  margin: 0;
  color: #737568;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Contact */
.cs-contact {
  color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(rgba(9, 9, 8, 0.94), rgba(9, 9, 8, 0.94)),
    url("images/portfolio1.jpg") center / cover;
}

.cs-contact .cs-container {
  display: grid;
  gap: 2rem;
}

.cs-contact .cs-h2 {
  color: #fff;
}

.cs-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  color: var(--heading);
  border: 2px solid #000;
  background: var(--paper);
  box-shadow: 0.55rem 0.55rem 0 var(--accent);
}

.cs-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.cs-form input,
.cs-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem;
  color: var(--heading);
  background: #fff;
}

.cs-form input:focus,
.cs-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cs-form textarea {
  resize: vertical;
}

.cs-form .cs-button-solid {
  border: 0;
}

/* Footer */
.cs-footer {
  padding-top: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  background: #090908;
}

.cs-footer .cs-container {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cs-footer-logo span {
  color: #fff;
}

.cs-footer-logo img {
  mix-blend-mode: screen;
  filter: grayscale(1);
}

.cs-footer p {
  max-width: 30rem;
  margin: 0;
}

.cs-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cs-footer nav a {
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
}

.cs-footer nav .cs-instagram-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.cs-footer nav .cs-instagram-link:hover,
.cs-footer nav .cs-instagram-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
}

.cs-instagram-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 0.3rem;
}

.cs-instagram-icon::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cs-instagram-icon::after {
  content: "";
  width: 0.16rem;
  height: 0.16rem;
  position: absolute;
  top: 0.16rem;
  right: 0.16rem;
  border-radius: 50%;
  background: currentColor;
}

.cs-copyright {
  margin-top: 2.5rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  text-align: center;
}

@media only screen and (min-width: 48rem) {
  .cs-container {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .cs-section {
    padding: 6rem 0;
  }

  .cs-hero {
    min-height: 48rem;
    align-items: center;
  }

  .cs-hero-content {
    padding: 2.5rem;
  }

  .cs-card-group,
  .cs-review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cs-about .cs-container,
  .cs-contact .cs-container {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .cs-about .cs-content {
    padding-left: 1rem;
  }

  .cs-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }

  .cs-heading-row .cs-text {
    max-width: 28rem;
    margin-bottom: 0.25rem;
  }

  .cs-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-form {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }

  .cs-full {
    grid-column: 1 / -1;
  }

  .cs-footer .cs-container {
    grid-template-columns: auto 1fr auto;
  }
}

@media only screen and (min-width: 64rem) {
  body.cs-open {
    overflow: auto;
  }

  #cs-navigation {
    min-height: 5.5rem;
  }

  #cs-navigation .cs-container {
    min-height: 5.5rem;
  }

  .cs-logo img {
    width: 4rem;
    height: 4rem;
  }

  .cs-logo span {
    font-size: 1.8rem;
  }

  .cs-toggle {
    display: none;
  }

  .cs-nav {
    width: auto;
    max-height: none;
    overflow: visible;
    position: static;
    background: transparent;
  }

  .cs-ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
  }

  .cs-li-link {
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }

  .cs-nav-button {
    display: inline-flex;
  }

  .cs-hero {
    min-height: 50rem;
    padding-top: 10rem;
  }

  .cs-hero::before {
    background: linear-gradient(90deg, rgba(245, 241, 232, 0.99) 0%, rgba(245, 241, 232, 0.92) 42%, rgba(245, 241, 232, 0.04) 72%);
  }

  .cs-hero-content {
    margin-left: 1rem;
  }

  .cs-background img {
    object-position: center 42%;
  }

  .cs-picture {
    height: 38rem;
  }

  .cs-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
