html {
  scrollbar-color: #9fb8de var(--page);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: var(--page); }
html::-webkit-scrollbar-thumb { border: 2px solid var(--page); border-radius: 12px; background: #9fb8de; }
html::-webkit-scrollbar-thumb:hover { background: var(--accent-ink); }
html::-webkit-scrollbar-thumb:active { background: var(--accent-deep); }

.contact-page {
  --contact-error: #9d2940;
  --contact-surface: #fbfdff;
  --contact-rule: #d9e5f6;
  min-height: 100vh;
}

.contact-page .site-header { background: rgb(255 255 255 / 88%); }
.contact-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.contact-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.contact-nav a:hover, .contact-nav a[aria-current="page"] { color: var(--accent-deep); }
.contact-page :is(button, input, textarea):focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }

.contact-main { background: radial-gradient(circle at 13% 12%, #fff 0, rgb(255 255 255 / 0%) 41%), var(--page); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 110px); align-items: start; padding-block: clamp(70px, 9vw, 132px) clamp(98px, 11vw, 156px); }
.contact-intro { max-width: 530px; padding-top: clamp(12px, 2vw, 30px); }
.contact-eyebrow { display: flex; align-items: center; gap: 11px; }
.contact-eyebrow span { width: 34px; height: 1px; background: var(--accent); }
.contact-intro h1 { max-width: 10ch; margin: 31px 0 24px; font-size: clamp(60px, 6vw, 88px); }
.contact-intro h1 em { display: block; }
.contact-lead { max-width: 470px; color: var(--muted); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.63; }

.contact-guidance { margin-top: clamp(48px, 6vw, 88px); padding: 4px 0 5px 26px; border-left: 2px solid var(--accent); }
.contact-guidance h2 { margin: 0 0 12px; font: 600 26px/1.15 var(--font-display); letter-spacing: -.03em; }
.contact-guidance p { max-width: 36ch; margin: 0 0 17px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-guidance a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--accent-deep); font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-guidance a:hover { color: var(--accent-ink); }

.contact-card { position: relative; min-width: 0; padding: clamp(26px, 4vw, 52px); border: 1px solid var(--hairline); border-radius: 26px; background: var(--surface); box-shadow: 0 24px 70px rgb(34 72 127 / 7%); }
.contact-card::before { position: absolute; top: 0; right: clamp(26px, 4vw, 52px); left: clamp(26px, 4vw, 52px); height: 3px; content: ""; background: linear-gradient(90deg, var(--accent-ink), #92b5f3 44%, rgb(146 181 243 / 0%)); }
.contact-card-heading { margin-bottom: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--contact-rule); }
.contact-card-heading .eyebrow { margin-bottom: 15px; }
.contact-card-heading h2 { margin: 0 0 10px; font-size: clamp(38px, 3.7vw, 52px); line-height: 1.08; }
.contact-card-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.contact-card-heading > p:last-child span[aria-hidden="true"], .contact-field label span { color: var(--contact-error); }

.contact-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-field { margin-bottom: 24px; }
.contact-field label { display: block; margin-bottom: 9px; color: var(--ink); font-size: 14px; font-weight: 700; }
.contact-field :is(input, textarea) { width: 100%; border: 1px solid #aebed4; border-radius: 11px; background: var(--contact-surface); color: var(--ink); font: 400 16px/1.5 var(--font-body); transition: border-color .18s ease, box-shadow .18s ease; }
.contact-field input { min-height: 52px; padding: 13px 16px; }
.contact-field textarea { min-height: 184px; max-height: 480px; padding: 15px 16px; resize: none; overflow-y: auto; }
.contact-field :is(input, textarea):hover { border-color: var(--accent-ink); }
.contact-field :is(input, textarea):focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgb(56 123 247 / 12%); }
.contact-field :is(input, textarea)[aria-invalid="true"] { border-color: var(--contact-error); box-shadow: 0 0 0 3px rgb(157 41 64 / 10%); }
.contact-field-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.field-hint, .contact-field-meta span { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact-field-meta span { flex: none; font-family: var(--font-mono); font-size: 11px; }
.field-error { min-height: 18px; margin: 5px 0 0; color: var(--contact-error); font-size: 12px; font-weight: 600; line-height: 1.5; }

.contact-reply { margin: 3px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--contact-rule); }
.contact-check { display: inline-flex; align-items: center; gap: 12px; min-height: 34px; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.contact-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent-deep); cursor: pointer; }
.contact-reply > p { max-width: 48ch; margin: 4px 0 0 32px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.contact-email-field { margin-top: -5px; }
.contact-email-field[hidden], .contact-success[hidden], .contact-page form[hidden] { display: none; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.contact-actions { margin-top: 8px; }
.contact-submit { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 216px; min-height: 54px; padding: 13px 18px 13px 21px; border: 1px solid var(--accent-deep); border-radius: 12px; background: var(--accent-deep); color: #fff; font: 700 14px/1.3 var(--font-body); cursor: pointer; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.contact-submit:hover:not(:disabled) { background: #0f326e; box-shadow: 0 10px 23px rgb(31 80 160 / 17%); transform: translateY(-2px); }
.contact-submit:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.contact-submit:disabled { cursor: not-allowed; opacity: .64; box-shadow: none; }
.contact-submit-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; font-size: 20px; line-height: 1; }
.contact-submit.is-sending .contact-submit-icon { font-size: 0; }
.contact-submit.is-sending .contact-submit-icon::before { width: 16px; height: 16px; content: ""; border: 2px solid rgb(255 255 255 / 55%); border-top-color: #fff; border-radius: 50%; animation: contact-spin .7s linear infinite; }
.contact-status { min-height: 40px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.contact-status[data-tone="error"] { color: var(--contact-error); }
.contact-status[data-tone="pending"] { color: var(--accent-deep); }
.contact-updated-privacy { display: inline-flex; gap: 8px; min-height: 36px; align-items: center; color: var(--accent-deep); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.contact-updated-privacy[hidden] { display: none; }

.contact-success { outline: none; }
.contact-success-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--accent-ink); border-radius: 50%; color: var(--accent-deep); font-size: 21px; }
.contact-success h3 { margin: 20px 0 10px; font-size: clamp(37px, 3.7vw, 50px); letter-spacing: -.04em; }
.contact-success > p { max-width: 42ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.contact-protocol { margin: 30px 0 22px; padding: 21px 0; border-block: 1px solid var(--contact-rule); }
.contact-protocol span { display: block; margin-bottom: 8px; color: var(--accent-deep); font: 400 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.contact-protocol strong { display: block; overflow-wrap: anywhere; color: var(--ink); font: 400 clamp(13px, 1.35vw, 16px)/1.5 var(--font-mono); }
.contact-another { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--accent-deep); font: 700 14px var(--font-body); cursor: pointer; }
.contact-another:hover { color: var(--accent-ink); }
.contact-noscript { margin: 15px 0 0; color: var(--contact-error); font-size: 13px; }
.contact-page .footer-inner a { color: var(--accent-deep); font-weight: 600; text-underline-offset: 4px; }
.contact-page .footer-inner a:hover { color: var(--accent-ink); }
.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; }

@keyframes contact-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; gap: 52px; }
  .contact-intro { max-width: 680px; padding-top: 0; }
  .contact-intro h1 { max-width: 14ch; }
  .contact-guidance { margin-top: 42px; }
  .contact-card { width: min(100%, 720px); }
}

@media (max-width: 600px) {
  .contact-page .header-inner { min-height: 76px; gap: 16px; }
  .contact-page .brand span { font-size: 19px; }
  .contact-page .brand img { width: 34px; height: 34px; }
  .contact-nav { gap: 17px; }
  .contact-nav a { font-size: 12px; }
  .contact-layout { padding-block: 66px 96px; gap: 44px; }
  .contact-intro h1 { font-size: clamp(52px, 12vw, 68px); }
  .contact-card { padding: 27px 22px; border-radius: 20px; }
  .contact-card::before { right: 22px; left: 22px; }
  .contact-card-heading { margin-bottom: 26px; padding-bottom: 23px; }
  .contact-card-heading h2 { font-size: 39px; }
  .contact-field-meta { align-items: flex-start; }
  .contact-field-meta .field-hint { max-width: 29ch; }
}

@media (max-width: 400px) {
  .contact-page .shell { width: min(100% - 32px, 1240px); }
  .contact-page .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 1px 16px; padding-block: 12px; }
  .contact-nav { width: 100%; gap: 24px; }
  .contact-nav a { min-height: 37px; }
  .contact-intro h1 { font-size: 52px; }
  .contact-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit.is-sending .contact-submit-icon::before { animation: none; border-color: #fff; }
}

@media (forced-colors: active) {
  html { scrollbar-color: auto; }
  .contact-card, .contact-field :is(input, textarea), .contact-submit { border-color: CanvasText; }
  .contact-page :is(button, input, textarea):focus-visible { outline-color: Highlight; }
}
