/* Section — Architecture (split layout, static copy) */

.architecture {
  --arch-bg: #f3efe6;
  --arch-text: #2b2e1d;
  --arch-muted: rgba(43, 46, 29, 0.72);
  --arch-font-display: var(--font-primary, "Open Sans", Arial, sans-serif);

  position: relative;
  width: 100%;
  background: var(--arch-bg);
  color: var(--arch-text);
}

.architecture__pin {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.architecture__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.48fr);
  height: 100%;
  min-height: inherit;
  direction: ltr;
}

.architecture__top {
  position: absolute;
  top: clamp(1.15rem, 2.8vh, 1.75rem);
  left: clamp(1.25rem, 3.5vw, 2.75rem);
  right: clamp(1.25rem, 3.5vw, 2.75rem);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  direction: ltr;
  pointer-events: none;
  mix-blend-mode: difference;
}

.architecture__kicker {
  flex-shrink: 0;
  font-family: var(--arch-font-display);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  white-space: nowrap;
  color: rgba(0, 0, 0, 1);
}

.architecture__top-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 1);
}

.architecture__visual {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background-color: var(--arch-bg);
  background-image: url("../assets/Gallery/remez15_05.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform-origin: center center;
  will-change: transform, clip-path;
}

.architecture__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
  padding: clamp(3.5rem, 8vh, 5rem) clamp(2rem, 4.5vw, 4rem);
  background-color: rgba(80, 79, 68, 1);
  direction: rtl;
  box-sizing: border-box;
  overflow: hidden;
  will-change: clip-path;
}

.architecture__panel > .mask-reveal {
  width: 100%;
  max-width: min(34rem, 100%);
  margin-inline: auto;
}

.architecture__story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.2vh, 1.35rem);
  width: 100%;
  margin: 0;
  text-align: center;
  color: rgba(230, 226, 217, 1);
}

.architecture__line {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: clamp(1.05rem, 1.75vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(255, 255, 255, 1);
}

.architecture__line--title {
  font-size: clamp(2.15rem, 4.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.015em;
  color: rgba(172, 138, 101, 1);
}

@media (max-width: 900px) {
  .architecture__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(44vh, 1fr);
  }

  .architecture__panel {
    order: 1;
    padding: clamp(2.5rem, 6vh, 3.5rem) clamp(1.25rem, 4vw, 2rem);
  }

  .architecture__visual {
    order: 2;
    min-height: clamp(280px, 40vh, 440px);
  }

  .architecture__line {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .architecture__line--title {
    font-size: clamp(1.75rem, 8.5vw, 2.5rem);
  }

  .architecture__top {
    top: calc(clamp(1rem, 2.5vh, 1.5rem) + var(--safe-top));
    left: calc(clamp(1rem, 3vw, 1.5rem) + var(--safe-left));
    right: calc(clamp(1rem, 3vw, 1.5rem) + var(--safe-right));
  }

  .architecture__kicker {
    white-space: normal;
    max-width: 10rem;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .architecture__panel {
    padding-block: clamp(2rem, 5vh, 2.75rem);
  }

  .architecture__visual {
    min-height: clamp(220px, 34vh, 320px);
  }

  .architecture__line--title {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }
}

.architecture__story,
.architecture__kicker,
.architecture__top-line {
  will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: reduce) {
  .architecture.is-init .architecture__reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .architecture__panel,
  .architecture__visual {
    clip-path: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
