/* Contact page. Loaded after site.css; uses its tokens and motion primitives. Light page: the header starts light. */

.ct { padding-top: calc(76px + clamp(56px, 7.4vw, 116px)); padding-bottom: var(--sec); min-height: min(100svh, 1080px); }
.ct-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.ct-intro { grid-column: 1 / 6; }
.ct-panel { grid-column: 7 / 13; }

/* headline, masked reveal as on the other inner pages */
.ct-h { margin-top: clamp(18px, 2.2vw, 30px); font-size: clamp(2.75rem, 1.4rem + 4.6vw, 6rem); line-height: 1; letter-spacing: -.02em; color: var(--green); }
.ct-h .ln { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; white-space: nowrap; }
.ct-h .ln > span { display: inline-block; }
.ct-h em { font-style: italic; }
.ct-sub { margin-top: clamp(26px, 3vw, 40px); font-size: var(--t-lead); line-height: 1.55; color: var(--muted); max-width: 36ch; }

/* reaching us directly */
.ct-direct { margin: clamp(44px, 5.4vw, 80px) 0 0; }
.ct-direct > div + div { margin-top: 26px; }
.ct-direct dd { margin: 8px 0 0; }
.ct-big { font: 400 var(--d-3)/1.2 var(--display); color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .6s var(--ease), color .3s; }
.ct-big:hover, .ct-big:focus-visible { color: var(--green); background-size: 100% 1px; }
.ct-direct address { font-style: normal; font-size: var(--t-base); line-height: 1.6; color: var(--ink); }

/* the form: one quiet surface */
.ct-panel { background: var(--beige); padding: clamp(30px, 3.6vw, 56px) clamp(24px, 3.6vw, 56px) clamp(32px, 3.6vw, 52px); }
.ct-form > .label { margin-bottom: clamp(8px, 1vw, 14px); }
.fld { position: relative; padding-top: 26px; }
.fld label { display: block; font: 500 var(--t-sm)/1.35 var(--body); color: var(--ink); }
.fld input, .fld textarea { display: block; width: 100%; margin-top: 8px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: transparent; font: 400 1.0625rem/1.5 var(--body); color: var(--ink); -webkit-appearance: none; appearance: none; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld textarea:focus { outline: 0; }
.fld .ul { position: absolute; left: 0; right: 0; height: 2px; margin-top: -2px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); pointer-events: none; }
.fld:focus-within .ul { transform: none; }
.fld:focus-within label { color: var(--green); }
.fld.bad input, .fld.bad textarea { border-bottom-color: var(--ink); }
.fld.bad .ul { background: var(--ink); transform: none; }
.err { min-height: 0; font-size: .8125rem; line-height: 1.4; font-weight: 500; color: var(--ink); }
.err:not(:empty) { margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-send { margin-top: clamp(32px, 3.4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.ct-send .btn { padding-inline: 34px; }
.ct-send .btn[disabled] { opacity: .6; cursor: progress; }
.ct-fail { font-size: var(--t-sm); font-weight: 500; color: var(--ink); max-width: 40ch; }
.ct-fail a { color: inherit; }

/* the confirmation, inside the same surface */
.ct-done { padding-block: clamp(8px, 2vw, 24px) clamp(8px, 1vw, 12px); }
.ct-line { position: relative; display: block; height: 12px; }
.ct-line::before { content: ""; position: absolute; left: 0; right: 22px; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--green); transform-origin: 0 50%; }
.ct-line i { position: absolute; right: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.ct-done-h { margin-top: clamp(28px, 3vw, 44px); font-size: var(--d-1); line-height: 1.04; color: var(--green); }
.ct-done-h:focus { outline: 0; }
.ct-done-p { margin-top: 18px; font-size: var(--t-lead); color: var(--muted); }
.ct-done .tlink { margin-top: clamp(30px, 3vw, 44px); }

/* motion */
.js .ct-form.out { opacity: 0; transform: translateY(-10px); transition: opacity .45s ease, transform .6s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .js .ct-h .ln > span { transform: translateY(112%); animation: ctrise 1.2s var(--ease) .12s forwards; }
  .js .ct-h .ln:nth-child(2) > span { animation-delay: .24s; }
  .js .ct-in { opacity: 0; transform: translateY(16px); animation: ctfade 1s var(--ease) forwards; animation-delay: calc(.45s + var(--k, 0) * .12s); }
  .js .ct-done .ct-line::before { transform: scaleX(0); animation: ctdraw 1.3s var(--ease-io) .1s forwards; }
  .js .ct-done .ct-line i { opacity: 0; transform: scale(.2); animation: ctpop .8s var(--ease) 1.1s forwards; }
  .js .ct-done .ct-done-h, .js .ct-done .ct-done-p, .js .ct-done .tlink { opacity: 0; transform: translateY(16px); animation: ctfade 1s var(--ease) forwards; }
  .js .ct-done .ct-done-h { animation-delay: .3s; }
  .js .ct-done .ct-done-p { animation-delay: .45s; }
  .js .ct-done .tlink { animation-delay: .6s; }
  @keyframes ctrise { to { transform: none; } }
  @keyframes ctfade { to { opacity: 1; transform: none; } }
  @keyframes ctdraw { to { transform: none; } }
  @keyframes ctpop { to { opacity: 1; transform: none; } }
}

@media (max-width: 980px) and (min-width: 861px) { .ct-intro { grid-column: 1 / 7; } .ct-panel { grid-column: 7 / 13; } }
@media (max-width: 860px) {
  .ct { padding-top: calc(66px + 48px); min-height: 0; }
  .ct-grid { display: flex; flex-direction: column; }
  .ct-intro { display: contents; }
  .ct-panel { order: 2; margin-top: 44px; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .ct-direct { order: 3; margin-top: 52px; }
}
@media (max-width: 480px) {
  .ct-send .btn { width: 100%; justify-content: space-between; }
}

/* this page is the action, so the header button that points to it steps aside */
.site-h .btn--sm[aria-current] { display: none; }
