:root {
  color-scheme: dark;
  --bg: #0b1724;
  --text: #f1f4f7;
  --muted: #b6c6d3;
  --line: #3b5263;
  --field: #0a1623;
  --focus: #c9e3f5;
  --error: #f4b4a6;
  --gutter: clamp(24px, 4vw, 64px);
  --content-width: 1140px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg) url('../contact-v1/atmosphere.webp') center center / cover no-repeat;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
a:hover { color: #d1e7f5; }
.skip-link { position: absolute; left: 20px; top: -80px; z-index: 2; padding: 14px 20px; background: #d0e0eb; color: #0b1724; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.contact-header {
  height: 72px;
  padding: 0 max(var(--gutter), calc((100% - var(--content-width)) / 2));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #0b17247a;
}
.brand { line-height: 0; display: block; }
.brand img { display: block; width: 96px; height: auto; }
.home-link { font-size: 16px; line-height: 1.4; padding: 12px 0; }
.contact-layout {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--content-width);
  padding: clamp(24px, 4svh, 42px) 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  align-content: center;
  flex: 1 0 auto;
}
.contact-details { min-width: 0; padding: 8px 36px 8px 0; }
.eyebrow { display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: .26em; line-height: 1.5; margin: 0 0 18px; }
.eyebrow::after { content: ""; width: 44px; border-top: 1px solid #829aaa; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(40px, 3.2vw, 48px); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 16px; }
.intro { font-size: 18px; line-height: 1.55; max-width: 390px; margin-bottom: 0; }
.contact-channels { font-style: normal; display: flex; flex-direction: column; gap: 26px; margin-top: clamp(32px, 5svh, 46px); }
.channel { display: flex; align-items: center; gap: 20px; width: fit-content; max-width: 100%; padding: 4px 0; }
.channel-icon { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.channel-copy { border-left: 1px solid #829aaa; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.channel-label { font-size: 17px; line-height: 1.3; }
.channel-value { font-size: 17px; line-height: 1.4; }
.channel-value.email { font-size: 15px; overflow-wrap: anywhere; }
.message-section { border-left: 1px solid var(--line); padding: 8px 0 8px 44px; min-width: 0; }
h2 { font-size: clamp(30px, 2.5vw, 36px); font-weight: 400; line-height: 1.18; letter-spacing: -.035em; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 18px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 8px; }
input, textarea { display: block; width: 100%; border: 1px solid #91a8b9; box-shadow: inset 0 0 0 1px #c0d8e511; border-radius: 10px; background: #0814214a; color: var(--text); font-size: 16px; line-height: 1.5; padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
input { height: 46px; }
textarea { height: clamp(112px, 18svh, 148px); resize: vertical; min-height: 112px; max-height: 450px; }
input:hover, textarea:hover { border-color: #c0d4e1; }
input:focus, textarea:focus { border-color: #deeff9; box-shadow: 0 0 0 3px #b7d5eb20; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--error); }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px #172839 inset; }
.field-error { color: var(--error); font-size: 14px; line-height: 1.4; margin: 7px 0 0; }
.field-error:empty { display: none; }
.website-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.send-button { display: flex; align-items: center; gap: 10px; min-height: 46px; margin-top: 6px; padding: 11px 22px; border: 1px solid #dfebf4; border-radius: 14px; background: #b8cbdc; color: #102333; font-size: 16px; line-height: 1.35; font-weight: 600; box-shadow: inset 0 2px 3px #fff3; transition: background .15s, transform .15s; }
.send-button img { filter: brightness(.22); }
.send-button:hover { background: #d0e0ec; transform: translateY(-1px); }
.send-button:active { transform: translateY(0); }
.send-button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-status { font-size: 15px; line-height: 1.5; color: #c6dcd3; margin: 16px 0 0; max-width: 620px; }
.form-status:empty { margin: 0; height: 0; }
.form-status[data-state=error] { color: var(--error); }
.form-status a, .no-script a { text-decoration: underline; text-underline-offset: 3px; }
.no-script { line-height: 1.5; color: var(--muted); margin-top: 24px; }
.contact-footer { width: calc(100% - var(--gutter) * 2); max-width: var(--content-width); margin: 0 auto; min-height: 68px; flex-shrink: 0; border-top: 1px solid #6d8291; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-footer p { font-size: 13px; line-height: 1.5; margin: 0; }
.sound-button { width: 44px; height: 44px; border: 1px solid #93a4b0; border-radius: 50%; background: #09152280; display: grid; place-items: center; flex-shrink: 0; }
.sound-button:hover { background: #203342; }
.sound-button img { opacity: .95; }
.sound-button[aria-pressed=true] { border-color: #d0e4f2; }

@media (min-width: 761px) and (max-height: 780px) {
  .contact-header { height: 68px; }
  .contact-layout { padding-top: 24px; padding-bottom: 24px; }
  .contact-channels { margin-top: 32px; gap: 24px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; margin-bottom: 20px; }
  .field { margin-bottom: 15px; }
  label { margin-bottom: 7px; }
  input { height: 44px; }
  textarea { height: 120px; }
  .contact-footer { min-height: 64px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .contact-layout { grid-template-columns: 43% 57%; }
  .contact-details { padding-right: 26px; }
  .message-section { padding-left: 28px; }
  .channel { gap: 14px; }
  .channel-copy { padding-left: 14px; }
  .channel-value.email { font-size: 14px; }
  .intro { font-size: 17px; }
  .form-pair { gap: 14px; }
}

@media (max-width: 760px) {
  body { background-position: 25% 0; background-size: auto 100%; background-attachment: fixed; }
  .contact-header { height: 80px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .brand img { width: 96px; }
  .home-link { font-size: 16px; }
  .contact-layout { display: block; padding-top: 35px; padding-bottom: 38px; }
  .contact-details { padding: 0 0 34px; }
  .eyebrow { font-size: 12px; gap: 18px; margin-bottom: 18px; }
  .eyebrow::after { width: 40px; }
  h1 { font-size: 48px; letter-spacing: -.04em; margin-bottom: 20px; }
  .intro { font-size: 18px; line-height: 1.5; max-width: 460px; }
  .contact-channels { margin-top: 32px; gap: 24px; }
  .channel { gap: 17px; }
  .channel-copy { padding-left: 18px; gap: 5px; }
  .channel-label { font-size: 18px; line-height: 1.2; }
  .channel-value { font-size: 18px; line-height: 1.35; }
  .channel-value.email { font-size: clamp(13px, 3.6vw, 17px); overflow-wrap: anywhere; }
  .message-section { border-left: 0; border-top: 1px solid var(--line); padding: 34px 0 0; }
  h2 { font-size: 34px; margin-bottom: 27px; }
  .form-pair { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: 21px; }
  label { font-size: 17px; margin-bottom: 8px; }
  input { height: 54px; }
  input, textarea { font-size: 17px; padding: 12px 14px; border-radius: 11px; }
  textarea { height: 168px; min-height: 150px; }
  .send-button { margin-top: 27px; width: 100%; justify-content: center; font-size: 18px; border-radius: 15px; min-height: 56px; }
  .contact-footer { min-height: 88px; }
  .contact-footer p { font-size: 12px; max-width: 225px; }
}

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