/* LD Coda sub-pages: contact and privacy. Same tokens, nav and footer as the home page (base.css). */

.page { position: relative; z-index: 1; padding: clamp(56px, 10vh, 110px) 0 clamp(72px, 12vh, 130px); overflow-x: hidden; overflow-x: clip; }
.page-head { max-width: 760px; }
.page-head h1 { margin-top: 16px; font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -.055em; line-height: .98; }
.page-head .lede { margin-top: 18px; max-width: 56ch; font-size: 1.1rem; }
.page-head .meta { margin-top: 14px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* the mark, glowing behind the heading */
.page-mark { position: absolute; z-index: -1; top: clamp(-40px, -2vw, 0px); right: max(-60px, calc(50% - 720px)); width: min(520px, 70vw); aspect-ratio: 1; pointer-events: none; opacity: .5; }
.page-mark svg { width: 100%; height: 100%; }
.page-mark img { width: 100%; height: 100%; object-fit: contain; }
.page-mark::before {
  content: ""; position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .3), rgba(var(--accent-2-rgb), .08) 60%, transparent);
  filter: blur(10px);
}
html.motion .page-mark svg { animation: drift 14s ease-in-out infinite alternate; }
html.motion .page-mark img { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: rotate(8deg) scale(1.04); } }

.card {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)), rgba(12, 12, 14, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 100px -50px rgba(var(--accent-rgb), .6);
}

/* ── Contact ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(36px, 6vw, 60px); align-items: start; }
.contact-card { padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(9, 9, 11, .7); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field select:invalid { color: var(--muted); }
.field option { background: var(--surface); color: var(--text); }
.field ::placeholder { color: #6b6b74; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(var(--accent-rgb), .8); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-status { margin-top: 16px; min-height: 1.4em; font-size: .94rem; }
.form-status.error { color: #fca5a5; }

.success { display: none; text-align: center; padding: clamp(12px, 3vw, 28px) 0; }
.success.on { display: block; }
.success .tick {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .5); box-shadow: 0 0 40px -6px rgba(var(--accent-rgb), .7);
}
.success .tick svg { width: 30px; height: 30px; }
.success h2 { font-size: 1.8rem; letter-spacing: -.03em; }
.success p { max-width: 40ch; margin: 12px auto 24px; }

.reach { padding: clamp(22px, 3vw, 30px); }
.reach h2 { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.reach ul { display: grid; gap: 10px; margin-top: 16px; list-style: none; }
.reach ul a {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(9, 9, 11, .5);
  color: var(--text); font-family: var(--mono); font-size: .92rem; transition: border-color .2s, background-color .2s;
}
.reach ul a span { font-family: var(--sans); font-size: .84rem; color: var(--muted); }
.reach ul a:hover { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .06); color: var(--text); }
.reach p { margin-top: 18px; font-size: .92rem; }

/* ── Privacy ─────────────────────────────────────────── */
.policy { max-width: 820px; margin-top: clamp(32px, 5vw, 52px); padding: clamp(24px, 4vw, 48px); }
.policy section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.policy h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; letter-spacing: -.02em; }
.policy h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); flex: none; }
.policy p, .policy ul { margin-top: 14px; }
.policy ul { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.policy li { position: relative; padding-left: 22px; }
.policy li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 1px; background: var(--accent-text); }
.policy a { text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .45); text-underline-offset: 3px; }
.policy a:hover { text-decoration-color: currentColor; }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-foot .btn { flex: 1 1 100%; }
  .page-mark { top: -24px; right: -34%; width: 84vw; opacity: .16; }
}
