/* ─── Contact page ───────────────────────────────────── */

.contact-hero {
  padding: calc(152px * var(--space-scale)) var(--container-pad)
    calc(52px * var(--space-scale));
  position: relative;
  overflow: hidden;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 75% 70% at 52% 42%, black, transparent);
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: stretch;
  max-width: var(--container-max);
}

/* ─── Left column ─────────────────────────────────────── */

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-light);
  background: var(--accent-dim);
  color: var(--muted-light);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
}
.contact-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(225, 255, 1, 0.5);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 17ch;
}
.contact-title em {
  color: var(--accent);
  font-style: italic;
}

.contact-sub {
  color: var(--muted-light);
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.68;
}

/* ─── Info card ───────────────────────────────────────── */

.contact-info-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--void);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex: 1;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  color: var(--white);
}
.brand-mark span {
  color: var(--accent);
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.contact-info-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Info items */
.info-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--void);
  color: var(--white);
  text-decoration: none;
  padding: 10px 12px;
  transition: border-color 0.2s;
}
.info-item:hover {
  border-color: var(--accent-mid);
}
.info-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}
.info-meta {
  display: grid;
  gap: 2px;
}
.info-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.info-value {
  color: var(--white);
  font-size: 12px;
  line-height: 1.45;
}

/* What happens next */
.what-next {
  margin-top: 14px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  position: relative;
  z-index: 1;
}
.what-next h3 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 10px;
}
.process-steps {
  display: grid;
  gap: 8px;
}
.process-step {
  border: 1px solid var(--border);
  background: var(--void);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted-light);
  line-height: 1.5;
}
.process-step strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

/* ─── Form wrap ───────────────────────────────────────── */

.contact-form-wrap {
  border: 1px solid var(--border);
  border-top-color: var(--border-light);
  border-radius: 16px;
  background: var(--void);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--accent-dim) 0%, transparent 40%);
  pointer-events: none;
}
.contact-form-wrap::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

/* Form heading */
.form-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}
.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-dim);
  color: var(--muted-light);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.form-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(225, 255, 1, 0.6);
}
.form-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--white);
  max-width: 18ch;
}
.form-heading h2 span {
  color: var(--accent);
}
.form-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 48ch;
}

/* ─── Form fields ─────────────────────────────────────── */

.contact-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--border-light);
  color: var(--white);
  border-radius: 10px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(225,255,1,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field select option {
  background: #141814;
  color: var(--white);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--base);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ─── Submit area ─────────────────────────────────────── */

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.submit-btn {
  border: none;
  background: var(--accent);
  color: #050605;
  border-radius: 10px;
  padding: 15px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.submit-btn::after {
  content: '↗';
  font-size: 15px;
  transition: transform 0.2s;
}
.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(225, 255, 1, 0.18);
}
.submit-btn:hover::after {
  transform: translate(2px, -2px);
}
.form-note {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Success message */
.form-success {
  display: none;
  margin-top: 10px;
  border: 1px solid var(--border-light);
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}
.form-success.show {
  display: block;
}

.status-chip {
  display: none;
}

/* ─── Reveal animation ───────────────────────────────── */

.contact-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  will-change: opacity, transform;
}
.contact-reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .contact-hero {
    padding-bottom: 44px;
  }
  .contact-hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 780px;
  }
  .contact-title {
    max-width: 14ch;
    font-size: clamp(34px, 6vw, 50px);
  }
  .form-heading h2 {
    max-width: 16ch;
    font-size: clamp(22px, 3.5vw, 32px);
  }
  .contact-form-wrap,
  .contact-info-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding-top: 112px;
    padding-bottom: 32px;
  }
  .contact-title {
    max-width: 12ch;
    font-size: clamp(30px, 9vw, 44px);
  }
  .contact-sub {
    font-size: 13px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 14px;
  }
  .field textarea {
    min-height: 110px;
  }
  .contact-form-wrap,
  .contact-info-card {
    padding: 20px;
    border-radius: 14px;
  }
  .submit-btn {
    font-size: 14px;
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding-top: 96px;
    padding-bottom: 28px;
  }
  .contact-hero-content {
    gap: 18px;
  }
  .contact-kicker {
    font-size: 10px;
    padding: 6px 10px;
    margin-bottom: 14px;
  }
  .contact-title {
    font-size: clamp(28px, 10vw, 38px);
    line-height: 1.02;
    margin-bottom: 12px;
  }
  .contact-sub {
    font-size: 12px;
    line-height: 1.6;
  }
  .contact-form-wrap,
  .contact-info-card {
    padding: 16px;
  }
  .form-heading {
    margin-bottom: 16px;
  }
  .form-badge {
    width: 100%;
    font-size: 10px;
  }
  .form-heading h2 {
    max-width: 100%;
    line-height: 1.05;
  }
  .form-heading p {
    font-size: 12px;
  }
  .form-grid {
    gap: 10px;
  }
  .field label {
    font-size: 10px;
  }
  .field input,
  .field select,
  .field textarea {
    padding: 11px 13px;
  }
  .field textarea {
    min-height: 100px;
  }
  .submit-btn {
    font-size: 14px;
  }
  .form-note {
    text-align: left;
    font-size: 10px;
  }
  .brand-mark {
    font-size: 18px;
  }
  .info-list {
    gap: 7px;
  }
  .info-item {
    gap: 10px;
    padding: 9px 10px;
  }
  .info-icon {
    width: 28px;
    height: 28px;
  }
  .info-label {
    font-size: 9px;
  }
  .info-value {
    font-size: 11px;
  }
  .process-steps {
    gap: 7px;
  }
  .process-step {
    padding: 9px 10px;
    font-size: 11px;
  }
  .process-step strong {
    font-size: 12px;
  }
}
