@font-face {
  font-family: "IBM Plex Sans Local";
  src: url("../assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.contact-page-body {
  --contact-bg: #10120d;
  --contact-bg-deep: #090b08;
  --contact-panel: #171912;
  --contact-panel-soft: #1d2017;
  --contact-line: #3c402f;
  --contact-line-soft: rgba(191, 179, 132, 0.19);
  --contact-cream: #f0e9da;
  --contact-stone: #a9a594;
  --contact-brass: #a89b69;
  --contact-lime: #b9db16;
  --contact-lime-deep: #839b0a;
  background: var(--contact-bg-deep);
  color: var(--contact-cream);
  font-family: "IBM Plex Sans Local", var(--body);
}

.contact-page-body .site-nav {
  background: rgba(9, 11, 8, 0.96);
  border-bottom-color: rgba(185, 219, 22, 0.15);
}

.contact-page-body .site-nav .wrap {
  max-width: 1460px;
}

.contact-main {
  min-height: calc(100svh - 76px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 45%, rgba(185, 219, 22, 0.09), transparent 31%),
    radial-gradient(circle at 18% 4%, rgba(218, 202, 142, 0.035), transparent 34%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, var(--contact-bg) 0%, var(--contact-bg-deep) 100%);
}

.contact-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.045) 0 0.7px, transparent 0.9px);
  background-size: auto, 7px 7px;
  pointer-events: none;
}

.contact-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 6, 4, 0.08), transparent 46%, rgba(5, 6, 4, 0.03));
  pointer-events: none;
}

.contact-shell {
  width: min(100%, 1480px);
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(18px, 2.5vh, 28px) clamp(28px, 4.4vw, 66px) clamp(34px, 5vh, 58px);
  display: grid;
  grid-template-columns: minmax(460px, 0.9fr) minmax(470px, 1.1fr);
  gap: clamp(44px, 5vw, 78px);
  align-items: start;
}

.contact-panel {
  width: 100%;
  max-width: 610px;
  padding: 0;
  justify-self: end;
}

.contact-heading {
  margin-bottom: 34px;
}

.contact-heading h1 {
  color: var(--contact-cream);
  font-family: Impact, "Arial Narrow", "IBM Plex Sans Local", sans-serif;
  font-size: clamp(3rem, 4.4vw, 4.35rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.contact-heading p {
  max-width: 39ch;
  margin-top: 14px;
  color: #dedbd1;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.45;
}

.contact-form,
.contact-role-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-role-group legend,
.contact-form > h2 {
  margin: 0 0 13px;
  color: var(--contact-cream);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.contact-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 29px;
}

.contact-role {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--contact-line);
  border-radius: 12px;
  color: #d5d1c6;
  background: rgba(20, 22, 16, 0.65);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.contact-role input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.contact-role span {
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.contact-role:hover {
  border-color: rgba(185, 219, 22, 0.58);
  color: var(--contact-cream);
}

.contact-role:has(input:checked) {
  border-color: var(--contact-lime-deep);
  color: var(--contact-lime);
  background: rgba(132, 155, 10, 0.1);
  box-shadow: 0 0 18px rgba(185, 219, 22, 0.045);
}

.contact-role:has(input:focus-visible) {
  outline: 2px solid var(--contact-lime);
  outline-offset: 3px;
}

.contact-fields {
  display: grid;
  gap: 13px;
}

.contact-field {
  min-height: 55px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 11px;
  border: 1px solid var(--contact-line-soft);
  border-radius: 11px;
  background: linear-gradient(100deg, rgba(31, 33, 24, 0.82), rgba(24, 26, 19, 0.68));
  color: var(--contact-brass);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.contact-field:focus-within {
  border-color: rgba(185, 219, 22, 0.62);
  box-shadow: 0 0 0 3px rgba(185, 219, 22, 0.07), 0 8px 24px rgba(0, 0, 0, 0.14);
  background: var(--contact-panel-soft);
}

.contact-field.is-invalid {
  border-color: #c78365;
  box-shadow: 0 0 0 3px rgba(199, 131, 101, 0.08);
}

.contact-field svg {
  width: 22px;
  height: 22px;
  margin-left: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--contact-cream);
  font: inherit;
  font-size: 0.93rem;
}

.contact-field input {
  min-height: 53px;
  padding: 0 17px 0 3px;
}

.contact-field textarea {
  min-height: 126px;
  padding: 15px 17px 15px 3px;
  resize: vertical;
  line-height: 1.5;
}

.contact-field-message {
  align-items: start;
}

.contact-field-message svg {
  margin-top: 17px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #979384;
  opacity: 1;
}

.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  padding: 8px 21px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  color: #15170f;
  background: linear-gradient(100deg, #aab52f, #c4e114);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(138, 157, 11, 0.1);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.contact-submit::after {
  content: "";
}

.contact-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(138, 157, 11, 0.17);
}

.contact-submit:focus-visible {
  outline: 2px solid var(--contact-cream);
  outline-offset: 3px;
}

.contact-submit:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.contact-submit-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--contact-lime);
  background: #171911;
}

.contact-submit-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-response-time {
  margin-top: 10px;
  color: #777669;
  font-size: 0.75rem;
}

.contact-form-note {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(185, 219, 22, 0.34);
  border-radius: 9px;
  color: #dfe5bd;
  background: rgba(129, 151, 9, 0.08);
  font-size: 0.82rem;
  line-height: 1.45;
}

.contact-form-note.is-error {
  border-color: rgba(199, 131, 101, 0.5);
  color: #efd3c6;
  background: rgba(199, 131, 101, 0.08);
}

.contact-direct {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--contact-line-soft);
}

.contact-direct h2 {
  color: var(--contact-cream);
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-direct p {
  margin-top: 3px;
  color: #9d998a;
  font-size: 0.86rem;
}

.contact-direct a {
  color: var(--contact-lime);
  font-weight: 600;
}

.tikkibox-visual {
  position: relative;
  width: min(100%, 660px);
  margin: 0;
  align-self: start;
  justify-self: start;
  display: grid;
  place-items: center;
}

.tikkibox-halo {
  position: absolute;
  inset: 6% -10% 5%;
  z-index: -1;
  border-radius: 44%;
  opacity: 0.55;
  background: radial-gradient(ellipse, rgba(185, 219, 22, 0.12), rgba(185, 219, 22, 0.025) 42%, transparent 68%);
  filter: blur(25px);
  animation: tikkibox-breathe 6s ease-in-out infinite;
}

.tikkibox-frame {
  position: relative;
  width: min(100%, calc((100svh - 132px) * 0.64));
  overflow: hidden;
  border: 1px solid rgba(185, 219, 22, 0.23);
  border-radius: clamp(34px, 4.4vw, 64px);
  background: #15170f;
  box-shadow:
    0 30px 68px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(199, 227, 38, 0.04),
    0 0 28px rgba(185, 219, 22, 0.07);
}

.tikkibox-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 28px rgba(185, 219, 22, 0.035);
  pointer-events: none;
}

.tikkibox-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.tikkibox-audio-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.tikkibox-audio-trigger:focus-visible {
  outline: 2px solid var(--contact-lime);
  outline-offset: -7px;
}

.tikkibox-audio-trigger:active {
  box-shadow: inset 0 0 36px rgba(185, 219, 22, 0.12);
}

.tikkibox-frame.is-missing {
  aspect-ratio: 481 / 752;
}

.tikkibox-frame.is-missing img {
  display: none;
}

.tikkibox-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 12%;
  text-align: center;
  color: var(--contact-lime);
  background: linear-gradient(rgba(185, 219, 22, 0.09), rgba(185, 219, 22, 0.01)), var(--contact-panel);
}

.tikkibox-frame.is-missing .tikkibox-fallback {
  display: grid;
}

.tikkibox-fallback strong {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tikkibox-fallback span {
  max-width: 25ch;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-circuit {
  position: absolute;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(185, 219, 22, 0.15) 38%, rgba(185, 219, 22, 0.56) 52%, rgba(185, 219, 22, 0.12) 70%, transparent 100%);
  background-size: 220% 100%;
  animation: contact-line-flow 8s ease-in-out infinite;
  pointer-events: none;
}

.contact-circuit::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -14%;
  width: 20%;
  height: 5px;
  border-radius: 50%;
  background: rgba(197, 229, 29, 0.68);
  filter: blur(3px);
  opacity: 0.45;
  animation: contact-line-spark 6.5s ease-in-out infinite;
}

.contact-circuit span {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--contact-lime);
  box-shadow: 0 0 12px rgba(185, 219, 22, 0.62);
  transform: translate(-50%, -50%);
  animation: contact-pulse 4.5s ease-in-out infinite;
}

.contact-circuit-one { top: 31%; right: -2%; width: 14%; }
.contact-circuit-one span { left: 24%; }
.contact-circuit-two { top: 67%; left: 43%; width: 12%; }
.contact-circuit-two span { left: 12%; animation-delay: -1.7s; }
.contact-circuit-three { top: 13%; left: 54%; width: 8%; opacity: 0.42; }
.contact-circuit-three span { left: 95%; animation-delay: -3s; }

.contact-footer {
  padding: 17px 0;
  border-top: 1px solid rgba(185, 219, 22, 0.12);
  color: #727365;
  background: #090b08;
}

.contact-footer-inner {
  max-width: 1460px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.72rem;
}

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

@keyframes tikkibox-breathe {
  0%, 100% { opacity: 0.42; transform: scale(0.985); }
  50% { opacity: 0.62; transform: scale(1.015); }
}

@keyframes contact-pulse {
  0%, 82%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.8); }
  90% { opacity: 1; transform: translate(-50%, -50%) scale(1.16); }
}

@keyframes contact-line-flow {
  0%, 100% { background-position: 120% 0; opacity: 0.52; }
  50% { background-position: -20% 0; opacity: 0.9; }
}

@keyframes contact-line-spark {
  0%, 100% { left: -14%; opacity: 0; }
  16% { opacity: 0.72; }
  55% { left: 104%; opacity: 0.4; }
  70%, 100% { left: 115%; opacity: 0; }
}

@media (max-width: 1120px) {
  .contact-shell {
    grid-template-columns: minmax(430px, 0.95fr) minmax(360px, 0.8fr);
    gap: 38px;
    padding-inline: clamp(24px, 3vw, 42px);
  }

  .contact-role span { padding-inline: 11px; }

  .tikkibox-frame { width: min(100%, calc((100svh - 146px) * 0.64)); }
}

@media (max-width: 900px) {
  .contact-shell {
    min-height: auto;
    grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.7fr);
    align-items: start;
    padding-block: 26px 50px;
  }

  .contact-heading h1 { font-size: clamp(2.8rem, 7vw, 3.8rem); }
  .contact-role-list { gap: 7px; }
  .contact-role span { padding: 8px 10px; font-size: 0.76rem; }

  .tikkibox-visual {
    position: sticky;
    top: 104px;
  }

  .tikkibox-frame { width: min(100%, 400px); }
}

@media (max-width: 720px) {
  .contact-main { min-height: auto; }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 26px 20px 56px;
  }

  .contact-panel {
    max-width: 620px;
    justify-self: center;
  }

  .contact-heading { margin-bottom: 25px; }
  .contact-heading h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .contact-heading p { font-size: 1rem; }

  .contact-role-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-role span {
    width: 100%;
    padding-block: 11px;
    text-align: center;
    white-space: normal;
  }

  .tikkibox-visual {
    position: relative;
    top: auto;
    width: min(100%, 480px);
    justify-self: center;
  }

  .tikkibox-frame {
    width: min(100%, 440px);
    border-radius: clamp(28px, 11vw, 52px);
  }

  .contact-circuit-three { display: none; }
  .contact-circuit-two { top: 62%; left: 0; width: 24%; }

  .contact-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .contact-shell { padding-inline: 15px; }
  .contact-role-list { grid-template-columns: 1fr 1fr; }
  .contact-role span { font-size: 0.72rem; padding-inline: 7px; }
  .contact-field { grid-template-columns: 25px minmax(0, 1fr); }
  .contact-field svg { width: 20px; height: 20px; margin-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tikkibox-halo,
  .contact-circuit,
  .contact-circuit span,
  .contact-circuit::after {
    animation: none;
  }
}
