:root {
  --paper: #f2ede4;
  --stone: #e6ddd0;
  --ink: #1d1b19;
  --steel-rust: #a55435;
  --line: rgba(29, 27, 25, 0.18);
  --glass: rgba(255, 255, 255, 0.62);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  background:
    radial-gradient(900px 380px at 90% 0%, rgba(165, 84, 53, 0.09), transparent 70%),
    radial-gradient(900px 360px at 0% 100%, rgba(95, 114, 126, 0.1), transparent 72%),
    linear-gradient(165deg, var(--paper) 0%, #efe8dc 40%, #e6ecef 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -16vh;
  right: -18vw;
  width: min(72vw, 980px);
  aspect-ratio: 1232 / 928;
  background: url('../site/optimized/oxide_haze_bg.jpg') center/cover no-repeat;
  opacity: 0.42;
  filter: blur(6px);
}

body::after {
  left: -16vw;
  bottom: -18vh;
  width: min(68vw, 930px);
  aspect-ratio: 1232 / 928;
  background: url('../site/optimized/steel_canvas_bg.jpg') center/cover no-repeat;
  opacity: 0.38;
  filter: blur(7px);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1200px, 93vw);
  margin: 1.2rem auto 0.8rem;
  padding-bottom: 1rem;
}

.lang-switch {
  position: fixed;
  top: 0.8rem;
  right: 1rem;
  z-index: 25;
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.24rem 0.42rem;
  border: 1px solid rgba(20, 18, 16, 0.1);
  border-radius: 999px;
  background: rgba(245, 239, 229, 0.5);
  backdrop-filter: blur(5px);
}

.lang-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: rgba(27, 24, 21, 0.32);
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 130ms ease, opacity 130ms ease;
  opacity: 0.62;
}

.lang-link:hover,
.lang-link:focus-visible {
  color: rgba(27, 24, 21, 0.7);
  opacity: 0.96;
  outline: none;
}

.lang-link.active {
  color: rgba(27, 24, 21, 0.95);
  opacity: 1;
}

.brand-center {
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.logo-wrap {
  width: 100%;
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(4px);
  clip-path: polygon(0 0, 98% 0, 100% 86%, 96% 100%, 0 100%, 0 7%);
}

.logo-wrap img {
  width: 100%;
  max-height: 220px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.logo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 1.2vw, 1rem);
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.02) 20%, rgba(8, 7, 6, 0.42) 100%),
    linear-gradient(90deg, rgba(37, 30, 26, 0.28) 0%, rgba(23, 20, 18, 0.08) 100%);
  pointer-events: none;
}

.logo-title-block {
  width: 100%;
  text-align: center;
}

.logo-word {
  display: inline-flex;
  width: max-content;
  justify-content: center;
}

.logo-title {
  margin: 0;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  color: #f0e6d8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 8.6vw, 5.8rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.52),
    0 0 1px rgba(230, 208, 181, 0.4);
}

.im-gap {
  display: inline-block;
  margin-left: 0.085em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.card {
  grid-column: span 4;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(2px);
  clip-path: polygon(8% 0, 98% 10%, 92% 100%, 10% 94%, 0 22%);
}

.card:nth-child(4n + 2) {
  clip-path: polygon(11% 0, 100% 14%, 88% 100%, 3% 92%, 0 26%);
}

.card:nth-child(4n + 3) {
  clip-path: polygon(5% 6%, 94% 0, 100% 84%, 14% 100%, 0 30%);
}

.card:nth-child(4n + 4) {
  clip-path: polygon(0 10%, 90% 0, 100% 76%, 24% 100%, 0 44%);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

footer {
  position: relative;
  z-index: 1;
  width: min(1200px, 93vw);
  margin: 0 auto 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.foot-inner {
  width: min(420px, 86vw);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.3rem;
}

footer a {
  color: #f1ddc4;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.84);
  display: none;
  place-items: center;
  z-index: 20;
  padding: 2vw;
  cursor: default;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  width: min(96vw, 1320px);
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
}

.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(74px, 12vw, 170px);
  border: 0;
  background: rgba(255, 255, 255, 0);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  cursor: pointer;
  transition: background 160ms ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

@media (max-width: 920px) {
  .card {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .lang-switch {
    top: 0.62rem;
    right: 0.68rem;
    gap: 0.36rem;
  }

  .lang-link {
    font-size: 0.62rem;
  }

  .card {
    grid-column: span 12;
  }
}
