:root {
  --bg: oklch(0.965 0.012 85);
  --bg-warm: oklch(0.945 0.018 80);
  --surface: oklch(0.99 0.005 85);
  --surface-2: oklch(0.975 0.008 80);
  --ink: oklch(0.22 0.015 60);
  --ink-2: oklch(0.36 0.014 65);
  --muted: oklch(0.55 0.012 70);
  --muted-2: oklch(0.68 0.010 75);
  --border: oklch(0.88 0.012 75);
  --border-strong: oklch(0.78 0.014 75);
  --accent: oklch(0.42 0.07 160);
  --accent-ink: oklch(0.32 0.07 160);
  --accent-tint: oklch(0.94 0.03 160);
  --accent-on: #fdfbf6;
  --ochre: oklch(0.66 0.11 60);
  --ochre-tint: oklch(0.94 0.04 70);
  --ochre-ink: oklch(0.42 0.11 60);
  --font-display: "Newsreader", Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(oklch(0.78 0.014 75 / 0.18) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  opacity: 0.35;
}

body.is-demo-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.portal {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--bg);
}

.portal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
  padding: 20px 36px 0;
  pointer-events: none;
}

.portal-header > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: block;
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  color: var(--bg);
}

.desktop-nav-default {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.desktop-nav [hidden] {
  display: none;
}

.nav-sep {
  color: color-mix(in oklch, var(--bg), transparent 55%);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  line-height: 1;
}

.desktop-nav a,
.desktop-nav button {
  border: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--bg), transparent 78%);
  background: transparent;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  padding: 0 0 4px;
  text-transform: uppercase;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
  border-bottom-color: var(--bg);
}

.noscript-notice {
  position: relative;
  z-index: 40;
  margin: 82px 36px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 15px;
}

.noscript-notice a {
  border-bottom: 1px solid var(--border-strong);
}

.mobile-actions {
  display: none;
}

main {
  min-height: 100vh;
}

.portal-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100vh;
  min-height: 720px;
  position: relative;
  overflow: hidden;
}

.portal-door {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--border);
  isolation: isolate;
}

.portal-door:first-child {
  border-left: 0;
}

.portal-door--draft {
  background: var(--bg);
}

.portal-door--scholar {
  background: var(--bg-warm);
}

.portal-door--counsel {
  background: var(--ink);
  border-left-color: oklch(0.35 0.012 60);
  color: var(--bg);
}

.portal-door::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 460ms cubic-bezier(.22, .61, .36, 1);
}

.portal-door--scholar::after {
  background: var(--ochre);
}

.portal-door:hover::after {
  transform: scaleX(1);
}

.door-glyph {
  position: absolute;
  top: -55px;
  right: -39px;
  z-index: 0;
  color: color-mix(in oklch, var(--accent), transparent 92%);
  font-family: var(--font-display);
  font-size: 468px;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  transition: color 250ms ease, transform 250ms cubic-bezier(.22, .61, .36, 1);
  white-space: nowrap;
}

.door-glyph--small {
  top: auto;
  right: auto;
  bottom: -39px;
  left: -31px;
  font-size: 234px;
}

.portal-door--scholar .door-glyph {
  color: color-mix(in oklch, var(--ochre), transparent 88%);
}

.portal-door--counsel .door-glyph {
  color: color-mix(in oklch, var(--accent), transparent 80%);
}

.portal-door:hover .door-glyph {
  transform: translate(-14px, 12px) scale(1.12);
}

.portal-door:hover .door-glyph--small {
  transform: translate(10px, -8px) scale(1.14);
}

.portal-door--draft:hover .door-glyph {
  color: color-mix(in oklch, var(--accent), transparent 84%);
}

.portal-door--scholar:hover .door-glyph {
  color: color-mix(in oklch, var(--ochre), transparent 78%);
}

.portal-door--counsel:hover .door-glyph {
  color: color-mix(in oklch, var(--accent), transparent 60%);
}

.door-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 570px;
  padding: 82px 52px 94px;
}

.door-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portal-door--counsel .door-kicker {
  color: oklch(0.65 0.012 75);
}

.door-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(56px, 6.6vw, 96px);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 0.92;
}

.door-title em {
  font-style: italic;
}

.portal-door--draft .door-title em {
  color: var(--accent-ink);
}

.portal-door--scholar .door-title em {
  color: var(--ochre-ink);
}

.portal-door--counsel .door-title {
  color: var(--bg);
}

.portal-door--counsel .door-title em {
  color: var(--accent);
}

.door-copy {
  max-width: 38ch;
  margin: 6px 0 0;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.45;
  text-wrap: pretty;
}

.copy-mobile,
.label-mobile,
.door-meta.door-meta--mobile {
  display: none;
}

.portal-door--counsel .door-copy {
  color: oklch(0.82 0.012 75);
}

.door-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.door-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 10px 28px -12px color-mix(in oklch, var(--ink), transparent 55%);
  transition: box-shadow 200ms, transform 160ms;
}

.door-cta:hover {
  transform: translateX(2px);
}

.portal-door--draft .door-cta,
.portal-door--counsel .door-cta {
  background: var(--accent);
  color: var(--accent-on);
}

.portal-door--scholar .door-cta {
  background: var(--ochre-ink);
  color: var(--bg);
}

.door-note {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-door--counsel .door-note {
  color: oklch(0.7 0.012 75);
}

.counsel-signin {
  align-self: flex-start;
  border-bottom: 1px solid oklch(0.4 0.012 75);
  color: oklch(0.78 0.012 75);
  font-family: var(--font-display);
  font-size: 14px;
  margin-top: 4px;
  padding-bottom: 2px;
  transition: border-color 160ms, color 160ms;
}

.counsel-signin em {
  color: var(--accent);
  font-style: italic;
}

.counsel-signin:hover {
  border-bottom-color: var(--accent);
  color: var(--bg);
}

.door-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.door-meta div {
  min-width: 70px;
}

.door-meta dt {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1;
  text-transform: none;
}

.door-meta dd {
  margin: 4px 0 0;
}

.portal-door--counsel .door-meta {
  color: oklch(0.65 0.012 75);
}

.portal-door--counsel .door-meta dt {
  color: var(--bg);
}

.portal-stats,
.portal-about {
  display: none;
}

.about-line {
  position: relative;
  z-index: 1;
}

.about-arrow {
  display: none;
}

.portal-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 32px;
  min-height: 76px;
  padding: 0 52px;
  background:
    linear-gradient(90deg, var(--bg) 0 33.333%, var(--bg-warm) 33.333% 66.666%, var(--ink) 66.666% 100%);
  color: var(--ink);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.footer-brand img {
  width: 23.4px;
  height: 23.4px;
  object-fit: contain;
}

.footer-brand-sep {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
}

.footer-tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav {
  display: inline-flex;
  align-items: baseline;
  gap: 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a {
  border-bottom: 0;
  color: var(--muted);
  padding: 4px 2px 5px;
  transition: color 140ms;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--ink);
}

.footer-nav--legal {
  justify-self: center;
}

.footer-nav--dark {
  justify-self: end;
}

.portal-footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: inherit;
  letter-spacing: inherit;
  padding: 4px 2px 5px;
  text-transform: uppercase;
  transition: color 140ms;
}

.portal-footer button:hover {
  color: var(--ink);
}

.footer-sep {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0;
}

.footer-nav--dark a,
.footer-nav--dark button {
  color: oklch(0.72 0.012 75);
}

.footer-nav--dark a:hover,
.footer-nav--dark button:hover {
  color: var(--bg);
}

.footer-nav--dark .footer-sep {
  color: oklch(0.5 0.012 75);
}

.footer-mobile-links a {
  border-bottom: 0;
  color: var(--ink-2);
  padding: 0 0 2px;
}

.footer-mobile-fine {
  display: none;
}

.footer-mobile-legal {
  display: none;
}

.mobile-menu[hidden],
.demo-success[hidden],
.demo-form[hidden] {
  display: none;
}

.counsel-demo {
  position: relative;
  z-index: 2;
  flex: 1;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  padding: 82px 52px 94px;
  color: var(--bg);
  overflow-y: auto;
  animation: demo-in 360ms cubic-bezier(.22, .61, .36, 1);
}

@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: oklch(0.6 0.012 75);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.demo-form,
.demo-success {
  max-width: 100%;
}

.demo-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.demo-form h2,
.demo-success h2 {
  margin: 4px 0 0;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: clamp(36px, 3.2vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.demo-form h2 em,
.demo-success h2 em {
  color: var(--accent);
  font-style: italic;
}

.demo-form > p,
.demo-success > p {
  max-width: 38ch;
  margin: 0 0 4px;
  color: oklch(0.78 0.012 75);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}

.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: oklch(0.6 0.012 75);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid oklch(0.38 0.012 75);
  outline: 0;
  background: transparent;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0;
  padding: 6px 0 5px;
  text-transform: none;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: oklch(0.42 0.012 75);
  font-style: italic;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-bottom-color: var(--accent);
}

.demo-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1.5 1.5L6 6L10.5 1.5' stroke='%23bfb6a8' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: right 4px center;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.demo-form select option {
  background: var(--ink);
  color: var(--bg);
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
}

.demo-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 10px 28px -12px color-mix(in oklch, var(--accent), transparent 40%);
  transition: opacity 160ms, transform 160ms;
}

.demo-submit:hover {
  transform: translateX(2px);
}

.demo-submit:disabled {
  cursor: progress;
  opacity: 0.65;
  transform: none;
}

.demo-cancel {
  border: 0;
  background: transparent;
  color: oklch(0.62 0.012 75);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  padding: 0;
  text-transform: uppercase;
  transition: color 160ms;
}

.demo-cancel:hover {
  color: var(--bg);
}

.demo-fineprint {
  color: oklch(0.55 0.012 75) !important;
  font-family: var(--font-mono) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.14em !important;
  line-height: 1.55 !important;
  margin: 6px 0 0 !important;
  text-transform: uppercase;
}

.demo-success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  align-items: flex-start;
}

.demo-seal {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent), transparent 82%);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 18px 50px oklch(0.22 0.015 60 / 0.14);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.toast[hidden] {
  display: none;
}

.legal-page {
  overflow-y: auto;
}

.legal-portal {
  min-height: 100vh;
}

.legal-header {
  position: fixed;
}

.legal-header .desktop-nav,
.legal-nav {
  color: var(--ink);
}

.legal-header .nav-sep {
  color: var(--muted-2);
}

.legal-header .desktop-nav a,
.legal-header .desktop-nav button {
  border-bottom-color: color-mix(in oklch, var(--ink), transparent 75%);
}

.legal-header .desktop-nav a:hover,
.legal-header .desktop-nav button:hover {
  border-bottom-color: var(--ink);
}

.legal-main {
  min-height: 100vh;
  padding: 126px 52px 86px;
}

.privacy-document {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.privacy-copy {
  max-width: 100%;
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.privacy-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.privacy-effective {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.privacy-lede {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.7;
  text-wrap: pretty;
}

.legal-note {
  margin: 24px 0 48px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.privacy-copy section {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.privacy-copy section:last-child {
  border-bottom: 1px solid var(--border);
}

.privacy-copy h2 {
  grid-row: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.privacy-copy h3 {
  grid-column: 2;
  margin: 2px 0 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
}

.privacy-copy p {
  grid-column: 2;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.56;
}

.privacy-copy ul {
  grid-column: 2;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.56;
}

.privacy-copy li + li {
  margin-top: 3px;
}

.privacy-copy section p + p,
.privacy-copy section p + h3,
.privacy-copy section ul + p,
.privacy-copy section ul + h3,
.privacy-copy section h3 + p,
.privacy-copy section p + ul {
  margin-top: 4px;
}

.privacy-copy section a {
  border-bottom: 1px solid var(--border-strong);
  color: var(--accent-ink);
}

.contact-aside {
  grid-column: 1;
  display: grid;
  gap: 28px;
  align-self: start;
}

.contact-aside h2 {
  grid-row: auto;
}

.contact-details {
  grid-column: auto;
  grid-row: auto;
  display: grid;
  gap: 14px;
}

.contact-details p {
  grid-column: auto;
  display: grid;
  gap: 4px;
  margin: 0;
}

.contact-details strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.contact-details span,
.contact-details a {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.contact-form {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 16px;
  width: 100%;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-field label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: color-mix(in oklch, var(--bg), white 45%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
}

.contact-form input,
.contact-form select {
  min-height: 44px;
  padding: 10px 11px;
}

.contact-form textarea {
  min-height: 180px;
  padding: 11px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  outline: 2px solid color-mix(in oklch, var(--ink), transparent 82%);
  outline-offset: 1px;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 2px;
}

.contact-submit-row button {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 0 18px;
  text-transform: uppercase;
}

.contact-submit-row button:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.contact-submit-row p,
.contact-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.contact-status:empty {
  display: none;
}

/* Contact page redesign */
.ct-page {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.ct-brand-float {
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.ct-brand-float .mark {
  display: block;
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.ct-page-nav {
  position: absolute;
  top: 34px;
  right: 36px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ct-page-nav a {
  border-bottom: 1px solid color-mix(in oklch, var(--ink), transparent 80%);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  padding: 6px 0 5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms, color 160ms;
}

.ct-page-nav a:hover,
.ct-page-nav a.is-current {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.ct-page-nav .sep,
.ct-foot-nav .sep {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1;
}

.ct-head {
  position: relative;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg);
  padding: 84px 64px 28px;
}

.ct-head-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.ct-eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ct-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.04;
}

.ct-lede {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.ct-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 72px;
  align-items: start;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1400px;
  min-height: 0;
  margin: 0 auto;
  padding: 34px 64px 30px;
}

.ct-form-head,
.ct-aside-lbl {
  border-bottom: 1px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 28px;
  padding-bottom: 12px;
  text-transform: uppercase;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  max-width: 64ch;
}

.ct-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.ct-fieldset-lbl,
.ct-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ct-fieldset-lbl {
  margin-bottom: 10px;
}

.ct-dept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border-strong);
}

.ct-dept {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: background 140ms;
}

.ct-dept:nth-child(2n) {
  border-right: 0;
}

.ct-dept:nth-last-child(-n+2) {
  border-bottom: 0;
}

.ct-dept:hover {
  background: color-mix(in oklch, var(--ink), transparent 96%);
}

.ct-dept input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ct-dept span {
  pointer-events: none;
}

.ct-dept:has(input:checked) {
  background: var(--ink);
}

.ct-dept:has(input:focus-visible) {
  outline: 2px solid color-mix(in oklch, var(--ink), transparent 75%);
  outline-offset: -2px;
}

.ct-dept .d-label {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ct-dept .d-hint {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.3;
}

.ct-dept:has(input:checked) .d-label {
  color: var(--bg);
}

.ct-dept:has(input:checked) .d-hint {
  color: color-mix(in oklch, var(--bg), transparent 35%);
}

.ct-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-optional {
  color: var(--muted-2);
  font-size: inherit;
  letter-spacing: inherit;
}

.ct-input,
.ct-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  outline: none;
  padding: 8px 0 7px;
  transition: border-color 180ms;
}

.ct-input:focus,
.ct-textarea:focus {
  border-bottom-color: var(--ink);
}

.ct-textarea {
  height: 80px;
  min-height: 80px;
  resize: vertical;
}

.ct-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 3px;
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0 26px;
  transition: opacity 160ms;
}

.ct-submit:hover {
  opacity: 0.88;
}

.ct-fineprint,
.ct-status,
.ct-notice {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ct-status:empty {
  display: none;
}

.ct-aside {
  position: sticky;
  top: 48px;
}

.ct-colophon {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.ct-colophon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ct-colophon-row:last-child {
  border-bottom: 0;
}

.ct-colophon-row .k {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ct-colophon-row .v {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: right;
}

.ct-colophon-row a {
  color: inherit;
  text-decoration: none;
}

.ct-colophon-row a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-notice {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ct-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ct-foot-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.ct-foot-logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ct-foot-tag {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ct-foot-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ct-foot-nav a {
  color: var(--muted);
  padding: 4px 6px;
  text-decoration: none;
  transition: color 140ms;
}

.ct-foot-nav a:hover,
.ct-foot-nav a.is-current {
  color: var(--ink);
}

@media (min-width: 900px) and (max-height: 820px) {
  .ct-head {
    padding: 58px 64px 18px;
  }

  .ct-eyebrow {
    margin-bottom: 8px;
  }

  .ct-title {
    font-size: clamp(36px, 4vw, 52px);
  }

  .ct-lede {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.45;
  }

  .ct-body {
    padding: 20px 64px 14px;
  }

  .ct-form {
    gap: 12px;
  }

  .ct-fieldset-lbl {
    margin-bottom: 8px;
  }

  .ct-dept {
    padding: 7px 12px;
  }

  .ct-dept .d-label {
    font-size: 15.5px;
  }

  .ct-dept .d-hint {
    font-size: 12.5px;
  }

  .ct-row {
    gap: 20px;
  }

  .ct-field {
    gap: 6px;
  }

  .ct-input,
  .ct-textarea {
    padding: 6px 0;
  }

  .ct-textarea {
    height: 64px;
    min-height: 64px;
  }

  .ct-actions {
    gap: 18px;
    padding-top: 2px;
  }

  .ct-submit {
    min-height: 38px;
  }

  .ct-foot {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* Privacy policy redesign */
.pv-page,
.ad-page {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.pv-brand-float,
.ad-brand-float {
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.pv-brand-float .mark,
.ad-brand-float .mark {
  display: block;
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.pv-page-nav,
.ad-page-nav {
  position: absolute;
  top: 34px;
  right: 36px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.pv-page-nav a,
.ad-page-nav a {
  border-bottom: 1px solid color-mix(in oklch, var(--ink), transparent 80%);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  padding: 6px 0 5px;
  text-transform: uppercase;
  transition: border-color 160ms, color 160ms;
}

.pv-page-nav a:hover,
.ad-page-nav a:hover,
.pv-page-nav a.is-current,
.ad-page-nav a.is-current {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.pv-page-nav .sep,
.ad-page-nav .sep,
.pv-foot-nav .sep,
.ad-foot-nav .sep {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1;
}

.pv-head,
.ad-head {
  position: relative;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg);
  padding: 132px 64px 44px;
}

.pv-head-inner,
.ad-head-inner {
  display: grid;
  align-items: end;
  gap: 64px;
  margin: 0 auto;
}

.pv-head-inner {
  grid-template-columns: minmax(0, 1fr) 320px;
  max-width: 1400px;
}

.ad-head-inner {
  grid-template-columns: minmax(0, 1fr) 300px;
  max-width: 1100px;
}

.pv-eyebrow,
.ad-eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.ad-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  text-transform: uppercase;
  transition: color 140ms;
}

.ad-back:hover {
  color: var(--ink);
}

.pv-title,
.ad-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.022em;
}

.pv-title {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.04;
}

.ad-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.pv-lede,
.ad-lede {
  max-width: 64ch;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.ad-lede {
  max-width: 60ch;
  font-size: 18px;
}

.pv-colophon,
.ad-colophon {
  align-self: end;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.pv-colophon-row,
.ad-colophon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.pv-colophon-row:last-child,
.ad-colophon-row:last-child {
  border-bottom: 0;
}

.pv-colophon-row .k,
.ad-colophon-row .k {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pv-colophon-row .v,
.ad-colophon-row .v {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: right;
}

.pv-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 64px max(120px, 22vh);
}

.pv-toc {
  position: sticky;
  top: 48px;
  display: flex;
  flex-direction: column;
}

.pv-toc-lbl,
.ad-related-lbl {
  border-bottom: 1px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 4px;
  padding-bottom: 12px;
  text-transform: uppercase;
}

.pv-toc-item {
  display: block;
  padding: 9px 0 9px 12px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 15.5px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  transition: background 140ms, color 140ms, border-color 140ms, padding-left 140ms;
}

.pv-toc-item:hover,
.pv-toc-item.is-active {
  color: var(--ink);
}

.pv-toc-item.is-active {
  background: color-mix(in oklch, var(--ink), transparent 95%);
  border-left-color: var(--ink);
  font-weight: 600;
  padding-left: 14px;
}

.pv-article,
.ad-article {
  max-width: 72ch;
}

.pv-intro,
.ad-supp {
  margin: 0 0 8px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
}

.ad-supp {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.pv-sec,
.ad-clause {
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 36px;
}

.pv-sec {
  padding: 44px 0 8px;
}

.ad-clause {
  padding: 26px 0 6px;
}

.pv-sec:last-of-type,
.ad-clause:last-child {
  border-bottom: 0;
}

.pv-sec-title,
.ad-clause-h {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

.pv-sec-title {
  font-size: clamp(24px, 2.4vw, 30px);
}

.ad-clause-h {
  font-size: clamp(20px, 2vw, 24px);
}

.pv-article p,
.ad-clause-b p,
.ad-clause-b {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.68;
  text-wrap: pretty;
}

.pv-article h3,
.ad-clause-b h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pv-article ul,
.ad-clause-b ul {
  margin: 0 0 20px;
  padding-left: 21px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.62;
}

.pv-article li + li,
.ad-clause-b li + li {
  margin-top: 7px;
}

.pv-inline-link,
.pv-article a,
.ad-clause-b a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted-2);
  text-underline-offset: 2px;
  transition: text-decoration-color 140ms;
}

.pv-inline-link:hover,
.pv-article a:hover,
.ad-clause-b a:hover {
  text-decoration-color: var(--ink);
}

.pv-addenda {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 36px;
}

.pv-addenda-intro {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.68;
}

.pv-addenda-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-strong);
}

.pv-addendum-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding-left 160ms, background 160ms;
}

.pv-article .pv-addendum-link,
.pv-article .pv-addendum-link:hover,
.pv-article .pv-addendum-link *,
.pv-article .pv-addendum-link:hover * {
  text-decoration: none;
}

.pv-addendum-link:hover {
  background: color-mix(in oklch, var(--ink), transparent 96%);
  padding-left: 14px;
}

.pv-addendum-link-name {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.pv-addendum-link-aud {
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.3;
}

.pv-addendum-link-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.pv-addendum-link-tag,
.ad-related-sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pv-addendum-link-arrow {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  transition: transform 160ms;
}

.pv-addendum-link:hover .pv-addendum-link-arrow {
  transform: translateX(4px);
}

.ad-body {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 64px 90px;
}

.ad-related {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.ad-related-lbl {
  border-bottom: 0;
  margin-bottom: 14px;
  padding-bottom: 0;
}

.ad-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border-strong);
}

.ad-related-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  transition: background 140ms;
}

.ad-related-link:last-child {
  border-right: 0;
}

.ad-related-link:hover {
  background: color-mix(in oklch, var(--ink), transparent 95%);
}

.ad-related-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pv-foot,
.ad-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pv-foot-mark,
.ad-foot-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.pv-foot-logo,
.ad-foot-logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.pv-foot-tag,
.ad-foot-tag {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pv-foot-nav,
.ad-foot-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pv-foot-nav a,
.ad-foot-nav a {
  color: var(--muted);
  padding: 4px 6px;
  transition: color 140ms;
}

.pv-foot-nav a:hover,
.ad-foot-nav a:hover,
.pv-foot-nav a.is-current,
.ad-foot-nav a.is-current {
  color: var(--ink);
}

.legal-footer {
  background: var(--bg);
}

.legal-footer .footer-nav--dark button {
  border-bottom-color: color-mix(in oklch, var(--ink), transparent 70%);
  color: var(--muted);
}

.legal-footer .footer-nav--dark button:hover {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

@media (max-width: 1120px) {
  .door-content {
    padding-inline: 34px;
  }

  .door-copy {
    font-size: 17px;
  }

  .door-meta {
    gap: 12px 18px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    width: 100%;
  }

  .portal {
    display: flex;
    flex-direction: column;
    min-height: 110dvh;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .portal-header {
    position: relative;
    z-index: 30;
    flex-shrink: 0;
    height: 52px;
    padding: 10px 18px;
    background: transparent;
  }

  .brand {
    font-size: 17px;
    gap: 9px;
  }

  .brand-mark {
    width: 36.4px;
    height: 36.4px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .signin-pill {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .menu-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    padding: 0;
  }

  .menu-button span,
  .menu-button span::before,
  .menu-button span::after {
    content: "";
    display: block;
    width: 15px;
    height: 1.5px;
    background: var(--ink);
    transition: opacity 180ms, transform 220ms;
  }

  .menu-button span {
    position: relative;
  }

  .menu-button span::before,
  .menu-button span::after {
    position: absolute;
    left: 0;
  }

  .menu-button span::before {
    top: -5px;
  }

  .menu-button span::after {
    top: 5px;
  }

  .menu-button.is-open span {
    background: transparent;
  }

  .menu-button.is-open span::before {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-button.is-open span::after {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    padding: 4px 18px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px -18px oklch(0.20 0.015 60 / 0.25);
  }

  .mobile-menu a,
  .mobile-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    background: transparent;
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
  }

  .mobile-menu a:last-child,
  .mobile-menu button:last-child {
    border-bottom: 0;
  }

  .mobile-menu span {
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 16px;
    font-style: italic;
    letter-spacing: 0;
  }

  main {
    flex: 0 0 auto;
    min-height: calc(110vh - 52px);
    min-height: calc(110svh - 52px);
  }

  .portal-doors {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 8fr 8fr 8fr 3fr 4fr;
    height: auto;
    min-height: calc(110vh - 52px);
    min-height: calc(110svh - 52px);
    overflow: visible;
  }

  .portal-door {
    border-left: 0;
    border-top: 1px solid color-mix(in oklch, var(--border), transparent 45%);
  }

  .portal-door:first-child {
    border-top: 0;
    overflow: visible;
  }

  .portal-door::after {
    display: none;
  }

  .door-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    max-width: none;
    padding: clamp(16px, 3vh, 26px) 22px 10px;
  }

  .door-kicker {
    display: none;
  }

  .door-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .door-copy {
    max-width: 34ch;
    margin: 0;
    font-size: clamp(12px, 3.45vw, 13.5px);
    line-height: 1.32;
  }

  .copy-desktop,
  .label-desktop,
  .door-meta.door-meta--desktop {
    display: none;
  }

  .copy-mobile,
  .label-mobile {
    display: inline;
  }

  .door-meta.door-meta--mobile {
    display: flex;
  }

  .door-actions {
    position: absolute;
    top: clamp(14px, 3vh, 22px);
    right: 18px;
    z-index: 3;
    margin: 0;
    gap: 0;
  }

  .door-cta {
    min-height: 0;
    padding: 8px 13px;
    font-size: 12px;
    gap: 8px;
    box-shadow: none;
    transition: none;
  }

  .door-cta:hover {
    transform: none;
  }

  .door-note {
    display: none;
  }

  .counsel-signin {
    display: none;
  }

  .door-meta {
    display: flex;
    gap: 10px 14px;
    margin-top: 10px;
    font-size: 8.5px;
    letter-spacing: 0.14em;
  }

  .door-meta dt {
    display: inline;
    font-size: 13px;
    margin-right: 4px;
  }

  .door-meta dd {
    display: inline;
    margin: 0;
  }

  .door-glyph {
    top: -44px;
    right: -23px;
    font-size: 234px;
    color: color-mix(in oklch, var(--accent), transparent 90%);
    transition: none;
  }

  .portal-door--draft .door-glyph {
    top: -101px;
  }

  .portal-door--scholar .door-glyph {
    color: color-mix(in oklch, var(--ochre), transparent 86%);
  }

  .portal-door--counsel .door-glyph {
    color: color-mix(in oklch, var(--accent), transparent 76%);
  }

  .portal-door:hover .door-glyph,
  .portal-door:hover .door-glyph--small {
    transform: none;
  }

  .portal-door--draft:hover .door-glyph {
    color: color-mix(in oklch, var(--accent), transparent 90%);
  }

  .portal-door--scholar:hover .door-glyph {
    color: color-mix(in oklch, var(--ochre), transparent 86%);
  }

  .portal-door--counsel:hover .door-glyph {
    color: color-mix(in oklch, var(--accent), transparent 76%);
  }

  .portal-door:hover::after {
    transform: scaleX(0);
  }

  .door-glyph--small {
    display: none;
  }

  .portal-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    background: var(--bg);
    color: var(--ink);
    padding: 8px 18px;
  }

  .portal-stats div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
    text-align: center;
  }

  .portal-stats div + div::before {
    content: "";
    position: absolute;
    top: 14%;
    bottom: 14%;
    left: 0;
    width: 1px;
    background: var(--border);
  }

  .portal-stats strong {
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: clamp(26px, 8vw, 36px);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
  }

  .portal-stats div:nth-child(2) strong {
    color: var(--ochre-ink);
  }

  .portal-stats div:nth-child(3) strong {
    color: var(--ink);
  }

  .portal-stats em {
    font-size: 0.62em;
    font-style: italic;
    font-weight: 500;
    margin-left: 1px;
    opacity: 0.85;
  }

  .portal-stats span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .portal-about {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: visible;
    padding: 12px 22px 14px;
    background: var(--bg);
    color: var(--ink);
  }

  .portal-about::before {
    display: none;
  }

  .about-glyph {
    position: absolute;
    top: -22px;
    right: -10px;
    color: color-mix(in oklch, var(--ochre), transparent 78%);
    font-family: var(--font-display);
    font-size: 150px;
    font-style: italic;
    line-height: 1;
    pointer-events: none;
  }

  .about-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }

  .about-kicker span {
    color: var(--ochre-ink);
    font-family: var(--font-display);
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0;
  }

  .about-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2px;
  }

  .about-arrow {
    display: inline-block;
    color: var(--ochre-ink);
    font-family: var(--font-display);
    font-size: 26px;
    font-style: italic;
    line-height: 1;
  }

  .portal-about h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(26px, 7.5vw, 32px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  .portal-about h2 em {
    color: var(--ochre-ink);
    font-style: italic;
  }

  .about-copy {
    display: none;
  }

  .portal-footer {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: stretch;
    gap: 8px;
    min-height: 74px;
    padding: 12px 18px 14px;
    background: var(--bg);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  .footer-brand {
    display: none;
  }

  .footer-brand img {
    display: none;
  }

  .footer-nav {
    display: none;
  }

  .portal-footer button {
    color: var(--ink-2);
    font-size: 8.5px;
    letter-spacing: 0.16em;
  }

  .portal-footer p {
    display: block;
    margin: 0;
    color: var(--ink-2);
    font-family: var(--font-display);
    font-size: 11px;
    font-style: italic;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
  }

  .footer-mobile-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .footer-mobile-links {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }

  .footer-mobile-links button {
    border-bottom: 0;
    color: var(--ink-2);
    padding: 0 0 2px;
  }

  .footer-mobile-links a {
    border-bottom: 0;
    color: var(--ink-2);
    padding: 0 0 2px;
  }

  .footer-mobile-links .footer-sep {
    color: var(--muted-2);
  }

  .legal-header {
    position: relative;
  }

  .legal-main {
    min-height: auto;
    padding: 34px 22px 46px;
  }

  .privacy-document {
    display: block;
  }

  .privacy-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .privacy-lede {
    margin-top: 20px;
    font-size: 15.5px;
    line-height: 1.65;
  }

  .legal-note {
    margin-bottom: 36px;
  }

  .privacy-copy section {
    display: block;
    padding: 24px 0;
  }

  .privacy-copy h2 {
    margin-bottom: 12px;
    font-size: 17px;
  }

  .privacy-copy h3 {
    margin-top: 16px;
    font-size: 14.5px;
  }

  .privacy-copy p {
    font-size: 15px;
    line-height: 1.68;
  }

  .privacy-copy ul {
    font-size: 15px;
    line-height: 1.68;
  }

  .contact-form {
    gap: 15px;
  }

  .contact-field--split {
    grid-template-columns: 1fr;
  }

  .contact-submit-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .contact-submit-row button {
    width: 100%;
  }

  .ct-brand-float {
    top: 20px;
    left: 22px;
    font-size: 18px;
  }

  .ct-brand-float .mark {
    width: 30px;
    height: 30px;
  }

  .ct-page-nav {
    top: 22px;
    right: 22px;
    gap: 10px;
  }

  .ct-page-nav a {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .ct-page-nav .sep {
    display: none;
  }

  .ct-head {
    padding: 104px 22px 34px;
  }

  .ct-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .ct-lede {
    font-size: 16.5px;
    line-height: 1.62;
  }

  .ct-body {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 38px 22px 72px;
  }

  .ct-aside {
    position: static;
  }

  .ct-dept-grid,
  .ct-row {
    grid-template-columns: 1fr;
  }

  .ct-dept {
    border-right: 0;
  }

  .ct-dept:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .ct-dept:last-child {
    border-bottom: 0;
  }

  .ct-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .ct-submit {
    justify-content: center;
    width: 100%;
  }

  .pv-brand-float,
  .ad-brand-float {
    top: 20px;
    left: 22px;
    font-size: 18px;
  }

  .pv-brand-float .mark,
  .ad-brand-float .mark {
    width: 30px;
    height: 30px;
  }

  .pv-page-nav,
  .ad-page-nav {
    top: 22px;
    right: 22px;
    gap: 10px;
  }

  .pv-page-nav a,
  .ad-page-nav a {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .pv-page-nav .sep,
  .ad-page-nav .sep {
    display: none;
  }

  .pv-head,
  .ad-head {
    padding: 104px 22px 34px;
  }

  .pv-head-inner,
  .ad-head-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .pv-title,
  .ad-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .pv-lede,
  .ad-lede {
    font-size: 16.5px;
    line-height: 1.62;
  }

  .pv-body {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 36px 22px 72px;
  }

  .pv-toc {
    position: static;
  }

  .pv-toc-item {
    padding: 10px 0 10px 10px;
  }

  .pv-sec {
    padding: 34px 0 8px;
  }

  .pv-article p,
  .ad-clause-b p,
  .ad-clause-b,
  .pv-article ul,
  .ad-clause-b ul {
    font-size: 16px;
    line-height: 1.66;
  }

  .pv-addendum-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .pv-addendum-link-meta {
    width: 100%;
    justify-content: space-between;
  }

  .ad-body {
    padding: 38px 22px 72px;
  }

  .ad-related-grid {
    grid-template-columns: 1fr;
  }

  .ad-related-link {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .ad-related-link:last-child {
    border-bottom: 0;
  }

  .pv-foot,
  .ad-foot {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 22px;
  }

  body.is-demo-open .portal-footer {
    display: none;
  }

  .portal-door--counsel.is-demo {
    position: fixed;
    inset: 52px 0 0;
    z-index: 50;
    border-top: 0;
    overflow-y: auto;
  }

  .portal-door--counsel.is-demo .counsel-demo {
    min-height: 100%;
    padding: 22px 22px 28px;
  }

  .demo-form,
  .demo-success {
    justify-content: flex-start;
  }

  .demo-head {
    min-height: 30px;
  }

  .demo-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .demo-submit {
    width: 100%;
  }

  .demo-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .toast {
    bottom: 12px;
    border-radius: 6px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    position: static;
    width: auto;
  }

  .portal {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  main {
    flex: 0 0 auto;
  }

  .portal-doors {
    height: auto;
    min-height: 680px;
  }
}

@media (max-width: 380px) {
  .door-content {
    padding-inline: 18px;
  }

  .door-actions {
    right: 14px;
  }

  .door-cta {
    padding-inline: 11px;
  }

  .portal-footer {
    min-height: 88px;
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
