/* under nda: the request modal and the /nda pages (which are next.js pages that
   load site.css + this file). the "under nda" project card is in work.css. */

/* ── the line under the board ── */
.nda-line { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: 15px; color: var(--ink-2); }
.nda-line .ico { color: var(--ink-3); }
.nda-line a { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.nda-line a:hover { text-decoration-color: var(--c0); }
.nda-line a span { display: inline-block; transition: transform .2s ease; }
.nda-line a:hover span { transform: translateX(3px); }

/* ── shared bits ── */
.nda-btn, .nda-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 600 15px/1 var(--sans); letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(11, 16, 32, .55);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
}
.nda-btn:hover, .nda-send:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(11, 16, 32, .6); }
.nda-btn span { transition: transform .2s ease; }
.nda-btn:hover span { transform: translateX(3px); }
.nda-send:disabled { opacity: .45; cursor: not-allowed; }
.nda-btn.is-deny { background: #b4233c; color: #fff; }
.nda-ghost-btn {
  height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none;
  color: var(--ink-2); font: 500 15px/1 var(--sans); cursor: pointer;
}
.nda-ghost-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* ── the modal ── */
.nda-dialog {
  width: min(640px, calc(100vw - 24px)); max-height: min(92vh, 900px); max-height: min(92dvh, 900px);
  padding: 0; border: 0; border-radius: 22px; overflow: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans);
  box-shadow: 0 0 0 1px var(--line), 0 40px 100px -30px rgba(24, 10, 70, .45);
}
.nda-dialog::backdrop { background: rgba(11, 16, 32, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nda-dialog[open] { animation: nda-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes nda-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.nda-dialog::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c0), var(--c2), var(--c3)); }
.nda-form, .nda-sent { padding: 26px clamp(20px, 4vw, 34px) 26px; }
.nda-dh { position: relative; padding-right: 36px; }
.nda-dh h2 { margin-top: 14px; font-size: 30px; line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; }
.nda-sub { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 48ch; }
.nda-x { position: absolute; top: -10px; right: -14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); font: 400 24px/1 var(--sans); cursor: pointer; }
.nda-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nda-closed { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c3) 12%, var(--bg)); color: var(--ink); font-size: 14.5px; }
.nda-closed a { text-decoration: underline; text-underline-offset: 3px; }

.nda-fields { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.nda-f { display: flex; flex-direction: column; gap: 6px; }
.nda-f.wide { grid-column: 1 / -1; }
.nda-f > span, .nda-flabel { font: 500 12.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .01em; }
.nda-f em { font-style: normal; opacity: .7; }
.nda-f input, .nda-f textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2.5%, var(--bg)); color: var(--ink);
  font: 400 16px/1.4 var(--sans); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.nda-f textarea { resize: vertical; min-height: 76px; }
.nda-f input:focus, .nda-f textarea:focus { border-color: color-mix(in srgb, var(--c0) 55%, var(--line)); background: var(--bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c0) 14%, transparent); }
.nda-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.nda-flabel { margin: 22px 0 8px; }
.nda-ver { opacity: .7; }
.nda-text {
  height: 200px; overflow: auto; overscroll-behavior: contain; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2.5%, var(--bg));
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
}
.nda-text h3 { margin: 0 0 10px; font: 600 13px/1.4 var(--mono); color: var(--ink); white-space: pre-line; }
.nda-text p { margin: 0 0 10px; }
.nda-text:focus-visible { outline: 2px solid var(--t0); outline-offset: 2px; }
.nda-loading { color: var(--ink-3); }
.nda-form > .nda-f { margin-top: 16px; }
.nda-f .nda-sig { font-style: italic; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.nda-agree { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.nda-agree input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.nda-msg { min-height: 1.5em; margin-top: 14px; font-size: 14.5px; }
.nda-msg[data-kind="err"] { color: #c0263f; }
@media (prefers-color-scheme: dark) { .nda-msg[data-kind="err"] { color: #ff8197; } }
/* phones: the sentence as even centred lines, the button on its own row under it */
@media (max-width: 600px) { .nda-line { display: block; text-align: center; text-wrap: balance; } .nda-line .ico { margin-right: 4px; vertical-align: -2px; } .nda-line .cta-nda-btn { display: flex; width: fit-content; margin: 14px auto 0; } }
.nda-actions { margin-top: 6px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

.nda-sent { text-align: center; padding-top: 44px; padding-bottom: 34px; }
.nda-sent-badge { width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c0) 55%, var(--c2)); }
.nda-sent-badge .ico { width: 24px; height: 24px; }
.nda-sent-h { margin-top: 18px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; outline: none; }
.nda-sent .nda-sub { margin: 8px auto 0; }
.nda-sent .nda-actions { justify-content: center; margin-top: 24px; }

@media (max-width: 560px) {
  .nda-fields { grid-template-columns: 1fr; }
  .nda-dh h2 { font-size: 26px; }
  .nda-text { height: 180px; }
}

/* ── the /nda pages (next.js; the old site's global css is also loaded, so these win on specificity) ── */
body:has(.nda-doc) { height: auto; min-height: 100vh; letter-spacing: normal; line-height: 1.6; font: 400 16px/1.6 var(--sans); background: var(--bg); color: var(--ink); overscroll-behavior: auto; }
.nda-doc { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); letter-spacing: normal; }
.nda-doc::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c0), var(--c2), var(--c3), var(--c4)); }
.nda-doc a { color: inherit; border-bottom: 0; background: none; }
.nda-doc a:focus-visible { outline: 2px solid var(--t0); outline-offset: 3px; border-radius: 4px; }
/* site.css's h1 is the hero's burned-in headline; undo that here */
.nda-doc h1 { margin: 0; max-width: none; color: var(--ink); text-shadow: none; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.045em; }
.nda-doc h1, .nda-doc h2 { line-height: 1.1; }
.nda-nav { max-width: 900px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.nda-me { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.nda-main { flex: 1; padding-top: clamp(24px, 6vh, 64px); padding-bottom: 72px; max-width: 900px; }
.nda-foot { max-width: 900px; padding-bottom: 40px; }
.nda-foot .fine { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.nda-lock-ico { display: inline-block; flex: none; vertical-align: -0.15em; }
.nda-dim { color: var(--ink-3); }
.nda-mono { font: 500 13px/1.6 var(--mono); }

/* lock page + bad links */
.nda-locked { max-width: 560px; margin: 0 auto; padding: clamp(28px, 8vh, 80px) 0; text-align: center; }
.nda-badge { width: 64px; height: 64px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 20px; background: #1b2030; color: #fff; box-shadow: 0 18px 40px -16px rgba(11, 16, 32, .55); }
.nda-locked h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04 !important; }
.nda-locked > p:not(.nda-actions):not(.nda-why) { margin: 16px auto 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 44ch; }
.nda-why { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c2) 10%, var(--bg)); color: #a3213d; font: 500 13px/1.3 var(--mono); }
.nda-locked .nda-actions { margin-top: 30px; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.nda-quiet { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: underline !important; text-decoration-color: var(--line) !important; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.nda-quiet:hover { color: var(--ink); }
.nda-doc .nda-btn { background: var(--ink); color: var(--bg); }

/* unlocked */
.nda-head { margin-bottom: clamp(28px, 5vw, 48px); }
.nda-shared { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border-radius: 999px; background: #1b2030; color: #fff; font: 500 12.5px/1 var(--mono); letter-spacing: .01em; }
.nda-head h1 { margin-top: 22px; font-size: clamp(38px, 6vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1 !important; max-width: 14ch; }
.nda-head .nda-intro { margin-top: 22px; max-width: 58ch; color: var(--ink-2); font-size: 18px; }
.nda-projects { display: grid; gap: 18px; }
.nda-proj { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -34px rgba(24, 10, 70, .25); position: relative; overflow: hidden; }
.nda-proj::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c0), var(--c2), var(--c3)); opacity: .9; }
.nda-proj h2, .nda-proj h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.nda-prose { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.nda-prose > * + * { margin-top: 12px; }
.nda-prose h3, .nda-prose h4 { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-top: 20px; }
.nda-prose strong { color: var(--ink); font-weight: 600; }
.nda-prose ul, .nda-prose ol { padding-left: 1.2em; }
.nda-prose ul { list-style: disc; }
.nda-prose ol { list-style: decimal; }
.nda-prose li + li { margin-top: 4px; }
.nda-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.nda-prose a:hover { text-decoration-color: var(--c0); }
.nda-prose code { font: 500 13px/1.4 var(--mono); padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.nda-prose blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--line); }
.nda-prose hr { border: 0; border-top: 1px solid var(--line); }
.nda-empty { color: var(--ink-3); font-size: 17px; }
.nda-signed { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.nda-signed details { margin-top: 12px; }
.nda-signed summary { cursor: pointer; font: 500 13px/1.4 var(--mono); color: var(--ink-2); width: fit-content; }
.nda-terms { margin-top: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.nda-sigline { margin-top: 10px; font: 500 12.5px/1.5 var(--mono); }

/* the decide page */
.nda-decide { max-width: 640px; }
.nda-decide h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05 !important; }
.nda-lede { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 52ch; }
.nda-state { display: inline-block; margin-bottom: 14px; padding: 5px 11px; border-radius: 999px; font: 500 12.5px/1.2 var(--mono); background: color-mix(in srgb, var(--ink) 7%, var(--bg)); }
.nda-state.s-approved { background: #dff6e7; color: #12632f; }
.nda-state.s-denied, .nda-state.s-revoked { background: #fbe3e7; color: #a3213d; }
.nda-facts { margin: 28px 0 0; display: grid; grid-template-columns: 130px 1fr; border-top: 1px solid var(--line); }
.nda-facts dt, .nda-facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nda-facts dt { font: 500 12.5px/1.6 var(--mono); color: var(--ink-3); padding-top: 12px; }
.nda-facts dd { font-size: 15.5px; word-break: break-word; }
.nda-reason { white-space: pre-wrap; }
.nda-confirm { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.nda-confirm .nda-dim { font-size: 14px; }

@media (max-width: 560px) {
  .nda-facts { grid-template-columns: 1fr; }
  .nda-facts dt { border-bottom: 0; padding-bottom: 0; }
  .nda-facts dd { padding-top: 2px; }
}

/* ── sections ──
   four fixed sections: exowatt, grunts, personal projects, previous employers.
   the modal asks which ones someone is most interested in (a hint); the
   decide page has collin's toggles; /nda shows only the granted ones. */

/* the modal's "most interested in" chips (js/nda.js posts them as interests) */
.nda-interests { border: 0; padding: 0; margin: 0; min-width: 0; }
.nda-interests legend { padding: 0; margin-bottom: 8px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .01em; }
.nda-interests legend em { font-style: normal; opacity: .7; }
.nda-ichips { display: flex; flex-wrap: wrap; gap: 8px; }
.nda-ichip {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2.5%, var(--bg)); color: var(--ink-2);
  font: 500 14px/1 var(--sans); cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}
.nda-ichip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nda-ichip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.nda-ichip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nda-ichip:has(input:checked) span::before { content: "✓"; margin-right: 6px; font-weight: 600; }
.nda-ichip:has(input:focus-visible) { outline: 2px solid var(--t0); outline-offset: 2px; }
.nda-ihint { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }

/* the decide page: collin's four toggles. no javascript: the count on the
   button is a css counter over the ticked boxes, and :has() handles
   "pick at least one" and one-vs-several */
.nda-pick { display: block; counter-reset: picked; }
.nda-chips { position: relative; border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; }
.nda-chips legend { padding: 0; margin-bottom: 12px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .01em; }
.nda-chk { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.nda-chk:checked { counter-increment: picked; }
.nda-chip {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink-2);
  font: 500 16px/1 var(--sans); letter-spacing: -0.01em; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.nda-chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, var(--line)); }
.nda-chip:active { transform: scale(.98); }
.nda-tick { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 26%, var(--line)); transition: background .15s, border-color .15s; }
.nda-chk:checked + .nda-chip { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nda-chk:checked + .nda-chip .nda-tick { background: #fff; border-color: #fff; }
.nda-chk:checked + .nda-chip .nda-tick::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nda-chk:focus-visible + .nda-chip { outline: 2px solid var(--t0); outline-offset: 3px; }
.nda-asked { margin-left: 2px; padding: 4px 7px; border-radius: 999px; font: 500 12px/1 var(--mono); font-style: normal; background: color-mix(in srgb, var(--c0) 13%, var(--bg)); color: color-mix(in srgb, var(--c0) 80%, var(--ink)); }
.nda-chk:checked + .nda-chip .nda-asked { background: rgba(255, 255, 255, .16); color: #fff; }
.nda-none { display: none; margin-top: 14px; font-size: 14.5px; color: #a3213d; }
.nda-pick:not(:has(.nda-chk:checked)) .nda-none { display: block; }
.nda-confirm-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.nda-confirm-row .nda-dim { font-size: 14px; }
.nda-pick:not(:has(.nda-chk:checked)) .nda-approve { opacity: .38; pointer-events: none; box-shadow: none; }
.nda-n0, .nda-s0 { display: none; }
.nda-n::before { content: counter(picked); font-variant-numeric: tabular-nums; }
.nda-s::after { content: "s"; }
.nda-pick:has(.nda-chk:checked):not(:has(.nda-chk:checked ~ .nda-chk:checked)) .nda-s::after { content: ""; }
.nda-alt { margin-top: 16px; }
.nda-deny-btn {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  color: #a3213d; font: 500 15px/1.4 var(--sans);
  text-decoration: underline; text-decoration-color: #f2c4cd; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.nda-deny-btn:hover { text-decoration-color: #a3213d; }
.nda-decide .nda-why { margin-bottom: 18px; }
.nda-cansee { font-weight: 600; }

/* /nda: one block per granted section, in a fixed order */
.nda-toc { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.nda-toc a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px/1 var(--mono); color: var(--ink-2); transition: border-color .15s, color .15s; }
.nda-toc a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.nda-sec { scroll-margin-top: 24px; }
.nda-sec + .nda-sec { margin-top: clamp(44px, 7vw, 72px); }
.nda-sec-h { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 3.6vw, 34px); font-weight: 600; letter-spacing: -0.035em; }
.nda-sec-h::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c0) 55%, var(--c2)); }
.nda-sec .nda-intro { margin-top: 10px; max-width: 58ch; color: var(--ink-2); font-size: 17px; }
.nda-sec .nda-projects { margin-top: 20px; }
.nda-sec .nda-empty { margin-top: 10px; font-size: 16px; }
.nda-proj h3 { font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.nda-prose h5, .nda-prose h6 { color: var(--ink); font-size: 16px; font-weight: 600; margin-top: 18px; }

.nda-asked { margin-left: auto; }
@media (max-width: 560px) {
  .nda-chips { grid-template-columns: 1fr; }
  .nda-chip { height: 46px; font-size: 15px; }
}

/* /nda media: <video> and <img> from the section files (served by /nda/media/...) */
.nda-media { margin: 20px 0 0; }
.nda-media video, .nda-media img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.nda-media video { background: #000; }
.nda-media img { width: auto; }
.nda-media figcaption { margin-top: 8px; color: var(--ink-3); font: 400 13px/1.45 var(--mono); }
/* portrait clips (the iphone app) stay phone-sized instead of filling the column */
.nda-media video { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; }
