:root {
  --ink: #37362f;
  --paper: #eadcc9;
  --soft: #ddc9b1;
  --bronze: #a65332;
  --line: #c4a98f;
  --metal-bronze: linear-gradient(105deg,#71351f 0%,#ad5935 18%,#dfa077 38%,#8b4025 54%,#ca7650 73%,#69301d 100%);
}

body {
  background: var(--paper);
}

.site-header {
  grid-template-columns: 410px 1fr auto;
  background: rgba(56, 58, 48, .97);
  border-bottom-color: #666452;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  padding-top: .45rem;
  padding-bottom: .45rem;
  background: rgba(48, 51, 42, .985);
  box-shadow: 0 10px 30px rgba(42, 31, 24, .18);
}

.site-header .brand {
  display: block;
  width: 390px;
  height: 112px;
  overflow: hidden;
}

.site-header nav {
  gap: clamp(1rem, 1.8vw, 2rem);
}

.site-header nav a {
  white-space: nowrap;
}

.site-header .languages {
  align-self: end;
  margin-bottom: .85rem;
}

.site-header .brand img {
  width: 390px;
  height: 112px;
  object-fit: cover;
  object-position: center 50%;
  mix-blend-mode: lighten;
  transition: width .3s ease, height .3s ease;
}

.site-header.scrolled .brand img {
  width: 340px;
  height: 96px;
}

.site-header.scrolled .brand {
  width: 340px;
  height: 96px;
}

.hero {
  background: #302b26;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(45, 34, 27, .48), rgba(45, 34, 27, .08) 65%);
}

.hero-slides img {
  filter: brightness(.62) saturate(.88) sepia(.08);
}

.hero-slides .hero-design-detail {
  object-position: 50% 56%;
}

.hero-slides .hero-interior-kitchen {
  object-position: 50% 48%;
}

.hero-slides .hero-tv-wall {
  object-position: 50% 55%;
}

.hero-slides .hero-rust-kitchen {
  object-position: 50% 52%;
}

.button {
  background-color: #a65332;
  background-image: var(--metal-bronze);
  background-size: 165% 100%;
  border-color: #a65332;
  box-shadow: inset 0 1px rgba(255,255,255,.28),0 8px 22px rgba(76,38,23,.2);
  transition: transform .25s ease, background-position .55s ease, box-shadow .25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  background-position: 100% 0;
  box-shadow: 0 12px 26px rgba(55, 37, 28, .22);
}

.about blockquote,
.category-card,
.project details {
  background: #f0e4d3;
}

.process {
  position: relative;
  overflow: hidden;
  background: #d8c4aa;
}

.process::before {
  content: "";
  position: absolute;
  width: 38rem;
  height: 38rem;
  left: -22rem;
  top: 5rem;
  border: 1px solid rgba(166, 83, 50, .32);
  border-radius: 50%;
}

.process .section-heading {
  position: relative;
  max-width: 1050px;
  margin-bottom: 5rem;
}

.process .section-heading h2 {
  font-size: clamp(3rem, 6vw, 6.4rem);
  color: #29372f;
}

.process .section-heading>p:last-child {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.15rem;
}

.process-list {
  position: relative;
  max-width: 1420px;
}

.process-step {
  grid-template-columns: 1.08fr .92fr;
  min-height: 560px;
  margin-bottom: 3.5rem;
  overflow: hidden;
  background: #29372f;
  color: #f8efe4;
  box-shadow: 0 24px 60px rgba(48, 38, 29, .18);
  transition: opacity .65s ease, transform .65s ease, box-shadow .35s ease;
}

.process-step:nth-child(even) {
  grid-template-columns: .92fr 1.08fr;
  background-color: #a65332;
  background-image: var(--metal-bronze);
  color: #fff5e9;
}

.process-step:hover {
  transform: translateY(-7px);
  box-shadow: 0 34px 76px rgba(48, 38, 29, .28);
}

.process-copy {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 6.5rem);
}

.process-copy::after {
  content: "";
  width: 4.5rem;
  height: 3px;
  margin-top: 2rem;
  background: #cf805b;
}

.process-step:nth-child(even) .process-copy::after {
  background: #f1c2a5;
}

.process-number {
  position: absolute;
  z-index: -1;
  right: 1.8rem;
  top: .5rem;
  color: rgba(255, 245, 233, .09);
  font-size: clamp(6rem, 12vw, 11rem);
  line-height: 1;
}

.process-copy h3 {
  max-width: 620px;
  margin: 0 0 1.4rem;
  color: #fff5e9;
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  line-height: 1.04;
}

.process-copy p {
  max-width: 650px;
  margin: 0;
  color: #e8e0d6;
  font-size: 1.08rem;
  line-height: 1.8;
}

.process-step:nth-child(even) .process-copy p {
  color: #fff0e4;
}

.process-image img {
  min-height: 560px;
  filter: saturate(.86) contrast(1.03);
}

.process-step:nth-child(3) .process-image {
  display: grid;
  place-items: center;
  background: #e7dac8;
}

.process-step:nth-child(3) .process-image img {
  width: 100%;
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 2.75rem);
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(45, 37, 29, .18));
}

.process-step,
.about figure,
.section-heading,
.contact-card,
.project {
  transition: opacity .65s ease, transform .65s ease;
}

.js-reveal {
  opacity: 0;
  transform: translateY(34px);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step.is-visible:hover {
  transform: translateY(-7px);
}

.process-image,
.gallery,
.project-cover {
  overflow: hidden;
}

.process-image img,
.gallery img,
.project-cover {
  transition: transform .55s ease, filter .45s ease;
}

.process-step:hover .process-image img,
.gallery img:hover {
  transform: scale(1.035);
}

.category-card,
.project details {
  background: #e8d7c2;
}

.category-card,
.project summary {
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.category-card:hover,
.project summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(70, 44, 30, .14);
}

.project details[open] summary {
  background: #ddc3a8;
}

.about blockquote {
  background-color: #a65332;
  background-image: var(--metal-bronze);
  box-shadow: inset 0 1px rgba(255,255,255,.25),0 18px 45px rgba(8,13,10,.22);
}

.about blockquote p {
  color: #fff5e9;
}

.process {
  background: #d8c0a6;
}

.category-card.active,
.project-intro,
.contact {
  background: #3d4035;
}

.category-card.active {
  background-color: #a65332;
  background-image: var(--metal-bronze);
  box-shadow: inset 0 1px rgba(255,255,255,.22),0 12px 28px rgba(70,44,30,.18);
}

.contact-card {
  background: rgba(255, 250, 242, .035);
  border-color: #777361;
}

.contact-intro {
  align-self: start;
}

.experience-emblem {
  width: min(330px, 78%);
  aspect-ratio: 1;
  margin: 2.5rem auto 0 0;
  filter: drop-shadow(0 16px 24px rgba(16, 17, 14, .24));
  transition: transform .45s ease, filter .45s ease;
}

.experience-ring {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 5px solid #c9894f;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px #315247, inset 0 0 0 9px #e2b176;
  overflow: hidden;
}

.experience-number,
.experience-label {
  color: #e4ad6e;
  background: linear-gradient(100deg,#8a4b27 0%,#e7b779 24%,#fff0c8 47%,#b56535 70%,#e2aa68 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.experience-number {
  font-family: var(--serif);
  font-size: clamp(6rem, 12vw, 9.5rem);
  font-weight: 400;
  line-height: .78;
}

.experience-label {
  max-width: 84%;
  margin-top: 1.1rem;
  font-size: clamp(.72rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.25;
  text-align: center;
}

.experience-pen {
  position: relative;
  width: 66%;
  height: 2px;
  margin-top: 1.25rem;
  background: linear-gradient(90deg,#94502b,#f0c98e 58%,#b76c3d);
}

.experience-pen::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -6px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 13px solid #d99c5d;
}

.experience-emblem:hover {
  transform: translateY(-5px) scale(1.015);
  filter: drop-shadow(0 20px 30px rgba(16, 17, 14, .32));
}

.contact-map {
  width: 100%;
  min-height: 300px;
  margin-top: .7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 232, .24);
  box-shadow: 0 14px 32px rgba(18, 19, 16, .24);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-card .map-button {
  width: fit-content;
  margin-top: .35rem;
  color: #fff8ef;
  font-size: .78rem;
}

.projects {
  background: #efe3d2;
}

.gallery-title {
  margin: 3.5rem 0 1.25rem;
  padding: 1.1rem 1.5rem;
  border: 0;
  background-color: #a65332;
  background-image: var(--metal-bronze);
  color: #fff8ef;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 1.1;
  box-shadow: 0 8px 22px rgba(82, 45, 29, .16);
}

.gallery.before + .gallery-title {
  background: #3d4035;
  color: #f3e7d7;
  box-shadow: 0 8px 22px rgba(45, 48, 39, .18);
}

.gallery-title:has(+ .gallery.before:empty),
.gallery.before:empty {
  display: none;
}

.back-overview {
  display: block;
  margin: 2.5rem auto 0;
  padding: .9rem 1.4rem;
  border: 1px solid #a65332;
  background-color: #a65332;
  background-image: var(--metal-bronze);
  background-size: 165% 100%;
  color: #fff8ef;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, background-position .55s ease, box-shadow .25s ease;
}

.back-overview:hover,
.back-overview:focus-visible {
  background-position: 100% 0;
  border-color: #a65332;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(55, 37, 28, .18);
}

footer {
  background: #29372f;
  color: #c8beaf;
}

footer img {
  width: 250px;
  height: 78px;
  object-fit: cover;
  object-position: center 50%;
  mix-blend-mode: lighten;
}

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

  .site-header .brand,
  .site-header.scrolled .brand {
    width: 245px;
    height: 72px;
  }

  .site-header .brand img,
  .site-header.scrolled .brand img {
    width: 245px;
    height: 72px;
  }

  .site-header nav {
    background: #3d4035;
  }

  .site-header .languages {
    align-self: center;
    margin-bottom: 0;
  }

  footer img {
    width: 225px;
    height: 70px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: .45rem;
  }

  .site-header .brand,
  .site-header.scrolled .brand,
  .site-header .brand img,
  .site-header.scrolled .brand img {
    width: 185px;
    height: 58px;
  }

  .languages {
    gap: 0;
  }

  .languages button {
    padding: .25rem;
  }
}

@media (max-width: 850px) {
  .process .section-heading {
    margin-bottom: 3rem;
  }

  .process .section-heading h2 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .process-step,
  .process-step:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 2.2rem;
  }

  .process-image img {
    min-height: 0;
    height: 360px;
  }

  .process-copy {
    padding: 3.2rem 1.7rem 3.5rem;
  }

  .process-number {
    right: 1rem;
    top: .2rem;
    font-size: 7.5rem;
  }

  .process-copy h3 {
    max-width: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .brand img,
  .button,
  .process-step,
  .about figure,
  .section-heading,
  .contact-card,
  .project,
  .process-image img,
  .gallery img,
  .project-cover,
  .category-card,
  .project summary,
  .back-overview,
  .experience-emblem {
    transition: none;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
