:root {
  --site-bg: #f3efe7;
  --site-paper: #fbfaf7;
  --site-ink: #1a1a1a;
  --site-accent: #9c6b2f;
  --site-accent-dark: #6f4a1d;
  --site-muted: #6b6b6b;
  --site-line: #e2d8c9;
  --site-bg-radial-start: #f9f3e8;
  --site-bg-radial-mid: #f3efe7;
  --site-bg-radial-end: #efe6d6;
  --site-header-surface: rgba(251, 250, 247, 0.78);
  --site-footer-surface: #1c1610;
  --site-radius: 18px;
  --site-shadow: 0 20px 60px rgba(30, 22, 12, 0.12);
  --site-header-shadow: 0 10px 26px rgba(111, 74, 29, 0.035);
  --site-side-pad: clamp(16px, 4vw, 48px);
  --site-font-main: "Assistant", "Rubik", "Segoe UI", sans-serif;
  --site-font-display: "Rubik", "Assistant", "Segoe UI", sans-serif;
  --site-hero-surface-start: #fffaf0;
  --site-hero-surface-end: #f3ecdd;
  --site-page-hero-surface-start: #fffdf8;
  --site-page-hero-surface-end: #f3ecdd;
  --site-hero-media-max-width: 460px;
  --site-hero-media-shadow: 0 24px 52px rgba(111, 74, 29, 0.16);
  --site-hero-card-shadow: 0 18px 42px rgba(30, 22, 12, 0.1);
  --brand-gold: #b88945;
  --brand-gold-soft: rgba(184, 137, 69, 0.45);
  --brand-gold-hover: rgba(184, 137, 69, 0.7);
  --brand-gold-active: rgba(184, 137, 69, 0.9);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin !important;
  scrollbar-color: var(--brand-gold-hover) transparent !important;
  scrollbar-gutter: auto !important;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent !important;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--brand-gold-hover) !important;
  border: 0 !important;
  border-radius: 999px;
  background-clip: border-box;
  box-shadow: none !important;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--brand-gold-active) !important;
}

*::-webkit-scrollbar-thumb:active {
  background-color: var(--brand-gold-active) !important;
}

*::-webkit-scrollbar-corner {
  background: transparent !important;
}

*::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

*::-webkit-resizer {
  background: transparent !important;
}

html {
  min-height: 100%;
  background: radial-gradient(
    circle at top right,
    var(--site-bg-radial-start) 0%,
    var(--site-bg-radial-mid) 45%,
    var(--site-bg-radial-end) 100%
  );
}

body {
  margin: 0;
  font-family: var(--site-font-main);
  background: radial-gradient(
    circle at top right,
    var(--site-bg-radial-start) 0%,
    var(--site-bg-radial-mid) 45%,
    var(--site-bg-radial-end) 100%
  );
  color: var(--site-ink);
  line-height: 1.6;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px var(--site-side-pad);
  position: sticky;
  top: 0;
  background: var(--site-header-surface);
  border-bottom: 1px solid rgba(226, 216, 201, 0.62);
  box-shadow: var(--site-header-shadow);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
  z-index: 10;
}

.header-left,
.header-right,
.site-nav {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 12px;
  justify-self: end;
  flex-wrap: wrap;
}

.logout-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.logout-form .login,
.logout-form .ghost {
  font-family: inherit;
}

.header-logout-form .login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-right {
  justify-self: start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site-nav {
  justify-content: center;
  gap: 20px;
  font-weight: 600;
  color: var(--site-muted);
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

.brand,
.hero-content h1,
.page-hero h1 {
  font-family: var(--site-font-display);
}

.logo-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--site-accent);
  color: #fff;
  font-weight: 800;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #fff;
  padding: 3px;
  overflow: hidden;
}

.lang-switcher-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--site-accent-dark);
  padding: 5px 11px;
  font: 700 0.82rem/1.4 var(--site-font-main);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switcher-link.is-active {
  background: var(--site-accent);
  color: #fff;
}

.hero-media,
.page-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media-image,
.page-hero-media-image {
  display: block;
  width: min(100%, var(--site-hero-media-max-width));
  height: auto;
  filter: drop-shadow(var(--site-hero-media-shadow));
}

.page,
.hero,
.section {
  padding-inline: var(--site-side-pad);
}

.page-hero {
  padding: 70px var(--site-side-pad) 40px;
  background: linear-gradient(135deg, var(--site-page-hero-surface-start) 0%, var(--site-page-hero-surface-end) 100%);
  border-bottom: 1px solid var(--site-line);
}

.page-hero.has-media {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.page-hero-copy {
  max-width: 720px;
}

.page-section {
  padding: 28px var(--site-side-pad) 60px;
}

.form-panel,
.filter-bar {
  width: min(920px, calc(100% - 32px));
  margin: 28px auto;
}

.form-panel {
  display: grid;
  gap: 14px;
}

.form-panel label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.form-panel input,
.form-panel textarea,
.filter-bar input,
.filter-bar select {
  min-height: 42px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.notice,
.empty-state {
  width: min(920px, calc(100% - 32px));
  margin: 20px auto;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: #fff8ec;
  padding: 14px 16px;
}

body[data-route="contact"] .page {
  padding: 0;
}

.contact-page {
  background: #f5eddf;
}

.contact-scene {
  --contact-hero-image: url("/assets/sites/otzar_maran/media/contact-hero.png");
  position: relative;
  isolation: isolate;
  min-height: min(820px, calc(100vh - 84px));
  padding: clamp(44px, 6vw, 66px) var(--site-side-pad) clamp(52px, 7vw, 86px);
  overflow: hidden;
  color: #3f2e22;
  background:
    linear-gradient(90deg, rgba(248, 240, 228, 0.98) 0%, rgba(248, 240, 228, 0.94) 45%, rgba(248, 240, 228, 0.7) 63%, rgba(248, 240, 228, 0.32) 100%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(236, 219, 194, 0.84));
}

.contact-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    var(--contact-hero-image) right -140px center / cover no-repeat,
    linear-gradient(135deg, #fbf4e9 0%, #ead8be 100%);
}

.contact-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 19% 44%, rgba(255, 249, 239, 0.82) 0%, rgba(255, 249, 239, 0.56) 30%, transparent 58%),
    radial-gradient(circle at 8% 78%, rgba(255, 255, 255, 0.34) 0%, transparent 30%),
    linear-gradient(90deg, rgba(255, 250, 242, 0.72) 0%, rgba(255, 250, 242, 0.42) 48%, rgba(255, 250, 242, 0.2) 66%, rgba(72, 125, 179, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(106, 73, 45, 0.14));
  pointer-events: none;
}

.contact-notice {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.contact-scene-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1240px;
  min-height: min(680px, calc(100vh - 220px));
  margin: 0 auto;
}

.contact-compose {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: min(100%, 690px);
  margin-inline: auto;
  padding: clamp(12px, 2vw, 22px);
  text-align: center;
}

.contact-compose::before {
  content: "";
  position: absolute;
  inset: clamp(-10px, -1vw, -4px) clamp(-16px, -1.4vw, -6px);
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(ellipse at center, rgba(255, 252, 246, 0.78) 0%, rgba(255, 252, 246, 0.5) 48%, rgba(255, 252, 246, 0) 76%);
  filter: blur(2px);
  pointer-events: none;
}

.contact-intro {
  max-width: 720px;
}

.contact-intro .eyebrow {
  margin: 0 0 10px;
  color: #68462e;
  font-size: clamp(1.25rem, 1.85vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 0 18px rgba(255, 250, 242, 0.92), 0 6px 22px rgba(74, 47, 32, 0.14);
}

.contact-intro .eyebrow::after {
  content: "";
  display: block;
  width: 112px;
  height: 12px;
  margin: 12px auto 0;
  background:
    linear-gradient(90deg, transparent, rgba(190, 145, 100, 0.8), transparent) center / 100% 1px no-repeat;
}

.contact-intro h1 {
  margin: 0;
  color: #b77f72;
  font-size: clamp(4.6rem, 7.8vw, 7.2rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 24px rgba(255, 250, 242, 0.95), 0 10px 28px rgba(98, 62, 43, 0.14);
}

.contact-intro .lead {
  max-width: 620px;
  margin: clamp(14px, 2.2vw, 24px) auto 0;
  color: #4e3828;
  font-size: clamp(1.2rem, 1.8vw, 1.56rem);
  line-height: 1.75;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 18px rgba(255, 250, 242, 0.9), 0 5px 18px rgba(74, 47, 32, 0.12);
}

.contact-page .contact-form {
  width: min(100%, 620px);
  display: grid;
  gap: 16px;
  padding: 0;
  color: #4b3324;
  direction: rtl;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-page .contact-form label {
  display: grid;
  gap: 8px;
  color: #2f1e13;
  font-weight: 800;
  direction: rtl;
  justify-items: start;
  text-align: right;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.96), 0 0 8px rgba(255, 255, 255, 0.96), 0 0 18px rgba(255, 248, 235, 0.9), 0 3px 12px rgba(56, 36, 22, 0.22);
}

.contact-page .contact-form .contact-copy-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 26px;
  margin-top: -8px;
  color: #342013;
  font-size: 0.96rem;
  cursor: pointer;
}

.contact-page .contact-form .contact-copy-option input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: #b97664;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(187, 127, 91, 0.54);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 250, 242, 0.72);
  color: #3d2a1d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 30px rgba(95, 65, 43, 0.09), 0 0 20px rgba(255, 250, 242, 0.36);
  backdrop-filter: blur(4px);
  font: inherit;
}

.contact-page .contact-form input:not([type="email"]),
.contact-page .contact-form textarea {
  direction: rtl;
  text-align: right;
}

.contact-page .contact-form input[type="email"] {
  direction: ltr;
  text-align: left;
}

.contact-page .contact-form input::placeholder,
.contact-page .contact-form textarea::placeholder {
  color: rgba(61, 42, 29, 0.76);
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 0 10px rgba(255, 250, 242, 0.7);
}

.contact-page .contact-form input:focus,
.contact-page .contact-form textarea:focus {
  outline: 2px solid rgba(189, 130, 115, 0.35);
  outline-offset: 2px;
  border-color: rgba(169, 101, 79, 0.78);
  background: rgba(255, 252, 247, 0.76);
}

.contact-page .contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-page .contact-form .primary {
  justify-self: center;
  min-width: 164px;
  min-height: 54px;
  padding-inline: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c88978 0%, #b97664 100%);
  color: #fffaf4;
  box-shadow: 0 18px 34px rgba(139, 85, 65, 0.26);
}

.contact-page .contact-form .primary::after {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-inline-start: 10px;
  background: currentColor;
  clip-path: polygon(8% 44%, 82% 10%, 62% 92%, 44% 60%, 20% 76%);
  transform: translateY(2px);
}

.contact-page .contact-form .primary:hover {
  background: linear-gradient(135deg, #d29482 0%, #aa6656 100%);
  transform: translateY(-1px);
}

.contact-page .contact-info {
  width: min(100%, 620px);
  color: #4b3728;
  text-align: center;
  text-shadow: 0 1px 18px rgba(255, 250, 242, 0.84);
  opacity: 0.86;
}

.contact-page .contact-info h2 {
  margin: 0 0 8px;
  color: #4a2f20;
  font-size: clamp(1.1rem, 1.55vw, 1.42rem);
}

.contact-page .contact-lead {
  max-width: 460px;
  margin: 0 auto;
  color: #72563d;
  line-height: 1.6;
}

.contact-page .contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 12px;
  color: #3d2c20;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-page .contact-scene::before {
  animation: contactBackdropDrift 24s ease-in-out infinite alternate;
}

.contact-page .contact-scene::after {
  animation: contactVeilBreathe 12s ease-in-out infinite alternate;
}

.contact-page .contact-compose::before {
  animation: contactGlowBreathe 8s ease-in-out infinite;
}

.contact-page .contact-intro .eyebrow,
.contact-page .contact-intro h1,
.contact-page .contact-intro .lead,
.contact-page .contact-form,
.contact-page .contact-info {
  animation: contactRiseIn 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.contact-page .contact-intro .eyebrow {
  animation-delay: 0.05s;
}

.contact-page .contact-intro h1 {
  animation-delay: 0.14s;
}

.contact-page .contact-intro .lead {
  animation-delay: 0.23s;
}

.contact-page .contact-form {
  animation-delay: 0.32s;
}

.contact-page .contact-info {
  animation-delay: 0.44s;
}

.contact-page.motion-ready .contact-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.99);
  filter: blur(2px);
}

.contact-page.motion-ready .contact-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.7s ease,
    transform 0.75s cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 0.75s ease;
  transition-delay: var(--contact-reveal-delay, 0ms);
}

.contact-page .contact-form label {
  transition: transform 0.22s ease, filter 0.22s ease;
}

.contact-page .contact-form label:focus-within {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 18px rgba(91, 60, 36, 0.1));
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.contact-page .contact-form input:focus,
.contact-page .contact-form textarea:focus {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 34px rgba(95, 65, 43, 0.13), 0 0 24px rgba(255, 250, 242, 0.5);
}

.contact-page .contact-form .contact-copy-option input:checked {
  animation: contactCheckPop 0.34s cubic-bezier(0.18, 1.35, 0.35, 1);
}

.contact-page .contact-form .contact-copy-option:has(input:checked) span {
  animation: contactTinyNudge 0.38s ease both;
}

.contact-page .contact-form .primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.contact-page .contact-form .primary::before {
  content: "";
  position: absolute;
  inset: -120% -40%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.42) 48%, transparent 62%);
  transform: translateX(-65%);
  opacity: 0;
  pointer-events: none;
}

.contact-page .contact-form .primary:hover::before,
.contact-page .contact-form.is-submitting .primary::before {
  animation: contactButtonShine 0.95s ease;
  opacity: 1;
}

.contact-page .contact-form .primary:hover {
  box-shadow: 0 18px 34px rgba(91, 55, 38, 0.18);
}

.contact-page .contact-form .primary:active {
  transform: translateY(1px) scale(0.985);
}

.contact-page .contact-form.is-submitting .primary {
  animation: contactSendingPulse 0.95s ease-in-out infinite;
  cursor: progress;
}

.contact-page .contact-form .primary:disabled {
  opacity: 0.86;
  cursor: progress;
}

.contact-page .contact-form .primary.is-button-vanished {
  opacity: 0;
  transform: translateY(-2px) scale(0.82);
  pointer-events: none;
}

.contact-page .contact-form .primary.is-reference-state {
  opacity: 1;
  color: #fffaf0;
  background: linear-gradient(135deg, #7b5131 0%, #b77a54 58%, #6f4429 100%);
  box-shadow: 0 18px 36px rgba(74, 43, 24, 0.24), 0 0 0 4px rgba(255, 246, 224, 0.34);
  cursor: default;
  animation: contactReferenceButtonIn 0.52s cubic-bezier(0.18, 1.24, 0.32, 1) both;
}

.contact-page .contact-form.is-submitting .primary::after {
  animation: contactArrowSend 0.8s ease-in-out infinite;
}

.contact-notice {
  overflow: hidden;
  animation: contactNoticePop 0.72s cubic-bezier(0.18, 1.2, 0.34, 1) both, contactNoticeGlow 2.6s ease-in-out 0.72s infinite;
}

.contact-notice-error {
  border-color: rgba(170, 68, 54, 0.28);
  background: rgba(255, 244, 240, 0.9);
  color: #7a2a22;
}

.contact-notice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.45) 42%, transparent 62%);
  transform: translateX(-110%);
  animation: contactNoticeSweep 2.4s ease 0.35s both;
  pointer-events: none;
}

.contact-page .contact-details > div {
  transition: transform 0.22s ease, color 0.22s ease, text-shadow 0.22s ease;
}

.contact-page .contact-details > div:hover {
  transform: translateY(-2px) scale(1.03);
  color: #6a4028;
  text-shadow: 0 1px 14px rgba(255, 249, 238, 0.95);
}

.site-cursor-halo {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 999;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(184, 137, 69, 0.36);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 242, 208, 0.24) 0%, rgba(184, 137, 69, 0.14) 38%, rgba(184, 137, 69, 0) 70%);
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.18s ease, height 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.site-cursor-halo.is-visible {
  opacity: 1;
}

.site-cursor-halo.is-interactive {
  width: 48px;
  height: 48px;
  border-color: rgba(184, 137, 69, 0.58);
}

html.site-custom-scrollbar,
html.site-custom-scrollbar body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html.site-custom-scrollbar::-webkit-scrollbar,
html.site-custom-scrollbar body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.site-scrollbar-thumb {
  position: fixed;
  inset-block-start: 0;
  right: 3px;
  left: auto;
  z-index: 2147482000;
  width: 5px;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(184, 137, 69, 0.82), rgba(156, 107, 47, 0.78));
  box-shadow: 0 0 0 1px rgba(255, 248, 232, 0.28), 0 8px 18px rgba(91, 55, 28, 0.12);
  opacity: 0.74;
  cursor: ns-resize;
  touch-action: none;
  transition: opacity 0.18s ease, background 0.18s ease, width 0.18s ease;
}

.site-scrollbar-thumb:hover,
.site-scrollbar-thumb.is-dragging {
  width: 6px;
  opacity: 0.95;
  background: linear-gradient(180deg, rgba(184, 137, 69, 0.96), rgba(111, 74, 29, 0.92));
}

.site-scrollbar-thumb.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  html,
  body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  :root::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
}

@keyframes contactRiseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.99);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes contactBackdropDrift {
  from {
    background-position: right -142px center, center;
    filter: saturate(0.98);
  }
  to {
    background-position: right -128px center, center;
    filter: saturate(1.02);
  }
}

@keyframes contactVeilBreathe {
  from {
    opacity: 0.94;
  }
  to {
    opacity: 0.82;
  }
}

@keyframes contactGlowBreathe {
  0%, 100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 0.94;
    transform: scale(1.012);
  }
}

@keyframes contactCheckPop {
  0% {
    transform: scale(0.75);
  }
  58% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes contactTinyNudge {
  0% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes contactButtonShine {
  from {
    transform: translateX(-70%) rotate(8deg);
  }
  to {
    transform: translateX(70%) rotate(8deg);
  }
}

@keyframes contactSendingPulse {
  0%, 100% {
    box-shadow: 0 12px 24px rgba(91, 55, 38, 0.14), 0 0 0 0 rgba(184, 137, 69, 0.2);
  }
  50% {
    box-shadow: 0 16px 30px rgba(91, 55, 38, 0.18), 0 0 0 6px rgba(184, 137, 69, 0);
  }
}

@keyframes contactArrowSend {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px);
  }
}

@keyframes contactNoticePop {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
  66% {
    transform: translateY(1px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contactNoticeGlow {
  0%, 100% {
    box-shadow: 0 14px 28px rgba(92, 59, 34, 0.1);
  }
  50% {
    box-shadow: 0 16px 34px rgba(150, 100, 54, 0.14), 0 0 18px rgba(255, 250, 238, 0.58);
  }
}

@keyframes contactNoticeSweep {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(110%);
  }
}


.contact-send-journey {
  position: fixed;
  left: var(--button-x, 50vw);
  top: var(--button-y, 64vh);
  z-index: 1200;
  width: var(--button-w, 150px);
  height: var(--button-h, 48px);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.contact-journey-plane {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 50%;
  animation: contactButtonPlaneTakeoff 1.54s cubic-bezier(0.2, 0.86, 0.22, 1) both;
}

.contact-journey-plane-body {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d28d69 0%, #b96f4f 52%, #8d5133 100%);
  box-shadow: 0 16px 28px rgba(78, 45, 27, 0.2), inset 0 1px 0 rgba(255, 246, 230, 0.42);
  transform-origin: center;
  animation: contactPlaneBodyBuild 1.54s ease both;
}

.contact-journey-plane-body::before,
.contact-journey-plane-body::after {
  content: "";
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-journey-plane-body::before {
  left: -24px;
  top: 50%;
  width: 90px;
  height: 30px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(135deg, #fff9ed 0%, #d9b385 100%);
  clip-path: polygon(0 50%, 100% 0, 74% 50%, 100% 100%);
  transform: translateY(-50%);
  filter: drop-shadow(0 9px 10px rgba(80, 48, 28, 0.18));
  animation: contactPlaneNoseBuild 1.54s ease both;
}

.contact-journey-plane-body::after {
  right: 28px;
  top: -18px;
  width: 70px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(150deg, #fff7e4 0%, #c99b68 100%);
  clip-path: polygon(0 46%, 72% 0, 100% 22%, 54% 58%, 100% 82%, 72% 100%);
  transform: rotate(3deg) scale(0.7);
  filter: drop-shadow(0 10px 12px rgba(80, 48, 28, 0.16));
  animation: contactPlaneWingsBuild 1.54s ease both;
}

.contact-journey-burner {
  position: absolute;
  right: -38px;
  top: 50%;
  width: 52px;
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.95) 0 16%, transparent 18%),
    linear-gradient(90deg, rgba(255, 235, 128, 0.95), rgba(255, 129, 68, 0.92), rgba(179, 67, 40, 0));
  filter: blur(0.2px) drop-shadow(0 0 14px rgba(255, 154, 75, 0.72));
  opacity: 0;
  transform: translateY(-50%) scaleX(0.28);
  transform-origin: left center;
  animation: contactPlaneBurner 1.54s ease both;
}

.contact-journey-trail {
  position: absolute;
  right: -126px;
  top: 50%;
  width: 118px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 243, 211, 0.7), rgba(255, 243, 211, 0));
  opacity: 0;
  transform: translateY(-50%) scaleX(0.4);
  transform-origin: left center;
  animation: contactPlaneTrail 1.54s ease both;
}

.contact-dove-return {
  position: fixed;
  left: var(--dove-start-x, 20vw);
  top: var(--dove-start-y, 38vh);
  z-index: 2200;
  width: 278px;
  height: 194px;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  filter: drop-shadow(0 20px 28px rgba(62, 38, 22, 0.2));
  animation: contactDoveReturnPath 2.2s cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.contact-return-dove {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  width: 92px;
  height: 66px;
  border-radius: 48% 52% 58% 42%;
  background:
    radial-gradient(circle at 66% 30%, #3f2618 0 3px, transparent 4px),
    radial-gradient(circle at 74% 24%, #fffdf8 0 14px, transparent 15px),
    radial-gradient(ellipse at 50% 58%, #fff7ea 0 34px, transparent 35px);
  border: 1px solid rgba(116, 78, 46, 0.16);
  box-shadow: inset 0 -8px 14px rgba(221, 190, 143, 0.26);
  filter: drop-shadow(0 14px 18px rgba(79, 47, 28, 0.22));
  transform: translateX(-50%) rotate(-5deg);
  animation: contactReturnDoveBody 2.1s ease both;
}

.contact-return-dove::before {
  content: "";
  position: absolute;
  right: -13px;
  top: 20px;
  width: 22px;
  height: 14px;
  background: linear-gradient(135deg, #d09b52, #a86d2d);
  clip-path: polygon(0 25%, 100% 50%, 0 75%);
  filter: drop-shadow(0 4px 4px rgba(95, 55, 29, 0.16));
}

.contact-return-dove::after {
  content: "";
  position: absolute;
  left: -17px;
  top: 25px;
  width: 30px;
  height: 22px;
  border-radius: 65% 20% 65% 20%;
  background: linear-gradient(135deg, #fff7e8, #d8b986);
  transform: rotate(-20deg);
  filter: drop-shadow(0 7px 8px rgba(88, 58, 34, 0.16));
}

.contact-return-wing {
  position: absolute;
  top: 8px;
  width: 58px;
  height: 36px;
  border-top: 6px solid rgba(255, 252, 245, 1);
  border-bottom: 2px solid rgba(207, 177, 135, 0.35);
  border-radius: 50%;
  filter: drop-shadow(0 7px 8px rgba(88, 58, 34, 0.18));
  animation: contactReturnWing 0.34s ease-in-out 7;
}

.contact-return-wing-right {
  right: 43px;
  transform-origin: right center;
}

.contact-return-wing-left {
  left: 43px;
  transform-origin: left center;
}

.contact-return-claws {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 42px;
  height: 12px;
  transform: translateX(-50%);
}

.contact-return-claws::before,
.contact-return-claws::after {
  content: "";
  position: absolute;
  top: 0;
  width: 12px;
  height: 9px;
  border-bottom: 2px solid rgba(94, 58, 34, 0.75);
  border-radius: 0 0 999px 999px;
}

.contact-return-claws::before {
  left: 4px;
}

.contact-return-claws::after {
  right: 4px;
}

.contact-return-note {
  position: absolute;
  left: 50%;
  bottom: 68px;
  display: grid;
  gap: 2px;
  width: min(260px, 78vw);
  padding: 12px 14px;
  border: 1px solid rgba(179, 121, 82, 0.55);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.96);
  color: #3d2417;
  text-align: right;
  box-shadow: 0 22px 42px rgba(68, 42, 24, 0.2), 0 0 0 4px rgba(255, 246, 224, 0.35);
  transform: translateX(-50%) translateY(10px) scale(0.92);
  opacity: 0;
  animation: contactReturnNoteOpen 0.56s ease 1.12s both;
}

.contact-return-note strong {
  color: #6a3f25;
  font-size: 0.95rem;
}

.contact-return-note span,
.contact-return-note small {
  display: block;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-return-note b {
  font-weight: 900;
}

.contact-return-note small {
  color: #7b5a43;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-dove-return.is-perched .contact-return-dove {
  animation: contactReturnDovePerch 0.74s ease both;
}

.contact-dove-return.is-perched .contact-return-note {
  animation: contactReturnNoteFold 0.74s ease both;
}

@keyframes contactButtonPlaneTakeoff {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  20% {
    opacity: 1;
    transform: translate3d(-10px, 0, 0) rotate(0deg) scale(0.98);
  }
  48% {
    opacity: 1;
    transform: translate3d(calc(var(--plane-end-x, -360px) * 0.24), 2px, 0) rotate(-2deg) scale(0.92);
  }
  68% {
    opacity: 1;
    transform: translate3d(calc(var(--plane-end-x, -360px) * 0.5), calc(var(--plane-end-y, -170px) * 0.22), 0) rotate(-15deg) scale(0.78);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--plane-end-x, -360px), var(--plane-end-y, -170px), 0) rotate(-34deg) scale(0.52);
  }
}

@keyframes contactPlaneBodyBuild {
  0%, 18% {
    border-radius: 999px;
    clip-path: inset(0 round 999px);
  }
  34% {
    border-radius: 18px;
    clip-path: polygon(0 50%, 12% 20%, 72% 22%, 100% 50%, 72% 78%, 12% 80%);
  }
  100% {
    border-radius: 18px;
    clip-path: polygon(0 50%, 12% 20%, 72% 22%, 100% 50%, 72% 78%, 12% 80%);
  }
}

@keyframes contactPlaneNoseBuild {
  0%, 20% {
    opacity: 0;
    transform: translateY(-50%) translateX(20px) scale(0.6);
  }
  36%, 100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes contactPlaneWingsBuild {
  0%, 24% {
    opacity: 0;
    transform: rotate(3deg) scale(0.35);
  }
  40%, 100% {
    opacity: 1;
    transform: rotate(3deg) scale(1);
  }
}

@keyframes contactPlaneBurner {
  0%, 28% {
    opacity: 0;
    transform: translateY(-50%) scaleX(0.22);
  }
  36%, 88% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scaleX(1.22);
  }
}

@keyframes contactPlaneTrail {
  0%, 32% {
    opacity: 0;
    transform: translateY(-50%) scaleX(0.2);
  }
  48%, 88% {
    opacity: 0.72;
    transform: translateY(-50%) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scaleX(1.35);
  }
}

@keyframes contactDoveReturnPath {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.68);
  }
  12% {
    opacity: 1;
  }
  36% {
    opacity: 1;
    transform: translate3d(calc(var(--dove-mid-x) * 0.8), calc(var(--dove-mid-y) * 1.08), 0) rotate(18deg) scale(0.86);
  }
  62% {
    opacity: 1;
    transform: translate3d(var(--dove-mid-x), var(--dove-mid-y), 0) rotate(8deg) scale(0.96);
  }
  86% {
    opacity: 1;
    transform: translate3d(calc(var(--dove-end-x) - 18px), calc(var(--dove-end-y) - 16px), 0) rotate(-5deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--dove-end-x), var(--dove-end-y), 0) rotate(0deg) scale(1);
  }
}

@keyframes contactReturnDoveBody {
  0%, 78% {
    transform: translateX(-50%) rotate(-6deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

@keyframes contactReturnWing {
  0%, 100% {
    transform: rotate(13deg);
  }
  50% {
    transform: rotate(-24deg);
  }
}

@keyframes contactReturnNoteOpen {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes contactReturnDovePerch {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.76);
  }
}

@keyframes contactReturnNoteFold {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.72);
  }
}

@keyframes contactReferenceButtonIn {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.86);
  }
  64% {
    opacity: 1;
    transform: translateY(1px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .contact-page.motion-ready .contact-reveal,
  .contact-page.motion-ready .contact-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .site-cursor-halo {
    display: none;
  }
.contact-send-journey,
  .contact-dove-return {
    display: none;
  }
}

html,
body {
  scrollbar-width: thin !important;
  scrollbar-color: var(--brand-gold-hover) transparent !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
  background: transparent !important;
}

html::-webkit-scrollbar-track,
html::-webkit-scrollbar-track-piece,
body::-webkit-scrollbar-track,
body::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--brand-gold-hover) !important;
  background-clip: border-box !important;
  box-shadow: none !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold-active) !important;
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
  background: var(--brand-gold-active) !important;
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner,
html::-webkit-resizer,
body::-webkit-resizer,
*::-webkit-resizer {
  background: transparent !important;
}
