:root {
  --black: #000000;

  --mint: #c7efcf;
  --pale: #eef5db;
  --pink: #e63462;
  --slate: #8d99ae;

  --bg: #ffffff;
  --card: rgba(0, 0, 0, 0.035);
  --border: rgba(0, 0, 0, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--black);

  background:
    radial-gradient(900px 500px at 15% 25%, var(--mint), transparent 60%),
    radial-gradient(900px 500px at 85% 30%, var(--pink), transparent 55%),
    radial-gradient(900px 500px at 65% 85%, var(--slate), transparent 55%),
    radial-gradient(1000px 600px at 25% 85%, var(--pale), transparent 60%),
    var(--bg);
}

.page {
  min-height: 100vh; 
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 18px;
}

.hero {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 42px 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  width: min(520px, 85%);
  max-height: 48vh;
  height: auto;
  display: block;
  margin: 0 auto 18px auto;
}

.subhead {
  font-weight: 100;
  margin-bottom: 24px;
  font-size: clamp(12px, 3.8vw, 18px);
  opacity: 0.86;
  white-space: nowrap;
}

.subhead2 {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  opacity: 0.86;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 18px 0;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  text-align: center;
  opacity: 0.7;
  flex-shrink: 0;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid rgba(230, 52, 98, 0.35);
  outline-offset: 3px;
}

.btn--dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(230, 52, 98, 0.18);
}

.contact {
  width: min(560px, 100%);
  margin: 14px auto 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-height: 0;
  padding: 0 14px;  
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  filter: blur(2px);
  pointer-events: none;

  transition:
    max-height 320ms ease,
    padding 220ms ease,
    transform 220ms ease,
    opacity 220ms ease,
    filter 220ms ease;
}

.contact--open {
  max-height: 520px; 
  padding: 14px; 
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.contact__form {
  display: grid;
  gap: 10px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.contact__input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}

.contact__input:focus {
  border-color: rgba(230, 52, 98, 0.35);
  box-shadow: 0 0 0 4px rgba(230, 52, 98, 0.14);
}

.contact__input--message {
  resize: none;
  overflow: hidden;
  min-height: 44px;
  max-height: 180px;
}

.contact__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__send {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.contact__send:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.95);
}

.contact__send svg {
  width: 20px;
  height: 20px;
  color: var(--black);
}

.contact__hint {
  margin: 10px 2px 0;
  font-size: 12px;
  opacity: 0.7;
}

.success {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.contact--closing {
  max-height: 0;
  padding: 0 14px; 
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  filter: blur(2px);
  pointer-events: none;

  transition:
    max-height 320ms ease,
    padding 220ms ease,
    transform 320ms ease,
    opacity 320ms ease,
    filter 320ms ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
