/* Global theme scaffold for the static HTML phase. */

:root {
  --theme-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --theme-font-display: 'Playfair Display', Georgia, serif;
  --theme-container-max: 1320px;
  --liquid-shadow-soft: 0 10px 28px rgba(92, 79, 107, 0.08);
  --liquid-shadow-hover: 0 16px 34px rgba(92, 79, 107, 0.12);
  --liquid-border: rgba(255, 255, 255, 0.46);
  --liquid-highlight: rgba(255, 255, 255, 0.44);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--theme-font-body);
  transition: background 0.4s ease, color 0.4s ease;
}

body.is-loading {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
}

.brand-logo {
  width: 58px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(95, 81, 111, 0.08);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.header-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(214, 181, 110, 0.32);
}

.header-icon.active {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(214, 181, 110, 0.42);
  box-shadow: 0 10px 24px rgba(214, 181, 110, 0.14);
}

.header-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 18%, rgba(233, 183, 192, 0.34), transparent 22%),
    radial-gradient(circle at 78% 20%, rgba(214, 222, 242, 0.42), transparent 20%),
    radial-gradient(circle at 56% 82%, rgba(232, 216, 182, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(247, 241, 239, 0.985) 0%, rgba(242, 235, 233, 0.985) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 42px 32px 34px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.42), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 64px rgba(124, 105, 130, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  text-align: center;
  overflow: hidden;
}

.site-preloader-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.38), transparent 28%),
    radial-gradient(circle at 50% -6%, rgba(255, 255, 255, 0.34), transparent 38%);
  pointer-events: none;
}

.site-preloader-panel::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

.preloader-orbit {
  position: relative;
  width: 214px;
  height: 214px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid rgba(91, 104, 132, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04) 58%, rgba(255, 255, 255, 0.01) 72%),
    conic-gradient(from 100deg, rgba(214, 181, 110, 0), rgba(214, 181, 110, 0.18), rgba(214, 222, 242, 0), rgba(233, 183, 192, 0.18), rgba(214, 181, 110, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 24px 54px rgba(110, 92, 122, 0.12);
  animation: orbitBreath 3.2s ease-in-out infinite;
}

.preloader-orbit::before,
.preloader-orbit::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(91, 104, 132, 0.12);
  animation: orbitRotate 18s linear infinite;
}

.preloader-orbit::after {
  inset: 30px;
  animation-direction: reverse;
  animation-duration: 13s;
}

.preloader-moon {
  position: absolute;
  inset: 33px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.34) 54%, rgba(220, 198, 151, 0.12) 100%),
    radial-gradient(circle at 66% 66%, rgba(233, 183, 192, 0.12), transparent 40%),
    radial-gradient(circle at 42% 78%, rgba(214, 222, 242, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset -10px -10px 22px rgba(111, 110, 123, 0.08),
    inset 8px 8px 20px rgba(255, 255, 255, 0.58);
}

.preloader-moon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 26%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.18) 52%, rgba(40, 52, 71, 0.04) 100%),
    radial-gradient(circle at 24% 58%, rgba(40, 52, 71, 0.1), transparent 18%),
    radial-gradient(circle at 62% 32%, rgba(40, 52, 71, 0.09), transparent 16%),
    radial-gradient(circle at 58% 76%, rgba(40, 52, 71, 0.08), transparent 18%),
    radial-gradient(circle at 42% 42%, rgba(40, 52, 71, 0.06), transparent 12%),
    linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.36) 42%, rgba(255, 255, 255, 0) 74%);
  background-size: auto, auto, auto, auto, auto, 220% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 120% 0;
  animation: moonGlow 2.8s ease-in-out infinite, moonSheen 2.4s ease-in-out infinite;
}

.preloader-moon::after {
  content: "";
  position: absolute;
  top: -4%;
  left: 14%;
  width: 112%;
  height: 112%;
  border-radius: 50%;
  background: rgba(243, 236, 234, 0.96);
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  animation: moonFill 2.5s ease-in-out infinite;
}

.preloader-copy {
  position: relative;
  z-index: 1;
}

.preloader-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(83, 90, 111, 0.72);
}

.preloader-copy strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--theme-font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 500;
  line-height: 0.98;
  color: #253244;
}

.preloader-copy p {
  max-width: 318px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(86, 92, 109, 0.72);
}

.liquid-hover-target {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.liquid-hover-target::after {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16) 14%, transparent 36%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.liquid-hover-target:hover {
  transform: translateY(-4px);
  box-shadow: var(--liquid-shadow-hover);
  border-color: rgba(255, 255, 255, 0.68);
}

.liquid-hover-target:hover::after {
  opacity: 1;
}

.liquid-hover-target > * {
  position: relative;
  z-index: 1;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitBreath {
  0%, 100% { transform: scale(0.985); }
  50% { transform: scale(1.015); }
}

@keyframes moonFill {
  0%, 100% { transform: translateX(76%); }
  50% { transform: translateX(8%); }
}

@keyframes moonGlow {
  0%, 100% { transform: scale(0.97); opacity: 0.92; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes moonSheen {
  0%, 100% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 120% 0; }
  50% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, -20% 0; }
}

@media (max-width: 640px) {
  .site-preloader-panel {
    width: min(100%, 390px);
    padding: 34px 22px 28px;
    border-radius: 30px;
  }

  .site-preloader-panel::after {
    inset: 12px;
    border-radius: 24px;
  }

  .preloader-orbit {
    width: 180px;
    height: 180px;
    margin-bottom: 22px;
  }

  .preloader-moon {
    inset: 28px;
  }

  .preloader-copy strong {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 72px;
  padding: 28px 24px 0;
  background: transparent;
  overflow: hidden;
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.site-footer::before {
  top: 24px;
  left: 50%;
  width: min(92%, 1180px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(118, 116, 146, 0.32), transparent);
}

.site-footer::after {
  right: 9%;
  top: 46px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(163, 146, 170, 0.18);
  box-shadow:
    0 0 0 32px rgba(200, 183, 209, 0.05),
    0 0 0 68px rgba(200, 183, 209, 0.025);
  opacity: 0.8;
}

.site-footer-shell {
  position: relative;
  max-width: var(--theme-container-max);
  margin: 0 auto;
  padding: 56px 24px 34px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-footer-shell::before {
  display: none;
}

.site-footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  gap: 34px;
  align-items: start;
  height: 100%;
}

.site-footer-col {
  position: relative;
  padding-top: 8px;
}

.site-footer-col + .site-footer-col {
  padding-left: 30px;
}

.site-footer-col + .site-footer-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(232, 200, 149, 0), rgba(232, 200, 149, 0.18), rgba(232, 200, 149, 0));
}

.site-footer-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(103, 101, 126, 0.8);
}

.site-footer-brandline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.site-footer-logo {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 200, 149, 0.18), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 30px rgba(120, 100, 131, 0.1);
}

.site-footer-logo::before,
.site-footer-logo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(214, 181, 110, 0.18);
}

.site-footer-logo::before {
  inset: 11px;
}

.site-footer-logo::after {
  inset: 22px;
}

.site-footer-logo span {
  position: relative;
  font-family: var(--theme-font-display);
  font-size: 34px;
  line-height: 1;
  color: #f6e2bc;
}

.site-footer-logo-image {
  position: relative;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(214, 181, 110, 0.22));
}

.site-footer-wordmark strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--theme-font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 0.92;
  color: #273446;
}

.site-footer-wordmark span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(106, 100, 123, 0.72);
}

.site-footer-description {
  max-width: 420px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(62, 71, 88, 0.78);
}

.site-footer-note {
  max-width: 350px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(104, 106, 117, 0.78);
}

.site-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.38);
  color: rgba(39, 52, 70, 0.9);
  text-decoration: none;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.site-footer-socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 181, 110, 0.4);
  background: rgba(255, 255, 255, 0.6);
}

.site-footer-socials svg {
  width: 15px;
  height: 15px;
  color: #d6b56e;
}

.site-footer-socials span {
  font-size: 11px;
  text-transform: uppercase;
}

.site-footer-title {
  margin-bottom: 20px;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(103, 101, 126, 0.82);
}

.site-footer-links,
.site-footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links a,
.site-footer-contact a,
.site-footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(42, 55, 73, 0.82);
  text-decoration: none;
  transition: color 0.24s ease, transform 0.24s ease;
}

.site-footer-links a:hover,
.site-footer-contact a:hover {
  color: #b88c3e;
  transform: translateX(3px);
}

.site-footer-links a::before,
.site-footer-contact a::before,
.site-footer-contact span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232, 200, 149, 0.95), rgba(232, 200, 149, 0.12));
  box-shadow: 0 0 14px rgba(214, 181, 110, 0.18);
  flex-shrink: 0;
}

.site-footer-links a {
  font-size: 14px;
  line-height: 1.8;
}

.site-footer-contact li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(110, 109, 131, 0.1);
}

.site-footer-contact li:last-child {
  border-bottom: 0;
}

.site-footer-contact-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(104, 106, 117, 0.76);
}

.site-footer-contact a,
.site-footer-contact span {
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-bottom {
  max-width: var(--theme-container-max);
  margin: 0 auto;
  padding: 18px 8px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(110, 106, 118, 0.62);
}

.site-footer-legal,
.site-footer-dev {
  line-height: 1.4;
}

.site-footer-dev {
  text-align: right;
}

.go-top-fab{
  position:fixed;
  left:calc(18px + env(safe-area-inset-left, 0px));
  bottom:calc(18px + env(safe-area-inset-bottom, 0px));
  z-index:80;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.74);
  background:linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  box-shadow:0 18px 42px rgba(40,52,71,.12);
  color:rgba(40,52,71,.84);
  opacity:0;
  transform:translateY(10px) scale(.98);
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease,border-color .25s ease,background .25s ease;
}

.go-top-fab.is-visible{
  opacity:1;
  transform:none;
  pointer-events:auto;
}

.go-top-fab:hover{
  transform:translateY(-2px) scale(1);
  background:linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.52));
  border-color:rgba(214,181,110,.32);
}

.go-top-icon{
  width:28px;
  height:28px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.62);
  font-size:16px;
  line-height:1;
}


@media (max-width: 940px) {
  .site-footer-shell {
    min-height: unset;
    max-height: none;
    padding: 40px 28px 28px;
    border-radius: 28px 28px 0 0;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer-col + .site-footer-col {
    padding-left: 0;
  }

  .site-footer-col + .site-footer-col::before {
    display: none;
  }

  .site-footer-brandline {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 20px 14px 0;
  }

  .site-footer-shell {
    padding: 34px 20px 24px;
  }

  .site-footer-brandline {
    flex-direction: column;
    gap: 14px;
  }

  .site-footer-logo {
    width: 76px;
    height: 76px;
    border-radius: 24px;
  }

  .site-footer-socials a {
    min-width: calc(50% - 6px);
  }

  .site-footer-wordmark strong {
    font-size: 2.2rem;
  }
}

@media (max-width: 720px) {
  .site-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer-dev {
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .site-preloader,
  .site-preloader * ,
  .liquid-hover-target,
  .liquid-hover-target::after {
    animation: none !important;
    transition: none !important;
  }
}
