/* ==========================================================================================
   abardogooleh — Murmuration UI layer
   One typeface (IBM Plex Mono), the Murmuration palette, its header / footer lines and its
   see-through, dashed pop-ups. Loaded after style.css; layout and behaviour stay as they were.
   ========================================================================================== */

:root{
  --font-mono:'IBM Plex Mono','Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --mono:var(--font-mono);--serif:var(--font-mono);
  --paper:#f1f0ed;--ink:#2a2a29;--muted:#6c6b67;--line:#cac9c4;
  --surface-hover:#e5e4e0;--focus-ring:#4b4b49;
  --theme-icon:var(--ink);--theme-border:var(--line);
  --footer-ink:var(--muted);
  --gutter:40px;--line-top:46px;--line-bottom:37px;   /* centre lines of the header and footer rows */
  --frame-side:var(--gutter);
  --radius:6px;
}
:root[data-theme=dark]{
  --paper:#171717;--ink:#ecebe7;--muted:#a6a5a0;--line:#3f3f3d;
  --surface-hover:#2c2c2b;--focus-ring:#d6d5d0;
}
@media (max-width:650px){:root{--gutter:20px;--line-top:37px;--line-bottom:33px}}
@media (max-height:550px) and (min-width:651px){:root{--gutter:35px;--line-top:32px;--line-bottom:28px}}

html{background:var(--paper);color:var(--ink);font-family:var(--font-mono);font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body{background:var(--paper)}
::selection{background:var(--ink);color:var(--paper)}
:root[data-theme=dark] ::selection{background:var(--ink);color:var(--paper)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:1px dashed var(--focus-ring);outline-offset:5px}

/* ---- the four corner tabs sit on the same lines as Murmuration's header and footer ---- */
.corner{font-size:14px;line-height:20px;letter-spacing:-.025em;font-weight:400;color:var(--ink);padding:12px 0;min-height:44px}
.corner-0{top:calc(var(--line-top) - 22px);left:var(--gutter)}
.corner-1{top:calc(var(--line-top) - 22px);right:var(--gutter)}
.corner-2{bottom:calc(var(--line-bottom) - 22px);left:var(--gutter)}
.corner-3{bottom:calc(var(--line-bottom) - 22px);right:var(--gutter)}
.corner.active{font-weight:500}
.corner.active:after{height:1px;bottom:9px;background:currentColor}
.corner:not(.active):hover{color:var(--muted)}
@media (max-width:650px){.corner{font-size:13px}}

/* ---- theme switch: Murmuration's round icon button, still hanging from its thread ---- */
:root{--theme-top:calc(var(--line-top) - 22px)}
.theme-toggle,body:not(.can-hide-frame) .theme-toggle{top:var(--theme-top)}
.theme-toggle{color:var(--ink);transition:transform .28s ease,opacity .24s ease,background .16s ease}
.theme-toggle:before{border-color:transparent;background:transparent;inset:0;transition:background .16s ease,border-color .16s ease}
.theme-toggle svg{width:18px;height:18px;stroke-width:1.4}
.theme-toggle .theme-wire{width:18px;height:calc(var(--theme-top) + 1px);stroke:var(--line);stroke-width:.8}
.theme-toggle:hover,.theme-toggle:focus-visible{color:var(--ink)}
.theme-toggle:hover:before{background:var(--surface-hover);border-color:var(--line)}
.theme-toggle:active{transform:translateX(-50%) scale(.96)}
.theme-toggle:focus-visible{outline:1px dashed var(--focus-ring);outline-offset:2px}

/* ---- centre footer line: version | date, on the bottom tabs' line ---- */
footer.site-status,.frame-hidden footer.site-status{font-size:12px;line-height:16px;color:var(--muted);align-items:flex-end;padding:0 0 calc(var(--line-bottom) - 8px);letter-spacing:0}
footer.site-status span{padding:0 10px}
@media (max-width:650px){footer.site-status,.frame-hidden footer.site-status{font-size:11px;align-items:flex-end;padding:0 0 calc(var(--line-bottom) - 8px)}}
.site-status .privacy-links a,.site-status .privacy-links button{color:inherit;text-underline-offset:3px}
.site-status .privacy-links a:hover,.site-status .privacy-links button:hover{color:var(--ink)}

/* ---- field / index switch ---- */
.view-switch{font-size:12px;letter-spacing:.04em}
.view-switch a{color:var(--muted)}
.view-switch a[aria-current]{color:var(--ink);text-underline-offset:6px;text-decoration-thickness:1px}
.view-switch>span,:root[data-theme=dark] .view-switch>span{color:var(--line)}

/* ---- field view ---- */
.node-title,.node:nth-child(n+5) .node-title{font-family:var(--font-mono);font-weight:500;letter-spacing:-.025em;-webkit-text-stroke:0}
.marker{background:var(--ink)}
.marker:after{border:1px dashed var(--ink)}
.field-caption,.count,:root[data-theme=dark] .count{color:var(--muted)}

/* ---- index view ---- */
.entry-heading h2{font-family:var(--font-mono);font-weight:500;letter-spacing:-.04em}
.entry-number,.metadata,.image-note,.index-entry .index-description{color:var(--muted)}
.index-entry .index-description{font-size:12px;line-height:1.75}
.image-wrap img,.index-entry .image-wrap img{border-radius:var(--radius)}
.index-title-preview img,.index-title-preview video{border-radius:var(--radius)}

/* ---- project pages ---- */
.project-heading h1,.text-page h1{font-family:var(--font-mono);font-weight:400;letter-spacing:-.065em;line-height:1.08}
.project-heading h1{font-size:clamp(34px,5.2vw,76px)}
.text-page h1{font-size:clamp(28px,3.6vw,52px)}
.detail .project-description,.project-summary,.project-description{font-size:14px;line-height:1.85;font-weight:400}
.detail .project-image img{border-radius:var(--radius)}
figcaption,.small-note{font-size:12px;color:var(--muted)}
.back-link{font-size:12px;letter-spacing:.02em;color:var(--ink);gap:6px;margin-left:-13px}
.back-circle{width:44px;height:44px;border:1px solid transparent;color:var(--ink);transition:background .16s ease,border-color .16s ease}
.back-circle svg{width:18px;height:18px;stroke-width:1.4}
.back-link:hover .back-circle{background:var(--surface-hover);border-color:var(--line);color:var(--ink)}
@media (max-width:650px){.detail .project-description,.project-summary,.project-description{font-size:13px;line-height:1.8}}

/* ---- buttons: Murmuration's small rounded outline buttons ---- */
.text-button,.collaborate .text-button:not(:disabled),.launch-button{font-family:var(--font-mono);font-size:12px;font-weight:500;letter-spacing:.02em;text-transform:lowercase;
  min-height:44px;padding:11px 26px;border-radius:var(--radius);border:1px solid color-mix(in srgb,var(--muted) 45%,transparent);background:color-mix(in srgb,var(--paper) 88%,transparent);color:var(--ink);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .16s ease,border-color .16s ease,transform .12s ease}
.text-button:not(:disabled):hover,.collaborate .text-button:not(:disabled):hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.text-button:not(:disabled):active{transform:scale(.98)}
.text-button:disabled,:root[data-theme=dark] .text-button:disabled{color:var(--muted);border-color:var(--line);background:transparent}
.collaborate .text-button:not(:disabled){background:var(--ink);color:var(--paper);border-color:var(--ink)}
.collaborate .text-button:not(:disabled):hover{background:color-mix(in srgb,var(--ink) 86%,var(--paper))}
.launch-button{border-style:dashed;border-color:color-mix(in srgb,var(--ink) 55%,transparent);background:color-mix(in srgb,var(--paper) 72%,transparent)}
.launch-button:hover{border-style:solid}
.launch-button:active{transform:translate(-50%,-50%) scale(.98)}

/* ---- round icon buttons (socials, back to top) ---- */
.socials>a:before,.socials>.social-placeholder:before{border-color:transparent;transition:background .16s ease,border-color .16s ease;z-index:-1}
.socials>a,.socials>.social-placeholder{color:var(--ink);isolation:isolate}
.socials svg{width:18px;height:18px;stroke-width:1.4}
.socials>a:hover:before,.socials>a:focus-visible:before{background:var(--surface-hover);border-color:var(--line)}
.back-top{color:var(--ink)}
.back-top:before{inset:0;border-color:transparent;background:color-mix(in srgb,var(--paper) 80%,transparent)}
.back-top:hover:before{background:var(--surface-hover);border-color:var(--line)}
.back-top svg{width:18px;height:18px;stroke-width:1.4}

/* ---- text pages ---- */
.eyebrow{font-size:12px;letter-spacing:.19em;color:var(--muted)}
.biography,.about .biography{font-weight:400}
.about-updated,.about .biography .about-updated{color:var(--muted)}
.news-message,.news-copy{font-weight:400}

/* ---- form ---- */
input,textarea,.collaborate select,.referral-trigger{font-size:14px;border-bottom-color:var(--line);color:var(--ink)}
input::placeholder,textarea::placeholder,.referral-trigger.placeholder,:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:var(--muted)}
@media (max-width:650px){input,textarea,.collaborate select,.referral-trigger{font-size:16px}}
.form-status{color:var(--muted)}

/* ---- one sheet style for every pop-up: see-through, thin dashed edge (as in Murmuration) ---- */
.referral-options,.mm-dialog{background:color-mix(in srgb,var(--paper) 80%,transparent);-webkit-backdrop-filter:blur(14px) saturate(.6);backdrop-filter:blur(14px) saturate(.6);
  border:1px dashed color-mix(in srgb,var(--muted) 55%,transparent);border-radius:var(--radius);box-shadow:none;color:var(--ink)}
.referral-options{font-size:14px}
.referral-options [role=option]{border-radius:4px}
.referral-options [role=option]:hover,.referral-options .highlighted{background:color-mix(in srgb,var(--ink) 7%,transparent)}

/* ---- old consent panel is replaced by the shared strip ---- */
#privacy-choice{display:none!important}

/* ---- privacy terms page ---- */
.privacy-page{font-size:13px;line-height:1.85}
.privacy-page h2{font:500 14px/1.4 var(--font-mono);letter-spacing:.02em;margin:40px 0 10px}
.privacy-page h1{font-size:clamp(28px,3.6vw,52px)}
.privacy-page p,.privacy-page li{color:var(--ink)}
.privacy-page .meta{color:var(--muted);font-size:12px}
.privacy-page ul{padding-left:1.2em;list-style:"– "}
.privacy-page button.mm-link{font:inherit;text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:0;color:inherit;cursor:pointer}

/* ==========================================================================================
   consent strip + privacy & data pop-up (same as Murmuration)
   ========================================================================================== */
.mm-consent{position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(var(--line-bottom)*2);
  background:color-mix(in srgb,var(--paper) 93%,#f6d77a);border-top:1px dashed color-mix(in srgb,var(--muted) 45%,transparent);
  opacity:0;transition:opacity .5s ease;padding-bottom:env(safe-area-inset-bottom);box-sizing:content-box}
:root[data-theme=dark] .mm-consent{background:color-mix(in srgb,var(--paper) 92%,#fff1cf)}
.mm-consent.in{opacity:1}
.mm-consent-row{position:absolute;left:max(var(--gutter),env(safe-area-inset-left));right:max(var(--gutter),env(safe-area-inset-right));top:0;bottom:env(safe-area-inset-bottom);
  display:flex;align-items:center;justify-content:space-between;gap:16px;font-family:var(--font-mono);font-size:10px;font-weight:400;line-height:1.3;color:var(--muted)}
.mm-consent-row p{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mm-consent-actions{display:flex;gap:6px;flex:none}
.mm-btn{font:inherit;font-size:10px;font-weight:400;color:var(--muted);background:transparent;border:1px solid color-mix(in srgb,var(--muted) 35%,transparent);
  border-radius:var(--radius);padding:4px 11px;min-height:26px;cursor:pointer;transition:background .3s ease,color .3s ease,border-color .3s ease}
.mm-btn:hover{color:var(--ink);border-color:color-mix(in srgb,var(--muted) 60%,transparent)}
.mm-btn-yes{color:var(--ink);background:color-mix(in srgb,var(--ink) 5%,transparent)}
.mm-btn[aria-pressed=true]{color:var(--ink);border-style:dashed;border-color:var(--ink)}
.mm-btn:focus-visible,.mm-link:focus-visible,.mm-x:focus-visible{outline:1px dashed var(--focus-ring);outline-offset:2px}
.mm-link{font:inherit;color:inherit;background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.mm-short{display:none}
@media (max-width:719px){.mm-long{display:none}.mm-short{display:inline}.mm-consent-row{font-size:9.5px;gap:10px}.mm-btn{font-size:9.5px;padding:4px 9px}}

.mm-modal{position:fixed;inset:0;z-index:1000}
.mm-scrim{position:absolute;inset:0;background:color-mix(in srgb,var(--paper) 35%,transparent);opacity:0;transition:opacity .5s ease}
:root[data-theme=dark] .mm-scrim{background:color-mix(in srgb,#000 35%,transparent)}
.mm-dialog{position:absolute;left:50%;top:50%;width:min(440px,calc(100vw - 40px));max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);overflow:auto;overscroll-behavior:contain;outline:none;
  opacity:0;transform:translate(-50%,calc(-50% + 12px)) scale(.97);transition:opacity .4s ease,transform .5s cubic-bezier(.2,.8,.2,1)}
.mm-modal.in .mm-scrim{opacity:1}
.mm-modal.in .mm-dialog{opacity:1;transform:translate(-50%,-50%)}
.mm-body{padding:28px 30px 26px;font-family:var(--font-mono);font-size:11px;font-weight:400;line-height:1.75;color:var(--ink);text-transform:none}
.mm-body h2{font-size:13px;font-weight:500;margin:0 0 1em;letter-spacing:.01em}
.mm-body p{margin:0 0 .7em;color:var(--ink)}
.mm-body a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.mm-body .mm-status{color:color-mix(in srgb,var(--ink) 72%,transparent)}
.mm-body .mm-consent-actions{margin:.6em 0 0}
.mm-body .mm-small{font-size:10px;color:color-mix(in srgb,var(--ink) 72%,transparent);margin-top:1.1em}
.mm-body .mm-thanks{margin-top:1.4em;color:var(--ink)}
.mm-x{position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:50%;border:1px solid transparent;background:transparent;color:var(--ink);cursor:pointer;
  display:grid;place-items:center;transition:background .45s ease,border-color .45s ease;padding:0}
.mm-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}
.mm-x:active{background:var(--surface-hover);border-color:var(--line);transition:none}
@media (hover:hover) and (pointer:fine){.mm-x:hover{background:color-mix(in srgb,var(--surface-hover) 70%,transparent)}}
@media (prefers-reduced-motion:reduce){.mm-dialog,.mm-scrim,.mm-consent{transition:opacity .2s ease;transform:none}.mm-modal.in .mm-dialog{transform:translate(-50%,-50%)}}

/* small page fixes */
.text-page>.text-button{align-self:flex-start}
.privacy-page p{margin:0 0 .9em}
.privacy-page h2{margin:34px 0 8px}
.privacy-page ul{margin:0 0 .9em}
.privacy-page li{margin:.2em 0}

/* ---- v45 ---- */
/* header / footer bands: the tab text sits on each band's centre line */
:root{--frame-top:calc(var(--line-top)*2);--frame-bottom:calc(var(--line-bottom)*2)}

/* field: dot and dashed ring sit under the title; a small thumbnail appears above it on hover */
.field .node .node-title{order:2}
.field .node .marker{order:3;margin:7px 0 0}
.field-title-preview{position:fixed;z-index:8;left:0;top:0;width:132px;aspect-ratio:16/9;pointer-events:none;border-radius:4px;overflow:hidden;
  opacity:0;transform:translateY(4px) scale(.97);transition:opacity .16s ease,transform .2s cubic-bezier(.2,.7,.2,1);visibility:hidden}
.field-title-preview.is-visible{opacity:1;transform:none;visibility:visible}
.field-title-preview img{display:block;width:100%;height:100%;object-fit:cover}
@media (prefers-reduced-motion:reduce){.field-title-preview{transition:none}}

/* launch: label centred in its box, and the button no longer jumps away from the cursor when pressed */
.launch-art .text-button.launch-button{display:inline-flex;align-items:center;justify-content:center;height:44px;min-height:0;padding:0 26px;line-height:1;transform:translate(-50%,-50%)}
.launch-art .text-button.launch-button:not(:disabled):active{transform:translate(-50%,-50%) scale(.98)}

/* email field */
.collaborate input.is-invalid{border-bottom-color:#b4483c}
:root[data-theme=dark] .collaborate input.is-invalid{border-bottom-color:#e08a7c}
.field-error{margin:8px 0 10px;min-height:0;font-size:11px;line-height:1.5;color:#b4483c}
.field-error:empty{display:none}
:root[data-theme=dark] .field-error{color:#e08a7c}
.referral-options{background:color-mix(in srgb,var(--paper) 92%,transparent)}

/* ---- a tap or click flashes a round button's background, which then fades back; no highlight lingers ---- */
.theme-toggle:before,.socials>a:before,.back-top:before,.back-circle{transition:background .5s ease,border-color .5s ease}
.theme-toggle:hover:before{background:transparent;border-color:transparent}
.socials>a:hover:before,.socials>a:focus-visible:before{background:transparent;border-color:transparent}
.back-top:hover:before{background:color-mix(in srgb,var(--paper) 80%,transparent);border-color:transparent}
.back-link:hover .back-circle{background:transparent;border-color:transparent}
.theme-toggle:active:before,.socials>a:active:before,.back-top:active:before,.back-link:active .back-circle{background:var(--surface-hover)!important;border-color:var(--line)!important;transition:none!important}
