/* --- Theme variables --- */
:root {
  --surface: #fbfbfb;
  --surface-muted: rgba(255,255,255,0.85);
  --surface-elevated: rgba(255,255,255,0.92);
  --text-primary: #071018;
  --text-secondary: #1f2937;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --link-color: #111111;
  --border-color: rgba(15, 23, 42, 0.08);
  --card-border: rgba(16, 24, 40, 0.08);
  --card-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.60);
  --glass-border: rgba(255, 255, 255, 0.60);
  --accent: linear-gradient(140deg, #0b0b0b 0%, #232323 100%);
  --primary-btn-bg: linear-gradient(150deg,#11132a,#1f233a);
  --primary-btn-color: #ffffff;
  --primary-btn-border: rgba(11, 11, 11, 0.35);
  --ghost-border: rgba(11, 11, 11, 0.06);
  --ghost-hover: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(0, 0, 0, 0.05);
  --menu-bg: rgba(255, 255, 255, 0.65);
  --menu-border: rgba(255, 255, 255, 0.25);
  --menu-foreground: #111111;
  --muted: rgba(114, 114, 114, 0.95);
  --gold1: #bfa36a;
  --gold2: #f3d88b;
}

html.theme-dark {
  --surface: #070b12;
  --surface-muted: rgba(15, 23, 42, 0.78);
  --surface-elevated: rgba(17, 24, 39, 0.88);
  --text-primary: #e2e8f0;
  --text-secondary: rgba(226, 232, 240, 0.92);
  --text-muted: rgba(203, 213, 225, 0.82);
  --text-soft: rgba(148, 163, 184, 0.75);
  --link-color: #f3d88b;
  --border-color: rgba(51, 65, 85, 0.45);
  --card-border: rgba(51, 65, 85, 0.6);
  --card-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  --glass-bg: rgba(23, 32, 50, 0.72);
  --glass-border: rgba(59, 130, 246, 0.18);
  --accent: linear-gradient(150deg, #f3d88b 0%, #bfa36a 100%);
  --primary-btn-bg: linear-gradient(150deg, #f3d88b 0%, #bfa36a 100%);
  --primary-btn-color: #0b1220;
  --primary-btn-border: rgba(243, 216, 139, 0.4);
  --ghost-border: rgba(148, 163, 184, 0.35);
  --ghost-hover: rgba(148, 163, 184, 0.22);
  --header-bg: rgba(15, 23, 42, 0.82);
  --header-border: rgba(51, 65, 85, 0.65);
  --menu-bg: rgba(15, 23, 42, 0.95);
  --menu-border: rgba(51, 65, 85, 0.55);
  --menu-foreground: #e2e8f0;
  --muted: rgba(148, 163, 184, 0.68);
}

/* --- Base foundation --- */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text-primary);
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

body.theme-dark {
  background: var(--surface);
  color: var(--text-primary);
}

a {
  color: var(--link-color);
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus-visible {
  opacity: 0.85;
}

.text-gray-900,
.text-gray-800 {
  color: var(--text-primary) !important;
}

.text-gray-700 {
  color: var(--text-secondary) !important;
}

.text-gray-600 {
  color: var(--text-muted) !important;
}

.text-gray-500,
.text-gray-400 {
  color: var(--text-soft) !important;
}

.muted {
  color: var(--text-muted);
}

.theme-dark .muted {
  color: var(--text-soft);
}

/* --- Navbar --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--text-primary);
}
.theme-dark header {
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.55);
}

.logo-mark{
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
  border-radius: 10px;
  background: linear-gradient(180deg,#111,#222);
  box-shadow: 0 10px 30px rgba(11,11,11,0.12);
}

.theme-dark .logo-mark{
  background: linear-gradient(150deg,#f3d88b,#bfa36a);
  color: #0b1220;
  box-shadow: 0 12px 32px rgba(15,23,42,0.35);
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.18s ease;
}
nav a:hover { color: var(--link-color); }

nav a.btn-primary,
nav a.btn-primary:hover,
nav a.btn-primary:focus {
  color: var(--primary-btn-color);
}

.logo-wrap{
  display:grid;
  place-items:center;
  text-decoration:none;
}
.logo-wrap:focus-visible{
  outline:2px solid rgba(191,163,106,0.45);
  outline-offset:4px;
  border-radius:12px;
}

.accent-gold{
  display:inline-block;
  background-image: linear-gradient(90deg, #bfa36a 0%, #f3d88b 45%, #b69352 100%);
  background-repeat:no-repeat;
  background-size:100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}


/* --- Mobile Navigation --- */

.header-inner{position:relative;}

#menuBtn{
  position:relative;
  margin-left:auto;
  margin-right:calc(0rem + env(safe-area-inset-right, 0px));
  width:38px;
  height:30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:7px;
  cursor:pointer;
  z-index:1200;
  background:transparent;
  border:none;
  padding:0;
  touch-action:manipulation;
}
#menuBtn span{
  transform-origin:center;
}

@media (min-width: 720px) {
  #menuBtn{
    display: none;
  }
  .menu-panel{
    display: none !important;
  }
}
#menuBtn span{display:block;width:100%;height:3px;background:var(--text-primary);border-radius:2px;transition:all 0.35s cubic-bezier(.77,.2,.05,1);}
#menuBtn.open span:nth-child(1){transform:rotate(45deg) translate(6px,6px);}
#menuBtn.open span:nth-child(2){opacity:0;}
#menuBtn.open span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px);}
#menuBtn.open span{background:var(--text-primary);}

body.menu-open #menuBtn{
  opacity:0;
  pointer-events:none;
}

.header-brand{
  flex:1 1 auto;
  min-width:0;
  gap:1rem;
}
.header-brand-text{
  display:flex;
  flex-direction:column;
  gap:0.2rem;
  min-width:0;
}
.header-brand-tagline{
  display:block;
  font-size:0.75rem;
  line-height:1.2;
  max-width:100%;
  word-break:normal;
  color:var(--text-muted) !important;
}

@media (max-width: 540px) {
  .header-brand{
    gap:0.75rem;
  }
  .header-brand-tagline{
    font-size:0.7rem;
  }
}

.menu-panel{
  position:fixed;
  inset:0;
  height:calc(var(--1dvh, 1vh) * 100);
  min-height:100vh;
  z-index:1000;
  background:var(--menu-bg);
  backdrop-filter:blur(30px)saturate(180%);
  border-bottom:1px solid var(--menu-border);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  color: var(--menu-foreground);
  padding:3.5rem 1.8rem 3rem;
  padding-top:calc(3.5rem + env(safe-area-inset-top, 0px));
  padding-bottom:calc(3rem + env(safe-area-inset-bottom, 0px));
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .76s cubic-bezier(.22,1.08,.38,1), visibility 0s linear .76s;
  will-change:opacity;
}
.menu-panel.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .76s cubic-bezier(.22,1.08,.38,1), visibility 0s linear 0s;
}

.menu-panel-inner{
  display:flex;
  flex-direction:column;
  gap:2rem;
  min-height:100%;
  transform:translate3d(0,-110%,0);
  opacity:0;
  transition:transform .76s cubic-bezier(.16,1,.3,1), opacity .46s ease-out;
  will-change:transform, opacity;
}
.menu-panel.active .menu-panel-inner{
  transform:translate3d(0,0,0);
  opacity:1;
}
.menu-panel ul{list-style:none;margin:0;padding:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:1.4rem;}

.menu-close{
  position:sticky;
  top:calc(env(safe-area-inset-top, 0px) + 1.2rem);
  align-self:flex-end;
  margin-right:calc(env(safe-area-inset-right, 0px) + 0.4rem);
  width:40px;
  height:40px;
  border-radius:999px;
  border:none;
  background:var(--surface-elevated);
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  padding:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  touch-action:manipulation;
}
.menu-close span{
  position:absolute;
  width:18px;
  height:2px;
  border-radius:2px;
  background:var(--text-primary);
}
.menu-close span:first-child{transform:rotate(45deg);}
.menu-close span:last-child{transform:rotate(-45deg);}
.menu-panel.active .menu-close{
  opacity:1;
  pointer-events:auto;
}

.menu-panel li{opacity:0;transform:translateY(20px);}
.menu-panel.active li{animation:fadeUp 0.6s forwards cubic-bezier(.22,1.08,.38,1);}
.menu-panel li:nth-child(1){animation-delay:.25s;}
.menu-panel li:nth-child(2){animation-delay:.35s;}
.menu-panel li:nth-child(3){animation-delay:.45s;}
.menu-panel li:nth-child(4){animation-delay:.55s;}
.menu-panel li:nth-child(5){animation-delay:.65s;}
@keyframes fadeUp{to{opacity:1;transform:translateY(0);}}

.menu-panel li a{font-size:1.7rem;font-weight:600;text-decoration:none;color:var(--text-secondary);margin:.7rem 0;display:inline-block;}
.menu-panel li a{color:var(--menu-foreground);}
.menu-panel li a:hover{background:linear-gradient(90deg,var(--gold1),var(--gold2));-webkit-background-clip:text;-webkit-text-fill-color:transparent;}

.menu-footer{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-top:auto;padding-bottom:env(safe-area-inset-bottom, 0px);}
.btn-login{display:inline-flex;align-items:center;justify-content:center;background:var(--primary-btn-bg);color:var(--primary-btn-color);padding:.7rem 1.6rem;border-radius:999px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,0.15);transition:all .3s ease;text-decoration:none;}
.btn-login:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,0.25);}
.theme-dark .btn-login:hover{box-shadow:0 14px 32px rgba(2,6,23,0.65);}

.auth-hero{
  min-height:calc(var(--1dvh, 1vh) * 100);
  padding:clamp(3rem,5vw,5rem) 1.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg, #f9f5ec 0%, #ffffff 35%, #f1ead9 100%);
}
.auth-card{
  width:100%;
  max-width:460px;
  background:var(--surface-elevated);
  border-radius:24px;
  padding:clamp(2.4rem,4vw,3rem);
  box-shadow:0 20px 60px rgba(8,15,40,0.12);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(12px);
}
.auth-head{display:flex;flex-direction:column;gap:0.75rem;margin-bottom:1.8rem;}
.auth-logo{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:20px;
  color:#fff;
  background:linear-gradient(150deg,#11132a,#1f233a);
  box-shadow:0 10px 30px rgba(12,12,22,0.25);
}
.auth-title{font-size:clamp(1.75rem,3vw,2.2rem);margin:0;font-family:"Playfair Display",serif;color:var(--text-primary);}
.auth-sub{margin:0;color:var(--text-muted);line-height:1.5;}
.auth-alert{
  background:rgba(220,38,38,0.12);
  color:#8b1c1c;
  padding:0.85rem 1.1rem;
  border-radius:14px;
  font-size:0.95rem;
  margin-bottom:1.4rem;
  border:1px solid rgba(220,38,38,0.2);
}
.auth-form{display:flex;flex-direction:column;gap:1.2rem;}
.auth-field{display:flex;flex-direction:column;gap:0.45rem;font-size:0.95rem;color:var(--text-secondary);}
.auth-field input{
  border-radius:14px;
  border:1px solid var(--card-border);
  padding:0.85rem 1rem;
  font-size:1rem;
  font-family:inherit;
  background:var(--surface);
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-field input:focus{
  outline:none;
  border-color:rgba(59, 130, 246, 0.35);
  box-shadow:0 0 0 4px rgba(59, 130, 246, 0.18);
}
.auth-submit{
  width:100%;
  padding:0.95rem;
  border:none;
  border-radius:999px;
  font-size:1rem;
  font-weight:600;
  cursor:pointer;
}
.auth-meta{margin-top:1.8rem;font-size:0.9rem;color:var(--text-soft);text-align:center;display:flex;flex-direction:column;gap:0.4rem;}
.auth-meta a{color:var(--text-secondary);text-decoration:none;font-weight:600;}
.auth-back{font-size:0.85rem;opacity:0.7;}

.menu-footer form{
  margin-top:1rem;
  width:100%;
  display:flex;
  justify-content:center;
}
.menu-footer .menu-logout{
  background:transparent;
  border:none;
  color:var(--text-primary);
  font-size:0.85rem;
  padding:0.35rem 0;
  cursor:pointer;
  text-decoration:underline;
}

.lang-switch{display:flex;gap:1rem;font-size:.95rem;}
.lang-switch button{background:var(--surface-muted);border:1px solid var(--ghost-border);padding:.4rem .9rem;border-radius:999px;cursor:pointer;transition:all .25s ease;color:var(--text-secondary);}
.lang-switch button:hover{background:linear-gradient(90deg,var(--gold1),var(--gold2));color:#fff;border:none;box-shadow:0 0 12px rgba(191,163,106,0.4);}

.menu-lang-select{width:100%;display:flex;flex-direction:column;gap:0.5rem;margin-top:1.2rem;}
.menu-lang-label{font-size:0.75rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--text-soft);}
.menu-lang-select-inner{position:relative;display:flex;align-items:center;width:100%;background:var(--surface-elevated);border:1px solid var(--card-border);border-radius:999px;padding:0 0.85rem;box-shadow:0 10px 24px rgba(15,23,42,0.12);}
.menu-lang-input{width:100%;border:none;background:transparent;font-size:0.95rem;padding:0.55rem 0;color:var(--text-primary);appearance:none;-webkit-appearance:none;cursor:pointer;}
.menu-lang-input:focus{outline:none;}
.menu-lang-icon{position:absolute;right:0.95rem;font-size:0.9rem;color:var(--text-soft);pointer-events:none;}

.footer-lang-select-inner{
  position:relative;
  display:inline-flex;
  align-items:center;
  width:min(220px,100%);
  background:var(--surface-elevated);
  border:1px solid var(--card-border);
  border-radius:10px;
  padding:0 0.75rem;
  box-shadow:0 8px 18px rgba(15,23,42,0.08);
}
.footer-lang-select-input{
  width:100%;
  border:none;
  background:transparent;
  padding:0.65rem 0;
  font-size:0.9rem;
  color:var(--text-primary);
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
}
.footer-lang-select-input:focus{
  outline:none;
}
.footer-lang-icon{
  position:absolute;
  right:0.75rem;
  font-size:0.9rem;
  color:var(--text-soft);
  pointer-events:none;
}

.contact-social{display:flex;gap:0.75rem;margin-top:1.25rem;}
.contact-social-link{
  width:40px;
  height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--surface-elevated);
  border:1px solid var(--card-border);
  box-shadow:var(--card-shadow);
  color:var(--text-secondary);
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.contact-social-link svg{
  width:18px;
  height:18px;
}
.contact-social-link:hover,
.contact-social-link:focus-visible{
  background:linear-gradient(135deg,#f3d88b,#bfa36a);
  color:var(--text-primary);
  transform:translateY(-3px);
  box-shadow:0 18px 32px rgba(191,163,106,0.3);
}
.contact-social-link:focus-visible{
  outline:2px solid rgba(191,163,106,0.6);
  outline-offset:3px;
}

body.menu-open{overflow:hidden;}

.site-footer {
  background: var(--header-bg);
  color: var(--text-secondary);
  border-top: 1px solid var(--header-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.site-footer a {
  color: inherit;
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: var(--link-color);
}

.footer-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.footer-login-link:hover {
  background: linear-gradient(140deg, var(--gold2), var(--gold1));
  color: #0b1220;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(191, 163, 106, 0.28);
}
.footer-login-link:focus-visible {
  outline: 2px solid rgba(191, 163, 106, 0.45);
  outline-offset: 3px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand-top {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.theme-dark .site-footer {
  background: rgba(17,24,39,0.88);
  color: rgba(226,232,240,0.92);
  border-top: 1px solid rgba(51,65,85,0.55);
    box-shadow: 0 -2px 18px rgba(2,6,23,0.6);
}

.theme-dark .site-footer a {
  color: rgba(226,232,240,0.92);
}

.theme-dark .footer-login-link {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.8);
  color: rgba(226, 232, 240, 0.94);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.5);
}
.theme-dark .footer-login-link:hover {
  background: linear-gradient(140deg, var(--gold2), var(--gold1));
  color: #0b1220;
  box-shadow: 0 24px 60px rgba(243, 216, 139, 0.32);
}


.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--ghost-border);
  background: var(--surface-muted);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: var(--ghost-hover);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary-btn-border);
  outline-offset: 2px;
}

.theme-toggle.full {
  width: 100%;
  justify-content: center;
}

.theme-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
}

nav .theme-toggle {
  padding: 0.3rem 0.75rem;
  margin-left: 0.5rem;
}

nav .theme-toggle .theme-toggle-label {
  display: none;
}

.theme-dark .theme-toggle {
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--primary-btn-bg);
  color: var(--primary-btn-color);
  border: 1px solid var(--primary-btn-border);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--primary-btn-color);
}
a.btn-primary:visited { color: var(--primary-btn-color); }
.btn-primary:focus-visible {
  outline: 2px solid var(--primary-btn-border);
  outline-offset: 2px;
}
.btn-primary:active {
  color: var(--primary-btn-color);
}

.btn-ghost {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--ghost-border);
  padding: 0.5rem 1.1rem;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn-ghost:hover {
  background: var(--ghost-hover);
  transform: translateY(-1px);
}

/* --- Glass / Card Elements --- */
.glass {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(11,11,11,0.08);
  padding: 1.5rem;
}

.theme-dark .glass {
  background: rgba(17,24,39,0.78);
  border-color: rgba(59,130,246,0.18);
  box-shadow: 0 24px 60px rgba(2,6,23,0.6);
}

.card-quiet {
  background: var(--header-bg);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(16,24,40,0.04);
  box-shadow: 0 18px 45px rgba(16,24,40,0.08);
  margin: 1rem 0;
}
.theme-dark .card-quiet {
  background: rgba(17,24,39,0.88);
  border-color: rgba(51, 65, 85, 0.55);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.96);
}

.hero-card-divider {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  opacity: 0.7;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
.theme-dark .hero-card-divider {
  border-top-color: rgba(148, 163, 184, 0.25);
  opacity: 0.4;
}

/* --- Timeline --- */
.timeline-wrap {
  background: linear-gradient(180deg, rgba(250,246,244,0.6), rgba(255,255,255,0.6));
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.9rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 70px rgba(11,11,11,0.06);
}
.theme-dark .timeline-wrap {
  background: linear-gradient(180deg, rgba(17,24,39,0.85), rgba(15,23,42,0.78));
}
@media (max-width: 768px) {
  .timeline-wrap {
    padding: 1.5rem 1rem 2.1rem;
  }
}

.timeline-track {
  height: 4px;
  background: linear-gradient(90deg,#eee,#f5f5f6);
  border-radius: 4px;
}
.theme-dark .timeline-track {
  background: linear-gradient(90deg, rgba(59,130,246,0.35), rgba(148,163,184,0.2));
}

.timeline-content{
  flex-direction: row;
  display: flex;
  gap: 2rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.timeline-text{
  flex: 1 1 320px;
  min-width: 0;
}
.timeline-image{
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.timeline-markers {
  width: 100%;
  justify-content: space-between;
  padding: 0.4rem 0.25rem 0.9rem;
}
@media (max-width: 768px) {
  .timeline-markers {
    justify-content: flex-start;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.65rem 0.75rem 1.35rem;
    margin: 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-color: rgba(37, 99, 235, 0.45) rgba(148, 163, 184, 0.25);
  }
  .timeline-markers::-webkit-scrollbar {
    height: 4px;
  }
  .timeline-markers::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
  }
  .timeline-markers::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 999px;
  }
  .timeline-markers .marker {
    flex: 0 0 auto;
    min-width: 64px;
    scroll-snap-align: center;
  }
}
.marker {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.9,.2,1);
}
.marker:hover { transform: translateY(-6px); }

.marker-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #eee;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(11,11,11,0.06);
}
.theme-dark .marker-dot {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.55);
}
.marker-dot.active {
  border-color: rgba(191,163,106,0.55);
  box-shadow: 0 12px 40px rgba(191,163,106,0.08);
}
.marker-label { font-weight: 700; color: var(--text-primary); }
.marker-sub { font-size: 12px; color: var(--muted); }
.theme-dark .marker-sub { color: var(--text-soft); }

/* --- Timeline Images --- */
.timeline-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  max-height: 60vh;
}

/* --- Review Slider --- */
.review-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100%;
}
.review-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.review-slider-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.review-slider-rating {
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(90deg, #bfa36a, #f3d88b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.review-slider-rating .review-slider-score {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.95rem;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-secondary);
}
.review-slider-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.review-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ghost-border);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.review-slider-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(7,16,24,0.12);
}
.theme-dark .review-slider-btn:hover {
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.6);
}
.review-slider-btn:focus-visible {
  outline: 2px solid rgba(191,163,106,0.45);
  outline-offset: 2px;
}
.review-slider-viewport {
  position: relative;
  min-height: 210px;
}
.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.review-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.review-slide blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
}
.review-author {
  font-weight: 600;
  color: var(--text-secondary);
}
.review-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
}
.review-slider-dots {
  display: flex;
  gap: 0.5rem;
}
.review-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.12);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.review-slider-dots button.active {
  width: 24px;
  background: linear-gradient(90deg, #bfa36a, #f3d88b);
}
.theme-dark .review-slider-dots button {
  background: rgba(148,163,184,0.25);
}
.theme-dark .review-slider-dots button.active {
  background: linear-gradient(90deg, rgba(191,163,106,0.85), rgba(243,216,139,0.95));
  box-shadow: 0 0 12px rgba(191,163,106,0.4);
}

/* --- Inputs --- */
#groupRange{
  --slider-progress: 0%;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--gold1), var(--gold2)) 0/var(--slider-progress) 100% no-repeat,
    rgba(7,16,24,0.08);
  cursor: pointer;
  transition: box-shadow .2s ease;
}
.theme-dark #groupRange{
  background:
    linear-gradient(90deg, var(--gold1), var(--gold2)) 0/var(--slider-progress) 100% no-repeat,
    rgba(148,163,184,0.28);
}
#groupRange:hover{
  box-shadow: 0 6px 18px rgba(191,163,106,0.25);
}
#groupRange:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(191,163,106,0.28);
}
#groupRange::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px;
  height:22px;
  border-radius:50%;
  background: linear-gradient(180deg,#111,#222);
  border:2px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 25px rgba(7,16,24,0.22);
  transition: transform .2s ease;
}
.theme-dark #groupRange::-webkit-slider-thumb{
  background: linear-gradient(180deg,#f3d88b,#bfa36a);
  border-color: rgba(15,23,42,0.9);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.55);
}
#groupRange::-webkit-slider-thumb:hover{
  transform: scale(1.08);
}
#groupRange::-moz-range-thumb{
  width:22px;
  height:22px;
  border-radius:50%;
  background: linear-gradient(180deg,#111,#222);
  border:2px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 25px rgba(7,16,24,0.22);
  transition: transform .2s ease;
}
.theme-dark #groupRange::-moz-range-thumb{
  background: linear-gradient(180deg,#f3d88b,#bfa36a);
  border-color: rgba(15,23,42,0.9);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.55);
}
#groupRange::-moz-range-track{
  height:8px;
  border-radius:999px;
  background: rgba(7,16,24,0.08);
}
.theme-dark #groupRange::-moz-range-track{
  background: rgba(148,163,184,0.28);
}
#groupRange::-moz-range-thumb:hover{
  transform: scale(1.08);
}

/* --- Animations --- */
.floaty {
  animation: floaty 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.btn-glint {
  position: relative;
  overflow: hidden;
}
.btn-glint::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 40%;
  height: 220%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.45), rgba(255,255,255,0));
  transform: rotate(25deg) translateX(-120%);
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.btn-glint:hover::after {
  transform: rotate(25deg) translateX(240%);
}

/*.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s cubic-bezier(.2,.9,.2,1), transform .55s cubic-bezier(.2,.9,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}*/

@media (prefers-reduced-motion: reduce) {
  .floaty,
  .btn-glint::after,
  .reveal {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* --- Accessibility --- */
:focus {
  outline: 2px solid rgba(191,163,106,0.25);
  outline-offset: 2px;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

html, body { overflow-x: hidden; }


/* Contact form fields */

.card-quiet input,
.card-quiet textarea,
.card-quiet select {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--ghost-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.card-quiet input::placeholder,
.card-quiet textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.9;
}
.card-quiet input:focus-visible,
.card-quiet textarea:focus-visible,
.card-quiet select:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  background: var(--surface);
}
.theme-dark .card-quiet input,
.theme-dark .card-quiet textarea,
.theme-dark .card-quiet select {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text-primary);
}
.theme-dark .card-quiet input:focus-visible,
.theme-dark .card-quiet textarea:focus-visible,
.theme-dark .card-quiet select:focus-visible {
  border-color: rgba(191, 163, 106, 0.65);
  box-shadow: 0 0 0 4px rgba(191, 163, 106, 0.25);
}
.theme-dark .card-quiet input::placeholder,
.theme-dark .card-quiet textarea::placeholder {
  color: rgba(203, 213, 225, 0.65);
}

.theme-dark .footer-lang-select-inner{
  background: rgba(23,32,50,0.92);
  border-color: rgba(74,85,104,0.6);
  box-shadow: 0 12px 28px rgba(2,6,23,0.55);
}
.theme-dark .footer-lang-select-input{
  color: rgba(226,232,240,0.92);
}
.theme-dark .footer-lang-icon{
  color: rgba(148,163,184,0.7);
}
