/* =========================================================
   Contact page — builds on index.css (tokens, nav, buttons, footer, to-top)
   ========================================================= */

/* ---------- hero ---------- */
.ch {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.ch__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ch__blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.ch__blob--a { width: 50vw; height: 50vw; left: -16vw; top: -20vw; background: radial-gradient(circle, rgba(142, 195, 174, 0.7), rgba(142, 195, 174, 0) 70%); animation: ft-float-a 26s ease-in-out infinite alternate; }
.ch__blob--b { width: 40vw; height: 40vw; right: -14vw; bottom: -14vw; background: radial-gradient(circle, rgba(46, 138, 107, 0.35), rgba(46, 138, 107, 0) 70%); animation: ft-float-b 32s ease-in-out infinite alternate; }
.ch__blob--c { width: 30vw; height: 30vw; left: 40%; top: -12vw; background: radial-gradient(circle, rgba(236, 214, 178, 0.5), rgba(236, 214, 178, 0) 70%); animation: ft-float-d 36s ease-in-out infinite alternate; }
.ch__shaft {
  position: absolute; top: -30%; height: 160%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  filter: blur(18px);
  transform-origin: 50% 0;
  mix-blend-mode: soft-light;
  opacity: 0;
  will-change: transform, opacity;
}
.ch__shaft--1 { left: 12%; width: 8vw; animation: ft-shaft 20s ease-in-out infinite; }
.ch__shaft--2 { left: 46%; width: 11vw; animation: ft-shaft 24s ease-in-out -9s infinite; }

.ch__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px var(--gutter) clamp(40px, 7vh, 72px);
}
.ch__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: 0.24em; color: var(--ink-2); }
.ch__eyebrow .rule { width: 26px; height: 1px; background: currentColor; opacity: .55; }
.ch__eyebrow .rule--long { width: 64px; }
.ch__title {
  margin-top: clamp(28px, 5vh, 48px);
  font-weight: 300;
  font-size: clamp(44px, 5.2vw, 96px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.ch__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ch__title .line > span { display: inline-block; }
.ch__title em { font-style: normal; font-weight: 400; color: var(--em-700); }
.ch__lead { margin-top: 26px; max-width: 40ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; color: var(--ink-2); }
.ch__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

.ch__visual {
  position: relative;
  margin: 0;
  height: min(74vh, 720px);
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(17, 23, 20, 0.5);
}
.ch__visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.is-loaded .ch__visual img { transform: none; }
.ch__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 41, 31, 0.1) 0%, rgba(6, 41, 31, 0) 40%, rgba(6, 41, 31, 0.45) 100%);
  pointer-events: none;
}
.ch__cards { position: absolute; inset: 0; z-index: 1; padding: 20px; pointer-events: none; }
.ch__card {
  position: absolute;
  pointer-events: auto;
  padding: 14px 18px;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(246, 247, 246, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px -22px rgba(17, 23, 20, 0.45);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  animation: ch-bob 7s ease-in-out infinite alternate;
}
.ch__card .mono { display: block; font-size: 9.5px; color: var(--muted); margin-bottom: 4px; }
.ch__card b { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.ch__card--status { top: 20px; left: 20px; display: flex; align-items: center; gap: 12px; }
.ch__card--time { top: 20px; right: 20px; text-align: right; animation-delay: -2.5s; }
.ch__card--time b { font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; }
.ch__card--time small { font-size: 12px; color: var(--muted); }
.ch__card--reach { left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; animation-delay: -4s; }
.ch__card--reach a { font-size: 15px; color: var(--ink); transition: color .3s var(--ease); }
.ch__card--reach a:hover { color: var(--em-700); }
.ch__pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--em-500); }
.ch__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--em-500); animation: pulse 2.2s var(--ease) infinite; }
@keyframes ch-bob { to { transform: translateY(-6px); } }

/* ---------- brief builder ---------- */
.brief, .reach {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter) 0;
  isolation: isolate;
}
.brief::before {
  content: "";
  position: absolute; inset: 20% 0 -10%; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(30% 30% at 20% 40%, rgba(142, 195, 174, 0.45), transparent 70%),
    radial-gradient(28% 30% at 80% 60%, rgba(46, 138, 107, 0.22), transparent 70%),
    radial-gradient(26% 26% at 55% 90%, rgba(236, 214, 178, 0.4), transparent 70%);
  filter: blur(24px);
}
.brief__head, .reach__head { margin-bottom: clamp(32px, 5vh, 52px); }
.brief__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: 0.24em; color: var(--ink-2); }
.brief__eyebrow .rule { width: 26px; height: 1px; background: currentColor; opacity: .55; }
.brief__eyebrow .rule--long { width: 64px; }
.brief__title { margin-top: 24px; font-weight: 300; font-size: clamp(36px, 4.4vw, 76px); line-height: 1; letter-spacing: -0.045em; }
.brief__title em { font-style: normal; font-weight: 400; color: var(--em-700); }

.brief__layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

/* frosted-glass form */
.cform {
  position: relative;
  padding: clamp(24px, 3.2vw, 48px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 40px 80px -50px rgba(17, 23, 20, 0.35);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}


@keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* choice chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(17, 23, 20, 0.12);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.chip span::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(17, 23, 20, 0.2);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.chip:hover span { border-color: rgba(15, 81, 64, 0.4); color: var(--em-800); }
.chip input:checked + span { background: var(--em-800); border-color: var(--em-800); color: var(--surface); }
.chip input:checked + span::before { background: var(--em-200); box-shadow: 0 0 0 3px rgba(191, 221, 208, 0.25); }
.chip input:focus-visible + span { outline: 2px solid var(--em-600); outline-offset: 3px; }
.chip:active span { transform: scale(0.97); }

/* fields */
.field { display: grid; gap: 8px; margin-top: 24px; }
.field label, .field__label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field__opt { font-weight: 400; color: var(--muted); }
.field .chips { margin-top: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid rgba(17, 23, 20, 0.14);
  background: rgba(255, 255, 255, 0.75);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(94, 105, 100, 0.7); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--em-600); background: #fff; box-shadow: 0 0 0 4px rgba(46, 138, 107, 0.14); }
.field__help { font-size: 12px; color: var(--muted); }
.field__error { min-height: 0; font-size: 12.5px; color: #A2462F; }
.field__error:empty { display: none; }
.field.is-invalid input { border-color: #C06A50; box-shadow: 0 0 0 4px rgba(192, 106, 80, 0.12); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin-top: 4px; }
.field--full { grid-column: 1 / -1; }


.brief__done { text-align: left; animation: step-in .6s var(--ease) both; }
.brief__done h3 { margin-top: 18px; font-weight: 300; font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.03em; }
.brief__done p { margin: 10px 0 24px; max-width: 48ch; color: var(--muted); line-height: 1.6; }
.brief__done a { color: var(--em-700); }
.brief__check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--em-800); box-shadow: 0 0 0 8px rgba(46, 138, 107, 0.14); }
.brief__check svg { width: 26px; height: 26px; fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: ch-draw .8s var(--ease) .2s forwards; }
@keyframes ch-draw { to { stroke-dashoffset: 0; } }


/* form footer */
.field-grid { margin-top: -24px; }
.cform__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 23, 20, 0.1);
}
.cform__note { font-size: 13px; color: var(--muted); max-width: 36ch; }
.cform__send { height: 52px; padding: 0 26px; }
.cform.is-done .cform__fields { display: none; }

/* direct contact: deep emerald card */
.cinfo {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0;
  padding: 28px;
  border-radius: 24px;
  color: var(--surface);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(46, 138, 107, 0.45), rgba(46, 138, 107, 0) 70%),
    linear-gradient(160deg, #0C3A2C 0%, #06241A 100%);
  box-shadow: 0 40px 70px -40px rgba(6, 41, 31, 0.7);
}
.cinfo__label { font-size: 10px; color: var(--em-200); margin-bottom: 8px; }
.cinfo__label--next { margin-top: 26px; }
.cinfo__row {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: var(--surface);
  word-break: break-word;
  transition: color .3s var(--ease);
}
.cinfo__row .mono { font-size: 9.5px; color: rgba(191, 221, 208, 0.7); }
a.cinfo__row:hover { color: var(--em-200); }
.cinfo__row time { font-variant-numeric: tabular-nums; }
.cinfo__steps { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.cinfo__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14px; line-height: 1.5; color: rgba(246, 247, 246, 0.82); }
.cinfo__steps .mono { padding-top: 3px; font-size: 10px; color: var(--em-200); }

/* ---------- other ways + FAQ ---------- */
.reach { padding-bottom: clamp(80px, 12vh, 140px); }
.reach__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.rcard {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 50px -36px rgba(17, 23, 20, 0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.rcard:hover { transform: translateY(-4px); border-color: rgba(15, 81, 64, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 34px 60px -36px rgba(17, 23, 20, 0.4); }
.rcard__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; background: var(--em-100); }
.rcard__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--em-700); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rcard .mono { font-size: 10px; color: var(--muted); }
.rcard b { font-weight: 400; font-size: clamp(17px, 1.4vw, 22px); letter-spacing: -0.02em; color: var(--ink); word-break: break-word; }
.rcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--em-700); }
.rcard__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .4s var(--ease); }
.rcard:hover .rcard__go svg { transform: translate(2px, -2px); }

.faq { margin-top: clamp(40px, 6vh, 64px); border-top: 1px solid rgba(17, 23, 20, 0.14); }
.faq details { border-bottom: 1px solid rgba(17, 23, 20, 0.12); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 300;
  letter-spacing: -0.02em;
  transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--em-700); }
.faq summary i { position: absolute; right: 8px; top: 50%; width: 18px; height: 18px; margin-top: -9px; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1.4px; margin-top: -0.7px;
  background: currentColor; transition: transform .4s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details[open] summary { color: var(--em-700); }
.faq details p { max-width: 70ch; padding: 0 56px 26px 0; font-size: 15px; line-height: 1.65; color: var(--muted); animation: faq-in .5s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ch__inner { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
  .ch__visual { height: 62vh; }
  .brief__layout { grid-template-columns: minmax(0, 1fr); }
  .cinfo { position: static; }
  .reach__cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ch__visual { height: 440px; min-height: 0; border-radius: 22px; }
  .ch__cards { padding: 12px; }
  .ch__card { padding: 11px 14px; }
  .ch__card--status { top: 12px; left: 12px; }
  .ch__card--time { top: 12px; right: 12px; }
  .ch__card--time b { font-size: 20px; }
  .ch__card--reach { left: 12px; right: 12px; bottom: 12px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ch__card--reach a { font-size: 14px; }
  .ch__actions .btn--solid { flex: 1 1 100%; justify-content: space-between; }
  /* hero: tighter type, a shorter image, and only the status + clock cards
     (email and phone appear as cards lower on the page) */
  .ch { min-height: 0; }
  .ch__inner { padding: 96px var(--gutter) 24px; gap: 28px; }
  .ch__title { margin-top: 22px; font-size: clamp(38px, 10.5vw, 52px); }
  .ch__lead { margin-top: 18px; font-size: 16px; }
  .ch__actions { margin-top: 26px; gap: 14px; }
  .ch__actions .btn--link { font-size: 14px; }
  .ch__visual { height: 340px; }
  .ch__card--reach { display: none; }
  .ch__card { padding: 10px 12px; }
  .ch__card b { font-size: 13.5px; }

  .brief, .reach { padding-top: 72px; }
  .brief__title { margin-top: 18px; font-size: clamp(32px, 9vw, 44px); }
  .cform { border-radius: 22px; padding: 22px 18px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .field { margin-top: 20px; }
  /* 16px text stops iOS from zooming into the field on focus */
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { font-size: 16px; padding: 13px 14px; }
  /* interest chips: one swipeable row */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: -18px;
    padding: 2px 18px 4px 0;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .chip span { padding: 10px 14px; font-size: 13.5px; }
  .cform__foot { flex-direction: column-reverse; align-items: stretch; }
  .cform__send { justify-content: space-between; width: 100%; }
  .cform__note { max-width: none; text-align: center; }
  .cinfo { padding: 22px; border-radius: 20px; }
  .rcard { padding: 20px; }
  .rcard__icon { margin-bottom: 6px; }
  .faq summary { font-size: 18px; padding: 20px 44px 20px 0; }
  .faq summary { padding-right: 44px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ch__card { animation: none; }
}
