/* ============================================================
   Purple Mountain — static rebuild
   ============================================================ */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/opensans-latin.woff2") format("woff2-variations"),
       url("../fonts/opensans-latin.woff2") format("woff2");
}

:root {
  --purple-900: #2a0f4f;
  --purple-800: #3d1a72;
  --purple-700: #6f2dbd;
  --purple-600: #7e3bd0;
  --purple-500: #9b51e0;
  --purple-300: #c39bee;
  --purple-100: #f1e6fb;

  --ink:        #1f1a2c;
  --body:       #4a4458;
  --muted:      #7a7388;
  --line:       #e6e2ee;
  --bg:         #ffffff;
  --bg-soft:    #f7f4fb;
  --bg-dark:    #100823;
  --bg-darker:  #07031a;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(60px, 9vw, 120px);

  --shadow-md: 0 10px 30px rgba(36, 12, 80, 0.10);
  --shadow-lg: 0 25px 60px rgba(36, 12, 80, 0.25);

  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-med:  320ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--purple-700);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--purple-500); }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1.1em; }

p:last-child, ul:last-child { margin-bottom: 0; }

ul { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
li strong, li b { color: var(--ink); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple-500);
  margin-bottom: 1rem;
}

.section {
  padding: var(--section-pad) 0;
}
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: var(--bg-dark);
  color: #cfc8e0;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .kicker { color: var(--purple-300); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: #a298b9; }

/* ===== Header / nav ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(7,3,26,0.85) 0%, rgba(7,3,26,0) 100%);
  transition: background var(--t-med), padding var(--t-med), box-shadow var(--t-med);
}
.site-header.is-scrolled {
  background: rgba(7,3,26,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 10px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.brand img { width: 42px; height: auto; }
.brand:hover { color: var(--purple-300); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 28px;
  align-items: center;
}
.nav-list a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--purple-500);
  transition: right var(--t-fast);
}
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after, .nav-list a.is-active::after { right: 0; }

@media (max-width: 820px) {
  /* No-JS default: nav wraps below brand as a horizontal list */
  .nav { flex-wrap: wrap; row-gap: 8px; }
  .nav-toggle { display: none; }
  .nav-list {
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }
  .nav-list a { font-size: 0.8rem; padding: 4px 0; }
  .nav-list a::after { display: none; }

  /* JS-enhanced: collapse into a hamburger-driven dropdown */
  .js .nav-toggle { display: inline-flex; }
  .js .nav-list {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-basis: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7,3,26,0.97);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 0;
    margin-top: 8px;
    transform-origin: top right;
    transform: scaleY(0.4);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med), opacity var(--t-med);
    box-shadow: var(--shadow-lg);
  }
  .js .nav[data-open="true"] .nav-list {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .js .nav-list a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
  }
  .js .nav-list li:last-child a { border-bottom: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--bg-darker);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.05);
  animation: heroZoom 30s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1.0); } }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(111,45,189,0.45), transparent 60%),
    linear-gradient(180deg, rgba(7,3,26,0.4) 0%, rgba(7,3,26,0.85) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 140px 0 80px;
}
.hero h1 {
  color: #fff;
  margin: 0.4em 0 0.6em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero p {
  max-width: 640px;
  margin: 0 auto 2em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.85);
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--purple-700);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 8px 24px rgba(111,45,189,0.5);
}
.hero__cta:hover {
  background: var(--purple-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(111,45,189,0.6);
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.team-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-card__photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  border: 4px solid var(--purple-100);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 6px; }
.team-card__role {
  color: var(--purple-700);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.service-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155,81,224,0.5);
  background: linear-gradient(160deg, rgba(155,81,224,0.10), rgba(155,81,224,0.02));
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(111,45,189,0.4);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { color: #fff; margin-bottom: 14px; }
.service-card p, .service-card li { color: #b5acc6; }
.service-card li strong { color: #fff; }
.service-card ul { padding-left: 1.1em; }
.service-card ul li::marker { color: var(--purple-500); }

/* ===== Projects gallery ===== */
.projects {
  background: var(--bg-darker);
  color: #cfc8e0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
@media (min-width: 900px) {
  .projects-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
}
.project {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #20143d;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.js .project { cursor: zoom-in; }
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter var(--t-med);
  filter: saturate(0.9) brightness(0.92);
}
.project__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 14px 14px;
  background: linear-gradient(0deg, rgba(7,3,26,0.95) 0%, rgba(7,3,26,0) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform var(--t-med);
}
.project:hover img { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
.project:hover .project__overlay { transform: translateY(0); }

/* ===== Why Switzerland ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.benefit {
  text-align: center;
  padding: 10px;
}
.benefit__icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-100), #fff);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-700);
  box-shadow: 0 10px 24px rgba(111,45,189,0.18);
}
.benefit__icon svg { width: 34px; height: 34px; }
.benefit h4 { margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 0.95rem; }

/* ===== Contact CTA strip ===== */
.contact {
  background:
    radial-gradient(circle at 80% 30%, rgba(155,81,224,0.4), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(111,45,189,0.45), transparent 55%),
    var(--bg-darker);
  color: #fff;
  text-align: center;
}
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,0.85); max-width: 640px; margin-left: auto; margin-right: auto; }
.contact-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.05);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.contact-actions a:hover {
  background: var(--purple-700);
  border-color: var(--purple-700);
  transform: translateY(-2px);
  color: #fff;
}
.contact-actions svg { width: 18px; height: 18px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-darker);
  color: #8b82a0;
  padding: 50px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a { color: #b8b0c8; }
.footer-links a:hover { color: #fff; }
.copyright { color: #6a6280; }

/* ===== Scroll-in animations (JS-driven; default state is visible for no-JS) ===== */
.js [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-animate] { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; transform: none; }
  .hero__scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Lightbox ===== */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  margin: 0;
  inset: 0;
}
.lightbox::backdrop {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.lightbox__caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(0,0,0,0.55);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__btn:hover { background: rgba(255,255,255,0.2); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn--prev { left: 24px; }
.lightbox__btn--next { right: 24px; }
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__close svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .lightbox__btn--prev { left: 8px; }
  .lightbox__btn--next { right: 8px; }
  .lightbox__btn { width: 44px; height: 44px; }
}

/* ===== Sub-pages (privacy / cookies / 404) ===== */
.page-hero {
  background: linear-gradient(160deg, var(--purple-800), var(--bg-darker));
  color: #fff;
  padding: 160px 0 80px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-pad) 0;
}
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul { padding-left: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.notfound {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
}
.notfound .big { font-size: clamp(6rem, 18vw, 12rem); margin: 0; color: var(--purple-500); line-height: 1; }
