*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #191a1b;
  --muted: #5a5d5f;
  --paper: #f4f1ea;
  --paper-2: #f8f6f1;
  --line: #dcd6cb;
  --gold: #b9925b;
  --gold-dark: #9d793f;
  --dark: #151515;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(185, 146, 91, .08), transparent 26rem),
    var(--paper);
  font-size: 14px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: min(1230px, calc(100% - 88px));
  margin-inline: auto;
}

.topbar {
  height: 43px;
  background: #121212;
  color: #f5f2ec;
  font-size: 13px;
}

.topbar__inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 600;
}

.lang-btn {
  padding: 2px 4px;
  border: 0;
  background: none;
  color: rgba(255,255,255,.6);
  font: inherit;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .22s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.is-active {
  color: var(--gold);
}

.lang-sep {
  color: rgba(255,255,255,.35);
}

.btn-label {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  margin-top: 0;
}

.center-title i {
  font-style: normal;
}

.site-header {
  height: 104px;
  background: rgba(248, 247, 243, .95);
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 20;
}

.nav-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 19px;
  letter-spacing: .02em;
}

.brand__mark {
  width: 61px;
  height: 61px;
  color: #101010;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform .45s ease, color .45s ease;
}

.brand:hover .brand__mark {
  color: var(--gold-dark);
  transform: rotate(18deg) scale(1.04);
}

.brand strong {
  display: block;
  font-size: 29px;
  line-height: 1;
  font-weight: 800;
}

.brand em {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  color: #151515;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 47px;
  font-size: 13px;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding-top: 4px;
  transition: color .25s ease;
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -24px;
  height: 2px;
  background: var(--gold);
  transition: right .32s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-dark);
}

.main-nav a.active::before,
.main-nav a:hover::before {
  right: 0;
}

/* ===== Hero slider (clean rebuild) =====================================
   Every slide is stacked in the same box. Exactly one slide carries
   .is-current: it is the only one that is visible AND laid out — all others
   are opacity:0 + visibility:hidden so nothing can bleed through. A short
   opacity fade handles the transition; no transforms are left lingering. */
.slider {
  position: relative;
  height: 445px;
  color: #fff;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}

.slider__list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slider__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity .6s ease, visibility 0s linear .6s;
}

.slider__item.is-current {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity .6s ease, visibility 0s linear 0s;
}

.slider__item:not(.is-bg-loaded) {
  background-image: linear-gradient(115deg, #141414 0%, #24201a 45%, #0d0d0d 100%);
}

.slider__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.69) 0%, rgba(0,0,0,.58) 24%, rgba(0,0,0,.23) 48%, rgba(0,0,0,.13) 100%),
    linear-gradient(180deg, rgba(0,0,0,.22), transparent 45%);
}

.slider__caption {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 10px;
}

/* Only the current slide's caption is ever painted. Non-current captions are
   pulled out of paint immediately (not after the fade delay), so two caption
   layers can never composite on top of each other during a transition. */
.slider__item:not(.is-current) .slider__caption {
  visibility: hidden;
}

/* Slide 2: caption sits on the right, mirroring the darkening mask so text
   stays readable over the image instead of the image's own subject. */
.slider__item--right::before {
  background:
    linear-gradient(270deg, rgba(0,0,0,.69) 0%, rgba(0,0,0,.58) 24%, rgba(0,0,0,.23) 48%, rgba(0,0,0,.13) 100%),
    linear-gradient(180deg, rgba(0,0,0,.22), transparent 45%);
}

.slider__item--right .slider__caption {
  align-items: flex-end;
  text-align: right;
}

.slider__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.15);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.slider__caption h1 {
  margin: 0;
  max-width: 610px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5vw, 61px);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.slider__caption p {
  margin: 22px 0 25px;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 700;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.95);
}

/* No caption entrance animation: the text is painted once, in its final
   position, fully opaque. With nothing transforming or fading, the browser has
   no earlier frame to leave behind as a ghost. */

.button {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  min-height: 52px;
  padding: 0 25px;
  background: #bc965c;
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .28s ease, background-color .28s ease, box-shadow .28s ease;
}

.button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.button:hover {
  background: #c9a267;
}

.button span,
.ghost-button span {
  font-size: 31px;
  line-height: 0;
  font-weight: 300;
  margin-top: -2px;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 43px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .25s ease;
}

.slider__arrow:hover {
  background: rgba(185,146,91,.82);
}

.slider__arrow--prev { left: 22px; }
.slider__arrow--next { right: 22px; }

.slider__dots {
  position: absolute;
  left: 50%;
  bottom: 19px;
  z-index: 6;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slider__dots button {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.44);
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}

.slider__dots button.is-current {
  width: 52px;
  background: var(--gold);
}

.benefits {
  background: #f6f3ed;
  border-bottom: 1px solid var(--line);
}

.benefits__grid {
  height: 142px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  align-items: center;
}

.benefits article {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.benefits svg {
  width: 50px;
  height: 50px;
  color: var(--gold);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  transition: transform .5s ease, color .5s ease;
}

.benefits article:hover svg,
.capability-grid article:hover svg {
  color: var(--gold-dark);
  transform: scale(1.08) rotate(7deg);
}

.benefits h3 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 900;
}

.benefits p {
  margin: 0;
  color: #252525;
  font-size: 13px;
  line-height: 1.7;
}

.section {
  border-bottom: 1px solid var(--line);
}

.about {
  padding: 34px 0 35px;
  background: linear-gradient(180deg, #f8f6f1, #f2eee6);
}

.about__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 55px;
  align-items: start;
}

.about__copy h2,
.center-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}

.short-line {
  display: block;
  width: 42px;
  height: 2px;
  margin: 18px 0 27px;
  background: var(--gold);
  transform-origin: left center;
}

.reveal.is-visible .short-line,
.short-line.is-visible {
  animation: lineGrow .72s ease both;
}

.about__copy p {
  margin: 0 0 17px;
  color: #222;
  font-size: 13.5px;
  line-height: 1.6;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 37px;
  margin-top: 2px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 13px;
  background: rgba(255,255,255,.28);
  transition: transform .28s ease, background-color .28s ease, box-shadow .28s ease;
}

.ghost-button:hover {
  background: rgba(255,255,255,.65);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.facility-grid img,
.application-grid img,
.journal-img img,
.qr img {
  background: linear-gradient(110deg, rgba(0,0,0,.08), rgba(255,255,255,.32), rgba(0,0,0,.08));
  background-size: 220% 100%;
  animation: shimmer 1.15s linear infinite;
}

.lazy-img.is-loaded {
  animation: none;
  background: transparent;
}

.facility-grid img {
  width: 100%;
  height: 281px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .55s ease, filter .55s ease, box-shadow .55s ease;
}

.facility-grid img:hover,
.application-grid img:hover {
  filter: contrast(1.04) saturate(1.05);
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}

.applications {
  padding: 0 0 31px;
  background: #f4f1ea;
}

.center-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  text-align: center;
  white-space: nowrap;
}

.center-title span {
  height: 1px;
  background: var(--line);
}

.application-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.application-grid img {
  width: 100%;
  height: 239px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .55s ease, filter .55s ease, box-shadow .55s ease;
}

.capabilities {
  padding: 0 0 25px;
  background: #f8f6f1;
}

.capability-grid {
  margin-top: 21px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid rgba(0,0,0,.03);
}

.capability-grid article {
  min-height: 122px;
  padding: 12px 12px 0;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background-color .28s ease, transform .28s ease;
}

.capability-grid article:hover {
  background: rgba(185,146,91,.08);
  transform: translateY(-2px);
}

.capability-grid article:last-child {
  border-right: 0;
}

.capability-grid svg {
  width: 39px;
  height: 39px;
  color: #1e1f1f;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  margin-bottom: 8px;
  transition: transform .5s ease, color .5s ease;
}

.capability-grid h3 {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.capability-grid p {
  margin: 0;
  color: #2b2b2b;
  font-size: 12px;
  line-height: 1.35;
}

.journal {
  padding: 0 0 14px;
  background: #f4f1ea;
}

.journal-grid {
  margin-top: 21px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.journal-card {
  background: #f8f6f1;
  border: 1px solid var(--line);
  min-height: 219px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.journal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(185,146,91,.55);
  box-shadow: 0 17px 34px rgba(0,0,0,.14);
}

.journal-img {
  position: relative;
  height: 83px;
  overflow: hidden;
}

.journal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.journal-card:hover .journal-img img {
  transform: scale(1.08);
}

.journal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.05));
}

.journal-img span {
  position: absolute;
  left: 18px;
  bottom: 13px;
  z-index: 1;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.journal-body {
  padding: 16px 18px 12px;
}

.journal-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
}

.journal-body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #2c2d2e;
}

.journal-body time {
  font-size: 12px;
  color: #45484a;
}

.footer {
  color: rgba(255,255,255,.84);
  background: #171717;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.35fr .8fr .8fr 1.45fr;
  gap: 38px;
  padding: 28px 0 22px;
}

.footer-grid section {
  min-height: 126px;
  padding-right: 34px;
  border-right: 1px solid rgba(255,255,255,.25);
}

.footer-grid section:last-child {
  border-right: 0;
  padding-right: 0;
}

.footer h3 {
  margin: 0 0 13px;
  color: white;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.footer p,
.footer li,
.footer a {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.52;
  color: rgba(255,255,255,.75);
}

.footer a {
  display: block;
  margin-bottom: 3px;
}

.contact-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.qr img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  margin-bottom: 6px;
}

.qr p {
  margin: 0;
  color: rgba(255,255,255,.8);
}

.footer-bottom {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-bottom a {
  color: rgba(255,255,255,.65);
}

.footer-bottom i {
  margin: 0 20px;
  font-style: normal;
  color: rgba(255,255,255,.4);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: var(--gold);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  transition: opacity .3s ease, transform .3s ease, background-color .25s ease, visibility .3s ease;
}

.back-to-top span {
  display: block;
  margin-top: -1px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

@supports (bottom: env(safe-area-inset-bottom)) {
  .back-to-top {
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
  }
}

@media (max-width: 680px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.19,1,.22,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.benefits .reveal:nth-child(2),
.facility-grid img:nth-child(2),
.application-grid img:nth-child(2),
.capability-grid .reveal:nth-child(2),
.journal-card:nth-child(2) { transition-delay: .08s; }

.benefits .reveal:nth-child(3),
.facility-grid img:nth-child(3),
.application-grid img:nth-child(3),
.capability-grid .reveal:nth-child(3),
.journal-card:nth-child(3) { transition-delay: .16s; }

.benefits .reveal:nth-child(4),
.facility-grid img:nth-child(4),
.application-grid img:nth-child(4),
.capability-grid .reveal:nth-child(4),
.journal-card:nth-child(4) { transition-delay: .24s; }

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .wrap {
    width: min(100% - 40px, 900px);
  }

  .site-header {
    height: auto;
  }

  .nav-row {
    padding: 22px 0;
    flex-direction: column;
    gap: 20px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 19px 28px;
  }

  .main-nav a::before {
    bottom: -8px;
  }

  .benefits__grid,
  .about__grid,
  .application-grid,
  .journal-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits__grid {
    height: auto;
    padding: 26px 0;
  }

  .about__grid {
    gap: 32px;
  }

  .capability-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .capability-grid article:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 30px);
  }

  .topbar {
    display: none;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
  }

  .main-nav {
    font-size: 12px;
  }

  .slider {
    height: 500px;
  }

  .slider__item {
    background-position: 60% center;
  }

  .slider__caption h1 {
    font-size: 42px;
  }

  .slider__caption p {
    font-size: 16px;
  }

  .slider__arrow {
    display: none;
  }

  .benefits__grid,
  .about__grid,
  .facility-grid,
  .application-grid,
  .capability-grid,
  .journal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .facility-grid img,
  .application-grid img {
    height: auto;
  }

  .capability-grid article,
  .footer-grid section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-grid section {
    border-bottom-color: rgba(255,255,255,.18);
    padding: 0 0 22px;
    min-height: auto;
  }

  .footer-bottom {
    height: auto;
    padding: 15px 0;
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }
}

.facility-grid img,
.application-grid img {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.19,1,.22,1), filter .55s ease, box-shadow .55s ease;
}

.facility-grid img.is-visible,
.application-grid img.is-visible {
  opacity: 1;
  transform: none;
}

.facility-grid img.is-visible:hover,
.application-grid img.is-visible:hover {
  transform: translateY(-4px) scale(1.015);
}
