/* Contact page: the home page's wide column and lime glow, over legal.css's
   palette, nav, buttons and form fields. Loaded after legal.css. */
.contact-page {
  --max: 1280px; --gutter: 36px;
  --side: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --card: rgba(12, 12, 13, 0.6); --line-soft: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.33, 0, 0.2, 1);
  position: relative; overflow-x: hidden; isolation: isolate;
}

/* Wide nav, matching the home page. */
.contact-page .nav { max-width: none; padding: 12px var(--side); min-height: 72px; }
.contact-page .brand span { font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.contact-page .brand { gap: 6px; }
.contact-page .brand img { width: 19px; height: 16px; }

/* Two columns: pitch + ways to reach us | the form in a glass card. */
.contact-page main.contact {
  max-width: none; padding: 96px var(--side) 140px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr;
  grid-template-areas: "intro panel" "ways panel"; column-gap: 72px; align-items: start;
}
.contact .intro { grid-area: intro; display: flex; flex-direction: column; align-items: flex-start; }
.contact .panel { grid-area: panel; }
.contact h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.03em; margin: 28px 0 20px; color: var(--ink-soft); }
.contact h1 em { font-style: normal; color: var(--lime); }
.contact .lede { font-size: 18px; line-height: 1.45; max-width: 460px; margin: 0; }


/* Website C, contact page (exploration): a short intro, four options, and one
   modal whose form changes with the option picked. App components kept
   (glass badges, pill fields and buttons); no glow, chips or boxed cards. */
:root { --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --rule: rgba(240,239,235,.12); }
[hidden] { display: none !important; }

.contact-page main.contact { grid-template-areas: "intro panel"; grid-template-rows: auto; padding-top: 120px; padding-bottom: 160px; align-items: start; }
.contact .chip { background: none; padding: 0; border-radius: 0; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.contact .direct { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-dim); width: 100%; max-width: 460px; }
.contact .direct a { color: var(--lime); text-decoration: none; }
.contact .direct a:hover { text-decoration: underline; }

/* Glass badge, as in the app */
.badge {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 99px; border: 1px solid #666;
  background: var(--b, #272728); box-shadow: inset 0 -4px 4px rgba(255,255,255,.25), inset 0 4px 4px rgba(0,0,0,.25);
}
.badge i { display: block; width: 17px; height: 17px; background: #0c0c0d; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* Options: a ruled list of rows */
.options { grid-area: panel; padding-top: 8px; }
.options-title { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 12px; }
.options ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.options li { margin: 0; border-top: 1px solid var(--rule); }
.opt {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 4px; background: none; border: 0; cursor: pointer;
  text-align: left; color: inherit; font: inherit; transition: background .2s;
}
.opt:hover { background: rgba(255,255,255,.025); }
.opt:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.opt-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opt-text strong { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-soft); }
.opt-text span { font-size: 15px; color: var(--ink-dim); line-height: 1.4; }
.opt-go { width: 16px; height: 16px; flex: none; background: var(--ink-dim); -webkit-mask: url(/icons/arrow-right.svg) center / contain no-repeat; mask: url(/icons/arrow-right.svg) center / contain no-repeat; transition: transform .25s, background .2s; }
.opt:hover .opt-go { transform: translateX(4px); background: var(--lime); }

/* The modal */
.cd {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
  border: 1px solid var(--rule); border-radius: 24px; background: #131315; color: var(--ink-muted);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8);
}
.cd::backdrop { background: rgba(8,8,9,.72); backdrop-filter: blur(6px); }
.cd[open] { animation: cd-in .28s cubic-bezier(0.33, 0, 0.2, 1); }
@keyframes cd-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.cd form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.cd-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 6px; }
.cd-head > div { flex: 1; min-width: 0; }
.cd-head h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.cd-head p { margin: 0; font-size: 15px; color: var(--ink-dim); line-height: 1.4; }
.cd-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--chip); position: relative; }
.cd-close::before, .cd-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink-muted); }
.cd-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.cd-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cd-close:hover { background: #333335; }
.cd .field textarea { min-height: 120px; }
.cd .form-row .btn { padding: 14px 24px; gap: 8px; }
.cd .form-row .btn i { display: block; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.cd .msg:empty { display: none; }

@media (max-width: 1080px) {
  .contact-page main.contact { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "panel"; padding-top: 56px; }
  .options { margin-top: 48px; }
}
@media (max-width: 600px) {
  .contact-page { --gutter: 16px; }
  .contact-page main.contact { padding-top: 32px; padding-bottom: 96px; }
  .cd form { padding: 20px 18px; }
  .cd .row { grid-template-columns: minmax(0, 1fr); }
  .opt-text strong { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .cd[open] { animation: none; } .opt-go { transition: none; } }

/* Quieter heading: one colour, closer to the home page's section headings */
.contact h1 { margin: 0 0 20px; font-size: clamp(40px, 4vw, 56px); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.contact .lede { color: var(--ink-muted); }
