:root {
  --paper: #f6f3ed;
  --paper-deep: #e7e4dc;
  --ink: #171614;
  --muted: #6f6a60;
  --line: rgba(23, 22, 20, 0.16);
  --accent: #5e7167;
  --warm: #9b7058;
  --white: #fffdf8;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 58px);
  color: var(--white);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(246, 243, 237, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 220ms ease;
}

.site-header.is-scrolled .brand-logo {
  filter: none;
}

.site-nav {
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.8rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #1b1a17;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98) brightness(0.86);
  transform: scale(1.04);
  animation: heroDrift 18s ease-out forwards;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 12, 10, 0.82), rgba(13, 12, 10, 0.42) 45%, rgba(13, 12, 10, 0.1)),
    linear-gradient(0deg, rgba(13, 12, 10, 0.66), rgba(13, 12, 10, 0.02) 64%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  padding: 132px 0 82px clamp(18px, 7vw, 112px);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 253, 248, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.04;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1.12;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(1rem, 1.32vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.button,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button:hover,
.button:focus-visible,
.button-light:hover,
.button-light:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.text-link {
  color: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: clamp(78px, 10vw, 142px) clamp(18px, 6vw, 96px);
}

.statement-grid,
.section-heading,
.project-intro,
.process-section .section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.body-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.body-copy p + p {
  margin-top: 20px;
}

.value-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.value-item {
  min-height: 230px;
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.value-item:last-child {
  border-right: 0;
}

.value-item span,
.service-grid span,
.process-list span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.value-item p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.services {
  background: var(--paper);
}

.section-heading h2 {
  max-width: 980px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(38px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-height: 270px;
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid p,
.process-list p,
.project-copy p,
.finished-copy p,
.project-intro-text p,
.contact-grid p {
  color: var(--muted);
}

.project-intro {
  padding: clamp(78px, 10vw, 142px) clamp(18px, 6vw, 96px) clamp(36px, 6vw, 72px);
  background: var(--paper-deep);
}

.project-intro-text p {
  max-width: 620px;
  margin: 22px 0 0;
}

.project-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.85fr;
  gap: 16px;
  padding: 0 clamp(18px, 6vw, 96px) clamp(78px, 10vw, 142px);
  background: var(--paper-deep);
}

.project-strip a {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-strip img {
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  border: 1px solid rgba(23, 22, 20, 0.12);
  background: var(--white);
  transition: transform 240ms ease, filter 240ms ease;
}

.project-strip a:nth-child(2) img {
  aspect-ratio: 1 / 1.16;
}

.project-strip a:nth-child(3) img {
  aspect-ratio: 1 / 1.24;
}

.project-strip a:hover img,
.project-strip a:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: translateY(-4px);
}

.real-projects {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 6vw, 96px) clamp(78px, 10vw, 142px);
  background: var(--paper-deep);
}

.real-projects-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 62px);
}

.real-projects-heading h2 {
  max-width: 720px;
}

.real-projects-heading p:not(.section-label) {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
}

.real-projects-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 0.8fr 1.05fr;
  gap: 16px;
  align-items: end;
}

.real-projects figure {
  display: grid;
  gap: 12px;
  margin: 0;
}

.real-projects img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(23, 22, 20, 0.12);
  background: var(--white);
  transition: transform 240ms ease, filter 240ms ease;
}

.real-projects figure:nth-child(1) img,
.real-projects figure:nth-child(3) img {
  aspect-ratio: 3 / 4.2;
}

.real-projects figure:nth-child(2) img,
.real-projects figure:nth-child(4) img {
  aspect-ratio: 4 / 3;
}

.real-projects figure:hover img {
  filter: saturate(1.03) contrast(1.02);
  transform: translateY(-4px);
}

.real-projects figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.66fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  padding: clamp(78px, 10vw, 146px) clamp(18px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.project-feature-reverse {
  grid-template-columns: minmax(320px, 0.66fr) minmax(0, 1.08fr);
  background: var(--white);
}

.project-feature-reverse .project-media {
  order: 2;
}

.project-media {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.project-feature-reverse .project-media {
  background: var(--paper);
}

.project-media img {
  width: 100%;
  max-height: 780px;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
}

.project-copy h2 {
  max-width: 600px;
  margin-bottom: 24px;
}

.project-copy p {
  max-width: 560px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.project-copy ul {
  display: grid;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.finished-project {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  padding: clamp(78px, 10vw, 146px) clamp(18px, 6vw, 96px);
  background: var(--paper-deep);
}

.finished-copy h2 {
  margin-bottom: 24px;
}

.finished-copy p {
  max-width: 560px;
  margin-bottom: 30px;
}

.finished-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.76fr;
  gap: 14px;
  align-items: end;
}

.finished-gallery img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(23, 22, 20, 0.12);
}

.finished-gallery img:first-child {
  aspect-ratio: 1.3 / 1;
}

.finished-gallery img:last-child {
  aspect-ratio: 1 / 1.22;
}

.process-section {
  background: var(--paper);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(38px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-list article {
  min-height: 250px;
  padding: clamp(24px, 3.5vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-section {
  padding: clamp(78px, 10vw, 142px) clamp(18px, 6vw, 96px);
  color: var(--white);
  background: #1c1b18;
}

.contact-section .section-label {
  color: rgba(255, 253, 248, 0.72);
}

.contact-section h2 {
  max-width: 960px;
  margin-bottom: 34px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 560px) 260px;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.contact-grid p,
.contact-card a {
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
}

.contact-copy {
  display: grid;
  gap: 22px;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  background: rgba(255, 253, 248, 0.06);
}

.contact-card a {
  width: fit-content;
  border-bottom: 1px solid rgba(255, 253, 248, 0.42);
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 6vw, 96px);
  color: rgba(255, 253, 248, 0.68);
  background: #1c1b18;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
  font-size: 0.84rem;
}

[data-reveal],
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item:nth-child(2) {
  transition-delay: 80ms;
}

.reveal-item:nth-child(3) {
  transition-delay: 150ms;
}

.reveal-item:nth-child(4) {
  transition-delay: 220ms;
}

@keyframes heroDrift {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1.02);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: 100%;
    padding: 122px 18px 82px;
  }

  .statement-grid,
  .section-heading,
  .project-intro,
  .real-projects-heading,
  .process-section .section-heading,
  .project-feature,
  .project-feature-reverse,
  .finished-project,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .value-band,
  .service-grid,
  .project-strip,
  .real-projects-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .value-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-feature-reverse .project-media {
    order: 0;
  }

  .project-strip img,
  .project-strip a:nth-child(2) img,
  .project-strip a:nth-child(3) img {
    aspect-ratio: 4 / 3;
  }

  .real-projects figure:nth-child(1) img,
  .real-projects figure:nth-child(2) img,
  .real-projects figure:nth-child(3) img,
  .real-projects figure:nth-child(4) img {
    aspect-ratio: 4 / 3;
  }

  .finished-gallery {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .site-nav a:nth-child(2) {
    display: none;
  }

  h1 {
    font-size: clamp(2.85rem, 15vw, 4.3rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

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

  .project-media {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
