/* Shared between the World tab and its signed-out visitor page. */
.world-portfolio {
  --folio-accent:var(--profile-accent,var(--accent,#28675c));
  --folio-line:var(--line,#dce6e2);
  --folio-bg:var(--panel,#fff);
  color:var(--ink,inherit);
  margin:0 clamp(16px,4.5%,44px) 28px;
  overflow-wrap:anywhere;
}
.world-index {
  display:flex;
  gap:6px 20px;
  flex-wrap:wrap;
  align-items:center;
  border-block:1px solid var(--folio-line);
  padding:5px 0;
}
.world-index a {
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:.81rem;
  font-weight:700;
  color:var(--folio-accent);
  text-decoration:none;
}
.world-index a:hover,.world-index a:focus-visible {text-decoration:underline;text-underline-offset:4px}
.world-collection,.world-bio {margin:clamp(22px,4vw,42px) 0;scroll-margin-top:6.5rem}
.world-collection>h2,.world-bio>h2 {
  margin:0 0 14px;
  font:600 clamp(1.2rem,2.6vw,1.72rem)/1.2 Georgia,serif;
  letter-spacing:-.025em;
}
.world-pieces {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px 18px}
.world-piece {min-width:0}
:is(.heyloworld-app,.shared-profile) .world-portfolio .world-piece article {
  box-sizing:border-box;
  background:transparent;
  border:0;
  border-top:1px solid var(--folio-line);
  border-radius:0;
  margin:0;
  padding:14px 0;
  box-shadow:none;
  min-width:0;
}
.world-portfolio .world-piece article h3 {letter-spacing:-.025em;line-height:1.3}
.world-portfolio .world-piece :is(video,img,.profile-section-image) {display:block;max-width:100%;height:auto;object-fit:contain}
.world-portfolio .world-piece video {width:100%;max-height:65vh;background:#111}
.world-portfolio .world-piece .shared-section-photo {width:100%}
.world-portfolio .world-piece img {width:100%;max-height:420px}
:is(.heyloworld-app,.shared-profile) .world-portfolio .world-feature .world-piece article {
  padding:clamp(14px,2.4vw,26px);
  background:color-mix(in srgb,var(--folio-accent) 5%,var(--folio-bg));
  border:1px solid var(--folio-line);
  border-radius:14px;
}
.world-feature .world-piece h3 {font-size:clamp(1.1rem,2.6vw,1.6rem)}
.world-feature .world-piece img {max-height:540px}
.world-bio-copy {display:grid;gap:.75em}
.world-bio .world-bio-prose {margin:0;max-width:70ch;line-height:1.65}
.world-tags {display:flex;gap:6px;flex-wrap:wrap;padding:0;margin:.85rem 0;list-style:none}
.world-tags li,.private-piece {border:1px solid var(--folio-line);padding:3px 10px;border-radius:100px;font-size:.78rem}
.world-facts {display:grid;gap:8px;margin:12px 0}
.world-facts dt {font-size:.78rem;font-weight:700;color:var(--muted)}
.world-facts dd {margin:0}
.world-quick-add,.world-start {padding:16px 0;border-top:1px solid var(--folio-line)}
.world-quick-add summary,.world-editor-extra summary {cursor:pointer;font-weight:700;min-height:44px;align-content:center}
.world-quick-add>div,.world-start>div {display:flex;gap:8px;flex-wrap:wrap}
.world-start h3 {margin:0 0 6px}
.world-start p {margin:0 0 12px;color:var(--muted)}
.world-editor-extra {margin-bottom:10px;border-block-start:1px solid var(--line)}
.world-feature-control small {display:block;color:var(--muted)}
.world-piece .private-piece {display:inline-block;margin:0 0 4px}
@media(max-width:600px) {
 .world-pieces {grid-template-columns:1fr}
 .world-index {gap:0 14px}
 .world-portfolio {margin-inline:16px}
}
@media print {.world-index,.world-start,.world-quick-add {display:none}.world-portfolio{margin:0 20px}}

/* Give public Work and World links distinct reading experiences. */
body:has(.shared-profile[data-space=world]){background:var(--panel,#fff)}
body:has(.shared-profile[data-space=world]) .shared-site-header{max-width:1200px;border-bottom:1px solid var(--line);padding-block:12px}
body:has(.shared-profile[data-space=world]) .shared-site-header img{width:118px}
main:has(>.shared-profile[data-space=world]){max-width:1200px}
.shared-profile[data-space=world]{border:0;border-radius:0;box-shadow:none}
.shared-profile[data-space=world] .shared-name h1{font-size:clamp(2.1rem,6vw,4.65rem);line-height:1.03;letter-spacing:-.045em}
.shared-profile[data-space=world] .shared-identity{padding-block:clamp(1.5rem,3.5vw,3rem)}
.shared-profile[data-space=world] .shared-cover.cover-empty{height:6px;min-height:0;background:var(--accent)}
.shared-profile[data-space=world] .cover-empty .shared-cover-orbit{display:none}
.shared-profile[data-space=world] .cover-empty+.shared-identity .shared-avatar{margin-top:0}
.shared-profile[data-space=world] .shared-contacts{margin-block-end:0}
.shared-profile[data-space=world] .world-collection>h2,.shared-profile[data-space=world] .world-bio h2{font-size:clamp(1.25rem,2.4vw,2rem);font-weight:650;letter-spacing:-.035em}
.shared-profile[data-space=world] .shared-name,.shared-profile[data-space=world] .shared-introduction{min-width:0}
@media(max-width:600px){body:has(.shared-profile[data-space=world]) main{padding:0 9px}.shared-profile[data-space=world] .shared-actions{grid-column:1/-1}.shared-profile[data-space=world] .world-index{flex-wrap:wrap}}

/* Collection controls are shared by the portfolio and document layouts. */
.profile-more {margin-block:.75rem 0;min-width:0}
.profile-more summary,.shared-work-index a {cursor:pointer;min-height:44px;align-content:center;color:var(--profile-accent,var(--accent));font-size:.86rem;font-weight:650}
.profile-more summary {padding:.35rem 0}
.profile-more[open] summary {margin-bottom:.6rem}
.profile-more:not([open]) .collection-close-label,.profile-more[open] .collection-open-label{display:none}
.collection-context{font-weight:400}
.shared-work-index{margin:1.2rem clamp(20px,4vw,40px);display:flex;align-items:center;gap:0 1.15rem;flex-wrap:wrap;border-block:1px solid var(--line)}
.shared-work-index a{text-decoration:underline;text-underline-offset:.2em}
.shared-work[id^=cv-]{scroll-margin-top:1rem}
.world-collection .world-pieces{grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr))}
.world-piece,.shared-section,.shared-facts,.shared-prose,.shared-section-subtitle,.shared-headline,.world-bio-prose,.world-tags,.shared-skills {overflow-wrap:anywhere;min-width:0}
.shared-profile .shared-details dt{overflow-wrap:anywhere}
@media print{.profile-more summary,.shared-work-index{display:none!important}.profile-more::details-content{content-visibility:visible}}
@media screen {
 .shared-profile[data-space=world] .shared-cover[data-fit=contain] .shared-photo img{max-height:clamp(150px,22vw,265px)}
 .shared-profile[data-space=work] .shared-cover[data-fit=contain] .shared-photo img{max-height:clamp(110px,18vw,180px)}
}
@media(max-width:640px){
 .shared-profile[data-space=world] .shared-cover[data-fit=cover] .shared-cover-panels{height:clamp(125px,38vw,180px)}
 .shared-profile[data-space=world] .shared-avatar{width:66px;height:66px}
 .shared-profile[data-space=world] .shared-identity{grid-template-columns:66px minmax(0,1fr) 44px}
 .shared-profile[data-space=world] .shared-name h1{font-size:clamp(1.65rem,7.5vw,2.8rem)}
}
@media print {
 .shared-profile[data-space=work] .shared-cover[data-fit=contain] .shared-photo img{max-height:80px}
 .shared-profile[data-space=work] .shared-cover[data-fit=cover] .shared-cover-panels{height:80px}
}

profile-carousel {
  display: block;
  min-width: 0;
  border: 1px solid var(--line,#dae5e3);
  border-radius: 14px;
  background: var(--panel,#fff);
  color: inherit;
}
.profile-slide-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 12px;
  border-bottom: 1px solid var(--line,#dae5e3);
}
.profile-slide-controls button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--profile-accent,var(--accent,#276c62));
  font: 600 1.15rem/1 system-ui,sans-serif;
  cursor: pointer;
}
.profile-slide-controls button[aria-disabled=true] {opacity:.35;cursor:default}
.profile-slide-controls button:not([aria-disabled=true]):hover {background:var(--soft,#ebf4ef)}
.profile-slide-controls [data-slide-status] {font:600 .82rem/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums;min-width:3.5ch;text-align:center}
.profile-slide-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: start;
  min-width: 0;
  block-size: var(--slide-height,auto);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.profile-slide-track::-webkit-scrollbar {display:none}
.profile-slide-track:focus-visible {outline-offset:-3px}
.profile-slide {
  display: flow-root;
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(14px,2vw,24px);
  scroll-snap-align: start;
}
:is(.heyloworld-app,.shared-profile) .profile-slide article {margin:0;border:0;padding:0;box-shadow:none}
:is(.heyloworld-app,.shared-profile) .world-portfolio .profile-slide .world-piece article {border:0;padding:0}
:is(.heyloworld-app,.shared-profile) article.profile-media-entry {
  display:grid;
  grid-template-columns:minmax(120px,.72fr) minmax(0,1.28fr);
  align-items:start;
  gap:clamp(14px,3vw,34px);
}
.profile-entry-copy,.profile-entry-art {min-width:0}
.profile-entry-copy h3 {margin:6px 0;line-height:1.2;text-wrap:balance}
.profile-entry-copy :is(.shared-section-subtitle,.profile-section-subtitle) {margin-block:6px}
.profile-entry-art {border-radius:8px;overflow:hidden;background:var(--soft,#ecf2f0)}
.profile-entry-art :is(button,img,video) {display:block;width:100%;margin:0}
:is(.heyloworld-app,.shared-profile) .profile-media-entry .profile-entry-art :is(img,video) {
  display:block;width:100%;height:auto;max-height:clamp(170px,28vw,310px);object-fit:contain;border:0;border-radius:0;
}
@media(max-width:540px){
  :is(.heyloworld-app,.shared-profile) article.profile-media-entry {grid-template-columns:minmax(82px,.65fr) minmax(0,1.35fr);gap:12px}
  .profile-entry-copy .shared-details>div {grid-template-columns:1fr;gap:0}
}
@media(max-width:355px){
  :is(.heyloworld-app,.shared-profile) article.profile-media-entry {grid-template-columns:1fr}
}
@media screen {
  main#shared-profile:has(>.shared-profile) {width:100%;max-width:none;margin-inline:auto;padding:0}
  .shared-profile[data-space] {
    --profile-gutter:max(clamp(16px,4vw,48px),calc((100% - 70rem)/2));
    border:0;border-radius:0;box-shadow:none;
  }
  .shared-profile[data-space=work] {--profile-gutter:max(clamp(16px,4vw,48px),calc((100% - 58rem)/2))}
  .shared-profile[data-space] :is(.shared-identity,.shared-profile-footer,.shared-member-access) {padding-inline:var(--profile-gutter)}
  .shared-profile[data-space] :is(.shared-work,.shared-about,.shared-contacts,.shared-skills,.shared-work-index,.world-portfolio) {margin-inline:var(--profile-gutter);padding-inline:0}
  .shared-profile .shared-cover.has-cover .shared-cover-panels {gap:0;align-items:stretch}
  .shared-profile .shared-cover.has-cover .shared-photo,
  .identity-page:is(.work,.world) .cover-panels button {position:relative;overflow:hidden;isolation:isolate;min-width:0}
  .shared-profile[data-space] .shared-cover.has-cover[data-fit=contain] .shared-photo img:not(.cover-ambient) {
    position:relative;width:100%;height:auto;max-height:clamp(180px,40vw,660px);object-fit:contain;vertical-align:middle;
  }
  .identity-page:is(.work,.world) .identity-cover .cover-panels img:not(.cover-ambient) {position:relative}
  .shared-profile[data-space] .shared-cover.has-cover[data-fit=contain] .shared-photo img.cover-ambient,
  .identity-page:is(.work,.world) .identity-cover.has-cover .cover-panels img.cover-ambient {
    position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:cover;
    transform:scale(1.06);filter:blur(9px) brightness(.77);pointer-events:none;
  }
}
@media print {
  .cover-ambient,.profile-slide-controls {display:none!important}
  profile-carousel,.profile-slide-track,.profile-slide {display:block;overflow:visible;height:auto;block-size:auto;border:0;background:transparent;max-height:none}
  .profile-slide {padding:0 0 12px;break-inside:auto}
  :is(.heyloworld-app,.shared-profile) article.profile-media-entry {display:block;break-inside:auto}
  .profile-media-entry .profile-entry-art {float:right;width:22%;max-width:125px;margin:0 0 6px 12px;background:transparent}
  .profile-media-entry::after {content:"";clear:both;display:block}
}

/* A compact screening list keeps every title and its watch link together. */
:is(#world-reels,#resume-showreelsTrailers,#cv-showreelsTrailers) {
  border:1px solid var(--folio-line,var(--line,#dce6e2));
  border-radius:16px;
  padding:clamp(14px,3vw,26px);
  scroll-margin-top:6rem;
}
:is(#world-reels,#resume-showreelsTrailers,#cv-showreelsTrailers) :is(.world-pieces,.resume-entries,.shared-section-grid) {
  display:grid;grid-template-columns:minmax(0,1fr);gap:0;
}
:is(#world-reels,#resume-showreelsTrailers,#cv-showreelsTrailers) article.profile-reel {
  padding:14px 0;margin:0;border:0;border-top:1px solid var(--line,#dce6e2);
  border-radius:0;box-shadow:none;background:transparent;
}
.profile-reel-row,.profile-reel-actions {display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}
.profile-reel-row {justify-content:space-between}
.profile-reel-row h3 {font-size:1rem;margin:0;overflow-wrap:anywhere}
.profile-reel-row p,.profile-reel-details {margin:.3rem 0 0;color:var(--muted,inherit);font-size:.87rem}
.profile-reel-details summary {cursor:pointer;width:fit-content;padding:5px 0}
.profile-reel-description {white-space:pre-line}
.profile-reel-watch {display:inline-flex;align-items:center;gap:.45em;min-height:40px;padding:0 .85em;border-radius:99px;background:var(--profile-accent,var(--accent,#28675c));color:#fff!important;text-decoration:none;font-weight:650}
.profile-reel-watch svg {width:1em;height:1em}
.profile-reel-media :is(img,video) {max-width:100%;max-height:320px;object-fit:contain}
@media print {
  :is(#world-reels,#resume-showreelsTrailers,#cv-showreelsTrailers) {border:none;padding:0}
  .profile-reel-watch {color:inherit!important;background:none;padding:0}
  .profile-reel-details summary {display:none}
}

/* Website photo choices in the signed-in World editor. */
.web-photo-selection {padding:0;list-style:none;margin:14px 0}
.web-photo-selection li {display:flex;gap:10px;align-items:center;border-block-start:1px solid var(--line);padding:7px 0}
.web-photo-selection img,.web-photo-options img {width:48px;height:48px;object-fit:cover;border-radius:6px;flex:none}
.web-photo-label {min-width:0;flex:1}
.web-photo-label strong,.web-photo-label span,.web-photo-options small {display:block;overflow-wrap:anywhere}
.web-photo-label span,.web-photo-options small {font-size:.79rem;color:var(--muted)}
.web-photo-controls {display:flex;flex-wrap:wrap;justify-content:flex-end}
.web-photo-control {width:40px;height:44px;background:transparent;border:0;color:var(--accent);cursor:pointer}
.web-photo-control:disabled,.web-photo-options button:disabled {opacity:.45}
.web-photo-control svg {width:16px}
.web-photo-options summary {cursor:pointer;font-weight:650;padding:9px 0;min-height:44px}
.web-photo-options>div {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(155px,100%),1fr));max-height:300px;overflow:auto;gap:6px}
.web-photo-options button {display:flex;align-items:center;gap:8px;min-height:48px;text-align:start;overflow-wrap:anywhere;border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:4px}
.web-photo-status {font-size:.85rem}

.web-photo-upload {display:grid;gap:5px;margin:14px 0;font-weight:650}
.web-photo-upload span {display:inline-flex;gap:8px;align-items:center}
.web-photo-upload input {max-width:100%;min-height:44px;align-content:center}
.web-photo-upload small {font-size:.76rem;color:var(--muted);font-weight:400}
@media(max-width:520px) {
 .web-photo-selection li {display:grid;grid-template-columns:48px minmax(0,1fr)}
 .web-photo-controls {grid-column:2;justify-content:flex-start}
 .web-photo-control {width:44px}
}
