.company-documents{background:#171717;border-top:1px solid #c3ab7926;padding-block:clamp(64px,7vw,120px)}
.document-section-heading{display:grid;grid-template-columns:1.2fr 1fr;align-items:end;gap:40px;margin-bottom:48px}
.document-section-heading h2,#person-dialog .document-section-heading h2{font-size:clamp(32px,3.7vw,64px);line-height:1.07;letter-spacing:-.035em;font-weight:400;margin:0}
.document-section-heading .eyebrow{font-size:14px;margin-bottom:22px}
.document-section-heading>p{font-size:18px;line-height:1.65;color:#bababa;max-width:440px;margin:0 0 3px}
.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 36px}
.document-card{min-width:0}
.document-preview{display:grid;place-items:center;position:relative;width:100%;aspect-ratio:1.5;background:linear-gradient(145deg,#23302d,#172220);padding:clamp(18px,2.4vw,42px);border:1px solid #cfbf9a25;overflow:hidden;cursor:zoom-in}
.document-preview img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 12px 18px #0006);transition:transform .4s ease}
.document-preview:hover img{transform:scale(1.025)}
.document-view-label{position:absolute;inset:auto 0 0;padding:10px 16px;background:#171717e8;color:#edeae2;text-align:center;font-size:14px;transform:translateY(100%);transition:transform .25s}
.document-preview:hover .document-view-label,.document-preview:focus-visible .document-view-label{transform:translateY(0)}
.document-card-copy{padding:23px 0 0}
.document-kicker{display:flex;justify-content:space-between;gap:15px;color:#c5a967;font-size:14px;letter-spacing:.06em;margin:0 0 12px}
.document-card h3,#person-dialog .document-card h3{margin:0 0 10px;font-size:clamp(21px,2vw,30px);font-weight:400;line-height:1.2;letter-spacing:-.02em}
.document-card h3 button{font:inherit;color:inherit;text-align:left;border:0;background:none;padding:0;cursor:pointer}
.document-owner{font-size:16px;color:#eeeae1;margin:0 0 7px}
.document-detail{font-size:15px;line-height:1.55;color:#adadad;margin:0 0 18px;max-width:55ch}
.document-pdf{display:inline-block;font-size:15px;border-bottom:1px solid #bca57575;padding-bottom:5px;color:#d6c39d}
.personal-documents{padding:clamp(28px,4vw,64px);border-top:1px solid #e6dcc72a;background:#171717}
.personal-documents .document-section-heading{grid-template-columns:1fr;gap:22px}
.personal-documents .document-section-heading>p{max-width:650px}
.personal-documents .document-preview{padding:25px}
#person-dialog>.dialog-close{position:sticky;top:12px;right:auto;display:block;margin:12px 12px -60px auto;z-index:8}
body:has(dialog[open]){overflow:hidden}
#document-dialog{position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#131313;color:#f2efe6;overflow:hidden}
#document-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.document-viewer-header{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:22px clamp(20px,3vw,48px);border-bottom:1px solid #ffffff24}
.document-viewer-header .document-kicker{justify-content:flex-start;font-size:13px;margin-bottom:8px}
.document-viewer-header h2{font-size:clamp(20px,2vw,30px);line-height:1.2;font-weight:400;letter-spacing:-.02em;margin:0}
.document-close{flex:none;font:300 34px/1 Arial;width:48px;height:48px;border:1px solid #ffffff35;background:transparent;color:inherit;cursor:pointer}
.document-stage{min-height:0;overflow:auto;display:grid;place-items:center;padding:clamp(12px,2vw,30px);background:radial-gradient(ellipse,#34403a 0%,#19231f 80%);overscroll-behavior:contain}
.document-stage>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 8px 20px #0005)}
.document-stage.is-zoomed{display:block}
.document-stage.is-zoomed>img{width:max(1400px,145%);height:auto;max-width:none;object-fit:initial}
.document-viewer-footer{display:flex;align-items:center;flex-wrap:wrap;gap:18px 28px;padding:16px clamp(20px,3vw,48px);border-top:1px solid #ffffff24}
.document-pages{display:flex;align-items:center;gap:18px;font-size:15px;font-variant-numeric:tabular-nums}
.document-pages button{width:44px;height:44px;border:1px solid #ffffff35;background:transparent;font:26px/1 Arial;color:inherit}
.document-zoom,.document-file-actions a{font-size:15px;padding:12px 0;background:none;color:#f2efe6;border:0;border-bottom:1px solid #c5a96780;cursor:pointer}
.document-file-actions{margin-left:auto;display:flex;gap:26px}
.document-viewer-note{flex-basis:100%;color:#b6b6b6;font-size:14px;line-height:1.4;margin:0}
.document-preview:focus-visible,.document-card button:focus-visible,.document-pdf:focus-visible,#document-dialog button:focus-visible,#document-dialog a:focus-visible{outline:2px solid #d3b16f;outline-offset:4px}
@media(max-width:760px){.document-section-heading{grid-template-columns:1fr;gap:24px;margin-bottom:32px}.document-section-heading>p{font-size:16px}.document-grid{grid-template-columns:1fr;gap:36px}.personal-documents{padding:32px 20px}.document-card-copy{padding-top:18px}.document-view-label{transform:none;font-size:13px;padding:7px}.document-preview{padding:20px 20px 35px}.document-viewer-header{padding:15px;gap:12px}.document-viewer-header .document-kicker{font-size:12px}.document-close{width:44px;height:44px}.document-viewer-footer{padding:12px 15px;gap:12px 20px}.document-file-actions{margin-left:0;flex:1;justify-content:flex-end;gap:18px}.document-viewer-note{font-size:13px}.document-zoom{margin-left:auto}.document-file-actions{flex-basis:100%;justify-content:space-between}.document-stage{padding:8px}}
@media(prefers-reduced-motion:reduce){.document-preview img,.document-view-label{transition:none}}
/* Individually mounted originals, on the same background as the site. */
.company-documents,.personal-documents,#document-dialog{background:var(--bg,#0b0d0e)}
.document-preview,.personal-documents .document-preview{background:transparent;border:0;padding:22px 12px 34px;overflow:visible}
.document-preview img{filter:none;transition:none}
.document-preview:hover img{transform:none}
.document-mount{display:grid;place-items:center;width:100%;height:100%;min-height:0;container-type:size}
.document-frame{--metal:#897556;--edge:#3a3025;--mat:#252525;display:block;position:relative;box-sizing:border-box;width:min(100cqw,calc(100cqh * var(--frame-ratio)));aspect-ratio:var(--frame-ratio);padding:clamp(9px,2.2cqw,24px);border:7px ridge var(--metal);background:var(--mat);box-shadow:0 0 0 1px var(--edge),inset 0 0 0 1px #ffffff26,inset 0 3px 8px #0008,0 16px 26px #0006;transition:transform .3s ease}
.document-frame::after{content:'';pointer-events:none;position:absolute;inset:5px;border:1px solid #d0c6b83b}
.document-frame img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;box-shadow:0 0 0 1px #0005}
.frame-riba{--metal:#9d835c;--edge:#463723;--mat:#292725;border-width:8px}
.frame-aia{--metal:#686b70;--edge:#27292d;--mat:#1d2025;border-width:5px}
.frame-sabit{--metal:#a58962;--edge:#423427;--mat:#d3c9b7;border-style:double;border-width:9px}
.frame-british-design{--metal:#9c9b97;--edge:#40403e;--mat:#262626;border-width:6px}
.frame-new-york{--metal:#444444;--edge:#191919;--mat:#303030;border-width:10px}
.frame-florence{--metal:#85604c;--edge:#3c2920;--mat:#282321;border-width:8px}
.frame-almaty{--metal:#b7a17e;--edge:#5c4d35;--mat:#282725;border-style:double;border-width:8px}
.frame-brian-tracy{--metal:#858687;--edge:#363638;--mat:#242426;border-width:5px}
.frame-amcham{--metal:#a28b62;--edge:#493b25;--mat:#282521;border-width:8px}
.frame-saule-2026{--metal:#52504a;--edge:#282621;--mat:#22211f;border-width:6px}
.document-preview:hover .document-frame{transform:translateY(-3px)}
.document-stage{background:radial-gradient(ellipse at center,#252525 0%,var(--bg,#0b0d0e) 80%);padding:clamp(18px,3vw,44px)}
.document-stage.is-zoomed{display:block}
.document-stage.is-zoomed .document-mount{width:max(1400px,145%);height:auto;aspect-ratio:var(--frame-ratio);container-type:normal}
.document-stage.is-zoomed .document-frame{width:100%}
.document-view-label{background:var(--bg,#0b0d0e);inset:auto 0 -5px}
@media(max-width:760px){.document-preview,.personal-documents .document-preview{padding:10px 4px 32px}.document-frame{border-width:5px;padding:9px}.document-stage{padding:16px 12px}.document-stage .document-frame{padding:10px;border-width:5px}}
@media(prefers-reduced-motion:reduce){.document-frame{transition:none}}
.document-view-label{bottom:2px;transform:none;opacity:0;transition:opacity .2s;background:transparent}
.document-preview:hover .document-view-label,.document-preview:focus-visible .document-view-label{opacity:1}
@media(hover:none){.document-view-label{opacity:1}}
