@font-face { font-family: 'Geo'; font-weight: 700; font-display: swap; src: url('assets/fonts/CalSansUI-GeoBold.woff2') format('woff2'); }
@font-face { font-family: 'Text'; font-weight: 600; font-display: swap; src: url('assets/fonts/CalSansUI-TextSemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Text'; font-weight: 400; font-display: swap; src: url('assets/fonts/CalSansUI-TextRegular.woff2') format('woff2'); }
@font-face { font-family: 'UI'; font-weight: 700; font-display: swap; src: url('assets/fonts/CalSansUI-UIBold.woff2') format('woff2'); }
@font-face { font-family: 'UI'; font-weight: 600; font-display: swap; src: url('assets/fonts/CalSansUI-UISemiBold.woff2') format('woff2'); }
@font-face { font-family: 'UI'; font-weight: 400; font-display: swap; src: url('assets/fonts/CalSansUI-UIRegular.woff2') format('woff2'); }

:root {
  --blue: #3358b8;
  --blue-light: #4d6fc9;
  --ink: #14120f;
  --muted: #666158;
  --line: rgba(20, 18, 15, 0.17);
  --paper: #fff;
  --field: #f8f7f4;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: 'Text', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.contact-shell {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 112px 32px 82px;
  overflow: hidden;
}
.contact-background { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-header { position: absolute; top: 24px; left: 28px; right: 28px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.contact-brand { display: inline-flex; align-items: center; gap: 4px; min-height: 46px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: 'Geo', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; text-decoration: none; }
.contact-brand strong { color: var(--blue); }
.contact-brand .brand-domain { color: var(--ink); }
.contact-back { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: 'UI', sans-serif; font-size: 12px; font-weight: 600; text-decoration: none; }
.contact-back svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.contact-grid { width: min(100%, 1160px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-items: center; gap: clamp(56px, 9vw, 132px); }
.contact-panel { padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); animation: panel-in 780ms var(--ease) both; }
.panel-heading p, .contact-kicker { margin: 0 0 8px; color: var(--blue); font-family: 'UI', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.panel-heading h2 { margin: 0 0 24px; font-family: 'Geo', sans-serif; font-size: 30px; letter-spacing: -0.025em; line-height: 1.08; }

#contactForm { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .message-label label { display: block; margin: 0 0 7px 3px; color: var(--ink); font-family: 'UI', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.field label span { margin-left: 5px; color: #918c83; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: var(--field); color: var(--ink); transition: border-color 180ms var(--ease), background-color 180ms var(--ease); }
.field input, .field select { min-height: 50px; padding: 0 14px; }
.field textarea { min-height: 132px; resize: vertical; padding: 13px 14px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #918c83; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--paper); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 42px; cursor: pointer; }
.select-wrap svg { position: absolute; top: 50%; right: 14px; width: 18px; transform: translateY(-50%); fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; pointer-events: none; }
.order-field[hidden] { display: none; }
.message-label { display: flex; align-items: center; justify-content: space-between; }
.message-label span { color: #918c83; font-family: 'UI', sans-serif; font-size: 9px; }
.form-error { min-height: 17px; margin: -4px 0 0; color: #9b2020; font-family: 'UI', sans-serif; font-size: 11px; font-weight: 600; }
.contact-submit { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: var(--blue); color: var(--paper); cursor: pointer; font-family: 'UI', sans-serif; font-size: 14px; font-weight: 700; transition: background-color 180ms var(--ease), transform 180ms var(--ease); }
.contact-submit:hover { background: var(--blue-light); transform: translateY(-1px); }
.contact-submit:active { transform: scale(0.985); }
.contact-submit svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }

.contact-intro { align-self: start; margin-top: clamp(54px, 8vh, 98px); animation: intro-in 840ms 120ms var(--ease) both; }
.contact-intro h1 { margin: 0; font-family: 'Geo', sans-serif; font-size: clamp(54px, 6vw, 84px); line-height: 0.94; letter-spacing: -0.045em; }
.contact-intro h1 span { color: var(--blue); }
.contact-intro > p:not(.contact-kicker) { max-width: 480px; margin: 24px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 16px; line-height: 1.62; }
.contact-principle { max-width: 430px; display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 14px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.94); }
.contact-principle span { color: var(--blue); font-family: 'Geo', sans-serif; font-size: 18px; font-weight: 700; }
.contact-principle p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }

.contact-success { padding: 48px 20px; text-align: center; animation: success-in 520ms var(--ease) both; }
.contact-success[hidden] { display: none; }
.success-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: var(--blue); color: var(--paper); font-family: 'UI', sans-serif; font-weight: 700; }
.contact-success > p { margin: 0 0 7px; color: var(--blue); font-family: 'UI', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.15em; }
.contact-success h2 { margin: 0; font-family: 'Geo', sans-serif; font-size: 34px; }
.contact-success > span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.contact-success button { min-height: 44px; margin-top: 24px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; font-family: 'UI', sans-serif; font-size: 12px; font-weight: 600; }

.contact-legal { position: absolute; right: 28px; bottom: 24px; display: flex; gap: 20px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.94); }
.contact-legal a { color: rgba(20, 18, 15, 0.78); font-family: 'UI', sans-serif; font-size: 11px; font-weight: 600; text-decoration: none; }
.contact-legal a:hover { color: var(--ink); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(51, 88, 184, 0.34); outline-offset: 3px; }

@keyframes panel-in { from { opacity: 0; transform: translate3d(-54px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes intro-in { from { opacity: 0; transform: translate3d(44px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes success-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .contact-shell { align-items: flex-start; padding: 98px 18px 80px; overflow: visible; }
  .contact-background { object-position: 66% 50%; }
  .contact-header { top: 18px; left: 14px; right: 14px; }
  .contact-brand { font-size: 18px; min-height: 44px; }
  .contact-back { width: 44px; height: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .contact-back { font-size: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-intro { grid-row: 1; margin: 48px 0 0; text-align: center; }
  .contact-intro h1 { font-size: clamp(48px, 14vw, 68px); }
  .contact-intro > p:not(.contact-kicker) { max-width: 520px; margin: 18px auto 0; }
  .contact-principle { display: none; }
  .contact-panel { grid-row: 2; width: min(100%, 560px); margin: 0 auto; padding: 24px 18px; border-radius: 22px; }
  .contact-legal { position: static; grid-row: 3; justify-content: center; margin: 28px auto 0; }
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-intro > p:not(.contact-kicker) { font-size: 14px; }
  .panel-heading h2 { font-size: 27px; }
}

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