:root {
  --overlay-dark: rgba(10, 10, 10, 0.55);
  --overlay-soft: rgba(10, 10, 10, 0.35);
  --nav-color: #ffffff;
}

@font-face {
  font-family: "Alte Haas Grotesk";
  src: local("Alte Haas Grotesk"), local("AlteHaasGrotesk Regular"),
    url("../../dist/alte_haas_grotesk/AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alte Haas Grotesk";
  src: local("Alte Haas Grotesk Bold"), local("AlteHaasGrotesk Bold"),
    url("../../dist/alte_haas_grotesk/AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@keyframes animate__fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 120px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate__animated {
  opacity: 0;
  animation-duration: 1.1s;
  animation-fill-mode: both;
  animation-play-state: paused;
}

.animate__fadeInUp {
  animation-name: animate__fadeInUp;
}

.animate__animated.is-visible {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .animate__animated {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: "Alte Haas Grotesk", Arial, sans-serif;
  background: #ffffff;
  color: #f4f4f4;
}

h1 {
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.2px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: white;
}

.slider {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: url("https://optim.tildacdn.com/tild3736-3336-4663-a435-646433653034/-/format/webp/013_DSCF6037-min.jpg.webp")
    center/cover no-repeat;
}
.side-nav a.active-a {
  color: #B8B6B2 !important;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(100%);
  animation: slideShow 20s infinite linear;
  will-change: transform, opacity;
}

.slide:nth-child(1) {
  background-image: url("https://optim.tildacdn.com/tild6163-6665-4935-a631-623339323932/-/format/webp/_quadro_hr-6-min.jpg.webp");
}

.slide:nth-child(2) {
  background-image: url("https://optim.tildacdn.com/tild3736-3336-4663-a435-646433653034/-/format/webp/013_DSCF6037-min.jpg.webp");
  animation-delay: 4s;
}

.slide:nth-child(3) {
  background-image: url("https://optim.tildacdn.com/tild3736-3336-4663-a435-646433653034/-/format/webp/013_DSCF6037-min.jpg.webp");
  animation-delay: 8s;
}

.slide:nth-child(4) {
  background-image: url("https://optim.tildacdn.com/tild6163-6665-4935-a631-623339323932/-/format/webp/_quadro_hr-6-min.jpg.webp");
  animation-delay: 12s;
}

.slide:nth-child(5) {
  background-image: url("https://optim.tildacdn.com/tild3736-3336-4663-a435-646433653034/-/format/webp/013_DSCF6037-min.jpg.webp");
  animation-delay: 16s;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--overlay-dark), var(--overlay-soft), var(--overlay-dark));
  pointer-events: none;
  z-index: 1;
}

.side-nav {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  letter-spacing: 1px;
}

.side-nav a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 300;
  transition: color 0.2s ease, transform 0.2s ease;
}

.side-nav a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.side-nav a:active {
  color: #d0d0d0;
}

body.light-bg .side-nav a {
  color: #111111;
}

body.light-bg .side-nav a:hover {
  color: #000000;
}

.language_switch {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 9999;
  display: flex;
  gap: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.language_switch a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s ease;
}

.language_switch a:hover {
  color: #d0d0d0;
}

body.light-bg .language_switch a {
  color: #111111;
}

body.light-bg .language_switch a:hover {
  color: #000000;
}

.language_switch__active {
  font-weight: 400;
}

.projects-page {
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
}

.services-page {
  background: #ffffff;
  color: #111111;
}

.services-page-content {
  padding: 2rem clamp(22px, 12vw, 160px) clamp(140px, 14vw, 200px);
  padding-left: max(var(--side-nav-offset, 0px), clamp(22px, 12vw, 160px));
  display: flex;
  flex-direction: column;
  background: white;
}

.services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.services-tabs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.services-tab {
  display: none;
}

.services-tab.active {
  display: block;
}

.services-tab h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.pill-btn {
  background: none;
  border: none;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 5px 0;
  transition: color 0.2s ease;
  color: #bfbfbf;
  font-family: "Alte Haas Grotesk", Arial, sans-serif;
  line-height: 1.2;
  font-weight: 400;
  background-position: center center;
  border-color: transparent;
  border-style: solid;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
}

.pill-btn.active,
.pill-btn:hover {
  color: #000000;
}

.services-header {
  max-width: 680px;
}

.services-header h1 {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.services-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4a4a;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
}

.service-card {
  padding-bottom: 18px;
  border-bottom: 1px solid #e6e6e6;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444444;
}

.services-process {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-process h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.process-step {
  border-left: 1px solid #e5e5e5;
  padding-left: 16px;
}

.process-step h4 {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 500;
}

.process-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555555;
}

.step-index {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  color: #8a8a8a;
}

.services-page-content h1 {
  margin: 0 0 30px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.about-page {
  background: #ffffff;
  color: #111111;
}

.about-page-content {
  display: grid;
  background: white;
  grid-template-columns: minmax(340px, 1.2fr) minmax(260px, 1fr);
  gap: clamp(32px, 8vw, 80px);
  padding: 2rem clamp(22px, 12vw, 160px) clamp(140px, 14vw, 200px);
  padding-left: max(var(--side-nav-offset, 0px), clamp(22px, 12vw, 160px));
  align-items: start;
}

.about-page-text h1 {
  margin: 0 0 28px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.about-page-text {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.1px;
}

.about-meta {
  margin: 0 0 6px;
  font-size: 14px;
  color: #3a3a3a;
}

.about-long {
  margin-top: 22px;
  line-height: 1.2;
  font-size: 15px;
}

.about-page-image img {
  width: 85%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.projects {
  padding: 2rem clamp(22px, 12vw, 160px) clamp(140px, 14vw, 200px);
  padding-left: max(var(--side-nav-offset, 0px), clamp(22px, 12vw, 160px));
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: #ffffff;
}

.projects-header {
  max-width: 780px;
}

.projects-header h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.filter-btn {
  background: none;
  text-transform: uppercase;
  border: none;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 5px 0;
  transition: color 0.2s ease;
  color: #bfbfbf;
  font-family: "Alte Haas Grotesk", Arial, sans-serif;
  line-height: 1.2;
  font-weight: 400;
  background-position: center center;
  border-color: transparent;
  border-style: solid;
  margin-right: 25px;
}

.filter-btn.active {
  color: #000000;
}

.projects-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4a4a;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.2vw, 32px);
}

.project-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-media::before {
  content: "view project";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
  opacity: 0.96;
}

.project-card:hover .project-media::after {
  opacity: 1;
}

.project-card:hover .project-media::before {
  opacity: 1;
  transform: translateY(0);
}

.project-card figcaption {
  font-size: 15px;
  letter-spacing: 0.4px;
  color: #7a7a7a;
  text-transform: uppercase;
  text-align: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  text-align: center;
}

.hero-logo {
  width: 35rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.hero-text {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-location {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.stacked {
  position: relative;
  min-height: 160vh;
  background:#fff;
  color:#111;
  overflow: visible;
  z-index: 2;
}


.statement-layer{
  position: sticky;
  top: 25vh;
  height: 50vh;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 1;              /* <<< era 2 */
  pointer-events:none;
    background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.95),
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.95)
  );
}


.statement-layer p{
  width: 33%;
  text-align:center;
  color:#111;
  font-size: 15px;
  line-height: 18px;

}

/* 3) despre (About) “deasupra”, cu fundal clar */
.about{
  margin-top: -40vh;
  position: relative;
  z-index: 3;              /* <<< mai mare decât statement */
  background:#fff;         /* <<< fundal clar */
  color:#111;
  padding: clamp(72px, 10vw, 140px) clamp(22px, 12vw, 160px);
  padding-left: max(var(--side-nav-offset, 0px), clamp(22px, 12vw, 160px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 8vw, 96px);
  transform: translateY(var(--about-shift, 0px));
  will-change: transform;
}

.about-title {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.about-body {
  max-width: 550px;
  font-size: 15px;
  width: 442px;
  line-height: 18px;
  letter-spacing: 0.1px;
  font-weight: 400;
}

.about-body p {
  margin: 0 0 24px;
}

.about-link {
  color: #7a7a7a;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.about-link:hover {
  color: #3a3a3a;
}

.press {
  background: #ffffff;
  color: #111111;
  padding: clamp(90px, 12vw, 160px) clamp(22px, 12vw, 160px) clamp(120px, 14vw, 200px);
  padding-left: max(var(--side-nav-offset, 0px), clamp(22px, 12vw, 160px));
  position: relative;
  z-index: 9;
}

.press-title {
  margin: 0 0 28px;
  font-size: clamp(24px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.press-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.press-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f2f2f2;
  z-index: 0;
}

.press-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
  z-index: 0;
}

.press-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.press-media::before {
  content: "learn more";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  font-size: 27px;
  letter-spacing: 0.6px;
  text-transform: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.press-card:hover .press-media img {
  transform: scale(1.05);
  opacity: 0.96;
}

.press-card:hover .press-media::after {
  opacity: 1;
}

.press-card:hover .press-media::before {
  opacity: 1;
  transform: translateY(0);
}

.press-card figcaption {
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #7c7c7c;
}


.footer{
  position: sticky;
  bottom: 0;
  z-index: -1;
  background: white;
}


.footer img {
  width: 100%;
  height: auto;
  opacity: 0.1;
}

.footer-link {
  margin: 16px 0 24px;
  color: #111111;
  text-decoration: none;
  font-size: 21px;
  letter-spacing: 1px;
  padding-left: 1rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #555555;
}

@keyframes slideShow {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  20% {
    opacity: 1;
    transform: translateX(0);
  }
  24% {
    opacity: 0;
    transform: translateX(-100%);
  }
  24.01% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@media (max-width: 790px) {
  .side-nav {
    top: 15px;
    left: 15px;
    gap: 10px;
  }

  .side-nav a {
    font-size: 16px;
  }
  .stacked{
    min-height: 0;
  }
  .hero-content {
    padding: 0 18px;
    gap: 18px;
  }

  .hero-text {
    max-width: 520px;
  }

  .stacked {
    display: flex;
    flex-direction: column;
  }

  .statement-layer {
    position: static;
    top: auto;
    height: auto;
    min-height: 0;
    order: 2;
  }

  .about {
    order: 1;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 64px 20px 0 80px;
    margin-top: 0;
    padding-left: max(var(--side-nav-offset, 0px), 20px);
    transform: none;
  }

  .statement-layer {
    min-height: 32vh;
    padding: 64px 20px 0 80px;
  }

  .press {
    padding: 72px 20px 100px;
    padding-left: max(var(--side-nav-offset, 0px), 20px);
  }

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

  .projects {
    padding: 72px 20px 120px;
    gap: 28px;
    padding-left: max(var(--side-nav-offset, 0px), 20px);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .services-page-content {
    padding: 72px 20px 120px;
    gap: 36px;
    padding-left: max(var(--side-nav-offset, 0px), 20px);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }


  .about-page-content {
    grid-template-columns: 1fr;
    padding-left: max(var(--side-nav-offset, 0px), 20px);
  }

  .about-page-image {
    order: 2;
  }
}
@media only screen and (max-width: 950px) {
  .about-page-image img {
     width: 100%;
     margin: 0;
  }
  

}
@media (max-width: 540px) {
  .press-grid {
    grid-template-columns: 1fr;
  }

  .press-title {
    margin-bottom: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
