/* ===================================================================
   CISB — Static Site Stylesheet
   Converted from Next.js/Tailwind to plain CSS.
   Organised by: Tokens → Reset → Typography → Components → Layout →
   Homepage Panels → Scroll Reveal → Responsive → Reduced Motion
   =================================================================== */

/* ─────────────────────────  1. Design tokens  ───────────────────── */
:root {
  --color-teal: #0E4C46;
  --color-navy: #1B2A4A;
  --color-paper: #F6F4ED;
  --color-gold: #ebb842;
  --color-gold-light: #e5a718;
  --color-sage: #6B8F71;
  --color-terracotta: #D9603F;
  --color-ink: #23262B;
  --color-white: #FFFFFF;

  --font-fraunces: 'Fraunces', Georgia, serif;
  --font-inter: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --tracking-wide2: 0.25em;
  --tracking-wide3: 0.15em;

  --header-h: 88px;
}

/* ─────────────────────────  2. Reset  ────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-inter);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-fraunces);
  margin: 0;
}

p {
  margin: 0;
}

/* ─────────────────────────  3. Typography helpers  ───────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  color: var(--color-gold);
}

.text-gradient-gold {
  background: linear-gradient(to right, var(--color-gold), var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.page-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader .wheel-and-hamster {
  --dur: 1s;
  position: relative;
  width: 12em;
  height: 12em;
  font-size: 14px;
}

.page-loader .wheel,
.page-loader .hamster,
.page-loader .hamster div,
.page-loader .spoke {
  position: absolute;
}

.page-loader .wheel,
.page-loader .spoke {
  border-radius: 50%;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-loader .wheel {
  background: radial-gradient(100% 100% at center, hsla(0, 0%, 60%, 0) 47.8%, hsl(0, 0%, 60%) 48%);
  z-index: 2;
}

.page-loader .hamster {
  animation: hamster var(--dur) ease-in-out infinite;
  top: 50%;
  left: calc(50% - 3.5em);
  width: 7em;
  height: 3.75em;
  transform: rotate(4deg) translate(-0.8em, 1.85em);
  transform-origin: 50% 0;
  z-index: 1;
}

.page-loader .hamster__head {
  animation: hamsterHead var(--dur) ease-in-out infinite;
  background: hsl(30, 90%, 55%);
  border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
  box-shadow: 0 -0.25em 0 hsl(30, 90%, 80%) inset,
    0.75em -1.55em 0 hsl(30, 90%, 90%) inset;
  top: 0;
  left: -2em;
  width: 2.75em;
  height: 2.5em;
  transform-origin: 100% 50%;
}

.page-loader .hamster__ear {
  animation: hamsterEar var(--dur) ease-in-out infinite;
  background: hsl(0, 90%, 85%);
  border-radius: 50%;
  box-shadow: -0.25em 0 hsl(30, 90%, 55%) inset;
  top: -0.25em;
  right: -0.25em;
  width: 0.75em;
  height: 0.75em;
  transform-origin: 50% 75%;
}

.page-loader .hamster__eye {
  animation: hamsterEye var(--dur) linear infinite;
  background-color: hsl(0, 0%, 0%);
  border-radius: 50%;
  top: 0.375em;
  left: 1.25em;
  width: 0.5em;
  height: 0.5em;
}

.page-loader .hamster__nose {
  background: hsl(0, 90%, 75%);
  border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
  top: 0.75em;
  left: 0;
  width: 0.2em;
  height: 0.25em;
}

.page-loader .hamster__body {
  animation: hamsterBody var(--dur) ease-in-out infinite;
  background: hsl(30, 90%, 90%);
  border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
  box-shadow: 0.1em 0.75em 0 hsl(30, 90%, 55%) inset,
    0.15em -0.5em 0 hsl(30, 90%, 80%) inset;
  top: 0.25em;
  left: 2em;
  width: 4.5em;
  height: 3em;
  transform-origin: 17% 50%;
  transform-style: preserve-3d;
}

.page-loader .hamster__limb--fr,
.page-loader .hamster__limb--fl {
  clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%);
  top: 2em;
  left: 0.5em;
  width: 1em;
  height: 1.5em;
  transform-origin: 50% 0;
}

.page-loader .hamster__limb--fr {
  animation: hamsterFRLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 80%) 80%, hsl(0, 90%, 75%) 80%);
  transform: rotate(15deg) translateZ(-1px);
}

.page-loader .hamster__limb--fl {
  animation: hamsterFLLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 90%) 80%, hsl(0, 90%, 85%) 80%);
  transform: rotate(15deg);
}

.page-loader .hamster__limb--br,
.page-loader .hamster__limb--bl {
  border-radius: 0.75em 0.75em 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 70% 90%, 70% 100%, 30% 100%, 40% 90%, 0% 30%);
  top: 1em;
  left: 2.8em;
  width: 1.5em;
  height: 2.5em;
  transform-origin: 50% 30%;
}

.page-loader .hamster__limb--br {
  animation: hamsterBRLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 80%) 90%, hsl(0, 90%, 75%) 90%);
  transform: rotate(-25deg) translateZ(-1px);
}

.page-loader .hamster__limb--bl {
  animation: hamsterBLLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 90%) 90%, hsl(0, 90%, 85%) 90%);
  transform: rotate(-25deg);
}

.page-loader .hamster__tail {
  animation: hamsterTail var(--dur) linear infinite;
  background: hsl(0, 90%, 85%);
  border-radius: 0.25em 50% 50% 0.25em;
  box-shadow: 0 -0.2em 0 hsl(0, 90%, 75%) inset;
  top: 1.5em;
  right: -0.5em;
  width: 1em;
  height: 0.5em;
  transform: rotate(30deg) translateZ(-1px);
  transform-origin: 0.25em 0.25em;
}

.page-loader .spoke {
  animation: spoke var(--dur) linear infinite;
  background: radial-gradient(100% 100% at center, hsl(0, 0%, 60%) 4.8%, hsla(0, 0%, 60%, 0) 5%),
    linear-gradient(hsla(0, 0%, 55%, 0) 46.9%, hsl(0, 0%, 65%) 47% 52.9%, hsla(0, 0%, 65%, 0) 53%) 50% 50% / 99% 99% no-repeat;
}

/* Animations */
@keyframes hamster {

  from,
  to {
    transform: rotate(4deg) translate(-0.8em, 1.85em);
  }

  50% {
    transform: rotate(0) translate(-0.8em, 1.85em);
  }
}

@keyframes hamsterHead {

  from,
  25%,
  50%,
  75%,
  to {
    transform: rotate(0);
  }

  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: rotate(8deg);
  }
}

@keyframes hamsterEye {

  from,
  90%,
  to {
    transform: scaleY(1);
  }

  95% {
    transform: scaleY(0);
  }
}

@keyframes hamsterEar {

  from,
  25%,
  50%,
  75%,
  to {
    transform: rotate(0);
  }

  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: rotate(12deg);
  }
}

@keyframes hamsterBody {

  from,
  25%,
  50%,
  75%,
  to {
    transform: rotate(0);
  }

  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: rotate(-2deg);
  }
}

@keyframes hamsterFRLimb {

  from,
  25%,
  50%,
  75%,
  to {
    transform: rotate(50deg) translateZ(-1px);
  }

  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: rotate(-30deg) translateZ(-1px);
  }
}

@keyframes hamsterFLLimb {

  from,
  25%,
  50%,
  75%,
  to {
    transform: rotate(-30deg);
  }

  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: rotate(50deg);
  }
}

@keyframes hamsterBRLimb {

  from,
  25%,
  50%,
  75%,
  to {
    transform: rotate(-60deg) translateZ(-1px);
  }

  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: rotate(20deg) translateZ(-1px);
  }
}

@keyframes hamsterBLLimb {

  from,
  25%,
  50%,
  75%,
  to {
    transform: rotate(20deg);
  }

  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: rotate(-60deg);
  }
}

@keyframes hamsterTail {

  from,
  25%,
  50%,
  75%,
  to {
    transform: rotate(30deg) translateZ(-1px);
  }

  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: rotate(10deg) translateZ(-1px);
  }
}

@keyframes spoke {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(-1turn);
  }
}

/* From Uiverse.io by anand_4957 - Book loader (scoped to page-loader) */
.page-loader .book,
.page-loader .book__pg-shadow,
.page-loader .book__pg {
  animation: cover 5s ease-in-out infinite;
}

.page-loader .book {
  background-color: hsl(268, 90%, 65%);
  border-radius: 0.25em;
  box-shadow:
    0 0.25em 0.5em hsla(0, 0%, 0%, 0.3),
    0 0 0 0.25em hsl(278, 100%, 57%) inset;
  padding: 0.25em;
  perspective: 37.5em;
  position: relative;
  width: 8em;
  height: 6em;
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
}

.page-loader .book__pg-shadow,
.page-loader .book__pg {
  position: absolute;
  left: 0.25em;
  width: calc(50% - 0.25em);
}

.page-loader .book__pg-shadow {
  animation-name: shadow;
  background-image: linear-gradient(-45deg,
      hsla(0, 0%, 0%, 0) 50%,
      hsla(0, 0%, 0%, 0.3) 50%);
  filter: blur(0.25em);
  top: calc(100% - 0.25em);
  height: 3.75em;
  transform: scaleY(0);
  transform-origin: 100% 0%;
}

.page-loader .book__pg {
  animation-name: pg1;
  background-color: hsl(223, 10%, 100%);
  background-image: linear-gradient(90deg,
      hsla(223, 10%, 90%, 0) 87.5%,
      hsl(223, 10%, 90%));
  height: calc(100% - 0.5em);
  transform-origin: 100% 50%;
}

.page-loader .book__pg--2,
.page-loader .book__pg--3,
.page-loader .book__pg--4 {
  background-image: repeating-linear-gradient(hsl(223, 10%, 10%) 0 0.125em,
      hsla(223, 10%, 10%, 0) 0.125em 0.5em),
    linear-gradient(90deg, hsla(223, 10%, 90%, 0) 87.5%, hsl(223, 10%, 90%));
  background-repeat: no-repeat;
  background-position: center;
  background-size:
    2.5em 4.125em,
    100% 100%;
}

.page-loader .book__pg--2 {
  animation-name: pg2;
}

.page-loader .book__pg--3 {
  animation-name: pg3;
}

.page-loader .book__pg--4 {
  animation-name: pg4;
}

.page-loader .book__pg--5 {
  animation-name: pg5;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(223, 10%, 30%);
    --fg: hsl(223, 10%, 90%);
  }
}

/* Animations */
@keyframes cover {

  from,
  5%,
  45%,
  55%,
  95%,
  to {
    animation-timing-function: ease-out;
    background-color: hsl(278, 84%, 67%);
  }

  10%,
  40%,
  60%,
  90% {
    animation-timing-function: ease-in;
    background-color: hsl(271, 90%, 45%);
  }
}

@keyframes shadow {

  from,
  10.01%,
  20.01%,
  30.01%,
  40.01% {
    animation-timing-function: ease-in;
    transform: translate3d(0, 0, 1px) scaleY(0) rotateY(0);
  }

  5%,
  15%,
  25%,
  35%,
  45%,
  55%,
  65%,
  75%,
  85%,
  95% {
    animation-timing-function: ease-out;
    transform: translate3d(0, 0, 1px) scaleY(0.2) rotateY(90deg);
  }

  10%,
  20%,
  30%,
  40%,
  50%,
  to {
    animation-timing-function: ease-out;
    transform: translate3d(0, 0, 1px) scaleY(0) rotateY(180deg);
  }

  50.01%,
  60.01%,
  70.01%,
  80.01%,
  90.01% {
    animation-timing-function: ease-in;
    transform: translate3d(0, 0, 1px) scaleY(0) rotateY(180deg);
  }

  60%,
  70%,
  80%,
  90%,
  to {
    animation-timing-function: ease-out;
    transform: translate3d(0, 0, 1px) scaleY(0) rotateY(0);
  }
}

@keyframes pg1 {

  from,
  to {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0.4deg);
  }

  10%,
  15% {
    animation-timing-function: ease-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(180deg);
  }

  20%,
  80% {
    animation-timing-function: ease-in;
    background-color: hsl(223, 10%, 45%);
    transform: translate3d(0, 0, 1px) rotateY(180deg);
  }

  85%,
  90% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(180deg);
  }
}

@keyframes pg2 {

  from,
  to {
    animation-timing-function: ease-in;
    background-color: hsl(223, 10%, 45%);
    transform: translate3d(0, 0, 1px) rotateY(0.3deg);
  }

  5%,
  10% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0.3deg);
  }

  20%,
  25% {
    animation-timing-function: ease-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(179.9deg);
  }

  30%,
  70% {
    animation-timing-function: ease-in;
    background-color: hsl(223, 10%, 45%);
    transform: translate3d(0, 0, 1px) rotateY(179.9deg);
  }

  75%,
  80% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(179.9deg);
  }

  90%,
  95% {
    animation-timing-function: ease-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0.3deg);
  }
}

@keyframes pg3 {

  from,
  10%,
  90%,
  to {
    animation-timing-function: ease-in;
    background-color: hsl(223, 10%, 45%);
    transform: translate3d(0, 0, 1px) rotateY(0.2deg);
  }

  15%,
  20% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0.2deg);
  }

  30%,
  35% {
    animation-timing-function: ease-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(179.8deg);
  }

  40%,
  60% {
    animation-timing-function: ease-in;
    background-color: hsl(223, 10%, 45%);
    transform: translate3d(0, 0, 1px) rotateY(179.8deg);
  }

  65%,
  70% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(179.8deg);
  }

  80%,
  85% {
    animation-timing-function: ease-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0.2deg);
  }
}

@keyframes pg4 {

  from,
  20%,
  80%,
  to {
    animation-timing-function: ease-in;
    background-color: hsl(223, 10%, 45%);
    transform: translate3d(0, 0, 1px) rotateY(0.1deg);
  }

  25%,
  30% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0.1deg);
  }

  40%,
  45% {
    animation-timing-function: ease-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(179.7deg);
  }

  50% {
    animation-timing-function: ease-in;
    background-color: hsl(223, 10%, 45%);
    transform: translate3d(0, 0, 1px) rotateY(179.7deg);
  }

  55%,
  60% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(179.7deg);
  }

  70%,
  75% {
    animation-timing-function: ease-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0.1deg);
  }
}

@keyframes pg5 {

  from,
  30%,
  70%,
  to {
    animation-timing-function: ease-in;
    background-color: hsl(223, 10%, 45%);
    transform: translate3d(0, 0, 1px) rotateY(0);
  }

  35%,
  40% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0deg);
  }

  50% {
    animation-timing-function: ease-in-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(179.6deg);
  }

  60%,
  65% {
    animation-timing-function: ease-out;
    background-color: hsl(223, 10%, 100%);
    transform: translate3d(0, 0, 1px) rotateY(0);
  }
}


/* ─────────────────────────  4. Layout helpers  ───────────────────── */
.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .section-container {
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 4rem;
  }
}

/* ─────────────────────────  5. Buttons  ───────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  min-height: 44px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
}

.btn-primary:hover {
  background: var(--color-terracotta);
  color: #fff;
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(1);
}

.btn-secondary {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-secondary:hover {
  background: rgba(200, 162, 74, 0.1);
  transform: scale(1.05);
}

.btn-ghost {
  color: rgba(246, 244, 237, 0.8);
  border: 1px solid rgba(246, 244, 237, 0.3);
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: rgba(246, 244, 237, 0.6);
  color: var(--color-paper);
  transform: scale(1.05);
}

/* ─────────────────────────  6. Chips  ─────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  background: rgba(27, 42, 74, 0.1);
  color: var(--color-navy);
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
}

/* ─────────────────────────  7. Site Header  ───────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.55rem 1rem;
  transition: all 0.5s ease;
  background: linear-gradient(to bottom, rgba(27, 42, 74, 0.5), transparent);
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  /* Glassmorphism navbar */
  background: rgba(27, 42, 74, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 0.4rem 1rem;
  position: fixed;
}

.site-header.is-scrolled::before,
.site-header.is-menu-open::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.02) 55%,
      rgba(255, 255, 255, 0.04));
  opacity: 0.55;
}

.site-header__inner {
  position: relative;
  z-index: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 640px) {
  .site-header__inner {
    padding-left: 1rem;
    padding-right: 2rem;
  }
}

.site-header__logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}

.site-header__logo img {
  width: 170px;
  height: 54px;
  object-fit: contain;
  filter: brightness(1.15) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(27, 42, 74, 0.35));
}

@media (min-width: 640px) {
  .site-header__logo img {
    width: 330px;
    height: 82px;
  }
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 50;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-toggle svg {
  color: var(--color-gold);
}

.menu-toggle {
  color: var(--color-paper);
  padding: 0.625rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 162, 74, 0.3);
}

.menu-toggle svg.icon-close {
  color: var(--color-gold);
}

/* ─────────────────────────  8. Mobile / full menu  ─────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(27, 42, 74, 0.65);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 1rem 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
  .mobile-menu {
    padding: 8rem 3rem 3rem;
  }
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin: auto 0;
}

@media (min-width: 768px) {
  .mobile-menu__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .mobile-menu__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 4rem;
  }
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu__nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-fraunces);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 600;
  color: rgba(246, 244, 237, 0.8);
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.4s ease, color 0.3s ease, transform 0.4s ease;
}

.mobile-menu.is-open .mobile-menu__nav a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu__nav a:hover {
  color: var(--color-paper);
}

.mobile-menu__nav a .num {
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-right: 1rem;
  opacity: 0.7;
}

.mobile-menu__info {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .mobile-menu__info {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    padding-left: 3rem;
  }
}

.mobile-menu__featured {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-menu__featured {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 3rem;
  }

  .mobile-menu__featured-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }

  .mobile-menu__featured-img:hover {
    transform: scale(1.02);
  }
}

.mobile-menu__info-desc {
  font-family: var(--font-fraunces);
  font-size: 1.25rem;
  color: var(--color-paper);
  margin: 1rem 0;
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(246, 244, 237, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.mobile-menu__contact div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu__contact svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.mobile-menu__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(246, 244, 237, 0.4);
}

@media (min-width: 640px) {
  .mobile-menu__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.mobile-menu__bottom-links {
  display: flex;
  gap: 1rem;
}

.mobile-menu__bottom-links a:hover {
  color: var(--color-gold);
}

/* ─────────────────────────  9. Progress rail  ─────────────────────── */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  height: 4px;
  pointer-events: none;
}

.progress-rail__track {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.4);
}

.progress-rail__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(to right, var(--color-sage), var(--color-gold), var(--color-terracotta));
}

.progress-rail__labels {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.progress-rail__labels span {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide2);
  color: rgba(246, 244, 237, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
}

.progress-rail__labels span.is-active {
  color: var(--color-gold);
  opacity: 1;
}

/* ─────────────────────────  10. Horizontal scroll track  ──────────── */
.horizontal-track-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.horizontal-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  will-change: transform;
}

.panel-container {
  flex-shrink: 0;
  width: 100vw;
  height: 100vh;
  position: relative;
}

.horizontal-panel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(var(--video-zoom, 1));
  transform-origin: center center;
}

.video-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
}

@media (min-width: 640px) {
  .video-content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 768px) {
  .video-content {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (min-width: 1024px) {
  .video-content {
    padding-left: 7rem;
    padding-right: 7rem;
  }
}

.video-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(27, 42, 74, 0.7), rgba(27, 42, 74, 0.2) 50%, rgba(27, 42, 74, 0.4));
}

/* Mobile / touch fallback — stack vertically */
@media (max-width: 899px),
(pointer: coarse) {
  .progress-rail {
    display: none !important;
  }

  .horizontal-track-wrapper {
    height: auto !important;
    overflow: visible !important;
  }

  .horizontal-track {
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
  }

  .panel-container {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }

  .horizontal-panel {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .horizontal-panel:has(.video-bg) {
    min-height: 100svh !important;
    padding-top: 0;
    padding-bottom: 0;
  }

  .video-content::before {
    display: none;
  }
}

@media (max-width: 639px) {
  .section-container {
    padding: 0 1rem;
  }

  .site-header {
    padding: 0.45rem 0.75rem;
  }

  .site-header.is-scrolled,
  .site-header.is-menu-open {
    padding: 0.35rem 0.75rem;
  }

  .site-header__inner {
    padding-left: 0;
    padding-right: 0;
    gap: 0.5rem;
  }

  .site-header__logo img {
    width: clamp(140px, 44vw, 170px);
    height: 48px;
  }

  .site-header__controls {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .lang-toggle {
    padding: 0.35rem 0.55rem;
    font-size: 10px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .mobile-menu {
    padding: 5.75rem 1rem 1.5rem;
  }

  .mobile-menu__grid {
    gap: 2rem;
    align-items: start;
    margin: 0;
  }

  .mobile-menu__nav {
    gap: 0.75rem;
  }

  .mobile-menu__nav a {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
    line-height: 1.1;
  }

  .mobile-menu__info {
    padding-top: 1.5rem;
    gap: 1rem;
  }

  .mobile-menu__info-desc {
    font-size: 1.05rem;
  }

  .mobile-menu__bottom {
    align-items: flex-start;
    text-align: left;
  }

  .mobile-menu__bottom-links {
    flex-wrap: wrap;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer__cta-buttons,
  .site-footer__bottom-links {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ─────────────────────────  11. Scroll reveal  ─────────────────────── */
[data-scroll-reveal] {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition-property: opacity, transform, filter;
  transition-duration: 760ms;
  transition-delay: var(--reveal-delay, 0ms);
  transition-timing-function: cubic-bezier(0.16, 0.84, 0.44, 1);
}

[data-scroll-reveal='text'] {
  transform: translate3d(0, 34px, 0);
}

[data-scroll-reveal='image'] {
  transform: translate3d(0, 28px, 0) scale(1.035);
  filter: saturate(0.9);
}

[data-scroll-visible='true'] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

/* ─────────────────────────  12. Image carousels  ────────────────────── */
.img-carousel {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
}

.img-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.img-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.img-carousel:hover .img-carousel__slide.is-active img {
  transform: scale(1.05);
}

.img-carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.375rem;
}

.img-carousel__dots button {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.img-carousel__dots button.is-active {
  background: var(--color-gold);
  width: 12px;
}

/* Stacked-card carousel (stats panel) */
.stat-carousel {
  position: relative;
}

.stat-carousel__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.stat-carousel__card {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-carousel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-carousel__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 42, 74, 0.3), transparent);
}

.stat-carousel__dots {
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.stat-carousel__dots button {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.stat-carousel__dots button span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: transparent;
  width: 0;
  transition: all 0.5s ease;
}

.stat-carousel__dots button.is-active span {
  background: var(--color-gold);
  width: 100%;
}

/* ─────────────────────────  13. Forms  ──────────────────────────────── */
.form-input,
.form-input-dark {
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-inter);
  transition: all 0.2s ease;
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-paper);
}

.form-input::placeholder {
  color: rgba(246, 244, 237, 0.4);
}

.form-input:focus {
  outline: none;
  border-color: rgba(200, 162, 74, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.2);
}

.form-input-dark {
  background: rgba(35, 38, 43, 0.05);
  border: 1px solid rgba(35, 38, 43, 0.2);
  color: var(--color-ink);
}

.form-input-dark::placeholder {
  color: rgba(35, 38, 43, 0.4);
}

.form-input-dark:focus {
  outline: none;
  border-color: rgba(14, 76, 70, 0.6);
  box-shadow: 0 0 0 3px rgba(14, 76, 70, 0.2);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  margin-bottom: 0.5rem;
}

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-popup-open {
  overflow: hidden;
}

.contact-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-popup__dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(90svh, 760px);
  overflow-y: auto;
  border-radius: 8px;
  background: var(--color-paper);
  color: var(--color-ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  padding: clamp(1.25rem, 3vw, 2rem);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease;
}

.contact-popup.is-open .contact-popup__dialog {
  transform: translateY(0) scale(1);
}

.contact-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(27, 42, 74, 0.08);
  color: var(--color-navy);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-popup__close:hover {
  background: rgba(217, 96, 63, 0.14);
  transform: scale(1.05);
}

.contact-popup__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide3);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
}

.contact-popup__dialog h2 {
  color: var(--color-navy);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.05;
  padding-right: 2.5rem;
}

.contact-popup__intro {
  margin-top: 0.75rem;
  color: rgba(35, 38, 43, 0.72);
}

.contact-popup__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-popup__form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.contact-popup__form label span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  color: var(--color-teal);
}

.contact-popup__form textarea {
  resize: vertical;
}

.contact-popup__submit {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

@media (min-width: 640px) {
  .contact-popup__form {
    grid-template-columns: 1fr 1fr;
  }

  .contact-popup__full,
  .contact-popup__submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .contact-popup {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .contact-popup__dialog {
    width: 100%;
    max-height: 88svh;
  }
}

/* ─────────────────────────  14. Footer  ─────────────────────────────── */
.site-footer {
  background: var(--color-navy);
  color: var(--color-paper);
}

.site-footer__cta {
  background: #fff;
  border-bottom: 1px solid rgba(27, 42, 74, 0.05);
}

.site-footer__cta-inner {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__cta-inner {
    flex-direction: row;
    text-align: left;
  }
}

.site-footer__cta-inner h2 {
  color: var(--color-navy);
  font-size: 1.5rem;
  font-weight: 500;
}

.site-footer__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer__main {
  padding: 4rem 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

.site-footer__brand img {
  width: 160px;
  height: 64px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 1.25rem;
}

.site-footer__brand p {
  font-size: 0.875rem;
  color: rgba(246, 244, 237, 0.6);
  line-height: 1.6;
  max-width: 20rem;
  margin-bottom: 1.5rem;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 244, 237, 0.6);
  transition: all 0.2s ease;
}

.site-footer__social a:hover {
  color: var(--color-gold);
  border-color: rgba(200, 162, 74, 0.4);
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer__col a {
  font-size: 0.875rem;
  color: rgba(246, 244, 237, 0.6);
  transition: color 0.2s ease;
}

.site-footer__col a:hover {
  color: var(--color-paper);
}

.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(246, 244, 237, 0.6);
}

.site-footer__contact-list svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.site-footer__badges span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  border: 1px solid rgba(200, 162, 74, 0.3);
  color: rgba(200, 162, 74, 0.7);
  border-radius: 4px;
  padding: 0.25rem 0.625rem;
}

.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
  }
}

.site-footer__bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  color: rgba(246, 244, 237, 0.3);
}

.site-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__bottom-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide3);
  color: rgba(246, 244, 237, 0.3);
  transition: color 0.2s ease;
}

.site-footer__bottom-links a:hover {
  color: rgba(246, 244, 237, 0.6);
}

/* ─────────────────────────  15. Reduced motion  ─────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .horizontal-track {
    flex-direction: column;
    width: 100%;
  }

  .horizontal-panel {
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  [data-scroll-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ─────────────────────────  16. Keyframes  ───────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.anim-fade-in-up {
  animation: fadeInUp 1s both;
}

.anim-fade-in {
  animation: fadeIn 2s both;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: currentColor;
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}