/* Contact follows the same editorial palette and shared glass navigation. */
.contact-page {
  --contact-ease: cubic-bezier(.22, .61, .36, 1);
  --contact-glass: rgba(252, 250, 246, .78);
  --contact-field: rgba(252, 250, 246, .62);
  --contact-glow: rgba(169, 128, 80, .09);
  --contact-error: #a33e37;
  background: var(--bg, var(--paper));
  color: var(--ink);
  transition: background-color var(--theme-colour-duration, 450ms) ease, color var(--theme-colour-duration, 450ms) ease;
}
html[data-theme="dark"] .contact-page {
  --contact-glass: rgba(20, 20, 20, .72);
  --contact-field: rgba(9, 9, 9, .48);
  --contact-glow: rgba(184, 154, 114, .07);
  --contact-error: #e7978f;
}
.contact-main {
  position: relative;
  padding-block: clamp(62px, 7vw, 100px) clamp(64px, 7vw, 100px);
  background: radial-gradient(ellipse at 24% 46%, var(--contact-glow), transparent 62%);
}
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(44px, 7vw, 104px); row-gap: 40px; }
.contact-heading { grid-column: 1; align-self: start; padding-top: 24px; }
.contact-page .contact-kicker { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; color: var(--label-ink); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.contact-kicker::after { width: 44px; height: 1px; background: currentColor; opacity: .6; content: ""; }
.contact-heading h1 { margin: 0 0 18px; color: var(--ink); font-family: var(--serif); font-size: clamp(64px, 7.2vw, 100px); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.contact-heading h1 em { color: var(--heading-muted); font-weight: 400; }
.contact-heading-copy { max-width: 540px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; text-wrap: pretty; }
.contact-form-panel {
  position: relative;
  min-width: 0;
  align-self: start;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--glass-border);
  background: var(--contact-glass);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color var(--theme-colour-duration, 450ms) ease, border-color var(--theme-colour-duration, 450ms) ease;
}
.contact-form-panel .contact-kicker { margin-bottom: 28px; }
.contact-form { display: grid; gap: 24px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contact-field { display: grid; min-width: 0; gap: 10px; margin: 0; }
.contact-field label { color: var(--ink-soft); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.contact-field label > span { color: var(--label-ink); font-size: 12px; letter-spacing: .01em; text-transform: none; }
.contact-page :is(input, select, textarea) {
  width: 100%; min-width: 0; min-height: 52px; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: 0;
  background: var(--contact-field); color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  transition: border-color var(--theme-colour-duration, 200ms) ease, background-color var(--theme-colour-duration, 450ms) ease, color var(--theme-colour-duration, 450ms) ease;
}
.contact-page :is(input, textarea)::placeholder { color: var(--label-ink); opacity: 1; }
.contact-page :is(input, select, textarea):hover { border-color: var(--rule-soft); }
.contact-page :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 .5px var(--accent); }
.contact-page input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px var(--surface, var(--paper)) inset; }
.contact-page .contact-field:has([aria-invalid="true"]) label { color: var(--contact-error); }
.contact-page :is(input, textarea)[aria-invalid="true"] { color: var(--contact-error); border-color: var(--contact-error); box-shadow: inset 0 0 0 .5px var(--contact-error); }
.contact-page :is(input, textarea)[aria-invalid="true"]::placeholder { color: var(--contact-error); }
.contact-page input[aria-invalid="true"]:-webkit-autofill { -webkit-text-fill-color: var(--contact-error); }
.contact-field-error { color: var(--contact-error); font-size: 12px; line-height: 1.5; }
.contact-field-error[hidden] { display: none; }
.contact-form-status[data-state="validation"] { color: var(--contact-error); }
.contact-page textarea { display: block; min-height: 164px; resize: vertical; }
.contact-select { position: relative; }
.contact-select select { appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis; }
.contact-select svg { position: absolute; top: 18px; right: 16px; width: 16px; height: 16px; color: var(--ink-soft); pointer-events: none; }
.contact-select option { background: var(--bg, var(--paper)); color: var(--ink); }
.contact-select.is-enhanced { z-index: 2; }
.contact-inquiry-trigger { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 0; background: var(--contact-field); color: var(--ink); font: 400 16px/1.5 var(--sans); text-align: left; cursor: pointer; transition: border-color var(--theme-colour-duration, 200ms) ease, background-color var(--theme-colour-duration, 450ms) ease, color var(--theme-colour-duration, 450ms) ease; }
.contact-inquiry-trigger span { min-width: 0; }
.contact-select .contact-inquiry-trigger svg { position: static; flex: 0 0 16px; transition: transform 320ms var(--ease-standard); }
.contact-inquiry-trigger[aria-expanded="true"] { border-color: var(--accent); }
.contact-inquiry-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.contact-inquiry-menu { position: absolute; z-index: 3; top: calc(100% + 8px); right: 0; left: 0; max-height: min(320px, 52svh); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--glass-border); background: var(--glass-panel); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0, -8px, 0); transition: opacity 320ms var(--ease-standard), transform 420ms var(--ease-standard), visibility 0s linear 420ms, background-color var(--theme-colour-duration, 450ms) ease, border-color var(--theme-colour-duration, 450ms) ease; }
.contact-inquiry-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.contact-select.opens-up .contact-inquiry-menu { top: auto; bottom: calc(100% + 8px); transform: translate3d(0, 8px, 0); }
.contact-select.opens-up .contact-inquiry-menu.is-open { transform: none; }
.contact-inquiry-option { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink-soft); font: 400 14px/1.5 var(--sans); text-align: left; cursor: pointer; transition: color var(--theme-colour-duration, 200ms) ease, background-color var(--theme-colour-duration, 200ms) ease; }
.contact-inquiry-option:last-child { border-bottom: 0; }
.contact-inquiry-option[aria-selected="true"] { color: var(--ink); background: var(--control-hover); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.contact-inquiry-option[aria-selected="true"]::after { flex: 0 0 auto; color: var(--accent); content: "✓"; }
.contact-inquiry-option:hover, .contact-inquiry-option:focus-visible { color: var(--ink); background: var(--control-hover); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: none; outline: none; }
.contact-form-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.contact-submit { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 22px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--bg, var(--paper)); font: 500 13px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color var(--theme-colour-duration, 200ms) ease, border-color var(--theme-colour-duration, 200ms) ease, color var(--theme-colour-duration, 450ms) ease, transform 200ms var(--ease-standard); }
.contact-submit .arrow-icon { width: 18px; height: 18px; transition: transform 350ms var(--ease-standard); }
.contact-submit:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--bg, var(--paper)); }
.contact-submit:hover:not(:disabled) .arrow-icon { transform: translate(2px, -2px); }
.contact-submit:active:not(:disabled) { transform: scale(.985); }
.contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-page :is(a, button):focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
html[data-theme] .contact-page .site-header :is(a, button):focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.contact-form-note { max-width: 28ch; margin: 0; color: var(--label-ink); font-size: 13px; line-height: 1.6; }
.contact-form-status { min-height: 22px; margin: -6px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.contact-form-status:empty { display: none; }
.contact-form-status[data-state="error"] { color: var(--ink); }
.contact-form-status a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-success { padding: 24px 0 8px; }
.contact-success svg { width: 32px; height: 32px; margin-bottom: 24px; color: var(--accent); }
.contact-success h2 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(38px, 4vw, 52px); font-weight: 400; line-height: 1.06; }
.contact-success p { max-width: 38ch; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.contact-success button { min-height: 44px; margin-top: 16px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule-soft); background: transparent; color: var(--ink); font: 400 13px var(--sans); cursor: pointer; }
html[data-theme] .contact-page .contact-section { margin-top: clamp(44px, 5vw, 64px); background: transparent; padding-block: 28px 0; border-top: 1px solid var(--rule); }
.contact-page .contact-inner > .eyebrow { font-size: 12px; }
.contact-page .contact-content { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding-block: 24px 36px; }
.contact-page .contact-content h2 { font-size: clamp(48px, 5.6vw, 80px); line-height: .98; }
.contact-page .contact-section:hover .contact-content h2 { transform: none; }
.contact-page .contact-aside { max-width: 420px; padding-bottom: 0; }
.contact-page .contact-aside p { margin: 0 0 22px; font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.contact-page .contact-actions .contact-link { min-height: 52px; padding: 12px 20px; font-size: 13px; letter-spacing: .06em; }
.contact-page .contact-bottom { padding-top: 16px; font-size: 12px; line-height: 1.6; }
@media (max-width: 700px) {
  .contact-page .contact-content { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px 32px; }
  .contact-page .contact-content h2 { font-size: clamp(46px, 10vw, 64px); }
  html[data-theme] .contact-page .contact-section { padding-top: 24px; }
}
.contact-page #contact { scroll-margin-top: calc(var(--site-header-height) + 24px); }
.contact-page :is(.contact-kicker, .contact-heading h1, .contact-heading h1 em, .contact-heading-copy, .contact-field label, .contact-closing h2, .contact-closing h2 em, .contact-form-note) { transition: color var(--theme-colour-duration, 450ms) ease; }
.contact-closing { margin-top: clamp(72px, 8vw, 112px); padding-top: 48px; border-top: 1px solid var(--rule); }
.contact-closing-head { margin-bottom: 36px; }
.contact-closing .contact-kicker { margin-bottom: 20px; }
.contact-closing h2 { max-width: 20ch; margin: 0; font-family: var(--serif); font-size: clamp(36px, 3.5vw, 50px); font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
.contact-destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-destination { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-width: 0; width: 100%; min-height: 180px; aspect-ratio: 5 / 4; overflow: hidden; background: #272b24; color: #f5f1e8; }
.contact-destination > img { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1300ms var(--ease-editorial); }
.contact-destination::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(8, 11, 8, .06) 16%, rgba(8, 11, 8, .78) 100%); content: ""; }
.contact-destination-copy { width: 100%; padding: clamp(22px, 2.5vw, 36px); }
.contact-destination h3 { margin: 0 0 26px; color: #f5f1e8; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; }
.contact-destination-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #f5f1e8; font-size: 13px; font-weight: 500; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; }
.contact-destination-label .arrow-icon { width: 17px; height: 17px; transition: transform 350ms var(--ease-standard); }
.contact-destination:is(:focus-visible, :active) .arrow-icon { transform: translate(2px, -2px); }
.contact-page .site-footer { margin-top: 0; }
.contact-page .contact-honeypot, .contact-page [hidden] { display: none !important; }

/* Entrance groups stay together; lower sections reveal once on intersection. */
@media (prefers-reduced-motion: no-preference) {
  html.contact-motion .contact-enter { animation: contact-arrival 1100ms var(--contact-ease) var(--contact-delay, 100ms) backwards; }
  html.contact-motion .contact-page .contact-section .contact-inner > * { animation: none; opacity: 1; transform: none; will-change: auto; }
  html.contact-motion .contact-scroll-ready .contact-reveal { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 850ms var(--contact-ease), transform 950ms var(--contact-ease); }
  html.contact-motion .contact-scroll-ready .contact-reveal.is-visible { opacity: 1; transform: none; }
  @keyframes contact-arrival { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
}
@media (hover: hover) and (pointer: fine) { .contact-destination:hover img { transform: scale(1.035); } .contact-destination:hover .arrow-icon { transform: translate(2px, -2px); } }
@media (min-width: 1001px) {
  .contact-main { --contact-top-space: clamp(24px, 4svh, 44px); padding-top: var(--contact-top-space); }
  .contact-layout { min-height: calc(100svh - var(--site-header-height) - 2 * var(--contact-top-space)); align-items: center; }
  .contact-heading { align-self: center; padding-top: 0; }
  .contact-heading h1 { font-size: clamp(64px, 6.5vw, 92px); }
  .contact-heading-copy { max-width: 38ch; font-size: 16px; }
  .contact-form-panel { align-self: center; padding: clamp(28px, 2.4vw, 34px); }
  .contact-form-panel .contact-kicker { margin-bottom: 28px; }
  .contact-form { gap: clamp(20px, 3svh, 28px); }
  .contact-fields { gap: 24px; }
  .contact-field { gap: 10px; }
  .contact-page :is(input, select), .contact-inquiry-trigger { min-height: 52px; padding-block: 14px; }
  .contact-page textarea { height: clamp(112px, 18svh, 144px); min-height: 112px; }
}
@media (min-width: 1001px) and (max-height: 740px) {
  .contact-form-panel { padding: 28px; }
  .contact-form { gap: 20px; }
  .contact-page textarea { height: 116px; }
  .contact-submit { min-height: 48px; padding-block: 12px; }
}
@media (min-width: 1001px) and (max-height: 600px) {
  .contact-main { --contact-top-space: 18px; }
  .contact-form-panel { padding: 18px 22px; }
  .contact-form-panel .contact-kicker { margin-bottom: 16px; }
  .contact-form { gap: 12px; }
  .contact-page :is(input, select), .contact-inquiry-trigger { min-height: 44px; padding-block: 10px; }
  .contact-page textarea { height: 100px; min-height: 100px; padding-block: 10px; }
}
@media (max-width: 1000px) {
  .contact-layout { grid-template-columns: 1fr; row-gap: 38px; }
  .contact-heading { grid-column: 1; padding-top: 0; }
  .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page :is(input, select, textarea), .contact-inquiry-trigger { font-size: 16px; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .contact-destination-copy { padding: 20px; }
  .contact-destination h3 { font-size: clamp(23px, 2.8vw, 28px); }
}
@media (max-width: 700px) {
  .contact-closing { margin-top: 64px; padding-top: 36px; }
  .contact-destination-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact-destination { aspect-ratio: 3 / 2; }
  .contact-destination-copy { padding: clamp(24px, 6vw, 38px); }
  .contact-destination h3 { font-size: clamp(28px, 6vw, 36px); margin-bottom: 22px; }
}
@media (max-width: 540px) {
  .contact-main { padding-block: 50px 64px; }
  .contact-layout { row-gap: 32px; }
  .contact-heading h1 { font-size: clamp(56px, 15vw, 76px); margin-bottom: 20px; }
  .contact-heading-copy { font-size: 16px; line-height: 1.75; }
  .contact-page .contact-kicker { margin-bottom: 22px; }
  .contact-form-panel { padding: 24px 20px; }
  .contact-form, .contact-fields { gap: 22px; }
  .contact-fields { grid-template-columns: 1fr; }
  .contact-page textarea { min-height: 148px; }
  .contact-form-bottom { gap: 16px; }
  .contact-submit { width: 100%; }
  .contact-form-note { max-width: none; }
}
@media (max-height: 500px) and (min-width: 701px) and (max-width: 850px) { .contact-main { padding-top: 38px; } .contact-heading h1 { font-size: 64px; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .contact-form-panel { background: var(--surface, var(--paper)); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .contact-inquiry-menu { background: var(--bg, var(--paper)); } }
@media (prefers-reduced-motion: reduce) {
  .contact-page, .contact-page :is(.contact-kicker, .contact-heading h1, .contact-heading h1 em, .contact-heading-copy, .contact-field label, .contact-closing h2, .contact-closing h2 em, .contact-form-note, .contact-form-panel) { transition: none !important; }
  .contact-page :is(.contact-enter, .contact-reveal, .contact-inquiry-menu, .contact-inquiry-trigger svg, img, input, select, textarea, a:not(.skip-link), button, .arrow-icon) { animation: none !important; transform: none !important; transition: none !important; }
}

/* The direct-contact section reveals once, with stationary layout containers. */
.contact-direct-line { display: block; }
@keyframes contact-direct-title {
  from { opacity: 0; transform: translate3d(-15px, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes contact-direct-copy {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  html.contact-motion body.contact-page .contact-section.contact-reveal {
    opacity: 1; transform: none; animation: none !important; transition: none;
  }
  html.contact-motion body.contact-scroll-ready .contact-section :is(.contact-inner > .eyebrow, .contact-direct-line, .contact-aside > p, .contact-actions, .contact-bottom) {
    opacity: 0; transform: none; will-change: auto;
  }
  html.contact-motion body.contact-scroll-ready .contact-section.is-visible .contact-inner > .eyebrow {
    animation: contact-direct-copy 850ms var(--ease-quiet) both;
  }
  html.contact-motion body.contact-scroll-ready .contact-section.is-visible .contact-direct-line {
    animation: contact-direct-title 1120ms var(--ease-quiet) 100ms both;
  }
  html.contact-motion body.contact-scroll-ready .contact-section.is-visible .contact-direct-line:last-child { animation-delay: 240ms; }
  html.contact-motion body.contact-scroll-ready .contact-section.is-visible .contact-aside > p {
    animation: contact-direct-copy 950ms var(--ease-quiet) 300ms both;
  }
  html.contact-motion body.contact-scroll-ready .contact-section.is-visible .contact-actions {
    animation: contact-direct-copy 900ms var(--ease-quiet) 380ms both;
  }
  html.contact-motion body.contact-scroll-ready .contact-section.is-visible .contact-bottom {
    animation: contact-direct-copy 900ms var(--ease-quiet) 480ms both;
  }
  html.contact-motion body.contact-scroll-ready .contact-section.is-focus-revealed :is(.contact-inner > .eyebrow, .contact-direct-line, .contact-aside > p, .contact-actions, .contact-bottom) {
    opacity: 1; transform: none; animation: none !important;
  }
}

/* A cached page returns to readable content, rather than resuming its entrance. */
.contact-page.contact-restored .contact-enter { animation: none !important; opacity: 1; transform: none; }
