/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: 88px; }
body { font-family: Manrope, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- Site header (full-width, matches legal pages) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 48px;
  background: rgba(246,246,244,0.85);
  color: #0a0a0a;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(10,10,10,0.08);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
body[data-mode="dark"] .site-header {
  background: rgba(6,6,6,0.85);
  color: #f6f6f4;
  border-bottom-color: rgba(246,246,244,0.06);
}
.site-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.005em;
  color: inherit;
  transition: opacity .15s;
  cursor: pointer;
}
.site-brand:hover { opacity: 0.7; }
.site-brand-dot {
  width: 10px; height: 10px;
  background: #c7ff3a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, #c7ff3a 30%, transparent);
  flex-shrink: 0;
}
.site-tools {
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  border-radius: 99px;
  border: 1px solid currentColor;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
}
body[data-mode="dark"] .site-tools { border-color: rgba(246,246,244,0.18); }
body:not([data-mode="dark"]) .site-tools { border-color: rgba(10,10,10,0.14); }
.site-tools button {
  padding: 6px 11px;
  border-radius: 99px;
  color: inherit;
  opacity: 0.62;
  transition: opacity .15s, background .15s, color .15s;
}
.site-tools button:hover { opacity: 1; }
.site-tools .site-mode-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  opacity: 0.78;
}
.site-tools .site-mode-btn svg { width: 16px; height: 16px; display: block; }
.site-tools button[data-active="true"] {
  background: currentColor;
  opacity: 1;
}
.site-tools button[data-active="true"] {
  /* invert: bg = current text color, text = page bg */
}
body[data-mode="dark"] .site-tools button[data-active="true"] { background: #f6f6f4; color: #0a0a0a; }
body:not([data-mode="dark"]) .site-tools button[data-active="true"] { background: #0a0a0a; color: #f6f6f4; }
.site-tools .site-quick {
  padding: 6px 14px;
  border-radius: 99px;
  background: #c7ff3a;
  color: #0a0a0a !important;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
  opacity: 1;
  transition: transform .15s, box-shadow .15s;
}
.site-tools .site-quick:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(199, 255, 58, 0.6);
}
.site-tools .divider {
  width: 1px;
  align-self: stretch;
  background: currentColor;
  opacity: 0.18;
  margin: 0 2px;
}

/* ---------- Scroll progress bar (Gimmick 1) ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 1002;
  pointer-events: none;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  background: #c7ff3a;
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(199, 255, 58, 0.8), 0 0 18px rgba(199, 255, 58, 0.45);
  will-change: transform;
}

@media (max-width: 520px) {
  .site-header { padding: 12px 20px; }
  .site-brand { font-size: 14px; }
  .site-tools { font-size: 11px; }
  .site-tools button, .site-tools .site-quick { padding: 5px 9px; }
  .site-tools .site-quick { padding: 5px 11px; }
}

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal[data-visible="true"] { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- Smooth scroll ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Image slot defaults ---------- */
image-slot {
  --is-bg: color-mix(in oklab, currentColor 6%, transparent);
  --is-stripe: color-mix(in oklab, currentColor 10%, transparent);
  --is-fg: currentColor;
}

/* ---------- Contact form base ---------- */
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  font-weight: 600;
}
.contact-form input, .contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in oklab, currentColor 25%, transparent);
  padding: 10px 0;
  font-size: 17px;
  color: inherit;
  font-family: inherit;
  resize: none;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-bottom-color: currentColor;
}
.contact-form textarea { min-height: 100px; }

/* ---------- Common reusable shapes ---------- */
.hr-line {
  height: 1px;
  background: color-mix(in oklab, currentColor 14%, transparent);
  border: 0;
  margin: 0;
}

/* ---------- Variant scope wrapper ---------- */
.variant {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  transition: background .35s ease, color .35s ease;
}
/* Links inherit from their container — important so links on lime cards stay dark */

/* ---------- Floating language indicator label ---------- */
.site-tools .label-sm { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.5; padding: 0 8px; align-self: center; }
