/* Contact (prefix ct-). Shared tokens and form parts come from base.css. */

.ct-hero [hidden], .ct-form-sec [hidden] { display: none !important; }

/* ------------------------------------------------------------------ hero */
.ct-hero { padding-bottom: clamp(48px, 6vw, 88px); }
.ct-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 112px); align-items: stretch; }
.ct-hero__text { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.ct-hero__text .page-hero__title { margin-top: 0; }
.ct-hero__text .page-hero__lead { margin-top: 0; }
.ct-hero .h1 { font-size: clamp(3rem, 1.4rem + 7.4vw, 9.5rem); }
.ct-hero__media { aspect-ratio: 4 / 5; max-height: min(560px, 70vh); width: 100%; justify-self: end; }
.ct-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
@media (max-width: 899px) {
  .ct-hero__grid { grid-template-columns: 1fr; }
  .ct-hero__media { aspect-ratio: 4 / 3; max-height: none; order: -1; }
  .ct-hero { padding-top: calc(var(--header-h) + 24px); }
}
/* Phone held sideways: keep the headline beside the photo so the heading and contact rows are not two screens down. */
@media (max-width: 899px) and (max-height: 520px) and (orientation: landscape) {
  .ct-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .ct-hero__media { order: 0; aspect-ratio: auto; max-height: calc(100svh - var(--header-h) - 48px); }
}

/* ------------------------------------------------------------------ contact methods */
.ct-methods-sec { padding-bottom: clamp(56px, 8vw, 120px); }
.ct-methods { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ct-method { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.ct-method + .ct-method { border-top: 1px solid var(--line); }
.ct-method__link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  min-height: 96px; padding-block: 18px;
  transition: padding 0.5s var(--ease-out);
}
.ct-method__link:hover, .ct-method__link:focus-visible { padding-left: 14px; }
.ct-method__icon { display: grid; place-items: center; width: clamp(48px, 5vw, 68px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background 0.35s, color 0.35s, box-shadow 0.35s; }
.ct-method__icon .icon { width: 44%; height: 44%; }
.ct-method__link:hover .ct-method__icon, .ct-method__link:focus-visible .ct-method__icon { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.ct-method__text { display: grid; gap: 4px; min-width: 0; }
.ct-method__label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.ct-method__value { font-size: clamp(1.5rem, 0.7rem + 3.4vw, 4.25rem); font-weight: 800; font-stretch: 76%; line-height: 1.02; overflow-wrap: anywhere; }
.ct-method__go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background 0.35s, color 0.35s, transform 0.5s var(--ease-out), box-shadow 0.35s; }
.ct-method__link:hover .ct-method__go, .ct-method__link:focus-visible .ct-method__go { background: var(--accent); color: var(--accent-ink); box-shadow: none; transform: rotate(-45deg); }
.ct-copy { min-width: 84px; justify-content: center; }
.ct-copy.is-done { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
@media (max-width: 767px) {
  .ct-method { grid-template-columns: 1fr; gap: 0; padding-bottom: 14px; }
  .ct-method__link { grid-template-columns: auto minmax(0, 1fr); min-height: 84px; }
  .ct-method__go { display: none; }
  .ct-copy { justify-self: start; margin-left: calc(48px + clamp(14px, 2.4vw, 32px)); }
  .ct-method__link:hover, .ct-method__link:focus-visible { padding-left: 0; }
}
@media (max-width: 359px) { .ct-method__value { font-size: 1.25rem; } } /* keeps the email address on one line at 320px */

/* ------------------------------------------------------------------ form */
.ct-form-sec { background: var(--bg-2); padding-block: var(--section); }
.ct-form-sec__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.ct-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; }
.ct-aside .h2 { max-width: 10ch; }
.ct-topic { margin-top: clamp(12px, 3vw, 40px); padding-top: 22px; border-top: 1.5px solid var(--ink); display: grid; gap: 10px; overflow: hidden; }
.ct-topic__label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--muted); }
.ct-topic__name { font-size: var(--step-4); font-weight: 860; font-stretch: 66%; text-transform: uppercase; line-height: 0.9; word-spacing: 0.14em; }
.ct-topic__hint { color: var(--ink-2); max-width: 36ch; min-height: 3.2em; }
.ct-topic.is-swapping .ct-topic__name, .ct-topic.is-swapping .ct-topic__hint { animation: ct-swap 0.6s var(--ease-out) both; }
@keyframes ct-swap { from { opacity: 0; transform: translateY(14px); } }
/* Below 900px the aside stacks far above the Topic menu, so the hint sits under the menu instead (and the panel is hidden, so it is not read twice). */
.ct-topic-help:empty { display: none; }
@media (min-width: 900px) { .ct-topic-help { display: none; } }
@media (max-width: 899px) {
  .ct-form-sec__grid { grid-template-columns: 1fr; }
  .ct-aside { position: static; }
  .ct-topic { display: none; }
}

.ct-form { display: grid; gap: 24px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 767px) { .ct-row { grid-template-columns: 1fr; } }
.ct-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field .help { margin-top: 0; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: #b3261e; }
:root[data-theme="dark"] .field.has-error .input, :root[data-theme="dark"] .field.has-error .textarea { border-color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field.has-error .input, :root:not([data-theme="light"]) .field.has-error .textarea { border-color: #ff8a80; } }
.ct-count { margin-left: 6px; color: var(--muted); }
.ct-summary { border-left-color: #b3261e; }
:root[data-theme="dark"] .ct-summary { border-left-color: #ff8a80; }
.ct-summary ul { margin: 10px 0 0; padding-left: 1.2em; }
.ct-summary a { text-decoration: underline; text-underline-offset: 3px; }
.ct-summary:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.ct-submit { justify-self: start; }
.ct-submit.is-sending { pointer-events: none; opacity: 0.75; }
.ct-select { appearance: auto; }

/* Sent: a disc flies in and lands. */
.ct-sent { display: grid; gap: 22px; justify-items: start; padding: clamp(28px, 4vw, 56px); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.ct-sent__disc { --size: 76px; animation: ct-throw 1.4s var(--ease-out) both; }
.ct-sent__title { font-size: var(--step-4); font-weight: 860; font-stretch: 66%; text-transform: uppercase; line-height: 0.9; word-spacing: 0.14em; }
@keyframes ct-throw {
  0% { transform: translate(-220px, 120px) rotate(-540deg) scale(0.3); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* ------------------------------------------------------------------ where we are */
.ct-about { padding-block: clamp(56px, 8vw, 120px); }
.ct-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 112px); align-items: start; }
.ct-about__grid .h2 { max-width: 9ch; }
.ct-about__body { display: grid; gap: 22px; justify-items: start; }
.ct-about__address { font-size: var(--step-3); font-weight: 780; font-stretch: 78%; }
.ct-social { display: grid; gap: 12px; margin-top: 12px; }
.ct-social__label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.ct-social__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
@media (max-width: 899px) { .ct-about__grid { grid-template-columns: 1fr; } }
