:root {
  --bg: #FFFFFF;
  --bg2: #ebebeb;
  --ink: #0A0A0A;
  --dim: #888888;
  --dim2: #d1d1d1;
  --type-hero: clamp(72px, 9vw, 120px);
  --type-h2: clamp(32px, 4vw, 52px);
  --type-body: 16px;
  --type-label: 12px;
  --type-small: 11px;
  --type-xsmall: 10px;
  --type-medium: 15px;
  --wordmark-first-letter-ratio: 0.0920205;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

a {
  color: var(--ink);
  border-radius: 0;
}

.no-break {
  white-space: nowrap;
}

h1,
h2,
p,
a,
nav a {
  transition: opacity 0.7s ease-out;
}

.fade-target {
  opacity: 0;
}

.fade-target.fade-visible {
  opacity: 1;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  padding-left: max(48px, 6vw);
  padding-right: max(48px, 6vw);
}

.site-header {
  padding-top: 32px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.25, 0, 0.5, 1);
  z-index: 10;
}

.site-header .layout-grid {
  align-items: center;
  position: relative;
}

.site-header.nav-visible {
  opacity: 1;
}

.nav-brand {
  grid-column: 1 / 4;
  line-height: 0;
}

.nav-brand img {
  display: block;
  height: 28px;
  width: auto;
}

.nav-links {
  grid-column: 10 / 13;
  justify-self: end;
  display: flex;
  gap: 32px;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 30;
  grid-column: 12 / 13;
  justify-self: end;
  width: 40px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  color: var(--dim);
  transition: transform 0.35s ease, color 0.2s ease;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  color: var(--ink);
}

.site-header.nav-open .nav-toggle {
  color: var(--ink);
}

.site-header.nav-toggle-ink .nav-toggle {
  color: var(--ink);
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-size: var(--type-small);
  font-weight: 500;
  line-height: 1;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.7s ease-out, color 0.2s ease;
}

.nav-links a::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink);
  clip-path: inset(var(--nav-ov-top, 100%) var(--nav-ov-right, 0) var(--nav-ov-bottom, 0) var(--nav-ov-left, 0));
  pointer-events: none;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;  /* już tak jest — to dobrze */
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);  /* usuń text-decoration stąd */
}
.nav-links a:hover::before {
  opacity: 1;
}
.nav-links a:hover::after {
  text-decoration-color: var(--ink);
}

main {
  position: relative;
}

.hero,
.approach,
.services,
.process,
.contact {
  position: relative;
}

.hero {
  min-height: 90vh;
  margin-bottom: 200px;
}

.hero-grid {
  padding-top: 20vh;
  row-gap: 0;
}

.hero-wordmark-wrap {
  grid-column: 1 / 13;
  margin-left: calc(15.5vw - (49.6vw * var(--wordmark-first-letter-ratio)));
}
.hero-wordmark {
  width: 49.6vw;
  height: auto;
}

.hero-wordmark .letter {
  transform: translateY(24px);
  transform-box: fill-box;
  transform-origin: center top;
  clip-path: inset(0 0 100% 0);
  will-change: transform, clip-path;
}

.hero-wordmark-wrap.wordmark-animate .hero-wordmark .letter {
  animation:
    hero-letter-reveal 0.3s cubic-bezier(0.25, 0, 0.5, 1) var(--letter-delay, 0ms) both,
    hero-letter-slide 0.3s cubic-bezier(0.25, 0, 0.5, 1) var(--letter-delay, 0ms) both;
}

@keyframes hero-letter-reveal {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hero-letter-slide {
  from {
    transform: translateY(24px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wordmark .letter {
    animation: none !important;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }

  .hero-title-word {
    animation: none !important;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

#kubism-dot {
  transform: translateX(-18px);
  opacity: 0;
}

.hero-title {
  grid-column: 1 / 11;
  margin-top: 44vh;
  margin-left: 15vw;
  font-size: calc(var(--type-hero) * 0.8);
  font-weight: 400;
  line-height: 1.18;
}

.hero-title-word {
  display: inline-block;
  transform: translateY(24px);
  clip-path: inset(0 0 100% 0);
  will-change: transform, clip-path;
}

.hero-title.hero-title-animate .hero-title-word {
  animation:
    hero-letter-reveal 0.3s cubic-bezier(0.25, 0, 0.5, 1) var(--title-word-delay, 0ms) both,
    hero-letter-slide 0.3s cubic-bezier(0.25, 0, 0.5, 1) var(--title-word-delay, 0ms) both;
}

.hero-body,
.approach p,
.services-grid p,
.process-grid p {
  font-size: var(--type-body);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

.hero-body {
  grid-column: 1 / 8;
  margin-top: 12px;
  margin-left: 15vw;
  max-width: 560px;
}

.hero-cta {
  grid-column: 1 / 7;
  margin-top: 48px;
  margin-left: 15vw;
  font-size: var(--type-xsmall);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.hero-cta:hover {
  text-decoration: underline;
}

.hero-location {
  grid-column: 1 / 7;
  margin-top: 36px;
  margin-left: 15vw;
  font-size: var(--type-medium);
  font-weight: 400;
  /* letter-spacing: 0.1em; */
  color: var(--ink);
  text-transform: uppercase;
}

.approach {
  margin-bottom: 160px;
}

.approach .layout-grid {
  margin-top: 120px;
}

.approach p {
  font-size: var(--type-small);
  font-weight: 400;
  color: var(--dim);
  grid-column: 1 / 4;
  letter-spacing: 0.05em;
  margin-left: max(48px, 6vw);
}

.selected-work {
  margin-top: 450px;
  position:relative;
}

.selected-work-content {
  grid-column: 3 / 11;
  display: grid;
  margin-top: 102px;
  row-gap: 24px;
}

.selected-work-title {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.3;
}

.work-location {
  font-size: var(--type-xsmall);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.preview {
  margin: 8px 0 8px;
  font-size: var(--type-xsmall);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.preview a{
  text-decoration: none;
}

.preview a:hover{
  text-decoration: underline;
}

.desc,
.desc2 {
  font-weight: 300;
}

.desc {
  font-size: var(--type-medium);
  width: 100%;
  text-wrap: pretty;
}
.desc2 {
  margin-top:35px;
  font-size: var(--type-medium);
  width: 100%;
  text-wrap: pretty;
}

/* .work-location2 {
  grid-column: 1 / 8;
  font-size: var(--type-medium);
  font-weight: 400;
  color: var(--dim);
  max-width: 560px;
} */

.selected-work-image-wrap {
  margin-top:15px;
  margin-bottom:30px;
  width: 100%;
}

.selected-work-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.services {
  margin-top:400px;
  margin-left: 0;
}

.services .layout-grid {
  margin-top: 120px;
}

.services-grid {
  grid-column: 3 / 12;
  margin-left: 30%;
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 48px;
  column-gap: 4vw;
}

.services-grid article:first-child {
  transform: translate(5vh, -6vh);
}

.services-grid article:nth-child(2) {
  transform: translate(2.5vh, 0vh);
}

.services-grid article:nth-child(3) {
  transform: translate(0vh, 6vh);
}
/* 
.services-grid article:first-child p{
  
}

.services-grid article:nth-child(2) p{
  
}

.services-grid article:nth-child(3) p{
} */

.section-label {
  grid-column: 1 / 3;
  margin: 0 0 48px;
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.process-grid article {
  margin: 0;
}

.services-grid h2,
.process-grid h2 {
  font-size: var(--type-medium);
  font-weight: 500;
  /* letter-spacing: 0.1em; */
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.process {
  padding-top: 120px;
  margin-top: 240px;
  margin-bottom: 200px;
}

.process-grid {
  grid-column: 4 / 11;
  margin-left: -10vh;
  margin-top: 102px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 96px;
}

.process-grid article:nth-child(2) {
  transform: translateX(2.5vh);
}

.process-grid article:nth-child(3) {
  transform: translateX(5vh);
}

.process-grid article:nth-child(4) {
  transform: translateX(7.5vh);
}

.item-number {
  margin: 0 0 16px;
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact {
  margin-top: 300px;
  margin-bottom: 500px;
}

.contact .layout-grid {
  margin-top: 360px;
}

.contact h2 {
  grid-column: 4 / 9;
  margin-left: 3vh;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
}

.contact a {
  grid-column: 4 / 9;
  margin-left: 5vh;
  margin-top: 24px;
  font-size: var(--type-body);
  font-weight: 300;
  text-decoration: none;
  transition: opacity 0.7s ease-out, color 0.2s ease;
}

.contact a:hover {
  text-decoration: underline;
}

.contact a:first-of-type {
  margin-top: 40.8px;
}

.contact a + a {
  margin-top: 12px;
}

.site-footer {
  padding-bottom: 32px;
}

.site-footer p {
  margin: 0;
  font-size: var(--type-small);
  font-weight: 400;
  color: var(--dim);
}

.site-footer p:first-child {
  grid-column: 1 / 4;
}

.site-footer p:last-child {
  grid-column: 10 / 13;
  justify-self: end;
}

@media (max-width: 1152px) {
  .nav-brand {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    margin-top: 10vh;
    font-size: calc(var(--type-hero) * 0.6);
  }

  .nav-links {
    grid-column: 1 / 13;
    position: fixed;
    z-index: 20;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: min(35vw, 160px);
    flex-direction: column;
    gap: 16px;
    padding: 88px 24px 24px;
    background: rgb(248, 248, 248, 0.9);
    border: none;
    box-shadow: none;
    align-items: flex-start;
    text-align: right;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.35s ease;
  }

  .services-grid {
    grid-column: 3 / 12;
    margin-left: 0;
  }

  .site-header.nav-open .nav-links {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-header.nav-open .nav-links a {
    color: var(--dim);
  }

  .site-header.nav-open .nav-links a::after {
    clip-path: inset(100% 0 0 0);
  }

  .site-header.nav-open .nav-links a:hover {
    color: var(--dim);
  }
  
}

@media (max-width: 768px) {

  .selected-work {
    margin-top: 250px;
    margin-bottom: calc(200px * 0.4);
  }

  .services {
    margin-top: 200px;
    margin-bottom: calc(200px * 0.4);
  }

  .services .layout-grid {
    margin-top: calc(120px * 0.4);
  }

  .process {
    margin-top: 40px;
    margin-bottom: calc(200px * 0.4);
  }

  .contact {
    margin-top: 200px;
    margin-bottom: 200px;
  }

  .contact .layout-grid {
    margin-top: calc(360px * 0.35);
  }

  .layout-grid {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-brand {
    grid-column: 1 / 6;
  }

  .hero-title {
    margin-top: 15vh;
    font-size: clamp(38.4px, 8vw, 57.6px);
    grid-column: 1 / 13;
  }

  .hero-wordmark-wrap,
  .hero-body,
  .hero-cta,
  .hero-location,
  .approach p,
  .section-label,
  .services-grid,
  .process-grid,
  .contact h2,
  .contact a {
    grid-column: 1 / 13;
  }

  .hero-wordmark-wrap {
    margin-left: calc(3px - (49.6vw * 1.5 * var(--wordmark-first-letter-ratio)));
  }

  .hero-wordmark {
    width: calc(49.6vw * 1.5);
  }

  .hero-body,
  .hero-cta,
  .hero-location,
  .hero-title {
    margin-left: 0;
  }

  .hero-body {
    margin-top: 18px;
  }

  .hero-body,
  .services-grid p,
  .process-grid p,
  .contact a {
    font-size: calc(var(--type-body) * 0.85);
  }

  .services-grid h2,
  .process-grid h2 {
    font-size: calc(var(--type-medium) * 0.75);
  }
  

  .item-number {
    font-size: calc(var(--type-label) * 0.75);
  }


  .section-label {
    margin-bottom: 24px;
  }

  .selected-work-content { margin-top: calc(51px * 0.7); }
  .services-grid { margin-top: calc(51px * 0.7); }
  .process-grid { margin-top: calc(51px * 0.7); }


  .hero-title {
    margin-top: 15vh;
  }

  .selected-work-content {
    grid-column: 1 / 13;
  }

  .selected-work-title {
    font-size: clamp(14px, 8vw, 24px);
  }

  .selected-work-content > p:not(.work-location) {
    font-size: calc(var(--type-body) * 0.85);
  }

  .selected-work-content > p.preview {
    font-size: var(--type-xsmall);
  }

  .work-location {
    margin-top: calc(8px * 0.7);
  }

  .services-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
    margin-left: 0;
  }

  .services-grid article:first-child,
  .services-grid article:nth-child(2),
  .services-grid article:nth-child(3) {
    transform: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-left: 0;
  }

  .process-grid article:nth-child(2),
  .process-grid article:nth-child(3),
  .process-grid article:nth-child(4) {
    transform: none;
  }

  .site-footer p:first-child {
    grid-column: 1 / 7;
  }

  .site-footer p:last-child {
    grid-column: 7 / 13;
  }

  .contact h2 {
  margin-left: 0;
  }

  .contact a {
    margin-left: 0;
  }
}
