:root {
  --paper: #f8f8f6;
  --ink: #393836;
  --wood: #9a7f55;
  --wood-deep: #6e5735;
  --mist: #e7e3dc;
  --line: rgba(57, 56, 54, 0.18);
  --shadow: 0 32px 80px rgba(57, 56, 54, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(57, 56, 54, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 56, 54, 0.018) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(248, 248, 246, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 10px;
  border-color: var(--line);
}

.brand {
  width: 132px;
  justify-self: start;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  color: rgba(57, 56, 54, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a,
.text-link {
  position: relative;
}

.nav-links a::after,
.text-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  content: "";
  background: var(--wood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.header-action,
.primary-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-action:hover,
.primary-link:hover {
  background: var(--wood);
  border-color: var(--wood);
  transform: translateY(-2px);
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  padding: 132px clamp(18px, 5vw, 72px) 58px;
}

.hero-copy {
  max-width: 610px;
}

.kicker {
  margin: 0 0 26px;
  color: var(--wood);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6.6vw, 7.2rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-text {
  max-width: 540px;
  margin-bottom: 38px;
  color: rgba(57, 56, 54, 0.74);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.text-link {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-stage {
  position: relative;
  min-height: min(74vh, 760px);
  border-left: 1px solid var(--wood);
  border-bottom: 1px solid var(--wood);
  padding: 26px 0 0 26px;
}

.hero-stage::before {
  position: absolute;
  top: 0;
  right: 10%;
  width: 42%;
  height: 1px;
  content: "";
  background: var(--wood);
}

.hero-stage img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.stage-mark {
  position: absolute;
  top: -36px;
  right: 4%;
  z-index: 1;
  color: rgba(154, 127, 85, 0.16);
  font-size: clamp(7rem, 16vw, 18rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.stage-caption {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 18px 22px;
  background: var(--paper);
  border-left: 4px solid var(--wood);
}

.stage-caption span {
  color: var(--wood);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-caption strong {
  font-size: 1.12rem;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip div {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

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

.intro-strip span,
.project-counter,
.step span {
  color: var(--wood);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.intro-strip strong {
  font-size: clamp(1.15rem, 2vw, 2rem);
  text-transform: uppercase;
}

.work-section,
.process-section,
.contact-section {
  padding: clamp(72px, 10vw, 136px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.45fr minmax(300px, 0.9fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 44px;
}

h2 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 5.8rem);
  line-height: 0.96;
  font-weight: 800;
}

.project-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 390px);
  gap: 0;
  min-height: 680px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.project-image {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease, transform 360ms ease;
}

.project-image img.is-changing {
  opacity: 0;
  transform: scale(1.018);
}

.project-panel {
  display: grid;
  align-content: end;
  padding: clamp(26px, 4vw, 44px);
  border-left: 1px solid var(--ink);
}

.project-counter {
  margin-bottom: 22px;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3vw, 3.35rem);
  line-height: 1;
}

.project-panel p {
  margin-bottom: 40px;
  color: rgba(57, 56, 54, 0.72);
  line-height: 1.7;
}

.project-controls {
  display: grid;
  border-top: 1px solid var(--line);
}

.project-dot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.project-dot::after {
  width: 38px;
  height: 1px;
  content: "";
  background: var(--line);
  transition: background 180ms ease, width 180ms ease;
}

.project-dot.is-active::after,
.project-dot:hover::after {
  width: 66px;
  background: var(--wood);
}

.process-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
}

.process-media {
  border-top: 1px solid var(--wood);
  border-right: 1px solid var(--wood);
  padding: 18px 18px 0 0;
}

.process-media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.process-copy h2 {
  margin-bottom: 44px;
}

.steps {
  display: grid;
  border-top: 1px solid rgba(248, 248, 246, 0.18);
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 20px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid rgba(248, 248, 246, 0.18);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.step strong {
  font-size: 1.18rem;
  text-transform: uppercase;
}

.step em {
  grid-column: 2;
  max-height: 0;
  overflow: hidden;
  color: rgba(248, 248, 246, 0.68);
  font-style: normal;
  line-height: 1.65;
  transition: max-height 220ms ease, margin-top 220ms ease;
}

.step.is-open em {
  max-height: 120px;
  margin-top: 10px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1px 1fr minmax(260px, 420px);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  min-height: 520px;
}

.contact-line {
  align-self: stretch;
  background: var(--wood);
}

.contact-actions {
  display: grid;
  border-top: 1px solid var(--ink);
}

.contact-actions a {
  display: flex;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  transition: color 180ms ease, padding-left 180ms ease;
}

.contact-actions a:hover {
  color: var(--wood);
  padding-left: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: rgba(57, 56, 54, 0.64);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer span:nth-child(2) {
  text-align: center;
}

.site-footer a {
  justify-self: end;
  color: var(--wood);
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--ink);
}

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

  .nav-links {
    display: none;
  }

  .hero,
  .section-heading,
  .project-viewer,
  .process-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-stage img {
    height: 62vh;
  }

  .project-viewer {
    min-height: 0;
  }

  .project-image {
    min-height: 58vh;
  }

  .project-panel {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .process-media img {
    min-height: 420px;
  }

  .contact-section {
    min-height: 0;
  }

  .contact-line {
    height: 1px;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    width: 104px;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.66rem;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 5.6rem);
  }

  .hero {
    padding-inline: 14px;
  }

  .hero-stage {
    padding: 14px 0 0 14px;
  }

  .hero-stage img {
    height: 56vh;
  }

  .stage-caption {
    position: relative;
    right: auto;
    bottom: auto;
    margin-left: auto;
  }

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

  .intro-strip div {
    min-height: 106px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-strip div:last-child {
    border-bottom: 0;
  }

  .work-section,
  .process-section,
  .contact-section {
    padding-inline: 14px;
  }

  .project-image {
    min-height: 420px;
  }

  .project-dot {
    min-height: 54px;
    font-size: 0.7rem;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 14px;
    line-height: 1.5;
  }

  .site-footer span:nth-child(2) {
    text-align: left;
  }

  .site-footer a {
    justify-self: start;
  }
}
