:root {
  --black: #000;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
}

button {
  font: inherit;
}

.intro {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 clamp(20px, 5vw, 82px);
  background: var(--black);
}

.hero-logo {
  position: absolute;
  top: clamp(28px, 5vh, 58px);
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: clamp(150px, 15vw, 245px);
  height: auto;
}

.language-switcher {
  position: absolute;
  top: clamp(32px, 5.2vh, 62px);
  right: clamp(22px, 5vw, 78px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.28);
}

.language-option {
  position: relative;
  border: 0;
  padding: 5px 0 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.language-option::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #c51a0c;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
  color: var(--white);
  outline: none;
}

.language-option.is-active::after {
  transform: scaleX(1);
}

.hero-message {
  width: min(92vw, 1120px);
  display: grid;
  justify-items: center;
  gap: clamp(26px, 4.5vh, 50px);
  transform: translateY(3vh);
}

.tagline {
  margin: 0;
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(56px, 10.2vw, 166px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0.025em;
}

.tagline span {
  display: block;
}


html[lang="es"] .tagline {
  font-size: clamp(44px, 7.6vw, 122px);
  line-height: 0.98;
  letter-spacing: 0.018em;
}

html[lang="uk"] .tagline {
  font-size: clamp(40px, 6.9vw, 108px);
  line-height: 1;
  letter-spacing: 0.012em;
}

.hero-accent {
  width: clamp(72px, 9vw, 138px);
  height: 2px;
  background: #c51a0c;
}

/* Scripture section: isolated styles so the existing hero and gallery remain unchanged. */
.scripture {
  min-height: 100svh;
  padding: clamp(72px, 10vh, 132px) clamp(20px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.scripture-quote {
  width: min(100%, 900px);
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(19px, 2.15vw, 34px);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scripture-quote span {
  display: block;
}

.scripture-accent {
  width: clamp(72px, 9vw, 108px);
  height: 1px;
  margin-top: clamp(32px, 5vh, 54px);
  background: #c51a0c;
}

.scripture-reference {
  margin: clamp(22px, 3vh, 34px) 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.gallery-title {
  position: relative;
  margin: 0 0 clamp(38px, 5vw, 68px);
  padding-bottom: 22px;
  color: var(--black);
  text-align: center;
  font-size: clamp(17px, 1.7vw, 25px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gallery-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: #c51a0c;
  transform: translateX(-50%);
}

.gallery {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 90px) clamp(14px, 4vw, 58px);
}

.work {
  margin: 0 0 clamp(48px, 7vw, 100px);
}

.work:last-child {
  margin-bottom: 0;
}

.work-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.work img {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  min-height: 42svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 20px);
  overflow: hidden;
  padding: clamp(28px, 5vh, 56px) 20px;
  background: var(--black);
}

.footer img {
  width: min(58vw, 740px);
  max-height: 31svh;
  object-fit: cover;
  object-position: center;
}

.footer-contact {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #c51a0c;
  outline: none;
}

.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.985);
  color: var(--white);
}

.viewer::backdrop {
  background: rgba(0, 0, 0, 0.985);
}

.viewer[open] {
  display: grid;
  place-items: center;
}

.viewer figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 34px clamp(28px, 6vw, 96px) 18px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
}

.viewer-image {
  max-width: 100%;
  max-height: calc(100dvh - 72px);
  object-fit: contain;
  user-select: none;
}

.viewer-number {
  min-height: 16px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.viewer-close,
.viewer-prev,
.viewer-next {
  position: fixed;
  z-index: 2;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.viewer-close {
  top: max(6px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  padding: 8px 14px;
  font-size: 34px;
  line-height: 1;
}

.viewer-prev,
.viewer-next {
  top: 50%;
  transform: translateY(-50%);
  padding: 24px 12px;
  font-size: 42px;
  line-height: 1;
}

.viewer-prev {
  left: max(0px, env(safe-area-inset-left));
}

.viewer-next {
  right: max(0px, env(safe-area-inset-right));
}

.viewer-close:hover,
.viewer-prev:hover,
.viewer-next:hover,
.viewer-close:focus-visible,
.viewer-prev:focus-visible,
.viewer-next:focus-visible {
  color: var(--white);
  outline: none;
}

@media (max-width: 700px) {
  .intro {
    min-height: 100svh;
    padding: 0 16px;
  }

  .hero-logo {
    top: max(22px, env(safe-area-inset-top));
    width: clamp(132px, 42vw, 182px);
  }

  .language-switcher {
    top: max(74px, calc(env(safe-area-inset-top) + 58px));
    right: 50%;
    transform: translateX(50%);
    gap: 12px;
  }

  .language-option {
    font-size: 12px;
  }

  .hero-message {
    width: 96vw;
    transform: translateY(4vh);
    gap: 28px;
  }

  .tagline {
    max-width: 94vw;
    font-size: clamp(46px, 16vw, 78px);
    line-height: 0.98;
    letter-spacing: 0.01em;
  }


  html[lang="es"] .tagline {
    font-size: clamp(34px, 11.5vw, 58px);
    line-height: 1.02;
  }

  html[lang="uk"] .tagline {
    font-size: clamp(31px, 10.2vw, 52px);
    line-height: 1.04;
  }

  .gallery {
    width: 100%;
    padding: 34px 0;
  }

  .work {
    margin-bottom: 42px;
  }

  .footer {
    min-height: 34svh;
    padding: 28px 18px 34px;
  }

  .footer img {
    width: 68vw;
    max-height: 25svh;
  }

  .footer-contact {
    max-width: 460px;
    font-size: 13px;
  }

  .viewer figure {
    padding: 28px 12px 14px;
  }

  .viewer-prev,
  .viewer-next {
    font-size: 32px;
    padding-inline: 7px;
  }

  .scripture {
    min-height: 100svh;
    padding: 72px 17px;
  }

  .scripture-quote {
    width: 100%;
    font-size: clamp(15px, 4.15vw, 19px);
    line-height: 1.62;
    letter-spacing: 0.075em;
  }

  .scripture-accent {
    margin-top: 34px;
  }

  .scripture-reference {
    margin-top: 24px;
    font-size: 10px;
    letter-spacing: 0.25em;
  }

  .gallery-title {
    margin-bottom: 34px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


.rk-home {
  position: fixed;
  top: clamp(28px, 5vh, 58px);
  left: clamp(24px, 4vw, 48px);
  z-index: 1000;
  display: block;
  line-height: 0;
  cursor: pointer;
}

.rk-logo {
  display: block;
  width: 34px;
  height: auto;
}


/* Project and author section. All selectors are scoped to this new block. */
.project-story {
  background: var(--black);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: clamp(64px, 8vw, 112px) clamp(22px, 5vw, 80px);
}

.project-story-inner {
  width: min(100%, 760px);
  margin: 0 auto;
}

.story-block {
  margin: 0;
}

.story-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(22px, 2.15vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-accent {
  width: 42px;
  height: 2px;
  margin: 16px 0 clamp(24px, 3vw, 34px);
  background: #c51a0c;
}

.story-copy {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.015em;
}

.story-copy p {
  margin: 0 0 0.55em;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-highlight {
  color: #d2a84f;
}

.story-divider {
  height: 1px;
  margin: clamp(42px, 6vw, 64px) 0;
  background: rgba(255, 255, 255, 0.18);
}

.story-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(26px, 4vw, 38px);
  padding: 17px 24px;
  border: 1px solid #c51a0c;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.story-button:hover,
.story-button:focus-visible {
  background: #c51a0c;
  color: var(--white);
  outline: none;
}

@media (max-width: 640px) {
  .project-story {
    padding-left: 22px;
    padding-right: 22px;
  }

  .story-title {
    letter-spacing: 0.1em;
  }

  .story-copy {
    line-height: 1.62;
  }

  .story-button {
    width: 100%;
    justify-content: center;
    gap: 14px;
    padding-left: 14px;
    padding-right: 14px;
    text-align: center;
  }
}
