/* Content-first invitation-only portal. Shared workspace styles remain untouched. */
.friends-landing .portal-shell { max-width:1360px; padding-inline:52px; }
.friends-landing .portal-header { min-height:96px; padding:20px 0; border-bottom:1px solid var(--line); gap:24px; }
.friends-landing .portal-nav { display:flex; align-items:center; gap:30px; margin-left:auto; }
.friends-landing .portal-nav a { display:flex; align-items:center; min-height:44px; font-size:13px; text-decoration:none; color:var(--muted); }
.friends-landing .portal-nav a:hover { color:var(--accent); }
.friends-landing .portal-header-actions { display:flex; align-items:center; gap:10px; }
.friends-landing .portal-main { display:block; padding:0; }
.friends-landing :is(#models,#connect,#questions) { scroll-margin-top:28px; }
.friends-landing .portal-hero { display:grid; grid-template-columns:1.05fr 1fr; align-items:center; gap:36px; padding:78px 0 62px; }
.friends-landing .hero-copy .eyebrow { font-size:10px; letter-spacing:1.5px; margin-bottom:25px; }
.friends-landing .hero-copy h1 { font-size:clamp(40px,4.8vw,64px); font-weight:650; letter-spacing:-2.7px; line-height:1.3; }
.friends-landing .hero-underline { position:relative; display:inline-block; }
.friends-landing .hero-underline svg { position:absolute; left:0; bottom:-7px; width:100%; height:15px; color:var(--accent); }
.friends-landing .hero-description { color:var(--muted); line-height:1.9; font-size:15px; margin-top:28px; }
.friends-landing .hero-actions { display:flex; align-items:center; gap:28px; margin-top:30px; }
.friends-landing .hero-actions .btn { min-height:50px; padding:12px 21px; }
.friends-landing .hero-actions .text-button { font-size:13px; gap:14px; }
.friends-landing .hero-footnote { color:var(--muted); font-size:12px; margin-top:20px; }
.friends-landing .hero-footnote i { margin-right:6px; color:var(--accent); }
.friends-landing .hero-switchboard { min-width:0; padding:21px 22px 18px; background:var(--sheet); border:1px solid var(--line); border-radius:3px; position:relative; }
.friends-landing .hero-switchboard::before { content:""; width:68px; height:20px; background:var(--sage); border:1px solid var(--line); position:absolute; top:-10px; left:calc(50% - 34px); transform:rotate(-4deg); }
.friends-landing .scene-topline { display:flex; justify-content:space-between; gap:12px; font-size:11px; color:var(--muted); }
.friends-landing .scene-topline .mono { font-size:9px; letter-spacing:1px; }
.friends-landing .switchboard-drawing { position:relative; margin:10px -10px 12px; transform:var(--motion-offset,translate3d(0,0,0)); }
.friends-landing .portal-network { width:100%; height:auto; display:block; }
.friends-landing .scene-label { position:absolute; color:var(--sage-ink); font-size:11px; letter-spacing:.5px; }
.friends-landing .scene-label-tool { top:71%; left:7%; }
.friends-landing .scene-label-center { top:76%; left:46%; font-weight:600; }
.friends-landing .scene-label-model { top:6%; right:9%; }
.friends-landing .scene-signal { stroke-dasharray:1; stroke-dashoffset:1; transition:stroke-dashoffset .65s ease; }
.friends-landing .hero-switchboard:is(:hover,:focus-within) .scene-signal { stroke-dashoffset:0; }
.friends-landing .scene-controls { display:flex; gap:8px; padding-top:14px; border-top:1px dashed var(--line); }
.friends-landing .scene-controls button { border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); min-height:42px; padding:8px 16px; cursor:pointer; font-size:12px; }
.friends-landing .scene-controls button[aria-pressed="true"] { border-color:var(--accent); color:var(--accent); }
.friends-landing .hero-switchboard figcaption { color:var(--muted); font-size:12px; margin-top:10px; min-height:40px; line-height:1.7; }
.friends-landing .portal-principles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid var(--line); padding:22px 0; gap:20px; }
.friends-landing .portal-principles p { color:var(--muted); font-size:12px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.friends-landing .portal-principles span { color:var(--accent); font:11px "SFMono-Regular",Consolas,monospace; }
.friends-landing .portal-principles strong { color:var(--ink); font-size:13px; font-weight:600; }
.friends-landing .portal-section { padding-block:72px; }
.friends-landing .portal-section .eyebrow { font-size:10px; margin-bottom:12px; }
.friends-landing .portal-section h2 { font-size:32px; line-height:1.4; font-weight:600; letter-spacing:-1px; }
.friends-landing .section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:30px; }
.friends-landing .section-heading p:not(.eyebrow) { color:var(--muted); font-size:13px; margin-top:12px; }
.friends-landing .catalog-count { font:12px "SFMono-Regular",Consolas,monospace; color:var(--accent); white-space:nowrap; padding-bottom:4px; }
.friends-landing .catalog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.friends-landing .catalog-search { display:flex; align-items:center; gap:10px; min-width:0; width:300px; color:var(--muted); border-bottom:1px solid var(--line); }
.friends-landing .catalog-search input { width:100%; min-width:0; padding:12px 4px; border:0; background:transparent; color:var(--ink); outline:none; font:inherit; font-size:13px; }
.friends-landing .catalog-search:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.friends-landing .catalog-search input::placeholder { color:var(--muted); }
.friends-landing .portal-model-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); }
.friends-landing .portal-model { display:grid; grid-template-columns:1fr auto; gap:10px 16px; align-items:center; min-width:0; padding:25px 23px 25px 0; margin-right:24px; border-bottom:1px solid var(--line); }
.friends-landing .portal-model h3 { font:500 17px "SFMono-Regular",Consolas,monospace; overflow-wrap:anywhere; line-height:1.5; }
.friends-landing .portal-model p { grid-column:1/-1; font-size:12px; color:var(--muted); line-height:1.8; }
.friends-landing .portal-model .btn { border:0; background:transparent; color:var(--muted); }
.friends-landing .portal-model:hover h3 { color:var(--accent); }
.friends-landing .catalog-empty { grid-column:1/-1; padding:32px 0; color:var(--muted); }
.friends-landing .catalog-error { padding:12px 0; color:var(--danger); }
.friends-landing .section-footnote { font-size:12px; color:var(--muted); margin-top:22px; }
.friends-landing .portal-connect { display:grid; grid-template-columns:.8fr 1.2fr; gap:65px; padding:44px 46px; background:var(--sage); border-radius:3px; }
.friends-landing .connect-intro h2 { font-size:38px; line-height:1.4; }
.friends-landing .connect-intro > p:not(.eyebrow) { font-size:14px; line-height:2; color:var(--sage-ink); margin-top:20px; }
.friends-landing .connect-intro > .text-button { margin-top:26px; color:var(--sage-ink); }
.friends-landing .connection-steps { list-style:none; padding:0; margin:0; display:grid; gap:24px; }
.friends-landing .connection-steps li { display:flex; align-items:flex-start; gap:17px; }
.friends-landing .connection-steps li > span { display:grid; place-items:center; width:28px; height:28px; flex-shrink:0; border:1px solid var(--sage-ink); border-radius:50%; color:var(--sage-ink); font:12px Consolas,monospace; }
.friends-landing .connection-steps h3 { font-size:15px; font-weight:600; margin-bottom:4px; }
.friends-landing .connection-steps p { color:var(--sage-ink); font-size:12px; line-height:1.8; }
.friends-landing .connection-address { padding:15px 18px; background:var(--sheet); border:1px solid var(--line); margin-top:27px; }
.friends-landing .connection-address > div { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.friends-landing .connection-address span { font:10px Consolas,monospace; color:var(--muted); letter-spacing:1px; }
.friends-landing .connection-address code { display:block; font-size:13px; overflow-wrap:anywhere; }
.friends-landing .connect-key-note { margin-top:12px; font-size:11px; color:var(--sage-ink); }
.friends-landing .connect-key-note i { margin-right:5px; }
.friends-landing .portal-faq { display:grid; grid-template-columns:.8fr 1.2fr; gap:65px; padding-top:80px; }
.friends-landing .portal-faq > div > p:not(.eyebrow) { color:var(--muted); font-size:13px; line-height:1.9; margin-top:20px; }
.friends-landing .faq-list details { border-bottom:1px solid var(--line); }
.friends-landing .faq-list details:first-child { border-top:1px solid var(--line); }
.friends-landing .faq-list summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 0; cursor:pointer; list-style:none; font-size:14px; font-weight:550; }
.friends-landing .faq-list summary::-webkit-details-marker { display:none; }
.friends-landing .faq-list summary span { font-size:22px; color:var(--accent); font-weight:400; transition:transform .16s; }
.friends-landing .faq-list details[open] summary span { transform:rotate(45deg); }
.friends-landing .faq-list details p { padding:0 26px 22px 0; color:var(--muted); font-size:13px; line-height:1.9; }
.friends-landing .portal-closing { display:flex; justify-content:space-between; align-items:center; gap:25px; padding:35px 0; border-top:1px solid var(--line); }
.friends-landing .portal-closing h2 { font-size:26px; font-weight:550; margin-top:8px; letter-spacing:-.5px; }
.friends-landing .portal-footer { margin:0; padding:25px 0 30px; font-size:11px; }
.friends-landing .portal-invite-banner { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; border:1px solid var(--line); background:var(--sheet); margin-top:18px; font-size:13px; }
.friends-landing .portal-auth-dialog { padding:0; width:min(460px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--sheet); box-shadow:0 20px 80px #0003; overscroll-behavior:contain; }
.friends-landing .portal-auth-dialog::backdrop { background:#17231d88; }
.friends-landing:has(.portal-auth-dialog[open]) { overflow:hidden; }
.friends-landing .portal-auth-dialog .auth-sheet { margin:0; border:0; box-shadow:none; padding:30px; }
.friends-landing .auth-close { position:absolute; top:14px; right:12px; z-index:1; }
.friends-landing .pass-topline { display:flex; gap:16px; padding:4px 36px 20px 0; border-bottom:1px dashed var(--line); font-size:11px; }
.friends-landing .pass-access { color:var(--accent); font-size:9px; letter-spacing:1px; }
.friends-landing .auth-heading { padding:12px 0 24px; }
.friends-landing .auth-heading p { max-width:none; }
.friends-landing .pass-paperclip { position:absolute; right:0; top:27px; color:var(--accent); font-size:22px; transform:rotate(-14deg); }
.friends-landing .field > input { font-size:16px; background:var(--paper); }
.friends-landing .message { font-size:13px; padding:10px 12px; background:var(--accent-soft); border-left:2px solid var(--danger); }
.friends-landing .portal-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:110; max-width:calc(100% - 32px); width:max-content; padding:12px 20px; background:var(--code-bg); color:var(--code-ink); border:1px solid var(--line); border-radius:5px; font-size:13px; }
.friends-landing .noscript-note { text-align:center; padding:20px; color:var(--muted); }
@media (max-width:1100px) {
 .friends-landing .portal-shell { padding-inline:32px; }
 .friends-landing .portal-nav { gap:18px; }
 .friends-landing .portal-hero { gap:24px; padding-block:60px; }
 .friends-landing .hero-copy h1 { font-size:48px; letter-spacing:-2px; }
 .friends-landing .hero-actions { gap:18px; }
 .friends-landing .hero-switchboard { padding:18px 14px; }
 .friends-landing .portal-principles p { column-gap:8px; }
 .friends-landing .portal-principles strong { width:calc(100% - 32px); }
 .friends-landing .portal-principles p { padding-left:4px; }
 .friends-landing .portal-model-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .friends-landing .portal-connect { padding:32px; gap:36px; }
}
@media (max-width:760px) {
 .friends-landing .portal-header { flex-wrap:wrap; gap:12px; padding-block:18px 8px; }
 .friends-landing .portal-header-actions { margin-left:auto; }
 .friends-landing .portal-nav { order:3; margin:0; width:100%; justify-content:space-between; }
 .friends-landing .portal-hero { grid-template-columns:1fr; gap:40px; padding:40px 0 32px; }
 .friends-landing .hero-copy h1 { font-size:48px; }
 .friends-landing .hero-switchboard { max-width:560px; width:100%; justify-self:center; }
 .friends-landing .hero-switchboard figcaption { min-height:0; }
 .friends-landing .portal-section { padding-block:48px; }
 .friends-landing .section-heading { display:block; }
 .friends-landing .catalog-count { display:block; margin-top:16px; }
 .friends-landing .portal-connect,.friends-landing .portal-faq { grid-template-columns:1fr; gap:30px; }
 .friends-landing .portal-connect { padding:30px; }
 .friends-landing .portal-faq h2 br { display:none; }
 .friends-landing .portal-closing { align-items:flex-start; flex-direction:column; }
 .friends-landing .portal-footer { align-items:flex-start; }
 .friends-landing .service-note { gap:8px; flex-direction:column; align-items:flex-start; }
}
@media (max-width:440px) {
 .friends-landing .portal-shell { padding-inline:20px; }
 .friends-landing .portal-header { gap:8px; }
 .friends-landing .brand { gap:7px; }
 .friends-landing .brand strong { font-size:18px; }
 .friends-landing .brand small { font-size:9px; letter-spacing:.8px; }
 .friends-landing .portal-header-actions { gap:3px; }
 .friends-landing .portal-header-actions .btn.primary { font-size:12px; padding:8px 11px; }
 .friends-landing .hero-copy .eyebrow { font-size:8px; letter-spacing:1px; margin-bottom:20px; }
 .friends-landing .hero-copy h1 { font-size:42px; letter-spacing:-1.7px; }
 .friends-landing .hero-description { font-size:14px; }
 .friends-landing .hero-description br { display:none; }
 .friends-landing .hero-actions { gap:18px; flex-wrap:wrap; }
 .friends-landing .hero-actions .btn { padding-inline:15px; }
 .friends-landing .hero-footnote { font-size:11px; }
 .friends-landing .scene-controls button { flex:1; padding:8px; }
 .friends-landing .scene-label { font-size:10px; }
 .friends-landing .portal-principles { grid-template-columns:1fr; gap:12px; padding:20px 0; }
 .friends-landing .portal-principles strong { width:auto; }
 .friends-landing .portal-principles p { gap:12px; padding:0; }
 .friends-landing .portal-section h2 { font-size:27px; }
 .friends-landing .portal-model-list { grid-template-columns:1fr; }
 .friends-landing .portal-model { margin-right:0; padding:20px 0; }
 .friends-landing .catalog-toolbar { gap:18px; }
 .friends-landing .catalog-search { flex:1; width:auto; }
 .friends-landing .catalog-toolbar > button { flex-shrink:0; }
 .friends-landing .portal-connect { padding:24px 20px; }
 .friends-landing .portal-footer { gap:16px; }
 .friends-landing .portal-auth-dialog .auth-sheet { padding:25px 22px; }
 .friends-landing .portal-invite-banner { flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) {
 .friends-landing .scene-signal { stroke-dashoffset:0; transition:none; }
 .friends-landing .switchboard-drawing { transform:none!important; }
 .friends-landing .faq-list summary span { transition:none; }
}
