/* European Lime — shared color system for the live Code Design pages. */
:root {
  --paper: #fbf8f2;
  --paper-muted: #f3f2ec;
  --ink: #252729;
  --graphite: #202422;

  --lime-primary: #b8e64a;
  --lime-hover: #a3d235;
  --lime-active: #83ae20;
  --lime-ink: #4a6514;
  --lime-ink-hover: #3f5711;
  --lime-ink-active: #33470d;
  --lime-soft: #eff7d6;

  --lime-focus-inner: #b8e64a;
  --lime-focus-outer: #252729;
  --lime-hairline: rgba(74, 101, 20, 0.28);
  --lime-glow: rgba(184, 230, 74, 0.18);

  /* Liquid Glass material system: one edge, one depth shadow, one borderless highlight. */
  --glass-bg-header: rgba(245, 245, 238, 0.16);
  --glass-bg-header-scrolled: rgba(245, 245, 238, 0.2);
  --glass-bg-header-over-dark: rgba(245, 245, 238, 0.24);
  --glass-bg-header-over-dark-scrolled: rgba(245, 245, 238, 0.28);
  --glass-bg-header-over-light: rgba(37, 39, 41, 0.18);
  --glass-bg-header-over-light-scrolled: rgba(37, 39, 41, 0.22);
  --glass-bg-surface: rgba(250, 250, 244, 0.22);
  --glass-bg-surface-active: rgba(250, 250, 244, 0.26);
  --glass-bg-cta: rgba(250, 250, 244, 0.18);
  --glass-bg-menu: rgba(22, 26, 24, 0.7);
  --glass-filter-header: blur(22px) saturate(1.3);
  --glass-filter-surface: blur(26px) saturate(1.38);
  --glass-filter-cta: blur(24px) saturate(1.34);
  --glass-filter-menu: blur(30px) saturate(1.26);
  --glass-shadow: 0 12px 32px rgba(14, 18, 16, 0.105);
  --glass-shadow-raised: 0 18px 44px rgba(14, 18, 16, 0.13);
  --glass-highlight: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.008) 48%, rgba(184, 230, 74, 0.018));
  --glass-highlight-dark: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.006) 50%, rgba(184, 230, 74, 0.015));
}

::selection {
  background: var(--lime-primary) !important;
  color: var(--ink) !important;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime-focus-inner) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px var(--lime-focus-outer) !important;
}

a,
button {
  -webkit-tap-highlight-color: var(--lime-glow);
}

html {
  scroll-behavior: smooth;
}

/* Legal UI stays solid and quiet; Liquid Glass remains limited to four floating components. */
.gk-footer-legal-wrap {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(251, 248, 242, 0.12);
}

.gk-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.gk-legal-links a,
.gk-legal-links button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #a9a499;
  font: 400 12.5px/1.35 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.gk-legal-links a:hover,
.gk-legal-links button:hover {
  color: var(--lime-primary);
}

.gk-cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 85;
  box-sizing: border-box;
  width: min(468px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(37, 39, 41, 0.13);
  border-radius: 20px;
  background: #fbf8f2;
  color: var(--ink);
  box-shadow: 0 28px 70px -30px rgba(20, 24, 22, 0.58);
  font-family: 'Outfit', sans-serif;
  animation: gk-cookie-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gk-cookie-banner[hidden] {
  display: none !important;
}

.gk-cookie-kicker {
  margin-bottom: 7px;
  color: var(--lime-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gk-cookie-banner h2 {
  margin: 0 0 8px;
  font: 650 25px/1.1 'Onest', sans-serif;
  letter-spacing: -0.025em;
}

.gk-cookie-banner p {
  margin: 0;
  color: #555a57;
  font-size: 14px;
  line-height: 1.5;
}

.gk-cookie-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  color: var(--lime-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.gk-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.gk-cookie-button {
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 600 14px/1 'Outfit', sans-serif;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.gk-cookie-reject {
  background: transparent;
  color: var(--ink);
}

.gk-cookie-accept {
  background: var(--lime-primary);
  color: var(--ink);
}

.gk-cookie-button:hover {
  transform: translateY(-2px);
}

.gk-cookie-button:active {
  transform: scale(0.975);
}

body.gk-cookie-open .gk-chat-dock,
body.gk-cookie-open .gk-trust {
  opacity: 0 !important;
  pointer-events: none !important;
}

.gk-legal-main {
  box-sizing: border-box;
  display: grid;
  align-content: center;
  min-height: calc(100svh - 250px);
  padding: 150px 80px 110px;
}

.gk-legal-main-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.gk-legal-main h1 {
  max-width: 850px;
  margin: 0 0 28px;
  font: 650 clamp(40px, 5.5vw, 78px)/1.02 'Onest', sans-serif;
  letter-spacing: -0.045em;
}

.gk-legal-placeholder {
  max-width: 700px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(37, 39, 41, 0.14);
  color: #555a57;
  font-size: 18px;
  line-height: 1.6;
}

.gk-legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 36px;
  color: var(--lime-ink);
  font-size: 14px;
  font-weight: 600;
}

/* Ready for a future contact form; the component is intentionally not mounted yet. */
.gk-personal-data-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #555a57;
  font: 400 13px/1.5 'Outfit', sans-serif;
  cursor: pointer;
}

.gk-personal-data-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--lime-active);
}

.gk-personal-data-consent a {
  color: var(--lime-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes gk-cookie-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Premium motion layer: depth without adding glass to content surfaces. */
.gk-motion-enabled .gk-reveal-premium {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.995);
  filter: blur(7px);
  transition:
    opacity 0.78s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.92s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gk-motion-enabled .gk-reveal-premium.gk-in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

.gk-primary-action,
.gk-contact-actions a {
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.38s ease,
    background-color 0.3s ease,
    color 0.3s ease !important;
}

.gk-inline-action,
.gk-back-link {
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease !important;
}

.gk-case,
.gk-card,
.gk-shot {
  transform: translateZ(0);
  transition:
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.58s ease !important;
}

.gk-case image-slot,
.gk-case img,
.gk-card image-slot,
.gk-card img,
.gk-shot .gk-zoom {
  transition: transform 0.78s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gk-page-portfolio .gk-filters button {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .gk-primary-action:hover,
  .gk-contact-actions a:hover {
    transform: translateY(-3px) scale(1.018);
    box-shadow: 0 18px 36px -20px rgba(37, 39, 41, 0.46);
  }

  .gk-inline-action:hover,
  .gk-back-link:hover {
    transform: translateX(4px);
    opacity: 0.82;
  }

  .gk-case:hover,
  .gk-card:hover,
  .gk-shot:hover {
    transform: translateY(-7px);
    box-shadow: 0 34px 70px -36px rgba(37, 39, 41, 0.5) !important;
  }

  .gk-case:hover image-slot,
  .gk-case:hover img,
  .gk-card:hover image-slot,
  .gk-card:hover img,
  .gk-shot:hover .gk-zoom {
    transform: scale(1.025);
  }

  .gk-page-portfolio .gk-filters button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -16px rgba(37, 39, 41, 0.45);
  }
}

.gk-primary-action:active,
.gk-contact-actions a:active,
.gk-page-portfolio .gk-filters button:active {
  transform: scale(0.975) !important;
}

@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;
  }

  .gk-motion-enabled .gk-reveal-premium,
  .gk-motion-enabled .gk-reveal-premium.gk-in-view {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
