:root {
  --ink: #171714;
  --paper: #f4f2ec;
  --white: #fff;
  --muted: #817f77;
  --line: rgba(23, 23, 20, 0.17);
  --accent: #a38455;
  --page-pad: clamp(1.25rem, 4vw, 5rem);
  --radius: 0.15rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1.25rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
}

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

.intro {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.intro.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro__mark {
  text-align: center;
  animation: intro-mark 1.4s var(--ease) both;
}

.intro__mark img {
  width: clamp(7rem, 14vw, 11rem);
  aspect-ratio: 1;
  margin: 0 auto 1.2rem;
  object-fit: cover;
  filter: grayscale(1);
}

.intro__mark p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@keyframes intro-mark {
  0% { opacity: 0; transform: scale(0.94); filter: blur(8px); }
  35% { opacity: 1; filter: blur(0); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(1.025); }
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 1rem var(--page-pad);
  color: var(--white);
  transition: background 0.4s ease, padding 0.4s ease, color 0.4s ease;
}

.site-header.is-scrolled {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: rgba(15, 15, 13, 0.72);
  backdrop-filter: blur(18px);
}

.site-header__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(6.75rem, 11vw, 9.5rem);
}

.site-header__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header__actions {
  position: absolute;
  right: var(--page-pad);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.language-switch {
  display: flex;
  gap: 0.38rem;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.lang-button {
  padding: 0.3rem;
  color: currentColor;
  background: transparent;
  opacity: 0.5;
}

.lang-button.is-active {
  opacity: 1;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
  transform: translateX(-50%);
}

.menu-toggle span:first-child { top: 1.15rem; }
.menu-toggle span:last-child { top: 1.55rem; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 1.35rem; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 1.35rem; transform: translateX(-50%) rotate(-45deg); }

.menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem var(--page-pad) 2rem;
  color: var(--white);
  background: #121210;
  opacity: 0;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
}

.menu nav {
  margin: auto 0;
}

.menu ol {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.menu li {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.menu li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.menu li a {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(0.45rem, 1.2vh, 1rem) 0;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease), color 0.3s ease;
}

.menu.is-open li a {
  transform: translateY(0);
}

.menu.is-open li:nth-child(2) a { transition-delay: 0.05s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.1s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.15s; }
.menu.is-open li:nth-child(5) a { transition-delay: 0.2s; }

.menu li a:hover {
  color: #c4a473;
}

.menu li small {
  width: 1.6rem;
  font-size: 0.62rem;
  color: #8c8b84;
}

.menu li span {
  font-size: clamp(2rem, 6vh, 4.8rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.menu__footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1rem;
  color: #aaa9a1;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  --hero-expand: 0;
  position: relative;
  height: 220vh;
  color: var(--white);
  background: var(--ink);
}

.hero__sticky {
  position: sticky;
  top: 0;
  display: grid;
  height: 100svh;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  padding: clamp(5.5rem, 12vh, 7.5rem) var(--page-pad) clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 30;
  max-width: 34rem;
  pointer-events: none;
}

.hero__copy > * {
  pointer-events: auto;
}

.eyebrow {
  margin: 0 0 1.8rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  margin-right: 1rem;
  color: var(--accent);
}

.hero__eyebrow {
  margin-bottom: clamp(1.2rem, 2.5vh, 2rem);
  opacity: 0;
  animation: hero-up 0.55s 1.5s var(--ease) forwards;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.75rem, 6.5vw, 6.5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-shadow: 0 1px 24px rgba(8, 8, 7, 0.45);
}

.hero h1 span {
  display: block;
  opacity: 0;
  animation: hero-up 0.7s 1.58s var(--ease) forwards;
}

.hero h1 span:last-child {
  animation-delay: 1.68s;
}

.hero__bottom {
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
  opacity: 0;
  animation: hero-up 0.6s 1.85s var(--ease) forwards;
}

.hero__bottom > p {
  max-width: 24rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}

.hero__carousel {
  --stage-t: 16%;
  --stage-l: 50%;
  --stage-w: 42%;
  --stage-h: 58%;
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero__stage {
  position: absolute;
  top: calc(var(--stage-t) - var(--stage-t) * var(--hero-expand));
  left: calc(var(--stage-l) - var(--stage-l) * var(--hero-expand));
  width: calc(var(--stage-w) + (100% - var(--stage-w)) * var(--hero-expand));
  height: calc(var(--stage-h) + (100% - var(--stage-h)) * var(--hero-expand));
  overflow: hidden;
  background: #2a2a24;
  opacity: 0;
  animation: hero-tile-in 0.9s 1.55s var(--ease) forwards;
}

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.85s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img,
.hero__slide video,
.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__progress {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #000;
  opacity: calc(1 - var(--hero-expand) * 8);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hero__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  transform-origin: left center;
}

.hero__thumbs {
  position: absolute;
  top: calc(var(--stage-t) + var(--stage-h) + 1.15%);
  left: var(--stage-l);
  display: flex;
  width: var(--stage-w);
  gap: 0.55rem;
  opacity: calc(1 - var(--hero-expand) * 1.4);
  transform: translateY(calc(var(--hero-expand) * 0.85rem));
  pointer-events: none;
}

.hero__thumb {
  position: relative;
  flex: 1;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #2a2a24;
  opacity: 0.4;
  transition: opacity 0.35s ease;
}

.hero__thumb.is-active {
  opacity: 1;
}

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

@keyframes hero-up {
  from { opacity: 0; transform: translateY(2rem); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes hero-tile-in {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease);
}

.button:hover {
  transform: translateY(-3px);
}

.button--light {
  color: var(--ink);
  background: var(--white);
}

.button--light:hover {
  color: var(--white);
  background: var(--accent);
}

.button--dark {
  color: var(--white);
  background: var(--ink);
}

.text-link {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  border-bottom: 1px solid currentColor;
  padding: 0.7rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-link span:last-child {
  transition: transform 0.3s var(--ease);
}

.text-link:hover span:last-child {
  transform: translate(3px, 3px);
}

.section {
  padding: clamp(6rem, 12vw, 11rem) var(--page-pad);
}

.section-heading {
  display: grid;
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
  gap: 2rem;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6.3vw, 6.3rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-heading__intro {
  max-width: 38rem;
  margin: 0;
  color: #5e5c56;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.services-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--white);
  box-shadow: 0 0 0 rgba(20, 20, 18, 0);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.service-card:hover {
  z-index: 2;
  box-shadow: 0 2rem 5rem rgba(20, 20, 18, 0.13);
  transform: translateY(-0.7rem);
}

.service-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__image img,
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  transition: transform 1.1s var(--ease), filter 0.6s ease;
}

.service-card:hover img,
.project-card:hover img {
  filter: saturate(0.9);
  transform: scale(1.045);
}

.service-card__number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.62rem;
}

.service-card__content {
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.service-card p {
  margin: 0;
  color: #74716a;
  font-size: 0.88rem;
}

.projects {
  color: var(--white);
  background: var(--ink);
}

.section-heading--row > p {
  max-width: 30rem;
  margin: 0;
  align-self: end;
  color: #a6a49c;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}

.project-card {
  height: 100%;
}

.project-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.project-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #292923;
}

.project-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.2rem 0 1.5rem;
}

.project-card__meta {
  margin: 0 0 0.4rem;
  color: #8f8d85;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.project-card__description {
  max-width: 34rem;
  margin: 0;
  color: #a6a49c;
  font-size: 0.88rem;
  line-height: 1.65;
}

.about {
  display: grid;
  gap: clamp(3rem, 7vw, 8rem);
}

.about__portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dfddd5;
}

.about__portrait-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(20, 20, 18, 0.15));
  content: "";
}

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

.about__portrait > p {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about__portrait > p span {
  color: var(--muted);
  font-weight: 400;
}

.about__lead {
  max-width: 41rem;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  color: #5d5b55;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.contact {
  display: grid;
  gap: clamp(4rem, 8vw, 9rem);
  background: #e9e6de;
}

.contact__heading > p:not(.eyebrow) {
  max-width: 28rem;
  margin: 2.5rem 0;
  color: #66645e;
}

.contact__heading > a {
  display: table;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.contact-form {
  align-self: end;
}

.field {
  position: relative;
  border-bottom: 1px solid #aaa79e;
  padding: 1.1rem 0 0.5rem;
  transition: border-color 0.25s ease;
}

.field label {
  display: block;
  color: #6f6d66;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0.45rem 0;
  background: transparent;
  resize: vertical;
}

.field:focus-within {
  border-color: var(--ink);
}

.field.is-invalid {
  border-color: #b42318;
}

.field.is-shaking {
  animation: field-shake 0.45s var(--ease);
}

.field__error {
  margin: 0.45rem 0 0;
  color: #b42318;
  font-size: 0.75rem;
  line-height: 1.35;
}

.field__error[hidden] {
  display: none;
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-0.4rem); }
  40% { transform: translateX(0.4rem); }
  60% { transform: translateX(-0.28rem); }
  80% { transform: translateX(0.28rem); }
}

.form-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 2rem;
  padding-right: 1.4rem;
  padding-left: 1.4rem;
}

.form-status {
  min-height: 1.6rem;
  margin: 0.8rem 0 0;
  color: #3f6f4d;
  font-size: 0.8rem;
}

.footer {
  padding: clamp(4rem, 8vw, 7rem) var(--page-pad) 1.5rem;
  color: #c6c4bc;
  background: #10100e;
}

.footer__brand > p {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
}

.footer__details {
  display: grid;
  margin: clamp(3rem, 7vw, 6rem) 0;
  gap: 2rem;
}

.footer__details p {
  margin: 0 0 0.7rem;
  color: #707069;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__details address,
.footer__details span {
  font-size: 0.8rem;
  font-style: normal;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  color: #6f6f68;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(3rem);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}

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

@media (min-width: 48rem) {
  .section-heading {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  }

  .section-heading .eyebrow {
    grid-column: 1 / -1;
  }

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

  .services-grid .service-card:nth-child(2) {
    transform: translateY(3rem);
  }

  .services-grid .service-card:nth-child(2):hover {
    transform: translateY(2.3rem);
  }

  .section-heading--row {
    grid-template-columns: 1fr 0.45fr;
  }

  .section-heading--row .eyebrow {
    grid-column: auto;
  }

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

  .about {
    grid-template-columns: minmax(16rem, 0.75fr) minmax(26rem, 1.25fr);
  }

  .about__portrait {
    align-self: start;
  }

  .contact {
    grid-template-columns: minmax(20rem, 0.9fr) minmax(24rem, 1.1fr);
  }

  .footer__details {
    grid-template-columns: 1.15fr 1.5fr 1fr 0.5fr;
  }
}

@media (min-width: 75rem) {
  .services-grid {
    gap: 1.5rem;
  }

  .about__portrait {
    max-width: 34rem;
  }

  .contact-form {
    padding-left: 6vw;
  }
}

@media (max-width: 47.99rem) {
  .site-header {
    justify-content: flex-start;
  }

  .hero {
    height: 200vh;
  }

  .hero__sticky {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: clamp(5rem, 14vh, 6.5rem) var(--page-pad) 1.5rem;
  }

  .hero__copy {
    z-index: 30;
    max-width: none;
    margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.6rem, 12vw, 4.25rem);
  }

  .hero__bottom {
    margin-top: clamp(0.7rem, 1.8vh, 1.1rem);
  }

  .hero__carousel {
    --stage-t: 50%;
    --stage-l: 8%;
    --stage-w: 84%;
    --stage-h: 36%;
  }

  .services-grid {
    gap: 1.5rem;
  }

  .menu__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero__sticky {
    position: relative;
  }

  .hero__copy,
  .hero__stage,
  .hero__thumbs {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .hero__stage {
    top: var(--stage-t);
    left: var(--stage-l);
    width: var(--stage-w);
    height: var(--stage-h);
  }

  .hero__slide {
    transition: none;
  }
}
