:root {
  --ink: #0a0a0a;
  --muted: #666b66;
  --line: #dfe2dc;
  --surface: #f4f5f2;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--brand-accent) 45%, transparent);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.contact-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 78px;
  justify-content: space-between;
  padding: 8px clamp(20px, 4vw, 64px);
  position: relative;
  z-index: 10;
}

.brand-home {
  align-items: center;
  display: flex;
  height: 62px;
}

.brand-home img {
  height: 58px;
  max-width: 150px;
  object-fit: contain;
  width: auto;
}

.back-link {
  align-items: center;
  display: inline-flex;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link svg,
.submit-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(560px, 1.1fr);
  min-height: calc(100vh - 78px);
}

.contact-visual {
  background: var(--ink);
  min-height: 720px;
  overflow: hidden;
  position: relative;
}

.contact-visual > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: var(--hero-position);
  position: absolute;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.contact-visual:hover > img {
  transform: scale(1.025);
}

.visual-overlay {
  background: linear-gradient(to top, rgba(5, 7, 5, 0.98), rgba(5, 7, 5, 0.16) 72%);
  inset: 0;
  position: absolute;
}

.visual-content {
  bottom: 0;
  color: #fff;
  left: 0;
  max-width: 720px;
  padding: clamp(28px, 5vw, 72px);
  position: absolute;
  width: 100%;
}

.eyebrow {
  color: var(--brand-accent);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.visual-content h1,
.form-wrap h2,
.form-success h3,
.privacy-dialog h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.visual-content h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  margin: 12px 0 0;
  max-width: 620px;
}

.visual-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
  margin: 20px 0 0;
  max-width: 560px;
}

.contact-channels {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  padding-top: 22px;
}

.contact-channels a,
.contact-channels > div {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.contact-channels svg {
  fill: none;
  height: 18px;
  min-width: 18px;
  stroke: var(--brand-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.contact-channels span {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.contact-channels small {
  color: rgba(255, 255, 255, 0.45);
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.form-section {
  align-items: center;
  background: #fff;
  display: flex;
  padding: clamp(40px, 5vw, 80px);
}

.form-wrap {
  margin: auto;
  max-width: 720px;
  width: 100%;
}

.form-wrap h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  margin: 8px 0 0;
}

.form-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 600px;
}

#contact-form {
  margin-top: 30px;
}

.field-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.field-group {
  display: block;
  margin-bottom: 17px;
}

.field-group > span:first-child {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

.field-group b {
  color: var(--brand-signal);
}

.field-group em {
  color: #929792;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  margin-left: 4px;
  text-transform: uppercase;
}

.field-group input,
.field-group select,
.field-group textarea {
  background: #fff;
  border: 1px solid #cfd3cd;
  border-radius: 2px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.field-group textarea {
  min-height: 100px;
  resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #a4a8a3;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--brand-accent-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 20%, transparent);
}

.field-group .is-invalid {
  border-color: #d83228;
  box-shadow: 0 0 0 3px rgba(216, 50, 40, 0.12);
}

.select-wrap {
  display: block;
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 42px;
}

.select-wrap svg {
  fill: none;
  height: 16px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
}

.field-error,
.submit-error {
  color: #c62c22;
  display: block;
  font-size: 11px;
  margin-top: 6px;
}

.honeypot {
  display: none;
}

.consent-row {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 10px;
  line-height: 1.45;
  margin: 2px 0 18px;
}

.consent-row input {
  accent-color: var(--brand-accent);
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  width: 16px;
}

.consent-row button {
  background: none;
  border: 0;
  color: var(--brand-accent-dark);
  font-size: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.submit-button {
  align-items: center;
  background: var(--brand-accent);
  border: 0;
  border-radius: 2px;
  color: var(--brand-accent-text);
  display: flex;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 700;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 18px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
}

.submit-button:hover {
  background: var(--brand-accent-dark);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note {
  color: #979b96;
  font-size: 10px;
  margin: 10px 0 0;
  text-align: center;
}

.form-success {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.success-icon {
  align-items: center;
  background: var(--brand-accent);
  border-radius: 50%;
  color: var(--brand-accent-text);
  display: flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.success-icon svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 28px;
}

.form-success h3 {
  font-size: 28px;
  margin: 18px 0 0;
}

.form-success p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 420px;
}

.form-success a {
  color: var(--brand-accent-dark);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-top: 24px;
  text-transform: uppercase;
}

.form-footer {
  border-top: 1px solid var(--line);
  color: #8a8f89;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
}

.privacy-dialog {
  border: 0;
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  max-width: 520px;
  padding: 32px;
  width: calc(100% - 40px);
}

.privacy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
}

.privacy-dialog h2 {
  font-size: 24px;
  margin: 8px 0 0;
}

.privacy-dialog > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 14px 0 0;
}

.dialog-close {
  align-items: center;
  background: var(--surface);
  border: 0;
  border-radius: 50%;
  display: flex;
  font-size: 24px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
}

@media (max-width: 980px) {
  .contact-layout {
    display: block;
  }

  .contact-visual {
    min-height: 460px;
  }

  .form-section {
    padding: 56px 24px;
  }
}

@media (max-width: 640px) {
  .contact-header {
    height: 68px;
    padding: 6px 20px;
  }

  .brand-home,
  .brand-home img {
    height: 52px;
  }

  .back-link {
    font-size: 10px;
  }

  .contact-visual {
    min-height: 500px;
  }

  .visual-content {
    padding: 28px 20px;
  }

  .visual-content h1 {
    font-size: 42px;
  }

  .contact-channels {
    grid-template-columns: 1fr 1fr;
  }

  .contact-channels > div:last-child {
    grid-column: 1 / -1;
  }

  .form-section {
    padding: 48px 20px;
  }

  .field-grid {
    display: block;
  }

  .form-footer {
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .contact-visual > img {
    transition: none;
  }
}
