:root {
  --bg-deep: #000000;
  --bg-footer: #10283a;
  --text-main: #f5f7fb;
  --text-soft: rgba(245, 247, 251, 0.76);
  --text-muted: rgba(245, 247, 251, 0.56);
  --accent-green: #85c61f;
  --accent-green-hover: #9cdb35;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep) 78%, var(--bg-footer) 100%);
}

.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000000;
  z-index: 30;
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader img {
  width: 116px;
  height: auto;
  opacity: 0;
  transform: translateY(6px);
  animation: loaderLogoIn 0.55s ease forwards;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes loaderLogoIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  padding: 16px 32px;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.26);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.project-page,
.site-footer {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
}

.logo,
.site-nav a,
.header-contact,
.project-eyebrow,
.project-hero h1,
.project-section h2,
.project-contact,
.project-nav-meta,
.project-nav-title,
.site-footer p,
.footer-links a {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 92px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  color: rgba(245, 247, 251, 0.72);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.language-toggle,
.header-contact {
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.language-toggle {
  justify-content: center;
  min-width: 56px;
  color: var(--text-main);
  cursor: pointer;
}

.language-toggle,
.language-toggle-label {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
}

.language-toggle::before,
.header-contact::before,
.project-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08) 16%, rgba(255, 255, 255, 0) 44%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.language-toggle:hover::before,
.header-contact:hover::before,
.project-contact:hover::before {
  opacity: 1;
}

.language-toggle > span,
.header-contact > span,
.project-contact > span {
  position: relative;
  z-index: 1;
}

.header-contact-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.header-contact-icon img {
  width: 15px;
  height: 15px;
}

.site-nav a:hover,
.footer-links a:hover,
.footer-top:hover {
  color: #ffffff;
}

.project-page {
  padding: 76px 0 110px;
}

.project-hero-copy {
  margin-bottom: 34px;
}

.project-eyebrow {
  margin: 0 0 20px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.98;
  font-weight: 500;
}

.project-hero h1 span {
  color: var(--accent-green);
}

.project-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f4f2ed;
  box-shadow: var(--shadow);
}

.project-banner img {
  width: 100%;
  height: auto;
}

.project-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  width: min(100%, 1040px);
  margin: 34px auto 0;
  text-align: left;
}

.project-intro {
  flex: 1 1 auto;
  max-width: 760px;
  margin: 0;
  color: var(--text-main);
  line-height: 1.8;
}

.project-contact {
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 58px;
  padding: 14px 26px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--accent-green);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  flex-shrink: 0;
}

.project-contact:hover {
  background: var(--accent-green-hover);
}

.project-contact::after {
  content: "";
  position: absolute;
  top: -150%;
  left: -40%;
  width: 42%;
  height: 340%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 48%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(18deg) translateX(-240%);
  animation: buttonSweep 4.2s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes buttonSweep {
  0%,
  18% {
    transform: rotate(18deg) translateX(-240%);
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  48% {
    transform: rotate(18deg) translateX(430%);
    opacity: 0;
  }
  52% {
    transform: rotate(18deg) translateX(430%);
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  82% {
    transform: rotate(18deg) translateX(-240%);
    opacity: 0;
  }
  100% {
    transform: rotate(18deg) translateX(-240%);
    opacity: 0;
  }
}

.project-section {
  margin-top: 108px;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(260px, 0.54fr);
  gap: 84px;
  align-items: start;
  margin-top: 96px;
}

.project-copy-column {
  min-width: 0;
}

.project-visual-column {
  min-width: 0;
}

.project-visual-sticky {
  position: sticky;
  top: 124px;
}

.project-section h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 4.1rem);
  font-weight: 500;
  line-height: 1;
}

.project-story-stage {
  position: sticky;
  top: 124px;
  min-height: 400px;
}

.project-story-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.project-story-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.project-story-markers {
  padding-top: 16px;
}

.project-story-marker {
  height: 58vh;
}

.project-story-marker:last-child {
  height: 128vh;
}

.project-story-label {
  position: static;
  max-width: 680px;
}

.project-story-label p {
  margin: 0 0 18px;
  color: var(--accent-green);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-story-label-inline {
  margin-bottom: 30px;
  text-align: center;
}

.project-story-label-inline p {
  margin-bottom: 14px;
}

.project-story-body {
  max-width: 760px;
  min-width: 0;
}

.project-story-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.project-story-body p + p {
  margin-top: 22px;
}

.project-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text-main);
  line-height: 1.9;
}

.project-showcase {
  margin: 0;
  width: min(100%, 380px);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-showcase img {
  width: 100%;
  height: auto;
}

.project-pagination-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  gap: 34px;
  align-items: center;
  margin-top: 128px;
}

.project-pagination-spacer {
  min-height: 1px;
}

.project-nav-circle {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #061017;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 22px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.project-nav-arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.project-nav-prev .project-nav-arrow img {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}

.project-nav-next .project-nav-arrow img {
  width: 18px;
  height: 18px;
}

.project-nav-meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(6, 16, 23, 0.6);
}

.project-nav-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer {
  padding: 38px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  color: rgba(221, 215, 215, 0.86);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(221, 215, 215, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.footer-links a img {
  width: 16px;
  height: 16px;
}

.footer-links a + a {
  position: relative;
  padding-left: 22px;
}

.footer-links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
}

.footer-top {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
}

.footer-top img {
  width: 24px;
  height: 24px;
}

@media (max-width: 980px) {
  .site-header,
  .project-layout,
  .project-pagination-section {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer,
  .project-intro-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    align-self: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .header-actions {
    width: 100%;
    justify-self: start;
    justify-content: space-between;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .project-intro-row {
    gap: 28px;
  }

  .project-contact {
    width: 100%;
    max-width: 320px;
  }

  .project-pagination-section {
    justify-items: center;
  }

  .project-story-stage {
    position: static;
    min-height: auto;
  }

  .project-story-panel {
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .project-story-panel + .project-story-panel {
    margin-top: 56px;
  }

  .project-story-markers {
    display: none;
  }

  .project-visual-sticky {
    position: static;
  }

  .project-showcase {
    width: min(100%, 420px);
  }

  .project-nav-circle {
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 640px) {
  .project-page,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    padding: 14px 20px;
  }

  .project-page {
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .logo img {
    width: 84px;
  }

  .site-nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a,
  .header-contact,
  .language-toggle {
    font-size: 0.92rem;
  }

  .project-section {
    margin-top: 84px;
  }

  .project-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .project-intro {
    font-size: 1rem;
    line-height: 1.7;
  }

  .project-contact {
    max-width: none;
  }

  .footer-links a + a {
    padding-left: 0;
  }

  .footer-links a + a::before {
    display: none;
  }

  .project-nav-circle {
    width: 154px;
    height: 154px;
    padding: 18px;
  }
}
