:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: #f7f7f6;
  color: #1d1a1c;
  --primary: #4a1a3d;
  --foreground: #1d1a1c;
  --card: #fff;
  --muted: #6d686c;
  --border: #eae7e8;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #6b2a5c; outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.7; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px; background: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.7px; }
nav { display: flex; align-items: center; gap: 30px; font-size: 12px; }
nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 35px; min-height: 48px; padding: 0 22px; background: var(--primary); color: #fff; border: 1px solid var(--primary); border-radius: 6px; font-size: 13px; font-weight: 500; transition: background .2s; }
.button:hover { background: #3a122f; }
.button span { font-size: 18px; line-height: 1; }
.button-small { min-height: 40px; padding-inline: 16px; gap: 24px; font-size: 12px; }
.button-outline { background: transparent; color: var(--primary); border-color: #d9d4d7; }
.button-outline:hover { background: #f6eef4; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.6px; font-weight: 500; }
.hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: 35px; padding-block: 72px 62px; }
.hero > * { min-width: 0; }
h1 { font-size: clamp(44px,4.8vw,64px); font-weight: 500; line-height: 1.09; letter-spacing: -2.9px; margin-block: 0 25px; }
h1 > span { color: var(--primary); }
.hero-description { font-size: 15px; max-width: 390px; color: var(--muted); }
.hero-copy > .button { margin-top: 28px; }
.grant-scene { min-width: 0; overflow: clip; }
.approach { padding-block: 40px 0; border-top: 1px solid var(--border); }
.section-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); margin-bottom: 18px; }
.section-label h2 { font-size: 11px; font-weight: 450; }
.section-label > span { font-family: ui-monospace, monospace; font-size: 10px; }
.principle { display: grid; grid-template-columns: 55px minmax(0,1fr) 100px; gap: 15px; padding-block: 34px; border-bottom: 1px solid var(--border); align-items: start; }
.index { padding-top: 9px; font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); }
.principle h3 { font-size: clamp(24px,3vw,37px); line-height: 1.2; letter-spacing: -1.3px; font-weight: 450; }
.principle p { font-size: 13px; color: var(--muted); margin-top: 13px; max-width: 490px; }
.line-motif, .citation-motif, .check-motif { margin-block: auto; margin-left: auto; width: 50px; color: var(--primary); }
.line-motif { display: grid; gap: 7px; }
.line-motif i { display: block; height: 2px; width: 100%; background: #b296aa; }
.line-motif i:nth-child(2) { width: 65%; }
.line-motif i:nth-child(3) { width: 82%; }
.citation-motif { display: flex; align-items: center; gap: 12px; }
.citation-motif > span:first-child { font-size: 25px; }
.citation-motif > span:last-child { width: 22px; height: 25px; border: 1px solid #d9c6d3; border-radius: 4px; display: grid; place-items: center; font-size: 11px; }
.check-motif { font-size: 27px; text-align: center; font-weight: 300; }
.closing { padding-block: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { font-size: clamp(26px,3vw,36px); letter-spacing: -1.2px; font-weight: 450; margin-top: 16px; }
.site-footer { border-top: 1px solid var(--border); padding-block: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand { font-size: 17px; }
.site-footer .receive-mark { width: 25px; height: 25px; }
.site-footer nav { font-size: 11px; color: var(--muted); gap: 24px; }
html { scrollbar-gutter: stable; }
body:has(.legal-dialog[open]) { overflow: hidden; }
.legal-dialog { width: min(760px, calc(100% - 32px)); max-height: min(800px, calc(100dvh - 48px)); padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--foreground); box-shadow: 0 24px 80px #1d1a1c30; }
.legal-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.legal-dialog::backdrop { background: #1d1a1c66; backdrop-filter: blur(3px); }
.legal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--border); padding: 20px 28px; }
.legal-header > h2 { font-size: 18px; font-weight: 550; letter-spacing: -.5px; }
.legal-header form, .legal-footer form { margin: 0; }
.legal-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.legal-close:hover { background: #f3f2f1; }
.legal-content { padding: 26px 28px; overflow-y: auto; overscroll-behavior: contain; font-size: 14px; line-height: 1.75; }
.legal-content p { margin-bottom: 16px; }
.legal-content h2 { font-size: 16px; line-height: 1.5; font-weight: 600; margin-block: 28px 12px; }
.legal-content ul { padding-left: 22px; }
.legal-content li { margin-bottom: 12px; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-meta { color: var(--muted); font-size: 11px; }
.legal-introduction { font-size: 15px; }
.legal-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; border-top: 1px solid var(--border); font-size: 12px; }
.legal-footer > a { color: var(--muted); }
.legal-footer > a:hover { color: var(--primary); }
.legal-done { padding: 8px 18px; background: transparent; border: 1px solid #d9d4d7; border-radius: 5px; color: var(--foreground); font-size: 12px; cursor: pointer; }
.legal-done:hover { background: #f3f2f1; }
.legal-page { background: var(--card); }
.legal-page-header { max-width: 816px; margin-inline: auto; padding: 26px 28px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); font-size: 13px; }
.legal-page > main { max-width: 816px; margin-inline: auto; padding-block: 40px 70px; overflow: visible; }
.legal-page h1 { font-size: 34px; letter-spacing: -1px; margin-bottom: 18px; }
@media (max-width: 500px) {
  .legal-header, .legal-footer { padding-inline: 18px; }
  .legal-content { padding: 20px 18px; font-size: 13px; }
  .legal-page-header { padding-inline: 18px; }
  .legal-page-header nav { gap: 16px; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 20px; }
  h1 { font-size: 49px; letter-spacing: -2.4px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 78px; }
  .brand { font-size: 19px; }
  .nav-section { display: none; }
  .hero { grid-template-columns: minmax(0,1fr); padding-block: 45px 30px; gap: 16px; }
  h1 { font-size: clamp(40px,7.7vw,60px); letter-spacing: -2px; }
  .hero-description { font-size: 14px; max-width: 400px; }
  .hero-copy > .button { margin-top: 24px; }
  .grant-scene { max-width: 440px; margin-inline: auto; }
  .approach { padding-block: 32px 0; }
  .principle { grid-template-columns: 28px minmax(0,1fr); gap: 12px; padding-block: 27px; }
  .principle h3 { font-size: clamp(23px,4.5vw,30px); letter-spacing: -.8px; }
  .principle p { font-size: 12px; }
  .index { padding-top: 5px; }
  .line-motif, .citation-motif, .check-motif { display: none; }
  .closing { align-items: flex-start; flex-direction: column; gap: 25px; padding-block: 48px; }
  .site-footer { flex-wrap: wrap; }
}

.library-section { background: #f0eeed; padding-block: 32px; overflow: clip; }
.library-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 50px; }
.library-copy h2 { font-size: clamp(32px,3.6vw,46px); font-weight: 450; line-height: 1.12; letter-spacing: -1.7px; }
.library-copy p { font-size: 14px; color: var(--muted); max-width: 350px; margin-top: 24px; }
.text-link { display: inline-flex; gap: 22px; align-items: center; font-size: 12px; color: var(--primary); margin-top: 24px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.library-animation { position: relative; height: 330px; width: 100%; perspective: 1000px; }
.grant-folder { position: absolute; width: 170px; height: 190px; top: 100px; left: calc(50% - 85px); transform: translateX(var(--offset)) rotate(var(--angle)); transform-origin: 50% 110%; }
.folder-back { position: absolute; inset: 0; background: #e3d4df; border: 1px solid #cfb9c9; border-radius: 0 9px 9px 9px; }
.folder-back::before { content: ''; position: absolute; width: 65px; height: 12px; left: -1px; top: -12px; background: #e3d4df; border: 1px solid #cfb9c9; border-bottom: 0; border-radius: 6px 10px 0 0; }
.folder-paper { position: absolute; inset: 9px 12px 14px; background: #fff; border: 1px solid #e7dfe4; border-radius: 5px; padding: 20px 16px; box-shadow: 0 5px 15px #4a1a3d08; }
.folder-paper > span { display: block; font-size: 7px; letter-spacing: 1px; color: var(--primary); margin-bottom: 17px; }
.folder-paper i { display: block; height: 3px; background: #e9e1e6; margin-block: 9px; border-radius: 3px; }
.folder-paper i:nth-child(3) { width: 65%; }
.folder-paper b { position: absolute; bottom: 18px; right: 16px; color: var(--primary); font-size: 17px; font-weight: 400; }
.folder-front { position: absolute; inset: 40px -1px -1px; border: 1px solid #d5c2cf; background: #eee4eb; border-radius: 7px; transform-origin: center bottom; padding: 23px 17px; display: flex; justify-content: space-between; align-items: flex-end; color: var(--primary); font-size: 11px; box-shadow: 0 10px 20px -16px #4a1a3d80; }
.grant-folder:nth-child(3) .folder-front { background: #e8dce4; }
.grant-folder:nth-child(4) .folder-front { background: #e0d0db; }
.library-track { position: absolute; width: 160px; height: 1px; bottom: 2px; left: calc(50% - 80px); background: #d9cbd4; overflow: hidden; }
.library-track span { display: block; height: 1px; width: 45px; background: var(--primary); }
@media (max-width: 760px) {
  .library-section { padding-block: 25px; }
  .library-layout { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .library-copy h2 { font-size: 34px; letter-spacing: -1.2px; }
  .library-copy p { font-size: 13px; }
  .library-animation { width: min(100%,400px); margin-inline: auto; height: 310px; }
  .grant-folder { width: 140px; height: 165px; left: calc(50% - 70px); }
  .folder-front { font-size: 10px; padding-inline: 12px; }
  .folder-paper { padding: 15px 12px; }
}
